2009-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2
3         * PrintPreviewDialog.cs: Don't use Dock.Fill for the
4         PrintPreviewControl, since it will be hidden in the top by our
5         toolbar. Use manual location and anchoring instead.
6         Fixes #474889.
7
8 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
9
10         * FileDialog.cs: When saving the size of the dialog, use the
11         ClientSize instead of Size, so we have always the same size for the
12         form. Patch by Alex Shulgin.
13         Fixes #503064.
14
15 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16
17         * MessageBox.cs: When showing the dialog call XplatUI.AudibleAlert to
18         show a beep, similar to what .net does. 
19         Fixes #473725.
20
21 2009-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22
23         * ContainerControl.cs:
24         * MenuStrip.cs
25         * ToolStrip.cs: Implicit mnemonic processing should happen for every
26         ToolStrip child, not only for MenuStrip, so we are going to do that in
27         ToolStrip.ProcessMnemonic, where we already had that exactly
28         functionality, but we are only just checking that either this instance
29         is a ToolStripDropDownMenu instance or Alt has been pressed. Finally
30         remove the extra code, since we are not going to use it now.
31         Fixes the remaining bits of #503663.
32
33 2009-05-21  Neville Gao  <nevillegao@gmail.com>
34
35         * ContextMenu.cs: Cleaned up UIA properties.
36
37 2009-05-20  Dick Porter  <dick@acm.org>
38
39         * XplatUICarbon.cs: Add more locking around MessageQueue
40         manipulations.
41
42 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
43
44         * DateTimePicker.cs: Call Focus in HideMonthCalendar to avoid
45         duplication of code, as well as actually getting the focus back in
46         *any* scenario where the drop down is closed.
47
48 2009-05-18 Tom Hindle <tom_hindle@sil.org>
49         * ScrollableControl.cs: Ignore setting properties HScroll and 
50         VScroll when AutoScroll is true.
51         [Fixes bug #500213]
52
53 2009-05-18  Jonathan Pobst  <monkey@jpobst.com>
54
55         * ToolStripRenderer.cs: Apply patch from Thomas Goldstein to make
56         disabled graphics look closer to the ones that .Net produces.
57         [Fixes bug #473660]
58
59 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
60
61         * DateTimePicker.cs: When calculating the max width for the year part,
62         use the current value, since *all* the possible values are exactly a 4
63         digits number. This way we avoid a ArgumentOutOfRangeException trying
64         to check against different values.
65         Fixes #500917.
66
67 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
68
69         * MessageBox.cs: When handling ProcessDialogChar, check that
70         CancelButton is not null before trying to use it, to avoid a null ref
71         exception. We don't need to do that on the ok/yes buttons, since they
72         always exist.
73         Fixes #503935.
74
75 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
76
77         * ListBox.cs: Handle the key down event in WndProc instead of doing it
78         in an event handler, as we need to avoid any operation in case
79         the user has handled it in its own OnKeyDown handler, and this can't
80         be achieved since our handler would be the first one always.
81         * FontDialog.cs: Update the calls since our method handling key down
82         has been renamed.
83         Fixes #503469.
84
85 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
86
87         * Application.cs: We should dismiss the active ToolStrip when we
88         receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
89         keyboard short cut can be properly processed by another menu item.
90         Fixes part of #503663.
91
92 2009-05-13  Andreia Gaita  <avidigal@novell.com>
93
94         * HtmlDocument.cs: If the objects are strings, wrap them in ""
95
96 2009-05-13  Andreia Gaita  <avidigal@novell.com>
97
98         * HtmlDocument.cs: Fix InvokeScript call (duh).
99
100 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
101
102         * TextBox.cs: Expose IsAutoCompleteAvailable as internal.
103         * ComboBox.cs: If auto complete is being used, it is needed to update
104         the actual value of the combo box, doing it immediately if the user
105         presses Enter, or doing it when our combo box loses focus. Finally,
106         when handling Enter and Escape keys for the combobox, don't try to
107         hide the listbox if it is not visible in the first place. 
108         Fixes part of #489339.
109
110 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
111
112         * ToolStripDropDownMenu.cs: Use the height returned by
113         ToolStripItem.GetPreferredHeight to calculate our own height.
114
115 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
116
117         * TreeNode.cs: When setting Checked, do a double null check, since the
118         current node can still get a null parent handling
119         TreeView.OnAfterCheck.
120         Fixes #502567.
121
122 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
123
124         * Control.cs: When assigning ContextMenu, do a null check before
125         assigning its container field.
126
127 2009-05-08  Brad Taylor  <brad@getcoded.net>
128
129         * DateTimePicker.cs: Add a UIA-specific property to ensure that if
130         is_checkbox_checked is changed, we won't break.
131
132 2009-05-08  Andrés G. Aragoneses  <aaragoneses@novell.com>
133
134         * ToolStripItem.cs: Prevent NRE when our holder is a
135         ToolStripDropDownButton and we get Select()ed.
136
137 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
138
139         * ToolStripControlHost.cs: DefaultSize must return the current size of
140         the Control, not the value returned by GetPreferredSize. Also connect
141         a handle to the control Resize event, and use it to fire
142         OnHostedControlReize.
143         Fixes the remaining bits of #483146.
144
145 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
146
147         * ToolStripDropDown.cs: When performing the layout, use
148         ToolStripItem.GetPreferredSize ().Height instead of
149         ToolStripItem.Height, since we are already using it that way in this
150         same method.
151         Fixes part of ##483146.
152
153 2009-05-08  Brad Taylor  <brad@getcoded.net>
154
155         * DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers.  Send
156         OnUIASelectionChanged when ShowCheckbox is true and the checkbox
157         recieves focus.  Part of fix for #502029.
158
159 2009-05-06  Mike Gorse  <mgorse@novell.com>
160
161         * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
162         Add PerformClick and PerformDoubleClick to PopupButton.
163         Fixes #499851.
164
165 2009-05-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
166
167         * TabControl.cs: call Focus() to emit GotFocus event at the
168         proper time when SelectionIndex changes. Fixes #499887.
169
170 2009-05-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
171
172         * MonthCalendar.cs: In SetBoundsCore always do the bounds check to
173         have valid values, even if BoundSpecified is not including
174         Size/Height/Width - this is useful when we are in a control using Dock
175         or Anchor.
176         Fixes part of #483146.
177
178 2009-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
179
180         * ComboBox.cs: When losing the focus, if our textbox is not null,
181         close its auto complete list, if any.
182         Fixes part of #489339.
183
184 2009-04-27  Andrés G. Aragoneses  <aaragoneses@novell.com>
185
186         * ListView.cs: Make OnColumnClick +internal to be used by a11y.
187
188 2009-04-27  Brad Taylor  <brad@getcoded.net>
189
190         * ToolStripButton.cs: Emit an internal event when CheckOnClick is
191         changed.
192
193 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
194
195         * XplatUIX11.cs: Properly support UTF8 when handling the
196         SelectionRequest event - this is helpful supporting some window
197         managers, such KDE, that explictly request the text in utf8, as
198         opposed to gnome, that supports ascii.
199         Fixes #489393.
200
201 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
202
203         * ToolStripDropDownItem.cs: When assigning a new
204         ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
205         Capture duties performed by Application/ToolStripManager are handled
206         nicely and we don't end up in an inconsisten stat.
207         Fixes #492815.
208
209 2009-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
210
211         * ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
212         any ToolStripDropDownItem when receiving a mouse down event in an
213         empty area.
214
215 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
216
217         * ToolBarButton.cs: add UIA events for style and dropdownmenu changes.
218
219 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
220
221         * ToolBarButton.cs: rename a method to include UIA prefix.
222
223 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
224
225         * ToolBarButton.cs: change visibility of some UIA methods from
226         protected virtual to private.
227
228 2009-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
229
230         * ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
231         fire OnDropDownOpened/OnDropDownClosed depending on the new
232         visibility. This also ensures that any direct access to this instance
233         will fire the mentioned events for the OwnerItem.
234         * ToolStripDropDownItem.cs: Remove the invocations to
235         OnDropDownOpened/OnDropDownClosed, since they are handled in
236         ToolStripDropDown, as well as updating the
237         OnDropDownHide/OnDropDownShow calls to be in the right order.
238         Fixes #496193.
239
240 2009-04-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
241
242         * Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any 
243         shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the 
244         event is the same as the owner of the menu item. Also set properly 
245         SourceControl for ContextMenuStrip, as well as add an internal field to 
246         contain the control that owns the ContextMenuStrip (we need to know this 
247         even before the public property is assigned).
248         Fixes bits of #393775.
249
250 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
251
252         * StatusStrip.cs: Use the same icon as .net when the mouse is over the
253         size grip.
254         Fixes #492828.
255
256 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
257
258         * ComboBox.cs: When calculating the height of the ComboListBox,
259         specially for the 2.0 profile, use MaxDropDownItems if the
260         DropDownHeight property hasn't been set, and use the later if it has
261         been set. This way we support both properties.
262         Fixes #493308.
263
264 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
265
266         * ThreadExceptionDialog.cs: Draw the error icon, previously missing.
267         Fixes #474253.
268
269 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
270
271         * ContainerControl.cs: Implement support for Control.CausesValidation,
272         by adding a pending list of controls to be validated in the top
273         container control, and postpone validation as needed. 
274         Also remove any control in the validation chain in case it gets removed 
275         from its owner before the pending validation actually happens.
276         Fixes #457170.
277
278 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
279
280         * ListBox.cs: The default instance StringFormat field used to draw our
281         items should use the StringFormatFlags.NoWrap value, so it doesn't try
282         to put in a different line the text that doesn't fit our bounds, but
283         show it partially.
284         Fixes #475581.
285
286 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
287
288         * CheckedListbox.cs: When executing OnItemClick check that the index
289         is different to -1 before trying to retrieve an item using that value.
290         Fixes a ArgumentOutOfRangeException thrown when the horizontal
291         scrollbar was visible but not needed, and then a clicked was received
292         on its area.
293
294 2009-04-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
295
296         * MaskedTextBox.cs: If Insert is pressed, change the internal
297         overwrite mode for our default value.
298         Fixes some bits of #477395.
299
300 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
301
302         * ListView.cs: In EnsureVisible avoid any direct access to items if we
303         are using virtual mode - otherwise use the bounds stored in a specific
304         item in a given index. This is specially important when using groups
305         or when items are re-arranged, since the position in the items
306         collection can be different than that one being displayed.
307         Fixes the rest of ##491978.
308
309 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
310
311         * ThemeWin32Classic.cs: Include the previous check for ListView in a
312         2.0 define as needed.
313
314 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
315
316         * ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups.
317         Fixes part of #491978.
318
319 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
320
321         * ToolTip.cs: New fields to store the title/icon information.
322         * ThemeWin32Classic.cs: Implement support for tooltip's title and
323         icon.
324         Fixes #491978.
325
326 2009-04-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
327
328         * TabControl.cs: When removing a tab that was previously selected, set
329         internally the value of selected_index to -1, to avoid trying to
330         access the previous one when trying to set the new one (and was
331         already removed from the collection). This is what .net seems to do
332         too.
333         Fixes #490937.
334
335 2009-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
336
337         * XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
338         separated, and we cannot fallback on Text if Rtf is requested but not
339         present.
340         * Clipboard.cs: Actually use the format specified by our user when
341         putting data.
342
343 2009-03-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
344
345         * X11Clipboard.cs: Actually look for the RtfText format when calling
346         GetRftText in our clipboard formats list, instead of using the
347         generical Text format.
348
349 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
350
351         * TextBox.cs: Process auto completion properly when we are using the
352         internal source provided by ComboBox, and also remove some repeated
353         checks.
354         Fixes #489339.
355
356 2009-03-30 Tom Hindle <tom-hindle@sil.org>
357         
358         * DataGridView added Support for Invisible Columns to 
359         AutoFillColumnsInternal method.
360
361 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
362
363         * X11Structs:
364         * X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
365         its own file, since it is adding some functionality and thus is not a
366         simple struct as before.
367         * XplatUIX11.cs: Add support to store different formats that could
368         have been specified by the user when puting data in the Clipboard -
369         this is important when more than one format is supported (such plain
370         text and rtf text). Update in the needed places, as well as simplify
371         the code.
372         Fixes #489625.
373
374 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
375
376         * XplatUIX11.cs: When handling the SelectionRequest event, use
377         SelectionRequestEvent instead of SelectionEvent, so we get the right
378         data for the app asking for clipboard data. Set the member of
379         SelectioneEvent.property to indicate the place where we are storing
380         the information as well - this is specially important for gnome/kde
381         apps using the TARGETS atom to ask for the supported permission before
382         actually asking for a specific format.
383         Fixes #489393.
384
385 2009-03-28  Ivan N. Zlatev  <contact@i-nz.net>
386
387         * DataGridViewCell.cs: We don't support drawing all types of cell borders, 
388         so fallback and at least draw something instead of nothing.
389
390 2009-03-27  Ivan N. Zlatev  <contact@i-nz.net>
391
392         * DataGridView.cs: If the column header isn't visible allow resizing 
393         using the cell column border. Also be sure to reset the cursor properly.
394         [Fixes bug #489929]
395
396 2009-03-26   Carlos Alberto Cortez <calberto.cortez@gmail.com>
397
398         * ToolStrip.cs: When disposing, iterate over the items in reverse
399         order, since disposing the items modifies the collection.
400         * ToolStripItem.cs: Remove from the owner when disposing.
401         Fixes #485769.
402
403 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
404
405         * DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No 
406         longer throws a NotImplementedException.
407           Based on a patch by Tom Hindle <tom_hindle@sil.org>
408         [Fixes bug #488319]
409
410 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
411
412         * DataGridView.cs: Implement IsCurrentRowDirty. No longer throws 
413         NotImplementedException.
414
415 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
416
417         * DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs: 
418         Fix SortMode clash handling.
419         [Fixes bug #488263]
420
421 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
422
423         * DataGridView.cs: Do not show the vertical scrollbar if there is only 
424         one row or less. For the sake of MSNET compatibility.
425         [Fixes bug #487988]
426
427 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
428
429         * DataGridView.cs: When the current cell is moved out of the editing row 
430         be sure to reset it back to a place holder row.
431
432 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
433
434         * DataGridView.cs: If IsHandleCreated and the very first row is added 
435         to the grid in a non-databound scenario - select the first cell.
436         [Fixes bug #486881]
437
438 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
439
440         * DataGridView.cs: If we are not databound and empty once the first row 
441         gets added select the first cell.
442         [Fixes bug #486881]
443
444 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
445
446         * DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
447         DataGridView. They do not belong to a DataGridView.
448         [Fixes bug #486645]
449
450 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
451
452         * DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs: 
453         Set indices and associate with DataGridView only after the item is 
454         add to the internal list.
455         [Fixes part of bug #486645]
456
457 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
458
459         * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount. 
460         FullRowTemplate already contains all the cells.
461         [Fixes part of bug #486645]
462
463 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
464
465         * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal 
466         to perform Pre and Post removal actions to allow the current cell to be 
467         moved and all events fired properly before the column is removed.
468
469 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
470
471         * DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and 
472         Post removal action to allow the current cell to be moved and all events fired 
473         properly before the row is removed.
474
475 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
476
477         * DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
478         [Fixes bug #486640]
479
480 2009-03-18  Jonathan Pobst  <monkey@jpobst.com>
481
482         * XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
483         placement of popup windows on OSX.
484
485 2009-03-18  Matt Guo  <matt@mattguo.com>
486
487         * FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
488         [Fixes bug #482690]
489
490 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
491
492         * DataGridView.cs: Implement the CellMouseDoubleClick event.
493         [Fixes bug #486262]
494
495 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
496
497         * DataGridView.cs: Fix scrolling to take into account that the 
498         scrollbars are actually inside the client area of the datagridview.
499
500 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
501
502         * DataGridView.cs: Implement mouse wheel scrolling.
503         [Fixes bug #486159]
504
505 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
506
507         * DataGridView.cs: When DataSource changes the rebinding should happen 
508         not if IsHandleCreated but if BindingContext != null.
509         [Fixes bug #486013]
510
511 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
512
513         * DataGridView.cs: Browsable(false) properties should be skipped when 
514         autogenerating the columns.
515         [Fixes bug #486021]
516
517 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
518
519         * DomainUpDown.cs: When ReadOnly is true, all the text entered by the
520         user should use a different handling, trying to use every pressed char
521         as a unique and only one prefix to compare against the items. Also,
522         refactor some input check code to avoid duplication.
523         Fixes #458607.
524
525 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
526
527         * DataGridViewCell.cs: In OwningColumng Handle invalid column index 
528         silently.
529         [Fixes bug #485278]
530
531 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
532
533         * DataGridViewBand.cs: Update our State whenever a property changes.
534         * DataGridView.cs: Don't be so generous in reseting Displayed, because 
535         it will spawn lots and lots of unneeded State changed events.
536         [Fixes bug #484989]
537
538 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
539
540         * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs: 
541         Add support for invisible rows and columns.
542         [Fixes bug #484951]
543
544 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
545
546         * DataGridViewCell.cs: Escape literal { in ToString.
547         * DataGridViewTextBoxCell.cs: Fix ToString.
548         [Fixes bug #484923]
549
550 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
551
552         * MenuAPI.cs: When navigating items using the keyboard properly handle
553         the case when no item is selected - this way we should try to select
554         the first or the last item depending on the direction, but no the
555         second or third one, etc.
556
557 2209-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
558
559         * Form.cs: When calling ProcessCmdKey, just after checking for any
560         MainMenu, check if there's an active ContextMenu that is *not* owned
561         by the form - this is needed when a non-focusable control owns a
562         ContextMenu but its ProcessCmdKey method can't be called since it
563         can't receive any input.
564         Fixes #477655.
565
566 2009-03-13  Neville Gao  <nevillegao@gmail.com>
567
568         * ToolBar.cs: Sent ButtonClick events when button style is DropDown.
569         * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
570         ContextMenu is displayed.
571
572 2009-03-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
573
574         * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
575         WM_HELP message for the associated window, don't call
576         NativeWindow.WndProc *at all*, since this could send a WM_*
577         key-related to Control.WndProc. Also, return the keypress message, in
578         case it needs to be preprocessed for any menu.
579         Fixes #478476.
580
581 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
582
583         * DataGridView.cs: When removing the first displayed row and moving 
584         the current cell up one we must invalidate the first displayed row 
585         index before calculating the row heights, etc.
586         [Fixes bug #483202]
587
588 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
589
590         * DataGridView.cs: Fix three column bugs:
591            - Rows should be cleared (but not removed) if columns become 0.
592            - The current cell should get moved
593            - ColumnCount increase was adding too many columns.
594
595 2009-03-07  Ivan N. Zlatev  <contact@i-nz.net>
596
597         * DataGridView.cs: Fix RowCount decrease which wasn't working well 
598         in both scenarions - with and without editing row.
599
600 2009-03-06  Ivan N. Zlatev  <contact@i-nz.net>
601
602         * DataGridView.cs: Be compatible with MS in that the scroll to 
603         selection has a synchronous effect. The trick here is that in 
604         order to avoid unnecessary calculations each time a row/column 
605         is added/removed we recalculate the whole grid size just before 
606         just before the scroll to selection.
607         [Fixes bug #482478]
608
609 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
610
611         * RichTextBox.cs: LoadFile(string path) should pass by default
612         RichTextBoxStreamType.RichText, without caring about the detection or
613         extension of the file.
614
615 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
616
617         * RichTextBox.cs: When calling LoadFile, remove the extra EOL
618         introduced by StreamReader, since it will convert the EOF to an EOL.
619         Fixes #479646.
620
621 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
622
623         * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
624         preferred size twice.
625
626 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
627
628         * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
629         string if we aren't on a ToolStripDropDownMenu.
630
631 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
632
633         * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
634         code from Item to Button.  Patch from Alex Shulgin.
635
636 2009-03-05  Jonathan Pobst  <monkey@jpobst.com>
637
638         * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
639         * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
640         not a ToolStripDropDown.
641         * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
642
643 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
644
645         * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
646
647           Based on a patch by Tom Hindle <tom_hindle@sil.org>
648           [Fixes bug #482133]
649
650 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
651
652         * DataGridView.cs, DataGridViewElement.cs: 
653            - Always calls OnDataGridViewChanged() if the new DGV is 
654            not the same/null as the current one.
655            - Do not throw NREs when setting TopLeftHeaderCell to null
656            - Unset the DGV for TopLeftHeaderCell when replacing it
657           Based on a patch by Tom Hindle <tom_hindle@sil.org>
658           [Fixes bug #481681]
659
660 2009-03-04  Jonathan Pobst  <monkey@jpobst.com>
661
662         * ToolStripDropDown.cs: When dismissing control due to ESC, don't
663         hit a NRE if we are a ContextMenuStrip and do not have a parent.
664         [Fixes bug #478616]
665
666 2009-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
667
668         * ListView.cs: When removing items from a ListViewItemCollection
669         contained in ListView (not in ListViewGroup), before actually removing
670         the items remove them also from their -if any- associated groups. If
671         the item is present in ListViewGroup.Items but not in ListView.Items,
672         then don't remove it - this is *exactly* what .net seems to do.
673         Fixes the remaining bits of #478689.
674
675 2009-02-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
676
677         * ListView.cs: In our MouseDown handler in ItemControl use the item in
678         the very specific *real* position where the mouse was pressed, using
679         GetItemAtDisplayIndex for that purpose, instead of directly accessing
680         Items - this is specially useful when groups with Details view is
681         used. This is what we do in other places when using groups.
682         Fixes part of #478689.
683
684 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
685
686         * MaskedTextBox.cs: Properly replace selection when a new valid key
687         is pressed - even when IsOverwriteMode is false. This is what .net
688         does.
689
690 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
691
692         * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
693         true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace, 
694         since Set will keep the previous value in case of error (just what we
695         need), but still call MaskedTextProvider.Clear if
696         RejectOnFirstFailure is false - match .net.
697
698 2009-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
699
700         * MaskedTextBox.cs: When setting Text use the very precise algorithm
701         that .net uses: iterate over every char of the new value, trying to
702         use every char, and use a normal call to MaskedTextProvider.Replace
703         call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected 
704         in case of error in both cases, as well.
705         Fixes #477408.
706
707 2009-02-25  Neville Gao  <nevillegao@gmail.com>
708
709         * ColorDialog.cs: Added UIA Framwork Property:
710         UIASelectedSmallColorControl.
711
712 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
713
714         * MaskedTextBox.cs: Forgot to update the call of the new method
715         introduces in the previous patch.
716
717 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
718
719         * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
720         key. Also create a new method to avoid code duplication between
721         OnKeyDown and OnKeyPress.
722         Fixes #477388.
723
724 2009-02-24  Ivan N. Zlatev  <contact@i-nz.net>
725
726         * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected 
727         or deselected.
728         [Fixes bug #479124]
729
730 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
731
732         * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
733         actually inversed, so put it the right way. Also, don't automatically
734         look for the next editable item after adding a new one, but way for
735         the next insertion (this is what .net does) - this is not needed when
736         MaskedTextProvider.InsertAt is called however, since it already looks for the
737         next editable position.
738         Fixes the remaining bits of #477383.
739
740 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
741
742         * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
743         MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
744         property after the text was modified, adjust the testPosition value
745         depending on what method was called.
746         Fixes part of #477383.
747
748 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
749
750         * ListView.cs: For EnsureVisible, adjust the view port bounds based on
751         the existence of the column headers, as well as using this information
752         to adjust the vscrollbar value, so items never get hidden by the
753         column headers.
754         Fixes #478498.
755
756 2009-02-23  Ivan N. Zlatev  <contact@i-nz.net>
757
758         * DataGridView.cs: Make the ScrollBars property work properly.
759
760 2009-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
761
762         * TextBox.cs: Some code lifting for AutoComplete's support. First,
763         when handling non-navigation keys, save the original Text typed by the
764         user, and don't motify it BEFORE. This was a design mistake, since the
765         re-assignation happens only when navigating the append/suggest list,
766         not while creating the matches. Also, process the Delete key just like 
767         the backspace one. Finally, when handling WM_CHAR, ignore both Escape
768         and Enter keys.
769         Fixes some missing bits of #469967.
770
771 2009-02-22  Ivan N. Zlatev  <contact@i-nz.net>
772
773         * DataGridView.cs: Fix row removal in the data-bound scenario.
774
775 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
776
777         * DataGridViewCell.cs: Use strict equality comparison in order to 
778         prevent superfluous CellValueChanged events.
779
780 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
781
782         * DataGridView.cs: Do not reset the columns when the data list changes, 
783         but only the rows. Fixes multiple bugs related to sorting, custom 
784         column styles being reset and more.
785
786 2009-02-19  Jonathan Pobst  <monkey@jpobst.com>
787
788         * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
789         drawing the image.
790
791 2009-02-18  Andrés G. Aragoneses  <aaragoneses@novell.com>
792
793         * ToolBarButton.cs: Oops, use the correct event (fix r127298).
794
795 2009-02-17  Andrés G. Aragoneses  <aaragoneses@novell.com>
796
797         * ToolBarButton.cs: Event for Enabled property (needed to fix
798           UIA #474197).
799
800 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
801
802         * TextBox.cs: When handling WndProc with autocomplete activated,
803         event if the new text is not causing any change in the look up
804         algorithm, save it as we normally do when numbers and letters.
805         Fixes #469967.
806
807 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
808
809         * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
810         Invalidate the proper bounds in the TreeView, not only resetting the
811         width.
812         Fixes #475542.
813
814 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
815
816         * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
817         BackColor property. This is what .net does in both 1.1 and 2.0.
818         * TreeView.cs: When selected_node is not the same as highlighted_node,
819         we need to handle the back color in a different way, trying to use the
820         node's BackColor if it's not Color.Empty.
821         Fixes #464200.
822
823 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
824
825         * TreeView.cs: When canceling selection in our MouseUp handler,
826         invalidate also the previous selected node bounds.
827         Fixes #464191.
828
829 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
830
831         * DataGridView.cs: End or if end fails then cancel the current edit 
832         operation before clearing the data source.
833
834 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
835
836         * DataGridView.cs: Data-bind only after the handle is created.
837         [Fixes bug #473680]
838
839 2009-02-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
840
841         * TreeView.cs: When handling the MouseMove event, check if
842         focused_node and selected_node fields are null - usually they are non
843         null, since we have always a selected node, but canceling selection by
844         handling BeforeSelect event leaves the two of them as null.
845         Fixes #470451.
846
847 2009-02-06  Neville Gao  <nevillegao@gmail.com>
848
849         * TabControl.cs: Control enabled to support accessibility.
850         [Fixes Bug #472428]
851
852 2009-02-05  Ivan N. Zlatev  <contact@i-nz.net>
853
854         * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation: 
855            - Use ArrayList.Insert instead of the Item property so that the item 
856            is actually inserted and not an existing item replaced.
857            - Call DataGridView.OnRowsAddedInternal and drop internal from 
858            OnRowsAdded for binary compitability. This also fixes several 
859            redrawing issues.
860         [Fixes bug #472968]
861
862 2009-02-05  Andrés G. Aragoneses  <aaragoneses@novell.com>
863
864         * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
865           the value.
866
867 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
868
869         * ToolBarButton.cs: Add another event (OnUIATextChanged).
870
871 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
872
873         * ToolBarButton: Fix typo in previous commit (r125704).
874
875 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
876
877         * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
878         when a button gets focus, firing the events from the ToolBar.
879         r: jpobst
880
881 2009-02-04  Mario Carrion  <mcarrion@novell.com>
882
883         * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting 
884         Width.
885         * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
886         ColumnHeader to raise ColumnWidthChanged.
887         [Fixes Bug #467086]
888
889 2009-02-03  Ivan N. Zlatev  <contact@i-nz.net>
890
891         * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion 
892         code in the row collection code, so that the completion happens before 
893         the CollectionChanged event, also better encapsulation.
894         [Fixes bug #471987]
895
896 2009-02-02  Ivan N. Zlatev  <contact@i-nz.net>
897
898         * DataGridView.cs: When editing is finished do not remove the editing 
899         row, because it has already become a real one. Instead add a new one.
900         [Fixes bug #471754]
901
902 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
903
904         * TreeView.cs: When drawing the node's image, check that the index
905         specified by the node is valid for the ImageList.
906         Fixes #471094.
907
908 2009-02-02  Andrés G. Aragoneses  <aaragoneses@novell.com>
909
910         * ToolBar.cs: Add new UIAPerformClick method to be called by
911         UIAutomationWinforms when someone calls Invoke() on the
912         ToolBarButtonProvider. r: jpobst
913
914 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
915
916         * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
917         MapNotify/UnmapNotify events - we are already firing those events in
918         the proper places, so we avoid this way to send the same message two
919         times. I'm leaving the handling code in case we could break something
920         in the future, as this change seems dangerous (but needed).
921         Fixes #467546.
922
923 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
924
925         * DataGridView.cs: Complete incomplete rows when they are added to 
926         the grid.
927         [Fixes bug #471068]
928
929 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
930
931         * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the 
932         binding is cleared prior to setting it to null. Fixes a regression 
933         causing exceptions when the DataSource is set to null and then set 
934         again to a data source.
935
936 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
937
938         * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs: 
939            - Make Image/Bitmap cells work.
940            - Handle images with size greater than the cell.
941            - Default to MiddleCenter alignment for image cells.
942         [Fixes bug #471101]
943
944 2009-01-30  Ivan N. Zlatev  <contact@i-nz.net>
945
946         * UpDownBase.cs: Force Height to PreferredHeight.
947
948 2009-01-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
949
950         * XplatUIX11.cs: We should use utf8 handling clipboard transference
951         with other x11 applications, and use utf16 when handling clipboard
952         data in the class library. Update the related points as well.
953         Fixes #468683.
954
955 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
956
957         * DataGridViewCell.cs: Format strings according to the supplied 
958         CellStyle.Format.
959         [Fixes bug #470384]
960
961 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
962
963         * DataGridView.cs: Reset the hover cell if it gets moved due to row(s) 
964         addition or removal. Fixes multiple crashes in OnMouseMove.
965
966 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
967
968         * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
969
970 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
971
972         * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the 
973         current context.
974         [Fixes bug #469239]
975
976 2009-01-26  Andreia Gaita  <avidigal@novell.com>
977
978         * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
979         won't be disabled by default.
980         Fixes #468690
981
982 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
983
984         * DataGridView.cs: Do not clear the rows if we are not databound.
985
986 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
987
988         * DataGridView.cs: Do not be too smart about selecting the first cell 
989         when the first row is added as this is not what MS does. Fixes the 
990         failing unit tests.
991
992 2009-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
993
994         * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
995         take into account the fact that OpenTreeNodeEnumerator needs to call
996         MoveNext/MovePrevious to actually put the passed node as the one
997         retrieved in Current. This way this property should work as really
998         expected in .net.
999         Fixes part of #467225.
1000
1001 2000-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1002
1003         * TreeView.cs: When calculating the scrollbars, don't use
1004         TreeNode.Bounds, since it still can have the values of the previous
1005         -and now invalid- layout -which depends on TreeView.skipped_nodes, and
1006         could not have been updated as well-, and use the actual number of
1007         visible number of nodes to compute the height needed to contain all
1008         the nodes. Also reset the value of vbar to 0 when disabled - this way
1009         we make sure that, when re-enabled, it will update the visible area of
1010         the treeview, even if the previous value before disabling it is the
1011         same as now. Finally don't do anything for the vbar.ValueChanged
1012         handler - for the case wheer we manually set the value but don't the
1013         vbar is disabled already.
1014         Fixes part of #467225.
1015
1016 2009-01-23  Jonathan Pobst  <monkey@jpobst.com>
1017
1018         * ToolStrip.cs: Switch from foreach to for, in case the collection
1019         somehow changes while enumerating it.
1020
1021 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1022
1023         * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no 
1024         editing control.
1025
1026 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1027
1028         * DataGridView.cs: Fix new row adding/editing in the non-databound 
1029         scenario.
1030
1031 2009-01-21  Mike Gorse  <mgorse@novell.com>
1032
1033         * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
1034           use them.
1035           Added UIAValueParamChangedEvent.
1036
1037 2009-01-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1038
1039         * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
1040         of trying to set as top node the highest parent of the previous top
1041         node. Moving to the bottom of the TreeView after a call to CollapseAll
1042         is exactly what .net does. This should avoid some nasty issue when
1043         CollapseAll is called and we don't need the vertical scroll bar.
1044
1045 2009-01-21  Mario Carrion <mcarrion@novell.com>
1046
1047         * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
1048         and UIATopMostChanged.
1049
1050 2009-01-21  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1051
1052         * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
1053         UIAEnabledChanged, and UIATextChanged events.
1054
1055         * Form.cs: Add UIAMenuChanged event.
1056
1057         * Menu.cs:
1058         * MenuAPI.cs: Note which internal APIs are being used by UIA.
1059
1060 2009-01-21  Neville Gao  <nevillegao@gmail.com>
1061
1062         * ToolBar.cs: Control enabled to support accessibility.
1063         [Fixes Bug #455950]
1064
1065 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1066
1067         * TreeView.cs: When handling mouse up event, check whether
1068         highlighted_node is null or not - usually it should be non-null
1069         alwaays, since the mouse down handler sets it, but some externa
1070         operations, such TreeNodeCollection.Clear, could set it to null.
1071         Fixes #438650.
1072
1073 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1074
1075         * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu 
1076         item is disabled.
1077
1078 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1079
1080         * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
1081         [Fixes bug #467285]
1082
1083 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1084
1085         * MonthCalendar.cs: When handling the selection changes using the
1086         mouse, don't set SelectionRange if the selection range didn't actually
1087         change. This matters because, even if we set the range to the same
1088         previous range, an extra DateChanged event is fired. Just to be clear:
1089         SelectionRage property doesn't check whether the new value is
1090         different to the previous one (by ref equals doesn't work here).
1091         Fixes other bits of #364914.
1092
1093 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1094
1095         * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
1096         selection using the keyboard, since we are already firing this event
1097         when setting SelectionRange. Also don't set SelectionRange if the
1098         previous and the new value are the same (the property, just as .net
1099         does, doesn't check whether the previous value and the new one are the
1100         same). This saves us from firing OnDateChanged event if the selection
1101         range didn't change actually.
1102         Fixes the remaining bits of #364914.
1103
1104 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1105
1106         * ListBox.cs: When removing an item and the last item is selected,
1107         remove it from the selection, and if selection mode is One try to
1108         select the new last item.
1109         Fixes #465422.
1110
1111 2009-01-16  Mike Gorse  <mgorse@novell.com>
1112
1113         * Splitter.cs: Make MaxSize internal so that UIA code can use it.
1114
1115 2009-01-16  Mario Carrion <mcarrion@novell.com>
1116
1117         * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged 
1118         when changing Text. 
1119
1120 2009-01-16  Carlos Alberto Cortez <calberto.cortez@ggmail.com>
1121
1122         * X11Structs.cs:
1123         * XplatUIX11.cs: Properly encode/decode the unicode strings we
1124         store/retrieve in the Clipboard. Also, since we try to convert the
1125         data to different formats, separate the source and the result of
1126         it, so we can always fallback to the original and don't mix wrong
1127         conversions.
1128
1129 2009-01-16  Mike Gorse  <mgorse@novell.com>
1130
1131         * TextControl.cs: Add UIASelectionChanged event.
1132
1133 2009-01-16  Ivan N. Zlatev  <contact@i-nz.net>
1134
1135         * DataGridView.cs: Forward the first key events to the editing control.
1136         [Fixes bug #457307]
1137
1138 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1139
1140         * Application.cs: Oops, launch the copied handler of PreRun instead of
1141         the global one (gendarme would bark otherwise). (Improving r123375)
1142
1143 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1144
1145         * XplatUI.cs:
1146         * Application.cs: Move the PreRun event fire to the end of the XplatUI
1147         static ctor (we don't move the PreRun event to this class because its
1148         usage would cause the call to the static ctor). This way we can get
1149         a11y support for dialogs that run without App.Run.
1150
1151 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1152
1153         * ListView.cs: New internal property to know the inner array's length of
1154         the location of items, in order to avoid a try-catch strategy for the
1155         case when this array has not been resized yet (for reference, look at
1156         r123288). r: jpobst
1157
1158 2009-01-13  Andrés G. Aragoneses  <aaragoneses@novell.com>
1159
1160         * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
1161         reflection calls. This requires UIAutomationWinforms r123213.
1162
1163 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1164
1165         * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
1166         handlers and fire the DateSelected event until MouseUp is reached,
1167         like .net does, instead of firing it for each mouse event.
1168         Fixes part of #364914.
1169
1170 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1171
1172         * TreeView.cs: When the selection gets canceled using the BeforeSelect
1173         event, invalidate the previous highlighted_node bounds, to show the
1174         user that the item was *not* selected.
1175         Fixes #464191.
1176
1177 2009-01-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1178
1179         * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
1180         well as -in DropDown and Simple modes- writing in the textbox should
1181         try to set the requested item as the top one, but navigating with the
1182         keyboard and handling mouse selection don't need that behaviour. Also,
1183         when resetting selected_index handling key press events, reset
1184         ComboListBox.HighlightIndex. 
1185         Fixes the remaining bits of #464188.
1186
1187 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1188
1189         * DataGridView.cs: Fix crashes when shortcut keys are pressed, but 
1190         there are no cells:
1191            - CurrentCellAddress should be -1, -1 and not 0, 0.
1192            - Be tolerant and fall back to clearing the current cell if either 
1193            column or row is -1 in MoveCurrentCell.
1194            - Misc. more -1 checks.
1195
1196 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1197
1198         * DataGridView.cs: Preserve the column index. Fixes a regression 
1199         introduced by the data binding position tracking code.
1200
1201 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1202
1203         * DataGridView.cs: If the bottom of the row matches the client height 
1204         do not regard the row as partially visible. Fixes the weird scrolling 
1205         when there is no scrollbar.
1206
1207 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1208
1209         * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
1210
1211 2009-01-09  Mario Carrion  <mcarrion@novell.com>
1212
1213         * MessageBox.cs: Fixed internal UIAIconRectangle property.
1214
1215 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1216
1217         * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
1218
1219 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1220
1221         * DataGridView.cs: Track the Position in the CurrencyManager.
1222
1223 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1224
1225         * DataGridView.cs: Implement data-bound new item editing/addition.
1226         * DataGridViewRowCollection.cs: Make it possible for us to internally 
1227         remove the edit row.
1228         [Fixes bugs #457107, #457308, #325240]
1229
1230 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1231
1232         * CurrencyManager.cs: Even if Position is set to a greater value than the 
1233         list count reset it to position of the last item.
1234
1235 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1236
1237         * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList. 
1238         Fix that in order to make CancelNew to work.
1239
1240 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1241
1242         * BindingSource.cs: When adding a new item try to delegate to the internal 
1243         list first before throwing an exception.
1244
1245 2009-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1246
1247         * ComboBox.cs: When setting the text and adjusting the top_item, do it
1248         *only* if the current item is *not* visible already.
1249         Fixes part of #464188.
1250
1251 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1252
1253         * DataGridView.cs: Requesting the CurrencyManager for the first time can 
1254         lead to unexpected OnBindingContextChanged calls and recursive rebinding. 
1255         Fix that.
1256         [Fixes bug #464493]
1257
1258 2009-01-08  Brad Taylor  <brad@getcoded.net>
1259
1260         * ComboBox.cs: Expose a few private fields as internal UIA properties.
1261
1262 2009-01-07  Mario Carrion <mcarrion@novell.com>
1263         
1264         * DataGrid.cs: CWL removed.
1265
1266 2009-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1267
1268         * RadioButton.cs: When setting Checked, we should first update the
1269         check state of the current RadioButton, as well as invalidating it,
1270         and after that actually update the siblings. This is done to match
1271         .net.
1272         Fixes the remaining bits of #463028.
1273
1274 2009-01-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1275
1276         * RadioButton.cs: Setting Checked to false should set TabStop to stop
1277         as well. Also, when we get the focus and no other RadioButton is
1278         selected in the parent control, we should mark ourselves as Checked.
1279         Fixes part of #463028.
1280
1281 2009-01-05  Mario Carrion <mcarrion@novell.com>
1282
1283         * DataGrid.cs: UIA suppport. internal events: 
1284         UIAGridCellChanged, UIAColumnsHeadersVisibleChanged, 
1285         UIASelectionChanged, UIACollectionChanged. Internal properties: 
1286         UIARowHeight, UIACellsArea, UIACaptionArea, 
1287         UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle, 
1288         UIAVScrollBar and UIAHScrollBar.
1289
1290 2009-01-05  Jonathan Pobst  <monkey@jpobst.com>
1291
1292         * ToolStripSplitStackLayout.cs: Enable the overflow button if any
1293         of the buttons are set to Overflow = Always.
1294         [Fixes bug #463013]
1295
1296 2009-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1297
1298         * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
1299         based on whether the binding source is availble or not. Fixes #463008.
1300
1301 2009-01-03  Ivan N. Zlatev  <contact@i-nz.net>
1302
1303         * DataGridViewCell.cs: We should return a value even if we are not bound 
1304         to a DataGridView.
1305
1306 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1307
1308         * CurrencyManager.cs, DataGrid.cs: 
1309            - Rename CanAddRows to AllowNew. The CurrencyManager has no 
1310            concept of "rows".
1311            - Add two more internal properties AllowRemove and AllowEdit.
1312         * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows, 
1313         AllowUserToDeleteRows and cell ReadOnly state to be also checked against the 
1314         CurrencyManager data source.
1315
1316 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1317
1318         * DataGridView.cs: Fix crashes caused by assigning negative values to 
1319         ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than 
1320         the column/row heights/widths.
1321         [Fixes bug #462684]
1322
1323 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1324
1325         * DataGridView.cs: Non-autogenerated columns that have a data property 
1326         set that exists in the current datasource should be set to be data-bound.
1327
1328 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1329
1330         * DataGridView.cs: Fix column sorting for columns containing null 
1331         values. A "null" value is not always "null" (e.g could be String.Empty) 
1332         and thus parsing numeric types throwed an exception for "null" values.
1333
1334 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1335
1336         * DataGridView.cs: Detach the editing control when the edit is 
1337         finished.
1338
1339 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1340
1341         * DataGridView.cs: Multiple fixes to handle last column/row removal 
1342         and cell movement after that instead of throwing exceptions.
1343
1344 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1345
1346         * DataGridViewCellCollection.cs: When cells are removed the column 
1347         indices become invalid if the cell is not the last one and have to 
1348         be refreshed.
1349
1350 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1351
1352         * DataGridView.cs: Return false in CommitEdit if there was an error.
1353
1354 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1355
1356         * DataGridView.cs: Remove a leftover Console.WriteLine.
1357
1358 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1359
1360         * DataGridViewRow.cs: Access the indexer of the data manager directly 
1361         instead of the internal list.
1362
1363 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1364
1365         * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs: 
1366         Rewrite the value getting, setting, parsing, formatting logic:
1367            - If data-bound value get/set should actually get and set from the 
1368              data source.
1369            - Make proper usage of TypeConverters for value parsing/formatting.
1370            - Raise DataError if setting the new value fails.
1371            - Get rid off the internal valueType field and get/set the ValueType 
1372            property instead.
1373         [Fixes bug #462051]
1374
1375 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1376
1377         * DataGridView.cs: Rewrite the DataBinding layer:
1378            - Get rid off all BindingSource/IBindingList/DataSet/DataTable 
1379            specific code.
1380            - Get rid off the per DataSource type column autogeneration code.
1381            - Use the CurrencyManager for everything that is DataBinding related.
1382
1383 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1384
1385         * CurrencyManager.cs: Do not fire duplicate ListChanged events.
1386
1387 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
1388
1389         * DataGridView.cs, DataGridViewRow.cs: Add a new internal property 
1390         DataManager to fetch the CurrencyManager for the DataGridView and to 
1391         spare this logic for the other components to follow.
1392
1393 2008-12-31  Mario Carrion  <mcarrion@novell.com>
1394
1395         * MessageBox.cs: UIA support: new properties: UIAMessage, 
1396         UIAMessageRectangle and UIAIconRectangle.
1397
1398 2008-12-31  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1399
1400         * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
1401         and DirComboBox.DirComboBoxItem.ToString override for UIA support.
1402
1403 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
1404
1405         * DataGridView.cs: Do not autogenerate duplicate column for a 
1406         data member that has already problematically been assigned one.
1407         [Fixes bug #457305]
1408
1409 2008-12-30  Jonathan Pobst  <monkey@jpobst.com>
1410
1411         * ProfessionalColorTable.cs: Better detection of user's theme.
1412         [Fixes bug #462766]
1413
1414 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1415
1416         * DataGridView.cs: In the case where there are no autogenerated 
1417         columns and the user adds columns problematically we must generate 
1418         the rows after the very first column is added.
1419
1420 2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1421
1422         * DateTimePicker.cs: When increasing/decreasing the value of month
1423         with ShowUpDown set to true, moving from december to january, and
1424         moving from january to december should adjust the year to the next and
1425         the previous year, respectively.
1426         Fixes the remaining bits of #459674.
1427
1428 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1429
1430         * DataGridView.cs: If a new cell is selected edit mode should be 
1431         immediately enabled only if EditOnEnter is set. Whether the mouse 
1432         or not was used to select the cell is irrelevant.
1433
1434 2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
1435
1436         * DataGridView.cs: Remove a bogus ReBind call, which was causing 
1437         recursive rebinding.
1438
1439 2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1440
1441         * DateTimePicker.cs: Handle the "MMMM" month format.
1442         Fixes #459674.
1443
1444 2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
1445
1446         * DataGridView.cs: 
1447            - Make ReBind private and refactor various calls to call ReBind 
1448            instead of ClearBinding/DoBinding
1449            - Rebind when the column collection changes
1450         * DataGridViewColumnCollection.cs: 
1451            - Leave the rebinding on change to be handled by the DataGridView.
1452
1453 2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
1454
1455         * DataGridView.cs: Add a ReBind convenience method.
1456         * DataGridViewColumnCollection.cs: Rebind when a column is added.
1457         [Fixes bug #462019]
1458
1459 2008-12-23  Neville Gao  <nevillegao@gmail.com>
1460
1461         * StatusBar.cs: Modified argument variable.
1462         * SplitContainer.cs: Control enabled to support accessibility.
1463         [Fixes Bug #455950]
1464
1465 2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
1466
1467         * ToolStripMenuItem.cs: Guard against an NRE.
1468         [Fixes bug #457110]
1469
1470 2008-12-22  Mario Carrion  <mcarrion@novell.com>
1471
1472         * Control.cs: AccessibleXXXX properties don't return 
1473         AccessibleObject.XXXX, instead a local referece is returned.
1474
1475 2008-12-22  Neville Gao  <nevillegao@gmail.com>
1476
1477         * PrintPreviewControl.cs: Added internal properties to support
1478         accessibility.
1479         [Fixes Bug #459699]
1480
1481 2008-12-19  Mario Carrion  <mcarrion@novell.com>
1482
1483         * Control.cs: Reverted r121561. 
1484
1485 2008-12-19  Andrés G. Aragoneses  <aaragoneses@novell.com>
1486
1487         * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
1488         it has been moved to the bridge.
1489
1490 2008-12-18  Brad Taylor  <brad@getcoded.net>
1491
1492         * DateTimePicker.cs: Add a few UIA specific events, and a couple
1493         internal methods useful for UIA.
1494
1495 2008-12-18  Mario Carrion <mcarrion@novell.com>
1496
1497         * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
1498         [Fixes Bug #455752]
1499
1500 2008-12-17  Mike Gorse  <mgorse@novell.com>
1501
1502         * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
1503           item's Focused property is set.
1504
1505 2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1506
1507         * TreeView.cs:
1508         * TreeNode.cs:
1509         * TreeNodeCollection.cs: Add events for UIA support:
1510         UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
1511         UIACollectionChanged.
1512
1513 2008-12-17  Bill Holmes  <billholmes54@gmail.com>
1514
1515         * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
1516           SubItemStyle member field. 
1517
1518         Contributed under MIT/X11 license.
1519
1520 2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1521
1522         * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
1523         y coord, since it's useless in this case, and we need to rely only on
1524         the number of rows and ItemHeight to compute this value.
1525         Fixes part of #257471.
1526
1527 2008-12-15  Mike Gorse  <mgorse@novell.com>
1528
1529         * StatusBar.cs: Send OnUIACollectionChanged in Remove().
1530
1531 2008-12-15  Mario Carrion  <mcarrion@novell.com>
1532
1533         * Control.cs: Accessibility properties instantiate AccessibilityObject when
1534         needed.
1535         [Fixes Bug #459223]
1536
1537 2008-12-15  Brad Taylor  <brad@getcoded.net>
1538
1539         * ToolStripItem.cs: Add a UIA specific event for listening for when a
1540         ToolStripItem becomes selected or deselected.
1541
1542 2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1543
1544         * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
1545         .net does. Use the date in the point of the mouse move coords as the
1546         new range as well, if the left button of the mouse is being pressed.
1547         Fixes #364914.
1548
1549 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1550
1551         * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
1552         MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
1553         effectively repaint the control.
1554         Fixes the remaining bits of #417961.
1555
1556 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1557
1558         * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
1559         range to contain only dates within the new possible range.
1560         Fixes part of #417961.
1561
1562 2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1563
1564         * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
1565         length of the text, but the end position, so we need to substract 1 to
1566         have a valid value. Also, in the same InputText method, don't use
1567         SelectionLength as the length of the text, since the selected text
1568         could actually be empty, but we need to set the value anyway.
1569         Fixes #457370.
1570
1571 2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1572
1573         * TextBox.cs: Don't do any auto complete task if the custom source is
1574         null or empty. Also avoid duplication of code.
1575         Fixes #457743.
1576
1577 2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
1578
1579         * DataGridView.cs: Refresh column sizes when new rows are added.
1580         [Fixes bug #457050]
1581
1582 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1583         * RichTextBox.cs: When parsing the contents of a rtf file, don't call
1584         Split to create a line - we are already doing this, by _adding_ a new
1585         one when rtf_cursor_x is 0 (this field gets this value just after we
1586         receive the newline param as true). This avoids having a proportional number
1587         of empty lines in the end of the rich text box.
1588         Fixes #396664.
1589
1590 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1591
1592         * RichTextBox.cs: When saving the contents as a plain text, don't add
1593         a new line for every Line structure, since the data in Document
1594         already contains the new line characters. This avoids duplicated new
1595         lines using the Save methods.
1596         Fixes #445618.
1597
1598 2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1599
1600         * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
1601         framework.  Fixes bug #457678.
1602
1603 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1604
1605         * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
1606         where datasource is null.
1607         [Fixes exception reported in bug 441240]
1608
1609 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1610
1611         * DataGridView.cs: EndEdit validation fixes.
1612
1613 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1614
1615         * DataGridView.cs: This is the cool patch that adds support for 
1616         actually updating the data in the databinding backend after editing. 
1617         With bonus firing and handling the DataError event.
1618
1619 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1620
1621         * Line.cs: When calculating the text tags's Shift value, store it as
1622         pixels instead of points. This way we can actually handle different
1623         fonts in the same RichTextBox, as well as the right size of the caret.
1624         Fixes part of #351938.
1625
1626 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1627
1628         * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was 
1629         casted to CheckState causing InvalidCastExceptions.
1630
1631 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1632
1633         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
1634         to not depend on the item being clicked.
1635
1636 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1637
1638         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
1639         longer throws a NotImplementedException.
1640
1641 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1642
1643         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
1644         IDataGridViewEditingControl for editing.
1645
1646 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1647
1648         * DataGridViewComboBoxCell.cs: Implement data binding support.
1649
1650 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1651
1652         * DataGridView.cs: Use the CurrencyManager to update the data source 
1653         binding position instead of casting the data sourcde to BindingSource.
1654         This enables position updating for other type of data sources.
1655
1656 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1657
1658         * ComboBox.cs: Update the SelectedIndex before updating the Text 
1659         in OnDisplayMemberChanged.
1660
1661 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
1662
1663         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
1664         [Fixes bug #457112]
1665
1666 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1667
1668         * DataGridView.cs: Sorting fixes:
1669            - Be strict when sorting is enabled.
1670            - If there is a data source delegate the sorting request.
1671
1672 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1673
1674         * Binding.cs: When converting the data also try with the destination 
1675         type typeconverter. This indirectly adds support for Nullable types 
1676         in our databinding layer.
1677
1678 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1679
1680         * DataGridView.cs: When cell editing is finished focus back the 
1681         DataGridView. Fixes keyboard navigation post-editing.
1682
1683 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1684
1685         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
1686         setting to after EndEdit is called for the old cell.
1687
1688 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1689
1690         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
1691
1692 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1693
1694         * XplatUIX11.cs: Send WM_HELP only to the focused window.
1695
1696 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1697
1698         * CurrencyManager.cs: Fix exceptions when resetting the data source 
1699         for the same time (e.g. in ComboBox): 
1700            - Do not set the list position if we are still transferring data
1701            - When resetting the list firstly push the data then update the 
1702            binding.
1703         * Binding.cs: Check BindingManager.Position == -1 instead of 
1704         BindingManager.Current == null in order to avoid unexpected 
1705         exceptions.
1706
1707 2008-12-05  Brad Taylor  <brad@getcoded.net>
1708
1709         * MonthCalendar.cs: Add UIA specific events so that we can know when
1710         the selection changes, and when MaxSelectedCount changes.
1711
1712 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1713
1714         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
1715         used for anything.
1716
1717 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1718
1719         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
1720         to the control being drawn for the first time by:
1721            - Implement DisplayedRowsCount to not rely on the control being
1722            already painted. Also added support for the partial row flag.
1723            - Fix scrolling to take into account partial rows and scroll to
1724            them.
1725         [Fixes bug #456527]
1726
1727 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1728
1729         * DataGridView.cs: Do not reset the CurrentCell when the handle is
1730         created if the user has already set it.
1731
1732 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1733
1734         * DataGridView.cs: Fix CurrentCell to actually select the cell.
1735
1736 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1737
1738         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
1739         text and then let the underneath users of IDataObject interpret and
1740         parse by themselves. 
1741         Fixes #439251.
1742
1743 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1744
1745         * DataGridView.cs: Fix my previous commit to actually update what it 
1746         was supposed to.
1747
1748 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1749
1750         * DataGridView.cs: Ensure that when a row is removed the all the 
1751         current row/column/cell get updated. Fixes multiple exceptions.
1752
1753 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1754
1755         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
1756         is used.
1757         [Fixes bug #443560]
1758
1759 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1760
1761         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
1762         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
1763         new state.
1764         [Fixes issue 1 in bug #443560]
1765
1766 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1767
1768         * DataGridView.cs: Invalidate after the current row/column seletion 
1769         chagnes.
1770         [Fixes bug #438434]
1771
1772 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1773
1774         * DataGridView.cs: Refresh the data if the data list is reset, etc.
1775
1776 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1777
1778         * DataGridView.cs: Handle datasource state changes:
1779            - IBindingList - list changes
1780            - BindingSource - list changed and datasource changes
1781
1782 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1783
1784         * DataGridView.cs: Select the first cell when databound. 
1785         Visually select when CurrentCell is set.
1786
1787 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1788
1789         * DataGridView.cs: Set the current cell before raising CellClick.
1790
1791 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1792
1793         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
1794         CellLeave events as this is already done in SetCurrentCellAddressCore.
1795
1796 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1797
1798         * DataGridView.cs: Set the minimum size for the columns to be the 
1799         width of their header, so that the columns don't get squashed 
1800         all together.
1801
1802 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1803
1804         * DataGridView.cs: After the data is bound PerformLayout, so that 
1805         the columns get autosized.
1806
1807 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1808
1809         * DataGridView.cs: Move all currentCell setting code into 
1810         one central place - SetCurrentCellAddressCore. That way the 
1811         current cell is properly updated when programatically set.
1812         Fire RowEnter/Leave events.
1813
1814 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1815
1816         * DataGridView.cs: Update the CurrencyManager.Position, so that 
1817         when a BindingSource is used BindingSource.Current will be correct.
1818
1819 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1820
1821         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
1822            - No caption text is drawn because Color.Empty is used.
1823            - Fix top and height off by 1.
1824
1825 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1826
1827         * DataGridViewRow.cs: Implement DataBoundItem.
1828
1829 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
1830
1831         * BindingSource.cs: Return null for Current if there is no data present.
1832
1833 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1834
1835         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
1836         menus using the arrow keys. Also when handling the left arrow key, don't 
1837         assign the current menu to the parent one, if the parent is null.
1838         Fixes #446392.
1839
1840 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
1841
1842         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
1843         #413501.
1844
1845 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1846
1847         * Scrollbar.cs:
1848         * ScrollableControl.cs: Simplify the code to manually set the size of
1849         the thum area, avoiding duplication of code, and also preserving the
1850         right value for different code paths - this can happen when size
1851         changes are made to the scrollbar after setting LargeChange, Maximum
1852         or related properties for the ScrollBar.
1853
1854 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1855
1856         * ScrollableControl.cs: When scrolling, don't invalidate the entire
1857         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
1858         what .Net does: copy the visible area, and only invalidate the part of
1859         the area that wasn't visible before scrolling.
1860         Fixes #441738.
1861
1862 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
1863
1864         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
1865         can clear ourselves when it is raised, we don't have a newrowindex
1866         if we don't have any columns.
1867         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
1868         re-index after each delete so the NewRow will have the correct index.
1869         [Fixes bug #448005]
1870
1871 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
1872
1873         * Form.cs: Don't change min/max size if it is empty.
1874         [Fixes bug #447873]
1875
1876 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1877
1878         * ScrollBar.cs:
1879         * ScrollableControl.cs: When the manual thumb size is used, the
1880         maximum allowed value should depend on that thumb size, instead of
1881         LargeChange (using the maximum - LargeChange + 1 value). But
1882         LargeChange should be used normally when incrementing/decrementing.
1883         Fixes the remaining part of #441546.
1884
1885 2008-11-23  Andreia Gaita  <avidigal@novell.com>
1886
1887         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
1888         until an about:blank has been loaded (according to spec). Fix 
1889         ScrollbarsEnabled to set when a document is loaded (since we use js 
1890         for it). Fix url so it reflects the current loading document and not 
1891         the previous one. Send StatusChanged events.
1892
1893 2008-11-23  Andreia Gaita  <avidigal@novell.com>
1894
1895         * Application.cs: If a message comes in for an embedded control
1896         (like webbrowser) when we're capturing the keyboard, release the
1897         capture and continue.
1898         [fixes #429462]
1899
1900 2008-11-22  Andreia Gaita  <avidigal@novell.com>
1901
1902         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
1903
1904 2008-11-21  Andreia Gaita  <avidigal@novell.com>
1905
1906         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
1907         
1908 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1909
1910         * ScrollBar.cs:
1911         * ScrollableControl.cs: Set manually the thumb size for the
1912         ScrollableControl scrollbars, so any further changes to the underneath
1913         scrollbars respect the original size.
1914         Fixes part of #441546.
1915
1916 2008-11-21  Geoff Norton  <gnorton@novell.com>
1917
1918         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
1919         PlatformID.MacOSX now exists.
1920
1921 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
1922
1923         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
1924         Having something internal abstract isn't very nice for people who want
1925         to inherit from this class.
1926
1927 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
1928
1929         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
1930         invalid value.  Just return null for the Image, and use the ImageList's
1931         ImageSize for calculations.
1932
1933 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
1934
1935         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
1936         through DroppedDown so the proper events get called and state gets reset.
1937         [Fixes bug #446805]
1938
1939 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
1940
1941         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
1942         the collection is modified.
1943
1944 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
1945
1946         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
1947         aren't always correct, and fixing them for every case is not worth the
1948         negligible benefit they provide.
1949         [Fixes bug #445713]
1950
1951 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
1952
1953         * DataGridView.cs: We should never add actual cells to the RowTemplate.
1954         Internally, use RowTemplateFull to give us a new row with cells.
1955         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
1956         * DataGridViewRowCollection.cs: Use RowTemplateFull.
1957
1958 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1959
1960         * XplatUIX11.cs: Forms without borders should be able to change its
1961         size - specially they should be able to be maximized, adding the
1962         respective MotifFunctions.Resize bit when setting window properties as
1963         well as *not* marking the Hwnd as size fixed.
1964         Fixes #444347.
1965
1966 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
1967
1968         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
1969         an alpha value.
1970         [Fixes bug #444348]
1971
1972 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
1973
1974         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
1975         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
1976         AutoSizeColumnModeChanged.
1977         [Fixes bug #443609]
1978
1979 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
1980
1981         * DataGridViewRowCollection.cs: Guard against the user deleting the
1982         NewRow.  Add an internal delete so we can still delete it.
1983         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
1984         [Fixes bug #442181]
1985
1986 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
1987
1988         * TextControl.cs: Add some order of operation to our math so
1989         we don't end up with a negative height for our invalidate rect.
1990         [Fixes bug #381889]
1991
1992 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
1993
1994         * Control.cs: When our enabled changes, notify our implicit children
1995         controls as well as our regular controls.
1996         [Fixes bug #441523]
1997
1998 2008-11-08  Andreia Gaita <shana@jitted.com> 
1999
2000         * HtmlElement.cs: Small code cleanup
2001
2002 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2003
2004         * BindingNavigator.cs: MoveFirstItem should be enabled only if
2005         position is larger than 0, not only different than 0. Also Position
2006         and Count items should be enabled if the BindingSource is non null and
2007         non empty.
2008         Fixes #439961.
2009
2010 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
2011
2012         * TabControl.cs: Don't raise SelectedIndexChanged until we have
2013         actually modified the tab collection, so TabCount will be correct.
2014         [Fixes bug #441896]
2015
2016 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2017
2018         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
2019         NonSerialized to fix serialization of ListViewItem.
2020
2021 2008-11-04  Mike Gorse  <mgorse@novell.com>
2022
2023         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
2024           focus change, and always call in SetFocusedItem.
2025         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
2026
2027 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
2028
2029         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
2030         mode.  Based on a patch by John Mortlock.
2031         [Fixes bug #436790]
2032
2033 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2034
2035         * ListView.cs: Use the UsingGroups property where needed, instead of
2036         duplicating the check in other places.
2037
2038 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2039
2040         * ListView.cs: When calculating layout, refresh the count of items
2041         belonging to the default item, insteas of doing it only one time. This
2042         was already working fine for icon views, not not for details.
2043         Fixes #438948.
2044
2045 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2046
2047         * ListView.cs:
2048         * ListViewItem.cs:
2049         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
2050         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
2051         does.
2052         Fixes #437933.
2053
2054 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2055
2056         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
2057
2058 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2059
2060         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
2061         #441280, patch by Mike Gorse <mgorse@novell.com>.
2062
2063 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2064
2065         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
2066         if there is no scrollbar.
2067         [Fixes bug #440885]
2068
2069 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2070
2071         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
2072         patch from Andy Hume that fixes many issues with ProgressBar.
2073         [See bug #440220]
2074
2075 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2076
2077         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
2078         [Fixes bug #438866]
2079
2080 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2081
2082         * UpDownBase.cs:
2083         * DomainUpDown.cs:
2084         * NumericUpDown.cs: Internal events added to UpDownBase:
2085         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
2086         <ngao@novell.com>.
2087
2088 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2089
2090         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
2091
2092 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2093
2094         * ListView.cs:
2095         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
2096         Application.EnableVisualStyles hasn't been called.
2097         Fixes part of #437933.
2098
2099 2008-10-31  Andreia Gaita  <shana@jitted.com>
2100
2101         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
2102           if the container is not focused already, we need to specifically set
2103           focus to the first available control, or to the form itself if there
2104           are no controls.
2105
2106 2008-10-31  Andreia Gaita  <shana@jitted.com>
2107
2108         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
2109         WM_ACTIVATE have been processed before returning, so it is guaranteed that
2110         once it returns and the form is visible, it is actually on the screen on X11
2111
2112         * ContainerControl.cs: Only send focus to the control if the top container
2113           is already focused. This is so that, when a form is first shown, all
2114           the enter/leave events are done first before any focus stuff comes in.
2115           If a control has no top container, there's an extra check on Control.Focus
2116           to make sure it gets focused in this particular case.
2117
2118         * Control.cs: Force focus if the control is active but did not receive
2119           focus after being set as active.
2120
2121         * MdiClient.cs: Dispose the form when closing
2122
2123         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
2124           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
2125           if the window is a top Form.
2126           Reset all hwnd properties when the window has been destroyed so that
2127           we don't land in any codepaths that might try to do something with it.
2128           Added a bunch of debugging messages. If TRACE is defined, all X calls
2129           are logged through DebugHelper. Set a few missing EntryPoint attributes.
2130
2131 2008-10-29  Mario Carrion <mcarrion@novell.com>
2132
2133         * ListViewItem.cs: Control enabled to support Accessibility:
2134         - Internal events: UIATextChanged, UIASubItemTextChanged.
2135         - Internal event UIATextChanged in ListViewSubItem that triggers
2136         UIASubItemTextChanged.
2137         * ListView.cs: Control enabled to support Accessibility:
2138         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
2139         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
2140         - Internal event UIACollectionChanged in ColumnHeaderCollection.
2141         - Internal event UIACollectionChanged in ListViewItemCollection.
2142         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
2143         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
2144         - Internal methods: UIAGetHeaderBounds.
2145
2146 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2147
2148         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
2149         the event from the respective scrollbars.
2150         Fixes #436709.
2151
2152 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2153
2154         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
2155         textbox to know whether any navigation key will be handled or not. If
2156         not, don't pass the message to the textbox, and use it here instead. 
2157         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
2158         is more precise- than the previous AutoCompleteMatches one.
2159         This should the keyboard navigation in ComboBox when using auto
2160         complete modes.
2161
2162 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2163
2164         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
2165         [Fixes bug #436730]
2166
2167 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2168
2169         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
2170         overridden methods will get called.
2171         * ToolStripItem.cs: Raise Click before MouseUp.
2172         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
2173         the item's location into account.
2174         [Fixes bug #437683]
2175
2176 2008-10-24  Neville Gao  <nevillegao@gmail.com>
2177
2178         * NumericUpDown.cs: Control enabled to support accessibility.
2179         [Fiexes bug #438135]
2180
2181 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2182
2183         * TextBox.cs: Check that we actually have items no navigate, select
2184         text when pressing enter, as well as handle direction keys only if
2185         mode is different to Suggest or the suggest listbox is visible.
2186
2187 2008-10-23  Andreia Gaita  <shana@jitted.com>
2188
2189         * WebBrowser.cs: Use the new ContentStream property to retrieve
2190           a stream encoded from the document content
2191
2192 2008-10-23  Andreia Gaita  <shana@jitted.com>
2193
2194         * HtmlDocument.cs,
2195           HtmlElement.cs,
2196           HtmlWindow.cs: Fix GetHashcode for null objects
2197
2198 2008-10-22  Andreia Gaita  <shana@jitted.com>
2199
2200         * HtmlDocument.cs,
2201           HtmlElement.cs,
2202           HtmlWindow.cs: Fix equality operators (fixes #428173)
2203
2204 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2205
2206         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
2207         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
2208         [Fixes bug #436772]
2209
2210 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2211
2212         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
2213         same item with the mouse as was already selected.
2214         [Fixes bug #436789]
2215
2216 2008-10-21  Brad Taylor  <brad@getcoded.net>
2217         
2218         * TextControl.cs: Break out code to get the visible range into
2219           GetVisibleLineIndexes to be used in UIA code.
2220         
2221         * Line.cs:
2222         * TextControl.cs:
2223         * TextBoxBase.cs: Add comments indicating that the method or property
2224           is used via reflection from UIA code.
2225
2226 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2227
2228         * ListViewItem.cs: Match .net serialization.
2229         Fixes remaining part of #417520.
2230
2231 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
2232
2233         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
2234
2235 2008-10-20  Mario Carrion <mcarrion@novell.com>
2236
2237         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
2238         added: UIAToolTipRectangle.
2239
2240 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2241
2242         * ListViewItem.cs: When deserializing enumerate over the data, instead
2243         of accessing the data directly. This way we handle much better the
2244         cases were we lack information.
2245         Fixes #417520.
2246
2247 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2248
2249         * ListView.cs: When removing an item from a main ListView.Items
2250         collection (and not a ListViewGroupCollection.Items one), remove it
2251         also from the group, as .net does. Patch by Mario Carrion (mario at
2252         novell dot com).
2253         Fixes #436653.
2254
2255 2008-10-19  Andreia Gaita  <avidigal@novell.com>
2256
2257         * Form.cs: Forms that get closed without a handle being created are
2258         disposed in 2.0. Fixes failing FormTest.FormClose and
2259         FormTest.FormClose2 on windows.
2260
2261 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2262
2263         * ListView.cs: If both scrollbars are visible, the vertical one
2264         shouldn't extend too far down.
2265         Fixes #435771.
2266
2267 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2268
2269         * DataGridView.cs: Add the ability to resize columns and rows with
2270         the mouse.  Also support double-clicking to autoresize.
2271         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
2272         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
2273         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
2274         isn't shown on autoresize.
2275         [Fixes bug #420193]
2276
2277 2008-10-17  Mario Carrion <mcarrion@novell.com>
2278
2279         * ComboBox.cs: Remove UIAListbox.
2280
2281 2008-10-17  Mario Carrion <mcarrion@novell.com>
2282
2283         * ComboBox.cs, ListBox.cs: Using added/removed item in 
2284           OnUIACollectionChangedEvent instead of index.
2285
2286 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2287
2288         * ComboBox.cs: When we are sorting the items, if the item's type
2289         doesn't support IComparer, use a default one that compares based
2290         off the item's visible text.
2291         [Fixes bug #436328]
2292
2293 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2294
2295         * ColumnHeader.cs: Invalidate ListView.header_control when setting
2296         ImageIndex/ImageKey.
2297         * ThemeWin32Classic.cs: When drawing the column header, draw a image
2298         for the column if available, and make the required adjustments to the
2299         text location.
2300         Fixes #435105.
2301
2302 2008-10-17  Neville Gao  <nevillegao@gmail.com>
2303
2304         * StatusBarPanel.cs: Control enabled to support accessibility.
2305         [Fixes bug #435988]
2306
2307 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2308
2309         * DataGridView.cs: When a user begins an edit in the 'new row',
2310         make that a real row, and add a new 'new row'.  If the user
2311         cancels the edit, remove the new 'new row' and reset everything.
2312         Also, ensure UserAddedRow and UserRemovedRow events are raised.
2313         [Fixes bug #430954]
2314
2315 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
2316
2317         * TableLayoutSettings.cs: Fix NREs when deserializing and 
2318         panel is not yet set.
2319         [Fixes bug #436199]
2320
2321 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2322
2323         * DataGridView.cs: Invalidate after deleting a row.
2324
2325 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2326
2327         * DataGridView.cs: Handle Enter and Escape keys.
2328           - Move call to EndEdit to MoveCurrentCell.
2329           - Remove call to EndEdit from navigation key routines.
2330           - Fire CellLeave and CellEnter.
2331
2332 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2333
2334         * DataGridViewCell.cs: Some fixes to the new cell border
2335         painting code.
2336
2337 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2338
2339         * ThemeEngine.cs: Enable visualstyles rendering by default
2340         (on platforms that support it).
2341
2342 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
2343
2344         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
2345         MainForm.OnLoad has completed unless DoEvents is forced.
2346         [Fixes bug #412536]
2347
2348 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
2349
2350         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
2351
2352 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
2353
2354         * Control.cs: Make our implementation of DrawToBitmap better 
2355         match WmPaint.  [Fixes bug #435579]
2356
2357 2008-10-14  Andreia Gaita  <avidigal@novell.com>
2358
2359         * WebBrowser.cs: Use DocumentElement as the document's root for the
2360         whole content. Should fix DocumentText and DocumentStream problems.
2361
2362 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
2363
2364         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
2365         these will get called in DGV.OnCollectionChanged.  Make sure 
2366         OnCollectionChanged always gets called.
2367         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
2368         from every row.  Call this in OnCollectionChanged.
2369         [Fixes bug #433669]
2370
2371 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2372
2373         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
2374         textbox if auto complete is used, since we need to navigate over it.
2375         And in this case don't pass this messages to the base impl. Also hide
2376         the auto complete list box when displaying the drop down listbox.
2377         * TextBox.cs: new internal members to expose some of the auto complete
2378         functionality to combobox.
2379
2380 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
2381
2382         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
2383         MainForm.OnLoad has completed.
2384         [Fixes bug #412536]
2385
2386 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2387
2388         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
2389         Append support to this controls. We need it to apply new patches.
2390
2391 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2392
2393         * Control.cs: When updating z order in child controls, send to back
2394         the implicit controls. Also, do it explicitly, instead of making
2395         GetAllControls return the implicit controls in a specific order, and
2396         thus avoid depending on that, which could change in the future.
2397         Fixes #434304.
2398
2399 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2400
2401         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
2402         call to StartDrag, since we must fire DragDrop/DragLeave *before*
2403         that, as .net does - instead of firing DragDrop/DragLeave *after* the
2404         call to Control.DoDragDrop has completed. This is needed since at the
2405         point of returning, we have sent related dnd ClientMessages, but we
2406         need to wait for them to fire the wmf respective ones.
2407         Fixes #325076.
2408
2409 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2410
2411         * LinkLabel.cs: Recreate link pieces when change Padding.
2412
2413 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2414
2415         * LinkLabel.cs: Take Padding into account when recreate link pieces.
2416         [Fixes bug #412530]
2417
2418 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
2419
2420         * Control.cs: Implement internal property PaddingClientRectangle, it will be
2421         useful for drawing controls that must take care about Padding property.
2422
2423 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
2424
2425         * BindingSource.cs: Make item_type internal so we can access it in DGV.
2426         * DataGridView.cs: Add support for autogenerating columns from a
2427         BindingSource.
2428
2429 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2430
2431         * DataGridView.cs: Comment out an exception that is getting thrown
2432         too often currently.
2433
2434 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2435
2436         * DataGridView.cs: Always rebind to the datasource, as things may
2437         have changed in it that we aren't capturing yet.
2438
2439 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2440
2441         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
2442         drawing mode.  If we are top aligned, give ourselves some top padding.
2443
2444 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2445
2446         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
2447         events on the control under the mouse pointer, instead of firing them
2448         on the window generating the dnd operation. To achieve this re-use the
2449         code used to get the window under the pointer when getting MouseMove
2450         events.
2451         Fixes #381876.
2452
2453 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2454
2455         * X11Dnd.cs: Don't check that that the window sending the dnd events
2456         is the owner of the selection. Although Gtk+ sets it that way, it's
2457         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
2458         So, just as Gtk+ does, we set our window sending the dnd events as the
2459         owner of the selection, but don't check it when receiving them. This
2460         should fix interoperability with Qt/Kde.
2461         Fixes #324251.
2462
2463 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2464
2465         * DataGridView.cs: Make sure we take the vertical scrollbar into
2466         account when autosizing columns.
2467
2468 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2469
2470         * DataGridView.cs: Handle sorting datetimes.
2471
2472 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
2473
2474         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
2475         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
2476         compilation warnings.
2477
2478 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2479
2480         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
2481         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
2482         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
2483         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
2484         compilation warnings.
2485
2486 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2487
2488         * DataGridView.cs, DataGridViewCell.cs, 
2489         DataGridViewCellValidatingEventArgs.cs, 
2490         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
2491         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
2492         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
2493
2494 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2495
2496         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
2497         Cleanup compilation warnings.
2498
2499 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2500
2501         * XplatUIWin32.cs: Cleanup compilation warnings.
2502
2503 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2504
2505         * PropertyGrid.cs: Cleanup compilation warnings.
2506
2507 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2508
2509         * DataGridViewRow.cs: Only clear the row background if we
2510         are going to paint a new background.
2511
2512 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2513
2514         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
2515         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
2516         use PaintBorder instead.        
2517
2518 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2519
2520         * DataGridView.cs: When CellBorderStyle is set, update the
2521         AdvancedCellBorderStyle to match.
2522
2523 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2524
2525         * DataGridViewCell.cs: Add helper methods to convert Alignment
2526         to TextFormatFlags and align rectangles.
2527         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
2528         * DataGridViewImageCell.cs: Use Alignment when painting the image.
2529
2530 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
2531
2532         * ToolTip.cs: Display tooltips only for controls on the active form.
2533         [Fixes bug #428115]
2534
2535 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2536
2537         * DataGridView.cs: Make OnCellValueNeeded internal.
2538         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
2539         user can supply their own value if they choose.
2540
2541 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2542
2543         * DataGridViewColumnHeaderCell.cs: Create a new style object
2544         so the DefaultCellStyle doesn't get changed.
2545
2546 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2547
2548         * ToolStripItem.cs: Check to make sure the owner is actually
2549         changing in InternalOwner before doing any work.  Fixes some
2550         failing tests.
2551
2552 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2553
2554         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
2555         * DataGridView.cs: Use a column header's inherited style instead
2556         of just using the default.
2557
2558 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2559
2560         * SplitContainer.cs: Raise SplitterMoved when the splitter is
2561         moved through code.
2562
2563 2008-10-01  Mario Carrion <mcarrion@novell.com>
2564
2565         * ScrollBar.cs: Internal property added: UIAThumbPosition.
2566
2567 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2568
2569         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
2570
2571 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2572
2573         * ToolStripItem.cs: When the user sets Owner, we need to remove
2574         it from its previous owner and then add it to the new owner's
2575         item collection.  Also, create InternalOwner, so we can set the owner
2576         that doesn't do this new stuff.
2577         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
2578
2579 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2580
2581         * ToolStripItem.cs: When our parent changes, recalculate our text
2582         size, since we may be getting our Font from our parent.  When our
2583         owner's Font changes, recalculate ourselves as we may be using
2584         that font.
2585
2586 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
2587
2588         * MenuAPI.cs: Select the first option of a popup when opening the popup via
2589         return key. [Fixes bug #413792].
2590
2591 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2592
2593         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
2594         ambient properties.  (Get their value from their parents if
2595         values haven't been set.)
2596
2597 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2598
2599         * ToolStripSystemRenderer.cs: Call overridden methods' bases
2600         after our logic, so users can do painting by handling the events.
2601         Currently, we draw over any user painting.
2602
2603 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2604
2605         * ToolStripProfessionalRenderer.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-09-30  Everaldo Canuto  <ecanuto@novell.com>
2610
2611         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
2612
2613 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2614
2615         * TreeNode.cs, TreeView.cs: Move logic that determines the node
2616         image to draw to TreeNode.  Give Index/Keys put on the node
2617         precedence over the global one for the TreeView.
2618
2619 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2620
2621         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
2622
2623 2008-09-29  Mario Carrion <mcarrion@novell.com>
2624
2625         * ListBox.cs: Index fixed.
2626
2627 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2628
2629         * TabControl.cs: When expanding the tab -because it's selected now-,
2630         using Right alignment, instead of adding some selected delta value to
2631         the X origin, substract it, so it gets a location adjacent to the panel, 
2632         instead of be more separated.
2633         Fixes #409170.
2634
2635 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
2636
2637         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
2638         own copies of them.
2639
2640 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2641
2642         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
2643         as well as the other static fields, to avoid using their previous
2644         values my mistake when handling the dnd events. This should avoid
2645         handling any status event after the drop has been finalized/cancelled.
2646
2647 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2648
2649         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
2650         operation, instead of waiting until we get any movement - this will
2651         help us to have the data available in case no movement was detected
2652         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
2653         Finally add a windows.forms-only fallback to fire the mentioned events
2654         if no movement at all was detected, just like .net does.
2655         Fixes #381876.
2656
2657 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
2658
2659         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
2660         return early if the text is empty because the icon doesn't get
2661         drawn then.  [Fixes bug #428113]
2662
2663 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2664
2665         * FileDialog.cs: Implement basic support for sorting by columns in
2666         Details view. Patch by Eric Petit.
2667         Fixes #428006.
2668
2669 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2670
2671         * ThemeWin32Classis.cs: When drawing gridlines take into account the
2672         case where ListView.ItemSize hasn't been computed, and provide a
2673         fallback as well. This prevents a division by 0.
2674
2675 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2676
2677         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
2678         correctly draw tooltip backgrounds.
2679
2680 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2681
2682         * ImageList.cs: Change CopyTo implementation to ensure clones are
2683         created of our images.
2684         [Fixes bug #409169]
2685
2686 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2687
2688         * Control.cs: When setting fonts, we need to ensure we change our
2689         reference to the new font object, even if it represents the same
2690         font as before.  If we don't, the original font can get disposed
2691         and we will still try to use it.
2692         [Fixes bug #386450]
2693
2694 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2695
2696         * FileDialog.cs: Take into account Tile view when selecting the view
2697         (2.0 profile).
2698
2699 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2700
2701         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
2702         the item bounds, since we can't iterate over them in virtual mode.
2703         Also fix wrong calculation of the gridlines when using scrolling.
2704         Fixes #400390.
2705
2706 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2707
2708         * XplatUIX11.cs: When handling EnterNotify events, take into account
2709         both the public and implicit controls when trying to detect the
2710         grab/ungrab process. This should fix ListView selection in Details
2711         view.
2712
2713 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2714
2715         * TreeView.cs: Redraw the whole node area when the selected node changes.
2716         Things like state images were not getting redrawn because the invalid
2717         rectangle was too small.
2718         [Fixes bug #428211]
2719
2720 2008-09-23  Mario Carrion  <mcarrion@novell.com>
2721
2722         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
2723         [Fixes bug #428993]
2724
2725 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2726
2727         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
2728         [Fixes bug #428114]
2729
2730 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2731
2732         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
2733         [Fixes bug #427884]
2734
2735 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2736
2737         * StatusBar.cs: Add tooltip support.
2738         [Fixes bug #428113]
2739
2740 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2741
2742         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
2743         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
2744         hlaustralia.com.au).
2745         Fixes #425360.
2746
2747 2008-09-23  Neville Gao  <nevillegao@gmail.com>
2748
2749         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
2750         [Fixes bug #419079]
2751
2752 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
2753
2754         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
2755         [Fixes bug #428107]
2756
2757 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2758
2759         * ListView.cs: Don't do anything when EnsureVisible is called inside a
2760         BeginUpdate/EndUpdate block.
2761         Fixes #425049.
2762
2763 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2764
2765         * ListViewItem.cs: The semantics for the public .ctor of
2766         ListViewSubItemCollection need us to already have a Text value for the
2767         item, which in our implementation have as available *after* adding the
2768         first sub item. So create an internal .ctor that satisfies our needs
2769         and let the public .ctor have the same semantics as .net.
2770         Fixes #427561.
2771
2772 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2773
2774         * ListControl.cs: Changes in Formatting related values should call
2775         RefreshItems, as .net does.
2776         * ComboBox.cs:
2777         * ListBox.cs: In the respective overrides of RefreshItems calculate
2778         layout as well as refreshing - again, this is what .net does.
2779         Fixes #426168.
2780
2781 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2782
2783         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
2784         since we are already doing that when we change the value of the
2785         scrollbar or force the call to ScrollWindow in the same method. This
2786         way we don't cause a Invalidate call for all the listbox bounds for
2787         methods calling UpdateTopItem with an already updated top item. This
2788         was happening specially calling EnsureVisible with already visible
2789         items.
2790
2791 2008-09-18  Mike Gorse <mgorse@novell.com>
2792
2793         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
2794           XplatUIStructs.cs: Added KeyFilter
2795         [Fixes bug #427039]
2796
2797 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2798
2799         * RelatedPropertyManager.cs: The properties returned by
2800         GetItemProperties should be that ones of the *actual* object returned
2801         by the property, not the property type - this is very special when the
2802         property exposes a type, but the returned object actually is a child
2803         class and implements more functionality and properties.
2804
2805 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2806
2807         * Binding.cs: Don't look for the property in the data source if the
2808         passed string is empty.
2809
2810 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2811
2812         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
2813         fix unused variable warnings.
2814
2815 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2816
2817         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
2818         [Fixes bug #427073]
2819
2820 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
2821
2822         * XplatUIX11.cs: 
2823          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
2824          leads to the window manager overriding our border style and zorder. 
2825          - Allow the activation of non-modal forms, which are children of a 
2826          modal form.
2827         [Fixes bug #423417]
2828
2829 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
2830
2831         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
2832         ask the window manager to do the work instead of changing the property 
2833         directly.
2834         [Fixes bug #423417]
2835
2836 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2837
2838         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
2839         AddNew to fix some navigation for empty datasets. [Fixes #323053]
2840
2841 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2842
2843         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
2844         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
2845         border and fixes some drawing issues when resize form.
2846
2847 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
2848
2849         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
2850         
2851         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
2852         AcceptButton.
2853
2854 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
2855
2856         * TextBoxBase.cs: For standard textbox the scrollbars are always 
2857         visible if Multiline is true.
2858         [Fixes bug #426896]
2859
2860 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
2861
2862         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
2863         patch.
2864         
2865 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
2866
2867         [Fixes most od DBNull and HeadersVisible problems]
2868         
2869         * DataGrid.cs:
2870         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
2871         returns the value that we need.
2872         - Fixed FromPixelToColumn method that return zero for first     column and for
2873         row header cell, now it returns -1 for row header cell.
2874         - Fixed HitTest to check row header cell in column header area, it now
2875         returns HitTestType.None. [Fixes #322864]
2876         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
2877         checks for RowHeadersVisible and other things.
2878         - If an exception occurs when setting CurrentCell and user type 'yes' in
2879         message dialog, invalidade current and new cell and set setting_current_cell
2880         to false to prevent future errors. [Partially fixes #323050]
2881
2882         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
2883         value (SetColumnValueAtRow), it must be done by grid to properly show 
2884         messages. [Fixes #323050]
2885
2886         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
2887         better draw column and row header. Also dont draw anything when column
2888         headers is not visible.
2889
2890 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2891
2892         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
2893         logic.
2894
2895 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2896
2897         * TreeView.cs: Don't start editing a node on right click, only
2898         left click.
2899
2900 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2901
2902         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
2903         disabled over a year ago.
2904         * Form.cs: Wrap calling Load in a try/catch because it can happen
2905         before the catch-all one in NativeWindow.
2906         [Fixes bug #425414]
2907
2908 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2909
2910         * ToolStripDropDownMenu.cs: Calculate the connected area better
2911         to take into account when the drop down is not directly under the
2912         owner item.
2913         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
2914
2915 2008-09-16  Mario Carrion <mcarrion@novell.com>
2916
2917         * ScrollBar.cs: New event added: UIAValueChanged, generated when
2918           LargeChange, SmallChange, Maximum or Minimum values are changed.
2919         [Fixes bug #426464]
2920
2921 2008-09-16  Mario Carrion <mcarrion@novell.com>
2922
2923         * ErrorProvider.cs: Component enabled to support accessibility.
2924         * Application.cs: Updated to Initialize UIA in ErrorProvider.
2925         [Fixes bug #426459]
2926
2927 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2928
2929         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
2930         so we don't highlight on first focus.
2931         [Fixes bug #360869]
2932
2933 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2934
2935         * TextControl.cs: Correctly calculate the height of the area we 
2936         need to invalidate when we have started scrolling and viewport_y
2937         is used.  [Fixes bug #387608]
2938
2939 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2940
2941         * TextControl.cs: When getting the SelectedText, don't add in
2942         NewLine characters, as they are already contained in the lines.
2943         [Fixes bug #388115]
2944
2945 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
2946
2947         * TextBoxBase.cs: Replace the buggy Lines setter with one that
2948         simply concats the lines and send it to the Text setter.
2949         [Fixes issue #2 and #3 of 388115]
2950
2951 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2952
2953         * Binding.cs: The default value of DataSourceNullValue should be
2954         Convert.DBNull actually. Also, the NullValue should only be used *if*
2955         itself is not null, and use the null/Convert.DBNull value instead.
2956
2957 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
2958
2959         * TextControl.cs: Add a method to convert a string newline to the
2960         newline enum.
2961         * TextBoxBase.cs: When the user hits enter, insert a native newline.
2962         [Fixes part 1 of bug #388115]
2963
2964 2008-09-15  Mario Carrion <mcarrion@novell.com>
2965
2966         * ToolTip.cs: UnPopup event set to internal to match public API.
2967
2968 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
2969
2970         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
2971         have to remove the Ctrl in order for the focus moving code to kick in.
2972         [Fixes bug #426170]
2973
2974 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
2975
2976         * CheckedListBox.cs: Return the real item index from Add.  It may not be
2977         the last item if the list is sorted.  The user can change the NewValue in
2978         the ItemCheck event, we need to use that value if so.
2979         * ListBox.cs: Return the real item index from a sorted Add.
2980         [Fixes bug #426166]
2981
2982 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
2983
2984         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
2985         happen that the icons from the theme is missing or the particular size 
2986         unavailable.
2987         [Fixes bug #424981]
2988
2989 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2990
2991         * Binding.cs: When assigning null or DBNull depending on value/ref type,
2992         use IsValueType instead to get the precise desired value.
2993         Fixes #424276.
2994
2995 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
2996
2997         * TreeNodeCollection.cs: When adding a new node to an opened node,
2998         we have to invalidate everything below the parent node because
2999         every node scoots down and we have to repaint them.
3000         [Fixes bug #411386]
3001
3002 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3003
3004         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
3005         property into account when drawing.
3006         [Fixes bug #416064]
3007
3008 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3009
3010         * ListBox.cs: When calling Items.Clear(), call
3011         SelectedIndexCollection.ClearCore instead of normal Clear method, to
3012         not fire any Selected*Changed event - this is done to match .net and
3013         don't have invalid values when changing the DataSourceProperty.
3014         Fixes #424273.
3015
3016 2008-09-12  Mario Carrion  <mcarrion@novell.com>
3017
3018         * HelpProvider.cs: Control enabled to support accessibility.
3019         * Application.cs: Updated to Initialize UIA in HelpProvider.
3020         [Fixes bug #425988]
3021
3022 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3023
3024         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
3025         make the dialog TopMost as well.
3026         [Fixes bug #425984]
3027
3028 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3029
3030         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
3031         clipboard data better.
3032         [Fixes bug #414446]
3033
3034 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3035
3036         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
3037         TextChanged and SelectionChanged events fire in the same order as .Net.
3038         [Fixes bug #425725]
3039
3040 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3041
3042         * DataGridView.cs: When sorting a column, if it only contains numbers,
3043         do a numeric sort instead of a string sort.
3044         [Fixes bug #425849]
3045
3046 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3047
3048         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
3049         against NRE's when the settings have a null panel.
3050         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
3051         the panel gets set.
3052         [Fixes bug #425647]
3053
3054 2008-09-11  Mario Carrion  <mcarrion@novell.com>
3055
3056         * ToolTip.cs: Control enabled to support accessibility.
3057         * Application.cs: Updated to Initialize UIA in ToolTip.
3058         [Fixes bug #425277]
3059
3060 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3061
3062         * Control.cs: Make the custom Enumerator internal to fix build.
3063
3064 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3065
3066         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
3067         already in edit mode, begin edit mode.  Generally edit mode isn't
3068         started until the second click, but CheckBoxes are special.
3069
3070 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3071
3072         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
3073         since that can be set to anything.  Always add them to the Control's
3074         parent.  [Fixes bug #416058]
3075
3076 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3077
3078         * ListView.cs: Use a custom enumerator for ListViewItemCollection
3079         so items can be deleted in a foreach.
3080         [Fixes bug #425342]
3081
3082 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3083
3084         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
3085         Store the user set explicit height so that the row can be AutoSized
3086         and then when AutoSize is turned off, it can get its original size back.
3087         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
3088         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
3089         rows' heights back to their explicit values.
3090         [Fixes bug #415780]
3091
3092 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3093
3094         * DateTimePicker.cs: When getting focus, select the checkbox if we are
3095         already showing it. Also, don't change its value when pressing space
3096         if the checkbox is not visible (ShowCheckBox as false). Finally, the
3097         checkbox should remain selected as long as Checked is false, and the
3098         other parts are disabled.
3099         Fixes #424267.
3100         
3101 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3102
3103         * MessageBox.cs: Handle shortcut keys to dialog buttons.
3104         [Fixes bug #425425]
3105
3106 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3107
3108         * Binding.cs: When the value retrieved from the control property is
3109         null, don't return Convert.DBNull for Nullable instances, since they
3110         can *actually* get a null value.
3111         Fixes #424265.
3112
3113 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3114
3115         * Control.cs: Add an internal field to force doublebuffering regardless
3116         of what the public mechanisms are set to.  This is because MS's native
3117         controls are doublebuffered even though their .Net bits are set to false.
3118         * ProgressBar.cs: Set force_double_buffer to true.
3119         [Fixes bug #406595]
3120
3121 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3122
3123         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
3124         the cell template.
3125         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
3126         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
3127         without EditingControls, paint background selection for types without
3128         EditingControls, reset the EditingCellValueChanged flag when the
3129         cell's value is committed.
3130         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
3131         have EditingControls, remove a double call to a cell's OnContentClickInternal,
3132         don't do cell changing logic in OnMouseDown if the cell didn't change.
3133         [Fixes bug #420351]
3134
3135 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3136
3137         * DateTimePicker.cs: Fix the edition of am/pm specifier.
3138
3139 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
3140
3141         * TextControl.cs: Add "&" to the list of valid characters in a URL.
3142
3143 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3144
3145         * DateTimePicker.cs: Before incrementing or decrementing any part in
3146         the textbox, end any current edit. Also when ending the current edit
3147         use the editing_part_index field instead of the current selected
3148         value, since they can be out of synch, and we really need to work on
3149         the *real* current edit part. Finally when PartData.Selected changes,
3150         always try to end any ongoing edit.
3151         This should fix some small errors handling mouse navigation and
3152         increase/decrease operations.
3153
3154 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3155
3156         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
3157         respectively) should handled different, since the 12 hours format
3158         needs the value typed by the user to be adjusted depending on the
3159         a.m/p.m value, so it is preserved, and only changed when the value
3160         reaches the 12 value (when it changes from a.m to p.m).
3161         Fixes part of #416555.
3162
3163 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3164
3165         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
3166         * ToolStripDropDownItem.cs: Don't fire events and such again if
3167         ShowDropDown is called on an already dropped down item.
3168         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
3169         subitems, the user may add some in the DropDownOpening event.
3170         [Fixes bug #417877]
3171
3172 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3173
3174         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
3175         [Fixes bug #424270]
3176
3177 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3178
3179         * MdiClient.cs: When looking for menustrips on a child form to merge,
3180         look inside ToolStripContainers.
3181         [Fixes bug #424264]
3182
3183 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3184
3185         * ErrorProvider.cs: Unbreak my previous commit.
3186
3187 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3188
3189         * ErrorProvider.cs: Icon should always be 16x16.
3190         [Fixes bug #424380]
3191
3192 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3193
3194         * GridEntry.cs: Invalidate the child items cache when the property 
3195         value changes.
3196
3197 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3198
3199         * GridEntry.cs, PropertyGridView.cs: 
3200            - Update the ReadOnly detection and rendering to finally hopefully 
3201            match the one of MSFT.
3202            - Niceify and move the debug CWLS.
3203         [Fixes bug #409028]
3204
3205 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3206
3207         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
3208         since we are already calling Invalidate for the entire control when
3209         needed - and call Redraw() when size changes, since we need to paint
3210         there by ourselved and not anymore from the mentioned method. 
3211         This should improve the layout process. Also clean some not needed calls 
3212         here and there.
3213
3214 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3215
3216         * MenuAPI.cs: Add a null check to the Alt-F4 code.
3217         [Fixes bug #420309]
3218
3219 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3220
3221         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
3222         [Fixes bug #423040]
3223
3224 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
3225
3226         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
3227         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
3228         on item expansion. Improves performance and fixes bug #417955.
3229         [Fixes bug #417955]
3230
3231 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
3232
3233         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
3234         fix the build.
3235
3236 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3237
3238         * TextControl.cs: Add "_" to the list of valid characters in a URL.
3239         [Fixes bug #423408]
3240
3241 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3242
3243         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
3244         region gets set.
3245         [Fixes bug #414166]
3246
3247 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3248
3249         * FontDialog.cs: When storing our font size from the starting font,
3250         use SizeInPoints instead of Size in case Size is a different unit
3251         from Points.
3252         [Fixes bug #416489]
3253
3254 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3255
3256         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
3257         don't use it for anything else, check if a directory is highlighted.
3258         If it is, navigate into it.
3259         [Fixes bug #422087]
3260
3261 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3262
3263         * Binding.cs: When acquiring a BindingManagerBase for the first time,
3264         check that the specified property actually exists in the data source,
3265         and throw an ArgumentException if that's not the case - this is only
3266         done for this scenario, since for later cases (such Position changes)
3267         we throw different exceptions (match .Net).
3268
3269 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
3270
3271         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
3272           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
3273           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
3274           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
3275           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
3276           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
3277           properties.
3278           [Fixes bug #418684]
3279
3280 2008-09-03  Neville Gao  <nevillegao@gmail.com>
3281
3282         * StatusBar.cs: Control enabled to support accessibility.
3283         [Fixes bug #419079]
3284
3285 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3286
3287         * Binding.cs: When connecting the event handler for the "Changed"
3288         event for the property, only do it for PropertyManager, and not for
3289         CurrencyManager - this is exactly what does .Net, totally ignoring any
3290         change in the property of the elements of a list.
3291         Fixes the tests.
3292
3293 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
3294
3295         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
3296         to Windows when creating a window, as we fake MDI stuffs.
3297         [Fixes bug #421858]
3298
3299 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
3300
3301         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
3302         change takes effect.
3303
3304 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
3305
3306         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
3307         [Fixes bug #419001]
3308
3309 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3310
3311         * DataGridView.cs: Raise CellContentClick event.
3312         [Fixes part of bug #420351]
3313
3314 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3315
3316         * ScrollBar.cs: Control enabled to support accessibility.
3317         [Fixes bug #416759]
3318
3319 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3320
3321         * ComboBox.cs: Control enabled to support accessibility.
3322         [Fixes bug #416663]
3323
3324 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3325
3326         * ListBox.cs: Control enabled to support accessibility.
3327         [Fixes bug #416640]
3328
3329 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3330
3331         * ComboBox.cs: Don't suppress the TextChanged event when changing
3332         the SelectedIndex.
3333         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
3334         and re-raise it.
3335         [Fixes bug #420673]
3336
3337 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
3338
3339         * ErrorProvider.cs: Fix a regression NRE when setting properties
3340         for a control before it has a parent.
3341         [Fixes bug #420305]
3342
3343 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3344
3345         * Binding.cs: Use the BindingManagerBase.Current value to obtain
3346         connect the property "Changed" event, instead of using the data
3347         sources - this is useful when the property specifies actually a
3348         multiple objects path.
3349         Fixes part of #417973.
3350
3351 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3352
3353         * RelatedPropertyManager.cs: PropertyManager instances associated to a
3354         nested properties should return not the properties of the data source
3355         itself, but the properties of the type of a specific property in the
3356         data source - match .net.
3357
3358 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
3359
3360         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
3361         AddRange overloads into AddItems method, and added missing NULL check.
3362         Added extra argument check to RemoveAt for compatibility with MS. 
3363         Modified IList implementation of Add, Contains, IndexOf and Remove to
3364         throw an ArgumentException if item is not an int. Modified IList.Insert
3365         to throw a NotSupportException instead of an Exception. Implemented
3366         ICollection.
3367         (ObjectCollection): To avoid duplication, use AddItems method from
3368         AddRange overloads. On 1.0 profile, first perform NULL check on items
3369         in AddItems.
3370
3371 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
3372
3373         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
3374          #419087.
3375
3376 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3377
3378         * X11Keyboard.cs : comment out some Console.WriteLine().
3379
3380 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3381
3382         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
3383           even if premises are not filled. Also XLookupString() was not
3384           receiving correct input, which blocked precise input handling
3385           on non-XIM mode.
3386
3387 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3388
3389         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
3390         type of delegate, instead of EventHandler - this was causing a type
3391         cast exception in all apps handling this event.
3392         Fixes #417876.
3393
3394 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
3395
3396         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
3397         ShowDropDown to give the user a chance to dynamically add
3398         drop down items.  [Step 1 of fixing bug #417877]
3399
3400 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3401
3402         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
3403         had any mouse motion since the call to StartDrag, to match the dnd
3404         behaviour of .net.
3405         Fixes part of #381876.
3406
3407 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3408
3409         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
3410         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
3411         Also, if we are actually moving into a different window after
3412         grabbing, generate a LeaveNotify event for the previous window, since
3413         we need to fire the leave events until the grab ends, not when
3414         actually moving outside of the control.
3415
3416 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3417
3418         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
3419         events only for client windows was wrong - we need to compare the
3420         client window against the window receiving the EnterNotify event, not
3421         against zero (since client window is never Zero, btw).
3422         This prevents having unnecessary handling of EnterNotify events for
3423         non-client windows when a gran begins.
3424
3425 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3426
3427         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
3428         MouseMove/MotionNotify events at all (which should only happen after
3429         MouseUp/ButtonRelease, as .Net does).
3430         This avoids firing an extra and unnecessary MouseMove event just after
3431         every MouseDown event.
3432
3433 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3434
3435         * LinkLabel.cs: Always clear any previous links when LinkArea
3436         is set.  [Fixes bug #410709]
3437
3438 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3439
3440         * ToolStripProfessionalRenderer.cs: Revert last change.
3441         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
3442         for ToolStripDropDownBackground.
3443
3444 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3445
3446         * ToolStripProfessionalRenderer.cs: Use Window color for the 
3447         background of dropdowns to match .Net when the user is not
3448         using the default white.  [Fixes bug #418108]
3449
3450 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
3451
3452         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
3453           it caused timer registration twice. Fixed bug #418107.
3454
3455 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3456
3457         [Correction: This is the actual change to X11Dnd issue, not the
3458         previous one, which was actually a different issue.]
3459
3460         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
3461         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3462         when the pointer is actually in motion, but only when the pointer
3463         seems to stop (as .net does).
3464         Fixes part of #381876.
3465
3466
3467 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3468
3469         * ListBox.cs: Fix CopyTo implementation.
3470         [Fixes bug #409169]
3471
3472 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3473
3474         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
3475         drawing a ComboBox's background.  Fixes bad disabled rendering when
3476         the control is not at 0,0.
3477         [Fixes bug #416063]
3478
3479 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
3480
3481         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
3482         ComponentModel layer, which will properly prioritize the attributes.
3483         Avoids wrong prioritization of duplicate attributes when retrieving 
3484         the converter and editor.
3485         [Fixes bug #417729]
3486
3487 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3488
3489         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
3490         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3491         when the pointer is actually in motion, but only when the pointer
3492         seems to stop (as .net does).
3493         Fixes part of #381876.
3494
3495 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
3496
3497         * GridEntry.cs: Perform stricter check for the ParentEntry's 
3498         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
3499         implementation.
3500         [Fixes bug #417567]
3501
3502 2008-08-14  Geoff Norton  <gnorton@novell.com>
3503
3504         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
3505         Fixes #396983.  Properly fix ActiveWindow trackin and do not
3506         prematurely show POPUP windows.
3507
3508 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3509
3510         * XplatUIX11.cs: Handle the obscured regions while scrolling using
3511         GraphicsExpose event, processing it just after we copy the scrolled
3512         area. This ensures that the next calls to ScrollWindow will copy
3513         regions already updated, and the scrolling will be smooth. Also remove
3514         the code that was trying to detect the obscured regions, since we are
3515         not using it anymore (too slow).
3516
3517 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3518
3519         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
3520         MultiExtended mode, by separating some logic between the ctrl/shift
3521         handling. Also ignore any MouseMove events generated together with
3522         MouseDown events - we are only interested in the real motion event.
3523         Fixes part of #414963.
3524
3525 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
3526
3527         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
3528         is selected.  [Fixes bug #414143]
3529
3530 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3531
3532         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
3533         and not the parent one (the propertyowner). Fixes the behavior of 
3534         GetConverter/GetEditor.
3535         [Fixes bug #415452]
3536
3537 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3538
3539         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
3540         [Fixes part of bug #415452]
3541
3542 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
3543
3544         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
3545         GridEntry, not the current.
3546         [Fixes bug #413896]
3547
3548 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
3549
3550         * TextBoxBase.cs: De-internalize max_length field.
3551         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
3552         share the same logic.
3553         [Fixes bug #414454]
3554
3555 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3556
3557         * ListBox.cs: Selection changes made in the MouseDown handler should
3558         use the *Core versions of selection in SelectedIndices collection,
3559         since the SelectedIndexChanged/SelectedValueChanged events are fired
3560         until we get a MouseUp event, and thus we need to separate the logic
3561         from the events, as done in the keyboard navigation. Also, fire those
3562         selection events from keyboard navigation in SelectionMode.None, even
3563         if we don't have a selection, as .Net does.
3564
3565 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
3566
3567         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
3568         last change introduced when an item is clicked but isn't on a toolstrip.
3569
3570 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3571
3572         * ListBindingHelper.cs: When looking for an object's properties, check
3573         if it implements ICustomTypeDescriptor, in which case we should
3574         resolve the propertu based on its GetProperties method, not in its
3575         actual properties. This is what .Net seems to do.
3576         Fixes a UsingWebBrowser problem during initialization.
3577
3578 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3579
3580         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
3581         sitting on a MenuStrip.
3582
3583 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3584
3585         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
3586         no children with the keyboard, we need to release the keyboard capture.
3587         [Fixes bug #413567]
3588
3589 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3590
3591         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
3592         no children with the keyboard, we need to release the keyboard capture.
3593         [Fixes bug #413567]
3594
3595 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3596
3597         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
3598         the GTK+-based implementation of VisualStyles.
3599         * ThemeWin32Classic.cs: Exposed various layout values for use in the
3600         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
3601         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
3602         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
3603         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
3604         TrackBarHorizontalTrackHeight.
3605
3606 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3607
3608         * TabControl.cs: Added hot style handling for the scroll buttons.
3609         right_slider_state, left_slider_state are now of type PushButtonState to
3610         allow for a hot state. Added tracking of the mouse button being held down
3611         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
3612         LeftScrollButtonArea.
3613         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
3614         TabControlGetRightScrollRect.
3615
3616 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3617
3618         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
3619         runtime errors.
3620
3621 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3622
3623         * Form.cs: Ensure that we reset the shown_raised flag after 
3624         the form is closed, so that we raise the show events the next 
3625         time the form is shown.
3626         [Fixes bug #413141]
3627
3628 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3629
3630         * Form.cs: Ensure closing events are raised only once.
3631         [Fixes bug #413143]
3632
3633 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3634
3635         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
3636         so that we can successfully generate the LParam in-place instead of 
3637         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
3638         navigation for menus.
3639
3640 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3641
3642         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
3643         'navigating'. Fixes bug #411356.
3644
3645 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3646
3647         [Fixed remaining issues of #406773 (#1)]
3648         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
3649
3650         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
3651         MainMenu (already done) and ContextMenu creation.
3652
3653         * ContextMenu.cs: Create tracker on construction. 
3654
3655 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3656
3657         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
3658         possible to instantiate MenuTracker without GrabControl.
3659
3660 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3661
3662         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
3663
3664         * MainMenu.cs: Set GrabControl on SetForm using current form.
3665
3666 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3667
3668         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
3669
3670 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3671
3672         * MenuAPI.cs: Check if menu is activated before deactivate it in 
3673         ProcessShortcut.
3674
3675 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3676
3677         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
3678         ColumnStyle.cs: 
3679         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
3680          - One style instance can only participate in a single style collection.
3681          - Styles can request their owner to layout whenever their properties 
3682          change.
3683          [Fixes bugs #412583 and #412582]
3684
3685 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
3686
3687         * X11Keyboard.cs: Implement the generation of the LParam for 
3688         all keyboard messages.
3689         [Fixes bug #378728]
3690
3691 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
3692
3693         * ListBox.cs: Don't let the user set TopIndex so high that it
3694         scrolls up far enough to show empty items.
3695         [Fixes bug #412728]
3696
3697 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3698
3699         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
3700         (I'm an idiot and forgot to commit the actual changes, as well as
3701         specify the right file, which is this one, not ListView.cs).
3702
3703 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3704
3705         * ListView.cs: Don't draw ListViewSubItem instances from
3706         DrawListViewItem - we need to reuse the main item's drawing for the
3707         first sub item in case owner draw is true, but wants the system to
3708         do the default draw for the first sub item, without incurring in a
3709         recursion problem.
3710         Fixes #410880.
3711
3712 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
3713
3714         * ToolStripButton.cs: Update Checked for CheckOnClick before
3715         raising the Click event.  [Fixes bug #412505]
3716
3717 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
3718
3719         * Form.cs: Remove some seems leftover code for non-TopLevel's 
3720         CreateParams, which is breaking ClientSize sizing, because it 
3721         removes the border window styles.
3722
3723 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
3724
3725         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
3726         changes.
3727
3728 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
3729
3730         * WebBrowser.cs: Removed debug output.
3731
3732 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
3733
3734         * FileDialog.cs: Apply patch from Ernesto to clean up some
3735         dialog messages.
3736
3737 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3738
3739         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
3740         that the change has an immediate effect.
3741
3742 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3743
3744         * ScrollableControl.cs: Update PerformLayout calls to include 
3745         provide the name of the property that changed.
3746
3747 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3748
3749         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
3750         location. Fixes drawing of border and cell borders if scrollable.
3751
3752 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3753
3754         * ScrollableControl.cs: Perform layouting after the AutoScroll 
3755         properties have changed, so that the changes have immediate 
3756         effect.
3757         [Fixes bug #409090]
3758
3759 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3760
3761         * XplatUIX11.cs: Non Client area is actually Client such in the 
3762         case of NotifyIcon, so double check WholeWindow == ClientWindow 
3763         when adding an expose.
3764         [Fixes bugs #324237 and #357022]
3765
3766 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3767
3768         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
3769         repaint the cell borders.
3770
3771 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3772
3773         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
3774         disposal to avoid unexpected ObjectDisposedExceptions.
3775
3776 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
3777
3778         * TableLayoutPanel.cs: Layout on Row/Column count change.
3779
3780 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
3781
3782         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
3783         bug #409351.
3784         * PictureBox.cs: When ImageLocation is set to null or an empty string,
3785         only set image to null if it was previously initialized from an url
3786         (or using ImageLocation). In ImageLocation, load specified image
3787         asynchronously if WaitOnLoad is false. Added support for local file
3788         paths to LoadAsync, and added missing argument check.
3789
3790 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3791
3792         * DateTimePicker.cs: 
3793         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
3794         order to set the value as required (which means: when selection
3795         changes for a part being edited, and not before that if not needed).
3796         Also use an enum to describe which part are we using, and use the
3797         selection as a property in PartData, in order to notify the
3798         DateTimePicker owner that we need to end the current edit.
3799         Fixes #383462.
3800
3801 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
3802
3803         * PropertyGridTextBox.cs: Validation should be performed only if we 
3804         are focused. We can lose focus for example if the Return key is used 
3805         to set the entry and there is an error. When the message box is 
3806         displayed we would have validate on click in the message box.
3807
3808 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
3809
3810         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
3811         in order to determine that we are expandable is wrong. There was a bug, 
3812         now fixed, in TypeDescriptor that was causing the wrong converter to be 
3813         returned which caused GetPropertiesSupported == false in most cases.
3814         [Fixes bug #409027]
3815
3816 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
3817
3818         * ImageList.cs: Fix ICollection.CopyTo implementation for
3819         ImageListCollection.  [Fixes bug #409169]
3820
3821 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3822
3823         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
3824         WorkingArea so that menus can appear on the second monitor
3825         when one has dual monitors.
3826
3827 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3828
3829         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
3830         Fixes build.
3831
3832 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3833
3834         * TextBox.cs: Implement navigation support for auto complete in
3835         TextBox, as well as refactor the code to show the auto complete window
3836         when receiving a WM_CHAR message, instead of TextChanged, since
3837         autocomplete itself should be able to set the Text a lot of times and
3838         finally only typing should show it, not changes from code.
3839
3840 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3841
3842         * TabControl.cs: When expanding the selected tab, don't adjust the
3843         width if alignment is Right, since it has a different offset than 0,
3844         as opposed to the other alignments.
3845         Fixes the selected tab not being painted at all with alignment = Right
3846         and using FillToRight size mode.
3847
3848 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3849
3850         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
3851
3852 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3853
3854         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
3855         values from the textbox to the boundary values.  [Fixes bug #409026]
3856
3857 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
3858
3859         * TreeNodeCollection.cs: We were copying one too many elements when
3860         doing our array copy.  Fixes a crash when RemoveAt is called.
3861         [Fixes bug #408999]
3862
3863 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3864
3865         * TabControl.cs: When doing the layout and need to call FillRow -using
3866         FillToRight size mode-, use the overload receiving a bool param
3867         indicating whether we need to do a vertical or horizontal calculation.
3868         Fixes part of #399583.
3869
3870 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3871
3872         * TextBox.cs: When painting, use the value returned by
3873         GetLastVisibleItem instead of using the cached last_item field, since
3874         there could be a desynchronization between the layout and the
3875         painting. Fixes a AOOR exception in auto complete mode.
3876
3877 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
3878
3879         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
3880         NonClientAreaEnabled until our VisualStyles is modified to allow it.
3881
3882 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
3883
3884         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
3885
3886 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3887
3888         * TextBox.cs: When focus is lost, if the auto complete listbox is
3889         visible, hide it.
3890
3891 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
3892
3893         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
3894         tracking size for tool windows.
3895         * Theme.cs, ThemeWin32Classic.cs : Extracted
3896         ManagedWindowSpacingAfterLastTitleButton.
3897
3898 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
3899
3900         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
3901         They are bit-rotted and have always been listed as "unsupported".
3902
3903 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
3904
3905         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
3906
3907 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
3908
3909         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
3910
3911 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3912
3913         * ListBox.cs: Make sure last_item_visible gets reset before we try
3914         to do a layout due to scrollbars appearing or disappearing.
3915         [Fixes bug #408139]
3916
3917 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3918
3919         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
3920         for different window themes.  [Fixes bug #339140]
3921
3922 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3923
3924         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
3925         in ManagedWindowBorderWidth.
3926
3927 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3928
3929         * InternalWindowManager.cs: Change MouseMove to take a point, so
3930         we can use the same point later on.
3931         * MdiWindowManager.cs: Store point sent to MouseMove so we can
3932         later reset to it.  On Windows, the Cursor.Position had already
3933         changed by the time we were resetting to it.
3934         [Fixes bug #363239]
3935
3936 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3937
3938         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
3939         are inactive.
3940         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
3941         user requested it.
3942         [Fixes bug #398686]
3943
3944 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
3945
3946         * MdiWindowManager.cs: Double-clicking on the title bar should not
3947         maximize a MDI form if MaximizeBox = false.
3948
3949 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3950
3951         * ThemeVisualStyles.cs: Fixed a warning.
3952
3953 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3954
3955         * ThemeVisualStyles.cs: Fixed warnings and formatted.
3956
3957 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3958
3959         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
3960         implementation produces a better result.
3961
3962 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3963
3964         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
3965         windows.
3966
3967 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
3968
3969         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
3970         cannot be used from the ThemeEngine constructor.
3971         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
3972         Application.VisualStylesEnabled because it does not work on X11.
3973
3974 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
3975
3976         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
3977         that we did not always check for, as well as fixes to the IList
3978         implementations.  [Fixes bug #402703]
3979
3980 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
3981
3982         * IDeviceContext.cs: Added Dispose.
3983
3984 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
3985
3986         * Control.cs: Added OnSizeInitializedOrChanged.
3987         * Form.cs: OnLoadInternal: Added a call to
3988         Control.OnSizeInitializedOrChanged.
3989         * InternalWindowManager.cs:
3990          * HandleTitleBarMouseMove: No longer invalidates the parent window.
3991          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
3992          * TitleButton: Added Entered.
3993          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
3994         * MdiWindowManager.cs:
3995          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
3996          move over the maximized title buttons causes a change.
3997          * IsActive: Can now be called before the window is added to a MDI parent.
3998         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
3999         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4000         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
4001         * ThemeWin32Classic.cs:
4002          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
4003          * DrawTitleButton takes a new form parameter.
4004          * Added ManagedWindowTitleButtonHasHotElementStyle,
4005          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4006
4007 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4008
4009         * ThemeEngine.cs: ThemeVisualStyles is now selected if
4010         Application.EnableVisualStyles has been called, even if the current system
4011         configuration does not support rendering with Visual Styles.
4012         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
4013         Styles should not be used.
4014
4015 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
4016
4017         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
4018         ComboBox in FormsTest.
4019
4020 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
4021
4022         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
4023         for fixed toolwindows.
4024
4025 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
4026
4027         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
4028
4029 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4030
4031         * Control.cs: CreateControl just returns if the Control is diposed 
4032         and doesn't throw ObjectDisposedException.
4033         [Fixes bug #406566]
4034
4035 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4036
4037         * Control.cs: Do not create the control if the parent isn't created 
4038         yet, e.g in the case of a parented form on which .Show is called.
4039         It will be created when the parent is made visible/created.
4040         Improves #402446.
4041
4042 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4043
4044         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
4045         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
4046         [Fixes bug #406786]
4047
4048 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4049
4050         * Form.cs: When disposed set owner to null. Improves #402446.
4051
4052 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4053
4054         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
4055         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
4056         if not.
4057         * Form.cs: Take the Padding into account for the PreferredSize.
4058         [Fixes bug #402849]
4059
4060 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4061
4062         * TabControl.cs: Since we don't support more than one direction in
4063         TabControl rows alignment (this is, the row becomes the
4064         bottom row when selected), make Direction return always 1. This way
4065         the layout doesn't get confused about a bad calculation.
4066         Fixes #399582.
4067
4068 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4069
4070         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
4071         so that the wparam is properly set.
4072         Fixes form moving in the test case in bug 402446.
4073
4074 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
4075
4076         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
4077         the full tree instead of nothing.  [Improves bug #406584]
4078
4079 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4080
4081         * ThemeWin32Classic.cs: Adjusted minimized window painting.
4082
4083 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4084
4085         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
4086         children.
4087
4088 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
4089
4090         * TreeView.cs: Add a null check when using CollapseAll on an
4091         empty tree.  [Fixes bug #406449]
4092
4093 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4094
4095         * Form.cs: Make OnMenuComplete internal so we can call it.
4096         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
4097         [Fixes bug #399321]
4098
4099 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4100
4101         * TabControl.cs: Handle Up and Down keys when TabControl is in
4102         vertical alignment.
4103         [Fixes bug #399585]
4104
4105 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4106
4107         * TabControl.cs: Invalidate when we remove a tab.  Guard against
4108         an AOORE when trying to remove a tabpage that is not owned by the
4109         parent control.
4110         [Fixes bug #399927]
4111
4112 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4113
4114         * ScrollBar.cs: Change the LargeChange calculation to be correct.
4115         Ensure we are using LargeChange instead of large_change so we our
4116         calculations are correct.
4117         [Fixes bug #403122]
4118
4119 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4120
4121         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
4122         we need to ensure the ColumnCount/RowCount gets set.
4123         [Fixes bug #404851]
4124
4125 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4126
4127         * ListBox.cs: When handling item navigation, if selection mode is
4128         None, call EnsureVisible, since scrolling is normally handled by
4129         selection, that we are not calling in this case.
4130         Fixes #398345.
4131
4132 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4133
4134         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
4135         a null check to our focus walking code.  [Fixes bug #394332]
4136
4137 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
4138
4139         * ComboBox.cs: Case missed in bug 379596 "Support item
4140         navigation by entering text": On _close_ drop-down select
4141         the first item matching the text in the textbox.  [Fixes bug #397265]
4142
4143 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4144
4145         * DataGridView.cs: Fix a crash when sorting by column headers, 
4146         mentioned in bug #404841.  Remove some dead switch cases.
4147
4148 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4149
4150         * ComboBox.cs:
4151         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
4152         uses the AutoComplete support in the internal TextBox. Also TextBox
4153         can store a reference to ComboBox, in case AutoCompleteSource is set
4154         to ListItems (this is, ComboBox's items, and we don't want to pass an
4155         additional collection).
4156
4157 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4158
4159         * ListViewItem.cs: Restore the initial value of bounds rect to
4160         Rectangle.Empty, and is this value for Layout detection in virtual
4161         mode. Fixes the tests.
4162
4163 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
4164
4165         * XPlatUI.cs: Remove references to "new" X11 backend.
4166
4167 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4168
4169         * Control.cs: Add an internal virtual OnDragDropEnd method 
4170         to allow controls such as ListBox, which depend on a sequence 
4171         of MouseDown+Move+End events, to handle the lack of a MouseUp 
4172         when a DnD operation is started in MouseDown.
4173         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
4174         get a MouseUp, so reset our state whenever a DnD operation ends.
4175
4176 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4177
4178         * PropertyGrid.cs: Clear the root griditem first thing when 
4179         new object/s is/are selected. Fixes some rare cases where 
4180         the View will get a paint request and won't know that the 
4181         grid is in the process of repopulating.
4182
4183 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4184
4185         * XplatUIX11.cs, InternalWindowManager.cs: 
4186         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
4187         doesn't automagically update the FormBorderStyle, so we must 
4188         double check the CreateParams explicitly to determine if the 
4189         window is a toolwindow.
4190         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
4191         instead of doing custom checks.
4192
4193         Fixes toolwindows for the test case in bug #402446
4194
4195 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4196
4197         * Control.cs: Visibility of the control should be false 
4198         when the handle is destroyed in WmDestroy and not immediately 
4199         in Dispose(). This is effectively where the disposing process 
4200         ends even though the control is marked as Disposed immediately 
4201         after calling Dispose().
4202         [Fixes bug #402446]
4203
4204 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4205
4206         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
4207         when the textbox gets focus.
4208         [Fixes bug #402704]
4209
4210 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4211
4212         * PropertyGridTextBox.cs, PropertyGridView.cs: 
4213          - Alt + Down should show the drop down editor.
4214          - Focus the editor when showing it
4215         [Fixes bug #402710]
4216
4217 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
4218
4219         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
4220         that are not the first panel.
4221         * StatusBar.cs: Ensure that the X coordinate of panels is always
4222         stored.  Fix IList implementation of StatusBarPanelCollection to
4223         call the regular methods.
4224         [Fixes bug #403599, #402165]
4225
4226 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
4227
4228         * ThemeWin32Classic.cs: Fix position calculation for centered
4229         text on status bar panels.  [Fixes bug #402165]
4230
4231 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4232
4233         * Splitter.cs: Fix Splitter to:
4234          - Work for arbitrary splitter size
4235          - Handle MinSize and MinExtra properly
4236          - Get rid of absolute positioning during drag and use relative
4237          - Multiple other fixes 
4238          [Fixes bug #338966]
4239
4240 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4241
4242         * Cursor.cs: Show shouldn't hide the cursor.
4243
4244 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4245
4246         * ListViewItem.cs: When invalidating, add some extra space to bounds,
4247         since focus rectangle and selection can add some space and need to
4248         take into account those small offsets - specially in Details view.
4249         * ListView.cs: Instead of invalidate using item Bounds directly, call
4250         item.Invalidate, to have the code centralized.
4251         Fixes focused/selection garbage when selecting and deselecting items
4252         that are close.
4253
4254 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4255
4256         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
4257         mode we can check whether we have to force a Layout or not, and can
4258         cache based on this, instead of avoiding caching all the the time. Do
4259         this check in GetBounds and TextBounds.
4260         Fixes selection in Details view.
4261
4262 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4263
4264         * ListView.cs: Make HeaderControl internal, thus the theme engine can
4265         get its *real* height instead of trying to infere it.
4266         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
4267         get the position of them, since it's in general a bad idea in general,
4268         and because we can't do that in virtual mode. Instead get the first
4269         visible item as well as item height, and draw them.
4270         Fixes #400390.
4271
4272 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
4273
4274         * ToolStripSplitButton.cs: We can't add in extra width if
4275         the button is not AutoSize.  [Fixes bug #401279]
4276
4277 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
4278
4279         * PaddingConverter.cs: 
4280          - Implement conversion to InstanceDescriptor
4281          - Handle "All" in CreateInstance by using the supplied 
4282          ITypeDescriptorContext.
4283          [Fixes bugs #396076 and #396078]
4284
4285          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
4286          Code contributed under MIT/X11 license.
4287
4288 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
4289
4290         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
4291         ButtonBase.cs:
4292         Add Category attributes.
4293         Code is contributed under the MIT/X11 license.
4294
4295 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
4296
4297         * Form.cs: 
4298          - Fix a NRE when unparenting a form.
4299          - Do not recreate or destroy a parented form when 
4300         unparenting. 
4301
4302 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4303
4304         * TextBox.cs: Implement basic support for AutComplete with custom
4305         sources.
4306
4307 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
4308
4309         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
4310         DropDownButtonBounds should be from the origin of the button, not the
4311         ToolStrip.  [Fixes bug #401279]
4312
4313 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
4314
4315         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
4316           running gtk_init_check.  This prevents GAIL from loading
4317           unnecessarily, which was breaking UIA support.  Initial fix for bug
4318           #375987.
4319         * Application.cs: Add UIA support to Winforms.  New static constructor
4320           uses reflection to initialize UIAutomationWinforms assembly.  Added
4321           PreRun event so UIA can initialize before the mainloop starts, and
4322           FormAdded event so UIA can provide a11y support for new Forms in an
4323           Application.
4324
4325 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
4326
4327         * DataGridView.cs: When binding to a dataset, subscribe to table
4328         and column change events.  Unsubscribe to these when we clear bindings.
4329         [Fixes bug #399601]
4330
4331 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
4332
4333         [DataGrid drawing refactory]
4334
4335         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
4336
4337         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
4338         must be handle by Theme, now it call DataGridPaintColumnHeader.
4339
4340         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
4341         test cases must be also fixed because it checks for wrong size.
4342
4343         * ThemeWin32Classic.cs: 
4344                 - Draw the bottom line of grid caption.
4345                 - Prevent to draw caption text when it is empty.
4346                 - Use CPDrawBorder3D for 3D efects to simplify code.
4347                 - Uses 3D (when not flat) to paint corner shared between row and column
4348                 header.
4349                 - Fix header drawing issues on win32, now borders are drawing.
4350                 - Fix column header paint issues to mimic win32.
4351                 - Adjust header drawing for last column, like first one it must be draw
4352                 different.
4353                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
4354                 not an character.
4355                 - DataGridPaintColumnHeader created to draw column headers, it also
4356                 paint stuff right on Win32.
4357                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
4358                 class.
4359
4360         * Theme.cs: 
4361                 - DataGridPaintRowHeaderStar method added.
4362                 - DataGridPaintColumnHeader method added.
4363
4364 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
4365
4366         * Control.cs: Don't reset to Dock style layout if DockStyle is
4367         set to none.  [Fixes bug #399316]
4368
4369 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
4370
4371         * Win32DnD.cs: Fix the check for control not equal null.
4372         Fixes bug #341420 and #381886. 
4373
4374 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
4375
4376         * DataGridViewRowCollection.cs: Update the indexes of rows after
4377         one has been removed.
4378         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
4379         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
4380         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
4381         rows for the Rows collection, or deleting rows from the bound DataSet.
4382
4383 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
4384
4385         * DataGridView.cs: Listen to a DataSet's changed event even
4386         when autogeneratecolumns is false.  Refactor the changed event's
4387         add row code to use the same as the existing add row code.
4388         [Fixes bug #399601]
4389
4390 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4391
4392         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
4393         much any time the caret moves and there is text, not just when
4394         the selection changes as one would think.
4395         * RichTextBox.cs: Override RaiseSelectionChanged and fire
4396         SelectionChanged.
4397         [Fixes bug #397271]
4398
4399 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4400
4401         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
4402         instead of trying to duplicate the code.
4403         * ListBox.cs: Make method internal so we can send keyboard events.
4404         [Fixes bug #398344]
4405         
4406 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4407
4408         * TextBoxBase.cs: When pasting and checking the max length,
4409         subtract the selected text length (the text we will be replacing) from
4410         the document length.
4411         * TextControl.cs: Ensure every character insertion is reflected in
4412         charcount, so max length will work properly.
4413         [Fixes bug #398605]
4414
4415 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4416
4417         * ListBox.cs: Ensure scrollbars are updated when a single
4418         column listbox with an already set top-index is created.
4419         [Fixes bug #398342]
4420
4421 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4422
4423         * FontDialog.cs: Typing in the font/style textboxes should search
4424         the list boxes case-insensitively.  [Fixes bug #398343]
4425
4426 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
4427
4428         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
4429         widths of icon and buttons instead of hard coded values.
4430
4431 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4432
4433         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
4434         as well as generating a SelectedIndexChanged event, just like .Net does
4435         -surprise-.
4436         Fixes #398345.
4437
4438 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4439
4440         * ListBox.cs: When navigating items visually, use FocusedItem as the
4441         reference point instead of SelectedIndex, since even in
4442         SelectionMode.None we need to support navigation, and in that case we
4443         just can't use SelectedIndex.
4444         Fixes part of #398345.
4445
4446 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
4447
4448         * Control.cs: Make a SetBoundsInternal that avoids the new
4449         SetBounds code.
4450         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
4451         SetBoundsInternal instead of SetBoundsCoreInternal.
4452
4453 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
4454
4455         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
4456         SetBounds for the scrollbars.
4457
4458 2008-06-10  Andreia Gaita <avidigal@novell.com> 
4459
4460         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
4461           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
4462           OnMouseMove, OnMouseOver, OnMouseUp
4463         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
4464           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
4465         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
4466           to the WebControl object to pass to new collection objects
4467         * HtmlHistory.cs: Implement support for individual window histories.
4468         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
4469           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
4470           GotFocus, LostFocus, OnLoad, OnUnload
4471         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
4472           ContextMenu
4473         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
4474           security level changes and context menu event support.
4475
4476 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4477
4478         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
4479         as happens with Esc, patch my Andy Hume.
4480         Fixes #396294.
4481
4482 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4483
4484         * MdiWindowManager.cs: DrawMaximizedButtons now uses
4485         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
4486         * Theme.cs: Made MenuButtonSize platform dependent. Added
4487         ManagedWindowButtonSize.
4488         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
4489         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
4490
4491 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4492
4493         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
4494         Added support for rendering with VisualStyles.
4495
4496 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4497
4498         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4499         support for rendering the border with VisualStyles.
4500
4501 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4502
4503         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
4504         the icon is not shown.
4505         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
4506         its own logic.
4507
4508 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4509
4510         * InternalWindowManager.cs: Draw minimized windows even if they don't have
4511         borders.
4512
4513 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4514
4515         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
4516
4517 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4518
4519         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
4520         [Fixes bug #397943]
4521
4522 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4523
4524         * ComboBox.cs: When snaping height -because of IntegralHeight set to
4525         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
4526         if the requested height leaves the listbox area with *less* than the
4527         required are to see one item. We were setting it to PreferredHeight
4528         even for values matching the height for a single item.
4529         Fixes #396297.
4530
4531 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4532
4533         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
4534
4535 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4536
4537         * DataGridViewCell.cs: Use property instead of field.
4538
4539 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4540
4541         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
4542         null checks.
4543
4544 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4545
4546         * Theme.cs: Added #region around the managed window code. Made the managed
4547         window methods abstract.
4548         * ThemeWin32Classic.cs: Added #region around the managed window code.
4549
4550 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4551
4552         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
4553         if it has borders.
4554         * ThemeWin32Classic.cs: Removed HasBorders checks in
4555         DrawManagedWindowDecorations.
4556
4557 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4558
4559         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4560         Extracted ManagedWindowGetTitleBarIconArea.
4561
4562 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4563
4564         * DataGridViewCellStyle.cs: Don't clone the font.
4565
4566 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4567
4568         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
4569
4570 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4571
4572         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
4573         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
4574         in 64 bit machines.
4575
4576 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4577
4578         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
4579         Use Format/FormatProvider before trying converters.
4580         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
4581         are 'set'.  Change constructor to not use ApplyStyle since it wants
4582         everything applied.  Clone the Font.
4583         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
4584         ApplyStyle the rest.
4585
4586 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4587
4588         * ListView.cs: We need to calculate the scrollbars even if the handle
4589         hasn't been created - this is needed when methods using scrollbars
4590         info, such EnsureVisible, are called before control has been created.
4591         Fixes #397272.
4592
4593 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
4594
4595         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
4596         only if the elements are defined. 
4597
4598 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4599
4600         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
4601         section. Also, when setting bounds, snap height as well as save the
4602         requested height if Dock has any value affecting the height: Left,
4603         Right and Bottom - important if using IntegralHeight as true.
4604
4605 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4606
4607         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
4608         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
4609         instead of doing that only in our SetBoundsCore override, since the 
4610         bounds cached can be the same as saved one and we could not get the
4611         new height applied.
4612         Fixes #396297.
4613
4614 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4615
4616         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
4617         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
4618         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
4619         ToolWindowCaptionButtonSize.
4620         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
4621
4622 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4623
4624         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
4625         hard coded values.
4626         * Theme.cs: Made DoubleClickTime plaform dependent.
4627
4628 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4629
4630         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
4631         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4632         ToolWindowCaptionHeight.
4633
4634 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4635
4636         * InternalWindowManager.cs: The adjustment to ensure positive client area
4637         sizes is now platform dependent (disabled on Windows).
4638         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4639         RequiresPositiveClientAreaSize.
4640
4641 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4642
4643         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
4644
4645 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4646
4647         * InternalWindowManager.cs: Changed IconicSize to use
4648         SystemInformation.MinimizedWindowSize.
4649         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
4650         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
4651
4652 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4653
4654         * ComboBox.cs: If the combobox is anchored both on top and bottom,
4655         adjust height if IntegralHeight is true when calling SetBoundsCore (as
4656         likely the height was modified even if Height wasn't specified in
4657         BoundsSpecified parameter).
4658         Fixes part of #396297.
4659
4660 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
4661
4662         * InternalWindowsManager.cs: Changed minimum window size while resizing to
4663         SystemInformation.MinWindowTrackSize.
4664         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
4665         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
4666
4667 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4668
4669         * MenuItem.cs: Fixed Dispose.
4670
4671 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4672
4673         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
4674         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
4675         EnteredHeaderCell, PressedHeaderCell: Added.
4676         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
4677         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
4678         theme a chance to override default painting.
4679         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
4680         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
4681         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
4682         ListView and DataGridView header rendering.
4683         
4684 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4685
4686         * RichTextBox.cs: GetPositionFromCharIndex should return the 
4687         visual position of the character relative to the viewport.
4688         [Fixes part of bug #396664]
4689
4690 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4691
4692         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
4693         and not just for the existance of an UITypeEditor. In some cases 
4694         there is an editor associated just to do PaintValue, but which 
4695         doesn't actually support editing.
4696         [Fixes bug #396632]
4697
4698 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4699
4700         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
4701         if needed, instead of 0 - this should help us in the corner case where
4702         we have more than one item but we are only partially showing 1 item.
4703         Fixes part of #374713.
4704
4705 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4706
4707         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
4708         control, return immediately if the any parent control's handle hasn't
4709         been created or isn't visible, as well as avoiding creating the parent
4710         Form if the handle hasn't been previously created.
4711         Fixes tests.
4712
4713 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4714
4715         * TableLayoutPanel.cs: Use border sizes when calculating the
4716         panel's preferred size.  [Fixes part of bug #396433]
4717
4718 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4719
4720         * SplitContainer.cs:
4721          - Fix SplitterDistance to update only if needed. 
4722          - Make it force min and max validation.
4723          - Handle properly mouse moves outside the resizeable area.
4724          [Fixes bug #396232]
4725
4726 2008-06-02  Andreia Gaita <avidigal@novell.com> 
4727
4728         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
4729           (which also suppresses all popup dialogs). Throw NotSupported
4730           exceptions for activex getters/setters.
4731         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
4732           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
4733           StatusText, Version, GoSearch
4734         * HtmlDocument.cs: Add DocType support
4735
4736 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
4737
4738         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
4739         [Fixes bug 396124]
4740
4741 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4742
4743         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
4744
4745 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4746
4747         * TableLayoutPanel.cs: When calculating preferred size, use the
4748         actual number of columns and rows, not what the user set them to.
4749         [Fixes bug #396141]
4750
4751 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
4752
4753         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
4754         394311.
4755
4756 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4757
4758         * XplatUIX11.cs: When detecting areas obscured in a control by other
4759         toplevel windows while scrolling, return if the control hasn't a 
4760         container form.
4761         Fixes some tests.
4762
4763 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4764
4765         * XplatUIX11.cs: Properly detect the visible area of a control being
4766         scrolled (obscured by other winforms controls and any X toplevel
4767         windows), to mark as invalid the requested area to be scrolled that
4768         isn't visible and thus can't be copied.
4769         Fixes #324513.
4770
4771 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4772
4773         * ListBox.cs: Compute the precise amount to vertically scroll when
4774         using DrawMode.OwnerDrawVariable.
4775         Patch by jkeymer (j.keymer@gmx.net).
4776
4777 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4778
4779         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
4780         to avoid setting an invalid value for the verticall scrollbar 
4781         when navigating items. And, duh, also remove my silly debug messages
4782         from previous commits.
4783         Fixes #374713.
4784
4785 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
4786
4787         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
4788         make it MS compatible.
4789
4790 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
4791
4792         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
4793          - Allow the editing of entries even if their parent is read-only.
4794          - Do not render expandable properties read-only.
4795          - Refactor expansion checks form PropertyGrid into PropertyGrid.
4796
4797 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
4798
4799         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4800         support for the hover style.
4801
4802 2008-05-29  Andreia Gaita <avidigal@novell.com> 
4803
4804         * ContainerControl.cs: Check for null dead-end when traversing the tree
4805           of parent controls.
4806         
4807           [Fixes #394332, patch by Ernesto Carrea]
4808
4809 2008-05-29  Geoff Norton  <gnorton@novell.com>
4810
4811         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
4812         constant that it is.  Fixes #393981
4813
4814 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
4815
4816         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
4817         that the user probably doesn't want to set this.
4818
4819 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
4820
4821         * ThemeWin32Classic.cs: Don't let the text size be bigger than
4822         the control size for CheckBox/RadioBox.
4823         [Fixes part of bug #394645]
4824
4825 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4826
4827         * PropertyGrid.cs: Update the state of the sorting buttons in 
4828         the toolbar if PropertySort is set programatically.
4829
4830 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4831
4832         * GridItemCollection.cs: Add multiple items with conflicting names 
4833         support and also preserve name ordering.
4834         [Fixes #395345]
4835
4836 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
4837
4838         * GridItemCollection.cs: Revert my multiple items with same 
4839         name patch.
4840
4841 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4842
4843         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
4844         or middle ones.
4845         Fixes part of #393908.
4846
4847 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
4848
4849         * ToolStripDrowDown.cs: When using the Show () methods that have a
4850         Control parameter, set the menu owner to that Control.
4851         [Fixes bug #394345]
4852
4853 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
4854
4855         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
4856         [Fixes bug #362756]
4857
4858 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4859
4860         * GridItemCollection.cs: Refactor to support multiple items with the 
4861         same name.
4862         [Fixes bug #394314]
4863
4864 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
4865
4866         * Control.cs: The 2.0 check for illegal cross thread calls in 
4867         Control.Handle were throwing an exception when we were getting
4868         the Handle in order to invoke correctly.  Created a private
4869         version that does not contain this check.
4870         [Fixes bug #394531]
4871
4872 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4873
4874         * PropertyGrid.cs: Respect DefaultTabType.
4875
4876 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4877
4878         * ListView.cs: SPACE selects an item.
4879         [Fixes bug #393023]
4880
4881 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
4882
4883         * ListView.cs: Reset the search string whenever the items are 
4884         modified.
4885         [Fixes bug #393020]
4886
4887 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4888
4889         * ListControl.cs: For the first added item PositionChanged is fired
4890         _before_ ItemChanged, which leave us in a temporary invalid state - so
4891         we need to set the selected index from ItemChanged handler *if* we
4892         know that the first item has just been added *and* the items have been
4893         actually added to the ListControl.
4894         Fixes #369048.
4895
4896 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4897
4898         * TabControl.cs: Only clicks with the left button should be
4899         handled.
4900         Fixes #393908.
4901
4902 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4903
4904         * ComboBox.cs: 
4905         * FIleDialog.cs:
4906         * TextBox.cs: Expose an internal method in TextBox to restore the
4907         original context menu, and call it from ComboBox to re-use it in the
4908         combobox containing the file name in FileDialog.cs.
4909         Fixes part of #393775.
4910
4911 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
4912
4913         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
4914         style.
4915
4916 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
4917
4918         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
4919         down button style.
4920
4921 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4922
4923         * ComboBox.cs: Minor correction to previous patch: PageDown should
4924         also *try* to move by one item if the computed offset is negative,
4925         just like the PageUp case.
4926
4927 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4928
4929         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
4930         should be done for at least 1 item, and not stay at the same item.
4931         Fixes part of #374713.
4932
4933 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
4934
4935         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
4936         directories.  [Fixes bug #393931]
4937
4938 2008-05-22  Andreia Gaita <avidigal@novell.com> 
4939
4940         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
4941           Don't fire events until the initial about:blank page has finished
4942           loading. Clean up events.
4943
4944 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
4945
4946         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
4947           FocusIn() too. This should fix the issue on switching
4948           scim keyboards.
4949
4950 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
4951
4952         * X11Keyboard.cs : set XIM font size to somewhat reasonable
4953           number (ideally the input textbox size, but that could be
4954           too messy).
4955
4956 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
4957
4958         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
4959         the ToolStripItem's TextChanged.  [Fixes bug #393597]
4960
4961 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4962
4963         * TabControl.cs: When invalidating in SelectedIndex and we need to
4964         inflate to take into account the border of the tabs, make sure that
4965         the invalidated rect doesn't overflow the control bounds, since that
4966         would avoid updating at all.
4967
4968 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4969
4970         * TabControl.cs: Don't substract scroller width from the row width,
4971         since we need to take into account the total width of the control when
4972         calculating the position of the tabs. This avoids showing scroller
4973         when it is actually not needed.
4974         Fixes part of #322325.
4975
4976 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4977
4978         * ThemeVisualStyles.cs: Added support for TextBoxBase.
4979
4980 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
4981
4982         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4983         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
4984
4985 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
4986
4987         * DataGridView.cs: Only paint the top left header cell if there
4988         are columns.
4989
4990 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
4991
4992         * DataGridView.cs: When binding to a BindingSource, get the underlying
4993         list to bind to.  [Fixes bug #345483]
4994
4995 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
4996
4997         * DataGridView.cs: Do not bind to collection properties.
4998         [Fixes bug #337470]
4999
5000 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5001
5002         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
5003
5004 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5005
5006         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
5007         thumb style.
5008
5009 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5010
5011         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
5012
5013 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5014
5015         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
5016         background.
5017
5018 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5019
5020         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
5021
5022 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5023
5024         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
5025         checked styles.
5026
5027 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5028
5029         * TabControl.cs: Extended to handle the hot style.
5030
5031 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5032
5033         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
5034         Extended UpDownBase code to handle hot and disabled styles.
5035
5036 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5037
5038         * DataGridView.cs: Handle databinding to generic list type things.
5039         [Fixes bug #325239]
5040
5041 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5042
5043         * DataGridViewCellCollection.cs: Add a method to find the cell
5044         with the given DataPropertyName.
5045         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
5046         * DataGridViewColumnCollection.cs: Add a method to clear all
5047         autogenerated columns.
5048         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
5049         columns.
5050         [Fixes bug #348082]
5051
5052 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5053
5054         * DataGridView.cs: Don't try to update the RowTemplate with
5055         a null CellTemplate.
5056
5057 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5058
5059         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
5060         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
5061         * DataGridView.cs: Lots of fixes/enhancements to databinding to
5062         a DataSet.
5063
5064 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5065
5066         * Control.cs: Remove invalidating implicit child controls when
5067         control is invalidated.  It was causing too many redraws on
5068         controls with implicit scrollbars.
5069         * ListView.cs: Listen to the Invalidated event and invalidate
5070         child controls.
5071
5072 2008-05-20  Andreia Gaita <avidigal@novell.com> 
5073
5074         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
5075         * HtmlDocument.cs: Check for nulls
5076
5077 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5078
5079         * Control.cs: In ControlCollection.RemoveInternal, remove the
5080         internal control before calling PerformLayout and OnControlRemoved,
5081         which was leaving us in an invalid state and causing a X error (bad
5082         match). Observe that Remove () call has the same order.
5083         Fixes an X error changing ComboBoxStyle.DropDownStyle.
5084
5085 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5086
5087         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
5088         being fired if ControlStyles.UserPaint style is activated.
5089         Fixes #371905.
5090
5091 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5092
5093         * GridEntry.cs: Don't be so strict when setting the value - 
5094         do not check if what we set is what we get.
5095         [Fixes bug #389245]
5096
5097 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5098
5099         * XplatUIX11.cs: If there are no timers timeout should be 0
5100         [Fixes bug #363522]
5101
5102 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5103
5104         * Control.cs: As a followup to invalidating implicit children when
5105         a control is invalidated, only invalidate them if they are in the
5106         clip rectangle.
5107
5108 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5109
5110         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
5111
5112 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5113
5114         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
5115
5116 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5117
5118         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
5119         * XplatUIWin32.cs: Made Win32DeleteObject public.
5120
5121 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5122
5123         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
5124         PropertyDescriptor.ShouldSerializeValue.
5125         [Fixes bug #391924]
5126
5127 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5128
5129         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
5130         in the classic theme.
5131
5132 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5133
5134         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
5135         ThumbPressed.
5136         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
5137         ScrollBarHasPressedThumbStyle.
5138
5139 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5140
5141         * TextRenderer.cs: Included some methods in the 1.1 profile.
5142
5143 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5144
5145         * Control.cs: When we make a control visible, it may have been
5146         previously visible and while it wasn't visible, the z-order of
5147         things may have been shuffled, so the control needs to have its
5148         z-order updated just in case.  [Fixes bug #391518]
5149
5150 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5151
5152         * ThemeVisualStyles.cs: Added support for GroupBox.
5153
5154 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5155
5156         * GroupBoxRenderer.cs: Included in the 1.1 profile.
5157
5158 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
5159
5160         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
5161           bug #389996; XSelectInput() behaved as mouse handler robber,
5162           so remove extra call to it.
5163
5164 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5165
5166         * Control.cs: Simplify ControlCollection.Contains method.
5167
5168 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5169
5170         * DataGridViewRow.cs: Implement GetPreferredSize.
5171
5172 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5173
5174         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
5175
5176 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5177
5178         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
5179         painting and edit control fixes.
5180
5181 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5182
5183         * DataGridView.cs, DataGridViewCell.cs: Work around some external
5184         checks to make sure we are in an actual row/col for top left header cell.
5185         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
5186
5187 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5188
5189         * Control.cs: Use long instead of int when handling WParam from
5190         mousewheel scrolling.  Int was overflowing on Win64.
5191
5192 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5193
5194         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
5195         flow panel without scrolling first, and then calculate the 
5196         scrolling based on the new layout.  [Fixes bug #390149]
5197
5198 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5199
5200         * ListBox.cs: Invalidate after scrolling up when selected index
5201         changes.  [Fixes bug #390151]
5202
5203 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5204
5205         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
5206         set, default height to 150. I tried first with DefaultSize, but this
5207         is not generating a SetBoundsCore call before handle creation time, so
5208         we can take it into account. This is just what .net does.
5209
5210 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5211
5212         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
5213         as it broke some stuff.  Calberto is filing a bug for eno to
5214         work with.
5215
5216 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5217
5218         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
5219         to 0 is the current value is -1, and if style is not Simple, just
5220         return, like .net does.
5221         Fixes part of #374713.
5222
5223 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5224
5225         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
5226         progress bar stuffs, use doubles instead of ints to prevent
5227         overflow.  [Fixes bug #389798]
5228
5229 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5230
5231         * XplatUIX11.cs, X11Keyboard.cs :
5232           Significant refactoring on XIM support. Now IM engine UI
5233           should show up, at mostly-correct preedit position.
5234           - Eliminated use of FocusWindow, as it is never mapped
5235             and hence blocks correct preedit position. XIC is now
5236             created per window, and it must be destroyed too when
5237             the window is destroyed.
5238           - WM_QUIT messages should not be filtered even when hwnd
5239             is zombie. Filtering it could cause endless loop.
5240           - Preedit position must move only when the window is alive.
5241           - Make it IDisposable and make sure to release XIM/XICs.
5242
5243 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5244
5245         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
5246           XplatUIX11.cs, XplatUIWin32.cs :
5247           fix for bug #325033 and #387693;
5248           - WM_QUIT should not be sent when no running application
5249             exists.
5250           - SetTimer/KillTimer (especially on win32) should be
5251             invoked for the window that the timer is/will_be attached.
5252           - There could be unattached timers to a window when it's
5253             started. For those timers, hold pending timers and when
5254             a window is mapped, attach them to it.
5255           - WaitForHwndMessage() could run into loop when
5256             WM_SHOWWINDOW is handled before this method is called.
5257             So, strictly check wm_showwindow state.
5258           - Tick handler should not be invoked while one Tick handler
5259             call is still running (introduced Busy state).
5260
5261 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5262
5263         * WebBrowserBase.cs: Override Internal alternative methods for
5264           SetBoundsCore and OnResize instead of the protected ones.
5265         * Control.cs: Move SetBoundsCore and OnResize implementations to
5266           SetBoundsCoreInternal and OnResizeInternal, so they can be
5267           overriden internally (WebBrowserBase needs to catch them but can't
5268           override the protected methods without api compat problems)
5269
5270 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5271
5272         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
5273
5274 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5275
5276         * Binding.cs:
5277         * ListView.cs: Remove debug messages.
5278
5279 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5280
5281         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
5282         area is empty. Also calculate scrollbars in Simple mode based in area
5283         height and total number of items, not in MaxDropDownItems.
5284         Fixes part of #371991.
5285
5286 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5287
5288         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
5289
5290 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5291
5292         * BindingSource.cs: GetListSortDescription is not public.
5293
5294 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5295
5296         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
5297
5298 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5299
5300         * HtmlElement.cs: Fix parameter names to match MS.
5301         * HtmlWindowCollection.cs: Should not be sealed.
5302
5303 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5304
5305         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
5306         button, because the thumb button will not get drawn if the scrollbar
5307         is disabled.  [Fixes bug #389262]
5308
5309 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5310
5311         * ListBox.cs: Handle End key for multi-column listboxen.
5312         [Fixes bug #389266]
5313
5314 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5315
5316         * ListBox.cs: Fix algorithm to determine which column our item is in.
5317         [Fixes bug #389265]
5318
5319 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5320
5321         * ListBox.cs: Invalidate when the listbox is resized.
5322         [Fixes bug #389256]
5323
5324 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5325
5326         * ListBox.cs: There is always at least one row in the ListBox (if
5327         we are doing these calculations.)  [Fixes bug #389253]
5328
5329 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5330
5331         * ListBox.cs: There is always at least one column in the ListBox.
5332         [Fixes bug #389250]
5333
5334 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5335
5336         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
5337         ensure in Simple mode that the height is exactly the requested one.
5338         Also add the ComboBoxListControl to the controls collection in Simple
5339         mode even if handle hasn't been created.
5340         Fixes part of #371991.
5341
5342 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5343
5344         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
5345         our ComboBox owner instead of giving it back to the previous control (
5346         as done in other controls). Also remove the empty override of Select
5347         method, since we want to be selected *and* give focus to our owner.
5348         This should let the user do keys-navigation in Simple mode. 
5349
5350 2008-05-10  Geoff Norton  <gnorton@novell.com>
5351
5352         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
5353         problems with rapid scrolling of treeviews. Fixes #381084
5354
5355 2008-05-10  Geoff Norton  <gnorton@novell.com>
5356
5357         * XplatUICarbon.cs: Deactivate the active window before
5358         activating the desired window.  Completes fixing #386504
5359
5360 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5361
5362         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
5363         SmallChange to the item size width plus the padding, to match .net.
5364
5365 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5366
5367         * FileDialog.cs: Apply the custom filter typed by the user in the file
5368         name combobox as much as possible while navigating in the file dialog.
5369         Fixes #385261.
5370
5371 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5372
5373         * Binding.cs: Actually use NullValue if the retrieved value of
5374         data source is null or DBNull. Makes a test pass.
5375
5376 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
5377
5378         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
5379         * MimeIcon.cs: Provide a way to get icons from resources.
5380
5381 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5382
5383         * Binding.cs: When the value retrieved from the control to be assigned
5384         to the data source is null, actually use the 2.0 DataSourceNullValue
5385         value. Make pass a data binding test.
5386
5387 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5388
5389         * Control.cs: We need to invalidate implicit children even when
5390         invalidate is called with invalidatechildren = false.  (Implicit
5391         children are really part of the parent.)
5392         * ListView.cs: Double-buffer internal child controls for less
5393         flicker.
5394         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
5395         owner ListView subitems for greatly increased performance.
5396         [Fixes bug #388477]
5397
5398 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
5399
5400         * FileDialog.cs: When the user types a wildcard character in the
5401         filename combobox, update the contents of the folder using the text as
5402         a filter.
5403         Fixes part of #385261.
5404
5405 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5406
5407         * ListBox.cs: Various fixes for MultiColumn listboxen.
5408         [Fixes bug #388114]
5409
5410 2008-05-08  Andreia Gaita <avidigal@novell.com> 
5411
5412         * HtmlElement.cs: Implement Style property
5413
5414 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5415
5416         * ListBox.cs: Respect checkboxes when measuring item size.
5417         * ThemeWin32Classis.cs: When drawing list items, don't draw
5418         text outside of the item's bounds to prevent overlapping.
5419         (.Net actually overlaps, but that's just silly.)
5420         [Fixes bug #388117]
5421
5422 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
5423
5424         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
5425         Gert Driesen. Fixes bug #324830. 
5426
5427 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
5428
5429         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
5430         method implemented.
5431
5432 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5433
5434         * BindingSource.cs: When calling IsSynchronized, return the value of
5435         the related IList list.
5436
5437 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5438
5439         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
5440         make a test pass.
5441
5442 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5443
5444         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
5445         navigation to scroll the grid if the current cell is not visible.
5446
5447 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5448
5449         * HtmlElement.cs: Implement TabIndex
5450
5451 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5452
5453         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
5454         properties, even when there are no items.
5455         [Fixes bug #387611]
5456
5457 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
5458
5459         * NativeWindow.cs: Add support for multiple handles per window.
5460         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
5461         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
5462         directly - use FromHandle instead.
5463         [Fixes bug #374660]
5464
5465 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5466
5467         * HtmlElement.cs: Implement InnerHTML setter
5468
5469 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5470
5471         * HtmlDocument.cs: Implement Focused
5472
5473 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5474
5475         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
5476         methods, as well as add messages to the exceptions.
5477
5478 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5479
5480         * BindingSource.cs: Setting DataSource should only reset DataMember if
5481         the previous value was null (make pass a not working test).
5482
5483 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5484
5485         * BindingSource.cs: When EndInit call is postponed and is called until
5486         DataSource.EndInit is called, remove the handler for data source.
5487
5488 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5489
5490         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
5491
5492 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5493
5494         * ToolStripManager.cs: Store references to toolstrips as
5495         weak references so they do not prevent forms from getting collected.
5496         [Fixes bug #386483]
5497
5498 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5499
5500         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
5501         on .Net.  So do the same thing in WndProc.
5502
5503 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5504
5505         * TrackBar.cs: Commit patch from Andy Hume that corrects
5506         the clickable areas to better match .Net.
5507         [Fixes bug #387074]
5508
5509 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5510
5511         * TrackBar.cs: Commit patch from Andy Hume that adds the
5512         ResizeRedraw control flag so the track bar repaints itself
5513         when it is resized.  [Fixes bug #387072]
5514
5515 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5516
5517         * TrackBar.cs: Commit patch from Andy Hume that adds better
5518         support for keyboard navigation when the TrackBar is vertical.
5519         [Fixes bug #387071]
5520
5521 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5522
5523         * BindingSource.cs: Implement ISupportInitializeNotification support.
5524
5525 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5526
5527         * ThemeVisualStyles.cs: Added support for ToolBar.
5528
5529 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5530
5531         * ToolBar.cs: Made the Vertical property internal.
5532
5533 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5534
5535         * ThemeVisualStyles.cs: Added support for TrackBar.
5536
5537 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5538
5539         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
5540         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
5541         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
5542         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
5543         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
5544         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
5545
5546 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5547
5548         * ThemeVisualStyles.cs: Added support for UpDownBase.
5549
5550 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5551
5552         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
5553         Extracted Theme.UpDownBaseDrawButton.
5554
5555 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5556
5557         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
5558         removed from the static toolstrips collection in ToolStripManager
5559         when they are disposed.  Provides a workaround for bug #386483.
5560
5561 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
5562
5563         * GridEntry.cs: Read-only properties with Editor with 
5564         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
5565         [Fixes bug #384184]
5566
5567 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5568
5569         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
5570         the menu key and there are no items on the menu.
5571         [Fixes bug #386644]
5572
5573 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
5574
5575         * Control.cs: Avoid calling ToString on a string.
5576         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
5577         * GroupBox.cs: In FlatStyle property throw, not just create, the 
5578         exception. Avoid calling ToString on a string.
5579         * ProgressBar.cs: Avoid calling ToString on a string. 
5580         * ScrollBar.cs: Avoid calling ToString on a string. 
5581         [All issues were found using Gendarme]
5582
5583 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5584
5585         * NotifyIcon.cs: Prevent click events to be trigger after double click 
5586         events. Fixes remaining issues of bug #324832.
5587
5588 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5589
5590         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
5591         to mimic win32 behavior. Partially fixes bug #324832.
5592
5593 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5594
5595         * BindingSource.cs: Implement Find methods.
5596
5597 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5598
5599         * BindingSource.cs: Implement Sort, ApplySort overloads, and
5600         RemoveSort methods.
5601
5602 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5603
5604         * ListBindingHelper.cs: When calling GetListItemProperties and the
5605         passed object is ITypedList, return the result of
5606         ITypedList.GetItemProperties instead.
5607
5608 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5609
5610         * LinkLabel.cs: Set default value of name on constructor of Link class
5611         only for 2.0 profile.
5612
5613 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5614
5615         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
5616         Fixes remaining issues of bug #346154.
5617
5618 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5619
5620         * LinkLabel.cs: Set a default value for name on internal contructor of
5621         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
5622
5623 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5624
5625         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
5626         and refer all instances to owner.links. Partially fixes #346154.
5627
5628 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5629
5630         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
5631         length equal zero. Also called CreateLinkPieces in constructor. It fixes
5632         the LinkLabel test 'TestLinkArea'.
5633
5634 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5635
5636         * Form.cs: Remove menu before close form to prevent form to be not gaced.
5637         [Fixes #386460]
5638
5639 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5640
5641         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
5642         [Fixes #386463]
5643
5644 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5645
5646         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
5647         [Fixed bug #357004]
5648
5649 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5650
5651         * MenuAPI.cs: Remove unused ProcessCmdKey method.
5652
5653 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5654
5655         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
5656         [Fixes bug #375398]
5657
5658 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5659
5660         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
5661         of bug #367492.
5662
5663 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5664
5665         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
5666         sometimes we open a conext menu on mouse down of some controls and the mouse
5667         up is dispatched to menu and dont need to. It fix remaining issues of 
5668         #363711 and other problems related to menu mouse click events.
5669
5670 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5671
5672         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
5673         some var names to better fit changes, now we have month_menu and today_menu
5674         vars. Fixes bug #363711.
5675
5676 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5677
5678         * MonthCalendar.cs: Handle every right mouse click to open context menu,
5679         right now the default month menu but it will be change to have "Go to today"
5680         menu.
5681
5682 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5683
5684         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
5685
5686 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5687
5688         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
5689
5690 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5691
5692         * ThemeVisualStyles.cs: Added support for TreeView.
5693
5694 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5695
5696         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
5697         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
5698
5699 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5700
5701         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
5702
5703 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5704
5705         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
5706         Implement 2.0 SP1 stuffs.
5707
5708 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5709
5710         * FileDialog.cs: Implement 2.0 SP1 stuffs.
5711
5712 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5713
5714         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
5715         Implement CanEnableIme property. (2.0 SP1)
5716
5717 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5718
5719         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
5720         from the 2.0 API.
5721
5722 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5723
5724         * Control.cs: Provide an internal way for a control to override
5725         the setting of Height.
5726         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
5727         set height using new method.
5728
5729 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5730
5731         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
5732
5733 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5734
5735         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5736         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
5737
5738 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5739
5740         * ThemeVisualStyles.cs: Added support for StatusBar.
5741
5742 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5743
5744         * DataObject.cs: Add the other IDataObject interface.
5745
5746 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5747
5748         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
5749         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
5750
5751 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5752
5753         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
5754         * ListView.cs: Hide non-public API.
5755         * MaskedTextBox.cs: Remove extra attribute.
5756
5757 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5758
5759         * DataGridViewImageCell.cs: Use formatted value instead of value
5760         to calculate preferred size.
5761
5762 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5763
5764         * ListBox.cs: Move some initialization around so that selected_indices
5765         is not accessed before it is created.
5766
5767 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5768
5769         * InputLanguageCollection.cs: Implement the collection better.
5770         [Fixes bug #385506]
5771
5772 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5773
5774         * ToolStripDropDownItem.cs: Get the correct event object for
5775         DropDownItemClicked.
5776         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
5777         [Fixes bug #385475]
5778
5779 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
5780
5781         * DataGridViewRowCollection.cs: We don't currently support shared 
5782         rows.  Should fix test failures caused by previous commit.
5783
5784 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5785
5786         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
5787         datagridview gets set.  Only paint cells in visible columns.
5788         * DataGridViewCell.cs: Draw border after cell content.
5789         * DataGridView.cs: Invalidate after setting some properties.  Only
5790         use visible columns.  Fit hit test bug with areas in the col/row header
5791         area but not in a row or col.  Implement UpdateCell/Row methods.
5792
5793 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5794
5795         * DataGridViewElement.cs: Don't throw NIEX.
5796         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
5797         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
5798         * DataGridViewCheckBoxColumn.cs: Implement ToString.
5799         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
5800         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
5801         if the user filled in the formatting Value, use it.
5802
5803 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
5804
5805         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
5806         to a string.
5807
5808 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5809
5810         * BindingSource.cs: Some corrections to Filter property, as well as
5811         setting it for our list when resetting it.
5812
5813 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
5814
5815         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
5816         than the maximum.  Fixes reopened bug #384182.
5817
5818 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5819
5820         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
5821         Fixes remaining issues of #367490.
5822
5823 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5824
5825         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
5826         SystemInformation.WorkingArea to get max_screen value.
5827
5828 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5829
5830         * BindingSource.cs: Implement Filter and RemoveFilter.
5831
5832 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5833
5834         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
5835
5836 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5837
5838         * X11Dnd.cs: When trying to convert data and we know we started the
5839         dnd loop, don't try to use the cached data if the loop is not running,
5840         which means that the data has been resetted.
5841         Fixes #378191.
5842
5843 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5844
5845         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
5846         win32 behavior.
5847
5848 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5849
5850         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
5851         it to drawn off screen edge. Fixes bug #367490.
5852
5853 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5854
5855         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
5856         menu position to have only one assignment of Location var.
5857
5858 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
5859
5860         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
5861         for this patch. Fixes bug #384115.
5862
5863 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5864
5865         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
5866         the same.  If LargeChange is zero, set a minimum size for the scroll
5867         thumb grip.  [Fixes bug #384182]
5868
5869 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5870
5871         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
5872         [Fixes bug #384181]
5873
5874 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
5875
5876         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
5877
5878 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5879
5880         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
5881         patch from Ernesto).
5882
5883 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5884
5885         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
5886
5887 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5888
5889         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
5890
5891 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5892
5893         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
5894
5895 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
5896
5897         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
5898
5899 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
5900
5901         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
5902
5903 2008-04-27  Andreia Gaita <avidigal@novell.com> 
5904
5905         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
5906           supposed to return a reference to an mshtml interface, which we
5907           don't support).
5908         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
5909           reference to an mshtml interface, which we don't support). Code
5910           formatting cleanup.
5911         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
5912           DomDocument getter (it's supposed to return a reference to an
5913           mshtml interface, which we don't support). Code formatting cleanup.
5914
5915 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5916
5917         * ListView.cs: Ouch, forgot to commit.
5918
5919 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5920
5921         * ListView.cs: 
5922         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
5923
5924 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5925
5926         * ListView.cs: When calculating box selection for virtual mode, don't
5927         look for intersection with item's text, but item bounds, since that
5928         would mean read ListViewItem's text for _every_ item, and that's
5929         something we just can't do in virtual mode (items are only requested
5930         when drawn).
5931
5932 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
5933
5934         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
5935         partial support for managed windows (based on the patch from Ernesto).
5936
5937 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5938
5939         * ListView.cs: When doing a key search use FindItemWithText method
5940         instead of doing the search by ourselves, this way we avoid
5941         duplicating the code and also we handle the special case for virtual
5942         mode. To achieve that make our private overload of FindItemWithText
5943         internal and also have a 'roundtrip' parameter.
5944
5945 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5946
5947         * ListView.cs: When doing the layout don't request the
5948         ListViewItem instance if we are in virtual mode (since we can't request it
5949         until the item is actully drawn).
5950
5951 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5952
5953         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
5954         from Ernesto).
5955
5956 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5957
5958         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
5959         the patch from Ernesto).
5960
5961 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5962
5963         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
5964         * ThemeVisualStyles.cs: Added.
5965
5966 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5967
5968         * IDeviceContext.cs: Added a missing using.
5969
5970 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5971
5972         * ButtonBase.cs: Made IsDefault protected internal.
5973         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
5974
5975 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5976
5977         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
5978         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
5979         RadioButtonRenderer.cs: Included in the 1.1 profile.
5980         * IDeviceContext.cs: Added.
5981         * TextRenderer.cs: Included a member in the 1.1 profile.
5982
5983 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
5984
5985         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
5986
5987 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
5988
5989         * ErrorProvider.cs: Make the error icons come after the control
5990         they refer to.  It isn't the way the MS does it, but its better
5991         than what we were doing.  See bug #368587.
5992
5993 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
5994
5995         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
5996         from Eric Albright that lazy loads the input language as ensures
5997         everything gets properly initialized.  Fixes bug #373871.
5998
5999 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6000
6001         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
6002         implicit mnemonics.  [Fixes bug #383000]
6003
6004 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6005
6006         * X11Dnd.cs: When canceling the operation, automatically restore the
6007         default cursor - normally the default cursor is restored when the
6008         mouse buttons are released, but we should be able to restore it even
6009         if the buttons are still pressed (for example, when pressing ESC to
6010         cancel).
6011         Fixes #381894.
6012
6013 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6014
6015         * X11Dnd.cs: When starting a new drad and drop operation, set control
6016         field to null, just as the other fields, to avoid calling any
6017         operation on a previous control. Also, when calling DndLeave on a
6018         control, set it to null, thus we don't fire that event multiple times
6019         for that control.
6020         Fixes #209264.
6021
6022 2008-04-23  Geoff Norton  <gnorton@novell.com>
6023
6024         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
6025         the whole_window object.  Fixes #377084.
6026
6027 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6028
6029         * HtmlElement.cs: Implement RaiseEvent (event injection into the
6030           embedded browser)
6031
6032 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
6033
6034         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
6035
6036 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6037
6038         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
6039           invocation
6040
6041 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6042
6043         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
6044           attaching/detaching
6045
6046 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6047
6048         * X11Dnd.cs: When the drop was cancelled, or could just not be
6049         performed, return DragDropEffect.None always (match .net).
6050
6051 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6052
6053         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
6054
6055 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6056
6057         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
6058
6059 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6060
6061         * DataGridView.cs: Add support for error icon tool tips.
6062         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
6063         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
6064
6065 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
6066
6067         * X11Structs.cs: Add mouse button masks enum.
6068         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
6069         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
6070         form resize/move operation instead of for each step of it.
6071         [Fixes bug #346529 for the x11 backend]
6072
6073 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6074
6075         * DataGridView*: Implement support for drawing error icons.
6076
6077 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6078
6079         * TreeView.cs: Make vbar and hbar internal.
6080         * TreeNode.cs: If collapsing the node removes one of the TreeView's
6081         scrollbars, invalidate the whole thing.
6082         [Fixes bug #382001]
6083
6084 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6085
6086         * TreeView.cs: Calling Sort() sets Sorted = true.
6087         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
6088         if the nodes need to be sorted.
6089         [Fixes bug #382028]
6090
6091 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
6092
6093         * Form.cs: Fire SizeChanged for both when the form is minimized and 
6094         restored.
6095         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
6096         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
6097
6098 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6099
6100         * ComboBox.cs: If the combobox is disabled, draw a disabled
6101         background before painting anything else.
6102         [Fixes bug #381729]
6103
6104 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6105
6106         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
6107         forget to send a Leave event to the target window - just as .net does
6108         when cancelling dnd operations.
6109
6110 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6111
6112         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
6113         soon as possible - this happens when we send the drop message to the
6114         target window. This way we avoid firing any DragOver _after_ drop finished.
6115         Fixes #378179.
6116
6117 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6118
6119         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
6120         * Form.cs: Handle form minimization as a special state, where size doesn't 
6121         change, but we have to fire SizeChanged.
6122         [Fixes bug #325122 for the win32 and x11 backends]
6123
6124 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6125
6126         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
6127         if the handle is disabled.
6128         [Fixes bug #371751]
6129
6130 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6131
6132         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
6133         for forms with FormBorderStyle.None.
6134         [Fixes bug #349571]
6135
6136 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6137
6138         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
6139         WM_EXITSIZEMOVE.
6140         [Fixes bug #346529 for the X11 backend]
6141
6142 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6143
6144         * XplatUIX11.cs: 
6145           - Send a mouse Enter message after say dragging the mouse with a 
6146           button down and then release it in another client.
6147           - Reset the cursor to prevent X11 from remembering it and setting it 
6148           before the control gets WM_SETCURSOR.
6149           - Qeueue a mouse move after a mouse enter like win32.
6150           [Fixes bug #323234]
6151
6152 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6153
6154         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
6155         It's sent when the form gets moved, resized, closed.
6156         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
6157         [Fixes bug #359193 for X11]
6158
6159 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6160
6161         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
6162         the build.
6163
6164 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6165
6166         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
6167         group. Fixes the 1.1 build.
6168
6169 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6170
6171         * ListView.cs: Use display indexes for selection in Details view, as
6172         well as do the proper layout based on display indexes for that view
6173         too.
6174
6175 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6176
6177         * ListView.cs: Focused item information is now stored as a display
6178         index, and display indexes are used all over the place for selection,
6179         instead of ListViewItem.Index values, which doesn't give us enough
6180         information to modify the selection in groups mode, and was broken.
6181
6182 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
6183
6184         * Control.cs: Do not fire MouseDown if validation of the control has 
6185         failed.
6186         * Form.cs: Validate the form before closing.
6187         [Fixes bugs #330501 and #353310]
6188
6189 2008-04-18  Andreia Gaita <avidigal@novell.com> 
6190
6191         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
6192           CreateWebBrowserSiteBase implementations
6193         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
6194           Style and TabIndex setters
6195
6196 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6197
6198         * ListViewGroup.cs: When returning the actual item count, return the
6199         proper count for default group.
6200         Fix the tests.
6201
6202 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6203
6204         * ListView.cs:
6205         * ListViewGroup.cs: When calculating groups layout, get the actual
6206         number of items per group, since groups added to the group BUT not
6207         added to the ListView are just ignored, and can cause some nasty
6208         exceptions because of the lack of synchronization. Also for
6209         ListViewGroup don't use lazy initialization for items, since we 
6210         the common scenario is to use it always - and it helps us to  refactor
6211         and clean the .ctor overloads.
6212
6213 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6214
6215         * ListView.cs: When adding an item to a ListViewItemCollection
6216         belonging to a group (ListViewGroup.Items), don't generate a redraw if
6217         the added item hasn't beeen previously added to the ListView instance
6218         refered by the group, since it will be ignored. This should avoid some 
6219         really nasty flickering.
6220
6221 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6222
6223         * ListView.cs: When accessing an item in a specific display
6224         position, use the helper method GetItemAtDisplayIndex, instead of
6225         direct access to the reordered_items_indices array. When doing layout
6226         for groups set the correct Items index for the display position (since
6227         in groups mode items don't have the same position as in Items
6228         collection).
6229         * ListViewGroup.cs: Add a field to store the starting item number,
6230         which is later used when calculating the layout.
6231
6232         Fixes #360805.
6233
6234 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
6235
6236         * Application.cs: Fixed ProductVersion to fallback to the assembly
6237         version. Fixes regression for bug #325413.
6238
6239 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6240
6241         * ListView.cs: New helper method to retrieve an item in a _specific
6242         display_ position (the items can be displayed in a different order
6243         than one of Items collection).
6244         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
6245         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
6246         specific display position (again remember that items can be sorted
6247         different than Items).
6248
6249 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6250
6251         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
6252         list and update it when the collection changes.  We were recreating
6253         this several times per row paint and for every pixel the mouse moved
6254         across the grid.
6255         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
6256         changes.
6257
6258 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6259
6260         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
6261         list to use generics.
6262         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
6263         and remove unneccessay casts.
6264
6265 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6266
6267         * DataGridViewBand.cs: Add internal way to set displayed variable.
6268         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
6269         * DataGridView.cs: Make sure we always keep track of Displayed
6270         rows and columns, and only draw things that are displayed.
6271
6272 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
6273
6274         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
6275           whether the key events are filtered or not. Introduced
6276           PreFilter() process for this purpose. This fixes atokx3/iiimx
6277           shift state issue.
6278
6279 2008-04-16  Andreia Gaita <avidigal@novell.com> 
6280
6281         * HtmlHistory.cs: Implement Length property
6282
6283 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
6284
6285         * DataGridView.cs: Call EndEdit when a sort is performed so we take
6286         away the edit textbox.  Refactor to reuse column sort code.
6287
6288 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
6289
6290         * MenuAPI.cs: Remove the code that save and restore capture status of 
6291         grab_control, this fixes some Menu and Context menu bugs but maybe it can
6292         cause some others, I cant figure the possible problems of this patch but
6293         right now remove the code looks to be better than keep it. This patch fixes
6294         bugs #357638, #378721 and #379570.
6295
6296 2008-04-12  Andreia Gaita <avidigal@novell.com> 
6297
6298         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
6299         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
6300         add missing properties and event handlers.
6301         
6302 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
6303
6304         * ListBox.cs: Make sure the LargeChange we are setting is at least
6305         zero, to prevent an IOORE.  [Fixes bug #379531]
6306
6307 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
6308
6309         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
6310         in DropDownList mode, for each key-press select the next item 
6311         starting with that letter.
6312         For other modes, when no item selected, on arrow-up/-down and open 
6313         drop-down select the first item matching the text in the textbox.
6314
6315 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
6316
6317         * X11Keyboard.cs : Control.FromHandle() could return null
6318           in MoveCurrentCaretPos().
6319
6320 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6321
6322         * ListView.cs: When changing the size in VirtualMode, also Reset the
6323         selection.
6324         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
6325         changing selection info for VirtualMode.
6326         Fixes #372618.
6327
6328 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6329
6330         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
6331         view, don't use LineLimit for the first item - use NoWrap *always*
6332         instead, since ListView.LabelWrap is not used for this view.
6333         Fixes #378054.
6334
6335 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6336
6337         * Binding.cs: Call UpdateIsBinding when setting control - probably
6338         Binding is already usable and we don't need to wait to check the
6339         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
6340         Created, just like 2.0 does.
6341         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
6342
6343 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6344
6345         * Binding.cs: Just realized we don't need to have a handler for
6346         BindingContextChanged, since this info should be now consumed directly
6347         in the BindingManagerBase. And also, the manager.IsBindingSuspended
6348         state info is checked directly, instead of caching it.
6349
6350         * CurrencyManager.cs: IsSuspended should return always false if Count
6351         == 0.
6352
6353 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6354
6355         * Binding.cs: When calling PushData, return if manager.Count == 0,
6356         since we just don't have data to be read. Also, when setting the
6357         Control for binding, hook up some events to refresh the IsBinding
6358         state when BindingContext change or control gets created; use
6359         Control.IsHandleCreated instead of Control.Created check to set
6360         IsBinding state - we *actually* need to modify IsBinding when control
6361         is created, but we don't have any Created event, only HandleCreated.
6362         Fixes part of #349364.
6363
6364 2008-04-11  Geoff Norton  <gnorton@novell.com>
6365
6366         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
6367         warping a null Caret.
6368
6369 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6370
6371         * DataGridView.cs: Implement row/column autosizing methods. Implement
6372         autosorting.
6373         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
6374         * DataGridViewRowCollection.cs: Add an internal sorting method.
6375
6376 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6377
6378         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
6379         value in ListView drawing code.
6380
6381 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6382
6383         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
6384         is clicked.  Respect the user setting Cancel in FileOk.
6385
6386 2008-04-11  Geoff Norton  <gnorton@novell.com>
6387
6388         * ListView.cs: Avoid setting and resetting control Width/Heights and
6389         calculate the final value and set it once.  Prevents a feedback loop
6390         on the mac.
6391
6392 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6393
6394         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
6395         [Fixes bug #378869]
6396
6397 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
6398
6399         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
6400           Add some on-the-spot code, but it seems we don't need it.
6401
6402 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6403
6404         * Form.cs: Add method for DataGridView to trigger focus cues
6405         even when it handles the tab keypress.
6406
6407 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6408
6409         * DataGridView.cs: More keyboard handling, tab, esc.
6410         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
6411         when at the beginning or end of the text in the text box.
6412
6413 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6414
6415         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
6416
6417 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6418
6419         * DataGridView.cs: Some fixups for showing and adding the edit control.
6420         * DataGridViewButtonColumn.cs: Implement ToString.
6421         * DataGridViewCell.cs: Size and position the control simultaneously.
6422         * DataGridViewTextBoxCell.cs: Use base to position control.
6423
6424 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6425
6426         * DataGridViewCell.cs: Fix up some formatting and painting code.
6427         * DataGridViewImageCell.cs: Implement some NIEX methods.
6428
6429 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6430
6431         * ToolStripItemCollection.cs: What moving an item from one owner
6432         to another, remove from source owner before adding to destination.
6433         [Fixes bug #378109]
6434
6435 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6436
6437         * PictureBox.cs: Call Load when ImageLocation is set.
6438         [Fixes bug #378308]
6439
6440 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
6441
6442         * X11Keyboard.cs, XplatUIX11.cs :
6443           Implement over-the-spot mode (with some odd offsets).
6444           - set preedit position when caret is set.
6445           - Wrap XMoveResizeWindow() to move preedit position.
6446
6447 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6448
6449         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
6450         array lenght.
6451
6452 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6453
6454         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
6455         and ScanTableIndex public, it fix compilations errors when compiling
6456         WinForms to generate keyboard layout resources.
6457
6458 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6459
6460         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
6461         different element count than scan table. It prevents some errors in non
6462         standard keyboards.
6463
6464 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6465
6466         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
6467
6468 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6469
6470         * DataGridView.cs: Call OnContentClick.
6471         * DataGridViewCell.cs: Do a null check on ValueType instead
6472         of valueType.
6473         * DataGridViewCheckBoxCell.cs: Implement.
6474
6475 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6476
6477         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
6478
6479 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6480
6481         * X11Keyboard.cs : Check XGetIMValues() return value in
6482           case it does not return input styles in some environment.
6483
6484 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6485
6486         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
6487
6488 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6489
6490         * BindingContext.cs: Stub UpdateBinding method.
6491
6492 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
6493
6494         * X11Structs.cs : added couple of structs for XIM support.
6495         * X11Keyboard.cs :
6496           Release XIM in case it failed to create XIC. 
6497           Use consts for XNblah string.
6498           Add support for IM style customization and XIC creation
6499           for preedit-position and preedit-callback.
6500           Right now use MONO_WINFORMS_XIM_STYLE environment variable
6501           (list of: over-the-spot | on-the-spot | root). Only root
6502           mode works so far.
6503
6504           (redoing r99172 with fix.)
6505
6506 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6507
6508         * TreeView.cs: Center the checkbox a little better.
6509
6510 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6511
6512         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
6513         Apply very nice patch from Ernesto Carrea that simplifies our
6514         scrollbar drawing.  [From bug #376146]
6515
6516 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6517
6518         * TreeView.cs: Correct the location of the root node checkbox when
6519         ShowRootLines = false.  Don't draw the root lines for the root node
6520         when ShowRootLines = false.  [Fixes bug #377535]
6521
6522 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6523
6524         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
6525         Fixed line endings.
6526         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
6527         line endings.
6528         * MaskedTextBox.cs: Added missing attribute. Code formatting.
6529         * PageSetupDialog.cs: Added missing attribute. Code formatting.
6530         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
6531         * ImeMode.cs: Added missing field.
6532         * HtmlWindow.cs: Code formatting. Fixed line endings.
6533         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
6534         warnings.
6535         * HtmlHistory.cs: Code formatting. Fixed line endings.
6536         * HtmlDocument.cs: Code formatting. Fixed line endings.
6537         * ToolStripPanel.cs: Added missing IList implementation.
6538         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
6539
6540 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6541
6542         * BindingContext.cs: Changed argument names to fix corcompare errors.
6543         * DataGridView.cs: Removed extra explicit interface implementation
6544         of IDropTarget. Code formatting.
6545         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
6546         * ComboBox.cs: Changed argument names to fix corcompare errors.
6547         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
6548         errors.
6549         * GridColumnStylesCollection.cs: Changed argument names to fix
6550         corcompare errors. Removed extra tabs.
6551         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
6552         errors.
6553         * Control.cs: Changed argument names to fix corcompare errors. Code
6554         formatting. Removed extra explicit IList implementation.
6555         * TextBox.cs: Changed argument names to fix corcompare errors. Code
6556         formatting. Use string.Empty instead of "".
6557         * GridItemCollection.cs: Changed argument names to fix corcompare
6558         errors. Code formatting.
6559         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
6560         corcompare errors. Code formatting.
6561         * ImageList.cs: Changed argument names to fix corcompare errors.
6562         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
6563         * DataGridViewRowCollection.cs: Changed argument names to fix
6564         corcompare errors. Code formatting.
6565         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
6566         * DataGridViewSelectedCellCollection.cs: Changed argument names to
6567         fix corcompare errors. Code formatting.
6568         * DataGridViewComboBoxCell.cs: Changed argument names to fix
6569         corcompare errors. Code formatting.
6570         * LinkLabel.cs: Changed argument names to fix corcompare errors.
6571         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
6572         formatting.
6573         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
6574         Code formatting.
6575         * BindingSource.cs: Changed argument names to fix corcompare errors.
6576         Removed extra explicit interface implementations.
6577         * DataGridViewSelectedRowCollection.cs: Changed argument names to
6578         fix corcompare errors. Code formatting.
6579         * ToolStripItemCollection.cs: Removed extra explicit interface
6580         implementation of IList.ReadOnly.
6581         * DataGridViewColumnCollection.cs: Changed argument names to fix
6582         corcompare errors. Code formatting.
6583         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
6584         * ListView.cs:  Changed argument names to fix corcompare errors.
6585         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
6586         errors.
6587         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
6588         errors.
6589         * ListBindingHelper.cs: Changed argument names to fix corcompare
6590         errors.
6591         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
6592         fix corcompare errors. Code formatting.
6593         * ToolStripPanel.cs: Removed extra explicit implementation of
6594         IDropTarget interface.
6595         * ListBox.cs: Changed argument names to fix corcompare errors. Code
6596         formatting. Removed extra tabs and spaces.
6597         * DataGridViewCellCollection.cs: Changed argument names to fix
6598         corcompare errors.
6599         * Help.cs: Changed argument names to fix corcompare errors. Code
6600         formatting.
6601         * TabControl.cs: Changed argument names to fix corcompare errors.
6602         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
6603         errors.
6604         * TableLayoutSettings.cs: Changed argument names to fix corcompare
6605         errors.
6606
6607 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6608
6609         * ListBindingHelper.cs: When returning properties, only return those
6610         that are browsable. Also, don't do a linear search of the properties,
6611         but use the indexer of the PropertyDescriptorCollection class.
6612
6613 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6614
6615         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
6616         Dictionary containing the related (child) currency managers. Also,
6617         when setting DataSource, add datasource to our List if it is not a list.
6618
6619 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6620
6621         * PropertyGridTextBox.cs: Fix background color of the buttons.
6622         * PropertyGridView.cs: Make the entry less jumpy.
6623
6624 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6625
6626         * PropertyGrid.cs: Fix unused variable warnings.
6627
6628 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6629
6630         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
6631         double-click. It expanded it once in the mouse down and then 
6632         again in the double-click handler.
6633
6634 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6635         
6636         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
6637         TypeConverter and UITypeEditors.
6638
6639 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6640
6641         * Control.cs: Visibility should be set synchronously, 
6642         so we must also redraw once it is and not rely on layouting or 
6643         other code to repaint.
6644         [Fixes bug #339898]
6645
6646 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
6647
6648         * DataGridViewCell.cs: Respect DataGridView.GridColor.
6649
6650 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6651
6652         * Control.cs: Invalidate when the alpha channel is less than 255,
6653         not only when control is transparent.
6654
6655 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6656
6657         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
6658         Implement some painting convenience methods that threw NIEX.
6659
6660 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6661
6662         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
6663         * DataGridViewLinkCell.cs: Implement.
6664
6665 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6666
6667         * GridEntry.cs: Report the conversion exception error description.
6668         [Fixes bug #375792]
6669
6670 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6671
6672         * PropertyGridView.cs: Do not scroll to item on resize.
6673         [Fixes bug #375789]
6674
6675 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6676
6677         * BindingContext.cs: When retrieving a BindingManagerBase, if the
6678         dataSource parameter is ICurrencyManagerProvider, then return
6679         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
6680         instead of creating a new one.
6681
6682 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6683
6684         * BindingSource.cs: Implement support for Type instances as
6685         DataSource.
6686
6687 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6688
6689         * DataGridView.cs: Minor cleanups and call CellMouseUp.
6690         * DataGridViewCell.cs: Make some painting routines internally virtual.
6691         * DataGridViewButtonCell.cs: Implement.
6692
6693 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6694
6695         * Control.cs: We always need to invalidate our children with
6696         transparent backgrounds when we are invalidated.
6697         [Fixes bug #376081]
6698
6699 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6700
6701         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
6702         and CancelCurrentEdit on CurrencyManager respectively. Implement
6703         support for ICancelAddNew too.
6704
6705 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6706
6707         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
6708         call EndNew/CancelNew if list is ICancelAddNew.
6709
6710 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6711
6712         * DataGridView.cs: Guard against an exception while painting
6713         if there are no rows.
6714
6715 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6716
6717         * DataGridView.cs: Implement a bunch of keyboard commands.
6718
6719 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
6720
6721         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
6722         isn't set, don't call OnPaint.  [Fixes bug #375300]
6723
6724 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6725
6726         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
6727         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
6728         hookup the remaining events related to CurrencyManager, and fire
6729         OnListChanged also for the Clear () method.
6730
6731 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6732
6733         * BindingSource.cs: Use Current and Position implementations in
6734         CurrencyManager instead of using our own routines, since we need 
6735         to be in synch with it. Count should NEVER return a -1 value, and 
6736         also report ListChanged events for both simple IList data 
6737         sources (manually) as well for IBindingList ones (by hooking up an
6738         event handler for it).
6739
6740 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6741
6742         * BindingSource.cs: Make one .ctor call the another, to avoid
6743         duplicate code. Add the CurrencyManager property, and also for AddNew
6744         throw the proper exceptions and show better error messages.
6745
6746 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6747
6748         * ComboBox.cs: Only adjust selectedindex if Handle has been
6749         created.  Fixes failing test.
6750
6751 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6752
6753         * ComboBox.cs: Adjust selectedindex if we insert a new item
6754         above the current selectedindex in a sorted ComboBox.
6755         [Fixes bug #374654]
6756
6757 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6758
6759         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
6760         [Fixes bug #374712]
6761
6762 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6763
6764         * DataGridViewTextBoxCell.cs: Implement stuffs.
6765
6766 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6767
6768         * TreeView.cs: Create the scrollbars even earlier to be
6769         double dog certain they are created before they are accessed.
6770
6771 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6772
6773         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
6774
6775 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6776
6777         * ScrollBar.cs: Create an internal safe Value setter so we
6778         won't crash if we try to set a value outside the min and max.
6779         * TextBoxBase.cs: Use safe value setter to guard against a
6780         potential NRE that is being reported by Reflector.
6781
6782 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6783
6784         * TreeView.cs: Create the scrollbars earlier in the constructor
6785         to attempt to guard against an NRE in SetTop in Reflector.
6786
6787 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
6788
6789         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
6790         DataGridViewRowCollection.cs: Do not scroll column and row headers,
6791         show messagebox on data format error, use column display index
6792         correctly, make sure HitTest supports new layout stuff,
6793         make sure scrollbars support new layout stuff.
6794
6795 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
6796
6797         * XplatUIX11.cs : Patch by Doug Rintoul.
6798           For some IM engines, keypress events need to delay call
6799           to XPending() and XNextEvent() in the loop so that it
6800           does not mess the orders in XIM commit callback.
6801           Some KeyRelease events such as shift keys need to be
6802           processed both in the IM engine and winforms driver
6803           itself since winforms holds its own state check.
6804
6805           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
6806
6807 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
6808
6809         * X11Keyboard.cs, XplatUIX11.cs :
6810           add primitive support for XIM input support (preedit-
6811           nothing and status-nothing). It requires precise event
6812           capturing (XSelectInput/"filterEvents") and different
6813           call to XFilterEvent against root window.
6814           Get composed string and send dummy WM_IME_COMPOSITION.
6815           Free XIM and XIC instances in finalizer.
6816
6817           (This first patch does not include suggested changes
6818            by Doug Rintoul. It will follow.)
6819
6820 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6821
6822         * DataGridView.cs: When binding to a property, if the property
6823         doesn't have a setter, set the column to readonly.
6824         [Fixes bug #343965]
6825
6826 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6827
6828         * ComboBox.cs: Guard against NRE if an arrow key is hit while
6829         we aren't dropped down.  Support Home/End in DropDownList mode.
6830         [Fixes bug #371990]
6831
6832 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
6833
6834         * TreeNodeCollection.cs: Don't increment count until we've
6835         saved our index to return.
6836         [Fixes bug #373603]
6837
6838 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6839
6840         * Label.cs: Add padding to the label's AutoSize calculation.
6841         [Fixes bug #373792]
6842
6843 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6844
6845         * ListBindingHelper.cs: Actually implement GetListName method.
6846
6847 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6848
6849         * BindingSource.cs: Throw the propert expceptions for some methods, as
6850         well as detect the list item type for Add method if DataSource is null.
6851
6852 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6853
6854         * DataGridViewCell.cs: I don't know why I commented this out,
6855         putting it back for now.
6856
6857 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6858
6859         * DataGridViewCell.cs: Remove storage for owning column, just
6860         use column index.
6861         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
6862         * DataGridViewColumnHeaderCell.cs: If the header text has been
6863         explicitly set, return it.
6864         [Fixes bug #325979]
6865
6866 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
6867
6868         * DataGridViewRowCollection.cs: Disable row sharing when
6869         using data binding.  Its a great feature, but lets work on
6870         getting DGV usable first before we worry about optimizations.
6871
6872 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6873
6874         * BindingSource.cs: When resetting our internal list, compute list
6875         item type information to be used for indirect list access. Also
6876         implement/tune some properties and methods related to the list access
6877         too.
6878         * ListBindingHelper.cs: Add a stub for GetListName method, used from
6879         BindingSource.
6880
6881 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6882
6883         * DataGridView.cs: If RowCount is increased while ColumnCount
6884         is zero, add a column.  [Fixes bug #331649]
6885
6886 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6887
6888         * DataGridViewRowCollection.cs: When adding new rows for
6889         databinding, make sure they are place before the add row.
6890         [Fixes bug #343961]
6891
6892 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6893
6894         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
6895         instead of Index order.
6896
6897 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6898
6899         * DataGridView.cs: If columns are added by increasing ColumnCount,
6900         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
6901         [Fixes bug #325588]
6902
6903 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6904
6905         * DataGridView.cs: Turn off and on the "new row" when 
6906         AllowUserToAddRows is toggled.  When the handle is created,
6907         set current cell and selected cell/row/col.
6908
6909 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
6910
6911         * ComboBox.cs: When navigating the drop down by keyboard, we
6912         need to scroll the list box if our selection moves out of the
6913         currently shown items.  [Fixes bug #371990]
6914
6915 2008-03-24  Luke Page <luke.a.page@gmail.com>
6916
6917         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
6918         on the control. Also now handles unicode compatibility characters and
6919         stores the unicode compatibility length on the stack. Fixes Bugs
6920         #355198 and #366436.
6921
6922 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6923
6924         * BindingSource..cs: Take into account DataMember when re-creating the
6925         List property, and also create a specific kind of list as needed.
6926
6927 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6928
6929         * ListBindingHelper.cs: Add a new case for GetList () method - when we
6930         get an empty IEnumerable, try to detect whether the datamember is
6931         valid or not for that type, if true, return null, and throw exception
6932         otherwise.
6933
6934 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
6935
6936         * ComboBox.cs: Alt-Down should drop down the list, Esc should
6937         retract it.  [Fixes bug #371989]
6938
6939 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
6940
6941         * PropertyGrid.cs: Initialize the sorting button as pushed.
6942
6943 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
6944
6945         * PropertyGrid.cs: 
6946          - Visually select the PropertyTab.
6947          - Filter Properties by Attributes properly.
6948
6949 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6950
6951         * MenuItem.cs: Remove menu item from parent when disposed.
6952         [Fixes bug #372845]
6953
6954 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6955
6956         * ToolBar.cs: Don't reset layout_type if Dock = None.
6957
6958 2008-03-21  Andreia Gaita <avidigal@novell.com> 
6959
6960         * UserControl.cs: Select the first available control when we get focus.
6961           Fixes #372616
6962
6963 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6964
6965         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
6966         the content if we are in edit mode.  [Fixes bug #343964]
6967
6968 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
6969
6970         * DataGridViewCell.cs: Fix border painting for column headers.
6971
6972 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6973
6974         * BindingSource.cs: When setting or resetting data source,
6975         use ListBindingHelper.GetList () method, since it will get the list in
6976         case datasource is IListSource.
6977
6978 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
6979
6980         * DataGridViewCell.cs: Implement lots more stuffs.
6981
6982 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
6983
6984         * PropertyGridView.cs, GridEntry.cs: Implement support for 
6985         UITypeEditor.IsDropDownResizable.
6986
6987 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
6988
6989         * DataGridViewCell.cs: Remove unused variables, improve how
6990         several of the property getters work.
6991         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
6992         get its size from the parent row/col.
6993
6994 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
6995
6996         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
6997         user alters manually the PropertyTabs collection via the 
6998         PropertyTabs property.
6999
7000 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7001
7002         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
7003         new tests for them to be sure to be compatible with .net.
7004
7005 2008-03-20  Andreia Gaita <avidigal@novell.com> 
7006
7007         * WebBrowserBase.cs: Fix attributes, add events
7008         * WebBrowser.cs: Fix Padding signature
7009
7010 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7011
7012         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
7013
7014 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
7015
7016         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
7017         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
7018         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
7019         passes the new suite of tests for it.
7020
7021 2008-03-18  Andreia Gaita <avidigal@novell.com> 
7022
7023         * WebBrowser.cs: Add missing attributes, missing Padding and
7024           DefaultSize properties, remove extraneous getters
7025
7026 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7027
7028         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
7029         method overloads.
7030
7031 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7032
7033         * ComboBox.cs: Move resetting the selected index to keypress
7034         instead of textchanged.  Changing the text programmatically
7035         should not trigger resetting the selected index.  Fixes test.
7036
7037 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7038
7039         * ComboBox.cs: When the user types into the textbox, reset
7040         the selected index to -1.  [Fixes bug #371672]
7041
7042 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7043
7044         * FileDialog.cs: Support Control-A for selecting everything
7045         in an OpenFileDialog.  [Fixes bug #371564]
7046
7047 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
7048
7049         * DataGridView.cs: When row/column visible/height properties
7050         change, invalidate.  Take the NIEX out of InvalidateRow/Column
7051         etc.  We don't support them yet, but we can just invalidate
7052         everything until we do support them.  (Added MonoTODO).  Set
7053         proper control styles.
7054         * DataGridViewRow.cs: Don't call PaintHeader if row headers
7055         are turned off. 
7056
7057 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7058
7059         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
7060
7061 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7062
7063         * DataGridViewRow.cs: Only paint the white background in
7064         cell bounds, the row bounds extends past the cells if the 
7065         grid width isn't as wide as the DGV.
7066
7067 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7068
7069         * DataGridView*: Completely revamp the drawing to match the
7070         public API.  Our grids now look better, and call all the
7071         appropriate methods and event to allow users to override
7072         the painting and do their own.
7073
7074 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7075
7076         * ListBindingHelper.cs: Implement 2.0 GetList methods.
7077
7078 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7079
7080         * DataGridView.cs: Implement BorderStyle.
7081
7082 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7083
7084         * FileDialog.cs: Apply patch from Andy Hume: Any time we
7085         are comparing attributes, make sure we only look at the
7086         one we are interested.  These calls were failing if there
7087         were more than one attribute.
7088         [Fixes bug #370385]
7089
7090 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7091
7092         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
7093
7094 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7095
7096         * PageSetupDialog.cs: Stub EnableMetric.
7097         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
7098         * PrintPreviewDialog.cs: Add ProcessDialogKey,
7099         ProcessTabKey.
7100
7101 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7102
7103         * MonthCalendar.cs: Remove unused variable.
7104
7105 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7106
7107         * DataGridView*.cs: corcompare stuffs.
7108
7109 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7110
7111         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
7112         The savings aren't worth the extra code to fix the optimization.
7113         [Fixes bug #368585]
7114
7115 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7116
7117         * ToolBar.cs: Always call base.Dock in the Dock override so that
7118         Control's layout_type gets reset correctly.
7119         [Fixes bug #368882]
7120
7121 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
7122
7123         * X11Dnd.cs: End DnD operation also for the middle mouse button.
7124
7125 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7126
7127         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
7128         at the same time we do explicit ones, because we have to give all
7129         other controls on the container a chance to handle explicit ones
7130         first.  If no one has an explicit mnemonic, then we can let the
7131         MenuStrip have a shot at implicit mnemonics.
7132         * MenuStrip.cs: Create an implicit mnemonic function.
7133         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
7134         mnemonics for MenuStrips.
7135         [Fixes bug #368493]
7136
7137 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7138
7139         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
7140         DataGridColumnStyle.cs: corcompare stuffs.
7141
7142 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7143
7144         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
7145         Details - This is needed after we added the bits to use any available
7146         column also for List and SmallIcon view. 
7147
7148 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7149
7150         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
7151         at the proper place, not only when changing SelectedIndex and changing
7152         the selection using keys/mouse, as .net does.
7153
7154 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7155
7156         * ControlBindingsCollection.cs: Implement last 2.0
7157         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
7158         in the new 2.0 Add methods.
7159
7160 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7161
7162         * ListBox.cs: When calling SelectedIndexCollection.Clear,
7163         return if no items are previously selected - this is done to avoid 
7164         firing OnSelectedIndexChanged without need to do so. Also,
7165         when creating handle ensure that the focused item is visible (as
7166         .net does).
7167
7168 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7169
7170         * ListBox.cs: Rewrote/refactored most of selection code. We require
7171         the following things in selection: a) keep selection sorted (both
7172         indices and items), b) SelectedIndices automatically detect the
7173         selection mode, c) SelectedIndex should be the first selected item
7174         index, d) Need to Focus/adjust scroll bar when selecting a new item,
7175         not only for SelectedIndex, which is specially important in Multi*
7176         selection modes. To achieve this we are moving the selection core to
7177         SelectedIndexCollection and make depend all selection modifications on
7178         it.
7179         Fixes #366438.
7180
7181 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7182
7183         * ToolStrip.cs: Enable implicit mnemonics for drop down
7184         menu strips.  [Fixes part of bug #367692]
7185
7186 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7187
7188         corcompare - fix parameter names [stragglers].
7189         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
7190         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
7191         TabControl.cs.
7192
7193 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7194
7195         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
7196         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
7197         mnemonic, let the ToolStripManager have it even if it doesn't
7198         have a matching mnemonic.
7199         [Fixes bug #367499]
7200
7201 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7202
7203         corcompare - fix warning about implicit implementation
7204         * ToolStrip.cs: Add IToolStripData interface.
7205         * IToolStripData.cs: Add.
7206
7207 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7208
7209         corcompare - fix warning about implicit implementation
7210         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
7211         * IBounds.cs: Add.
7212
7213 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7214
7215         corcompare - fix parameter names [N-Z].
7216         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
7217         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
7218         PropertyManager.cs, RichTextBox.cs,
7219         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
7220         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
7221         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
7222         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
7223         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
7224         ToolStripContentPanel.cs, ToolStripDropDown.cs,
7225         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
7226         ToolStripPanel.cs, ToolStripSeparator.cs,
7227         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
7228         UICuesEventHandler.cs, UpDownBase.cs.
7229
7230 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7231
7232         corcompare - fix parameter names [G-M].
7233         GridColumnStylesCollection.cs, GridItemCollection.cs,
7234         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
7235         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
7236         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
7237         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
7238         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
7239
7240 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7241
7242         corcompare - fix parameter names [A-F].
7243         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
7244         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
7245         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
7246         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
7247         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
7248         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
7249         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
7250
7251 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7252
7253         * GridEntry.cs: Do not convert not only if the types match, 
7254         but also if the property type is assigneable from the value's
7255         type.
7256         [Fixes bug #366566]
7257
7258 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7259
7260         * PropertyGridView.cs: 
7261          - Subscribe to the listbox only once and not everytime.
7262          - Update the textbox even if SetValue fails.
7263          - Close the listbox before calling TrySetValue just in case.
7264          [Fixes bug #366569]
7265
7266 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
7267
7268         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
7269
7270 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7271
7272         * ListView.cs: Implement support for custom column width based on
7273         Columns collection (we were previously using this collection only
7274         with Details view).
7275         Fixes #364484.
7276
7277 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7278
7279         * ListViewItem.cs: For Tile view, always set bounds for the first
7280         subitem (which is the main one), and also don't let Width be larger
7281         than ListView.TileSize.Width. Improve code readibility also.
7282         * ThemeWin32Classic.cs: When painting the ListViewItem instances
7283         in Tile view, _always_ use the NoWrap flag.
7284         Fixes #360798.
7285
7286 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
7287
7288         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
7289         in case.
7290         * GridEntry.cs: For MS compitability make all child properties 
7291         readonly if the parent is readonly. Ugh.
7292         [Fixes bug #365945 and #365944]
7293
7294 2008-02-29  Andreia Gaita <avidigal@novell.com> 
7295
7296         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
7297           relative to the history
7298
7299 2008-02-29  Andreia Gaita <avidigal@novell.com>
7300
7301         * HtmlElement.cs: More handlers for mouse and key events
7302
7303 2008-02-28  Andreia Gaita <avidigal@novell.com>
7304
7305         * WebBrowserBase.cs: MouseClick sig changed.
7306         * HtmlHistory.cs: Implement history navigation
7307         * HtmlElement.cs: Add event handlers, and connect them.
7308
7309 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
7310
7311         * GridEntry.cs: 
7312          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
7313            so that DisplayNameAttribute doesn't get ignored.
7314          - Check for ParenthesizeNameAttribute and parenthesize the Label.
7315          - Add support for PasswordPropertyTextAttribute
7316         * PropertyGridView.cs: Check if an entry is a password.
7317         [Fixes bugs #365589, #365586, #365588]
7318
7319 2008-02-28  Andreia Gaita <avidigal@novell.com>
7320
7321         * PropertyGridView.cs: Revert the message filtering change, as we
7322         need it to block after all. Remove block parameter, unnecessary.
7323
7324 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
7325
7326         * UserControl.cs: Better implementation of GetPreferredSize.
7327         First step to fixing bug #361441.
7328
7329 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7330
7331         * Binding.cs: Actually implement data binding support for 
7332         classes implementing IBindableComponent.
7333         * ControlBindingsCollection.cs: Likewise.
7334
7335 2008-02-26  Andreia Gaita  <avidigal@novell.com>
7336
7337         * PropertyGridView.cs: Use a message filter to check when to 
7338         close the dropdown
7339
7340 2008-02-26  Andreia Gaita  <avidigal@novell.com>
7341
7342         * Application.cs: Change the message_filters loop so a filter 
7343         can be removed while looping.
7344
7345 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
7346
7347         * GridEntry.cs: Optimization in ToggleValue so that it caches
7348         the current value.
7349         * PropertyGridView.cs: An optimization so that the property isn't 
7350         re-read twice for each StandardValue added to the drop-down menu.
7351         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
7352         license.
7353         [Fixes bug #362755]
7354
7355 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
7356
7357         * Application.cs: Apply patch from Justin Cherniak to match
7358         MS better for ProductName, ProductVersion, and CompanyName.
7359         [Fixes bug #361709]
7360
7361 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7362
7363         * Binding.cs: Actually implement 2.0 NullValue property. Also
7364         when changing the formatting related properties, only update the state
7365         if formatting_enabled is true (we don't mind otherwise).
7366
7367 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
7368
7369         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
7370         [Fixes bug #364486]
7371
7372 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
7373
7374         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
7375         of GetType on the current value as it uses reflection to 
7376         determine the type. This fixes the case where the new value is 
7377         null. 
7378
7379 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
7380
7381         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
7382         past the view.
7383
7384 2008-02-24  Luke Page  <luke.a.page@gmail.com>
7385
7386         * Line.cs, TextControl.cs: Implement offset x and y so that a
7387         document doesn't have to begin  at (0,0) on the viewpoint.
7388         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
7389         bars and switches the text alignment (and therefore is now
7390         implemented for textbox). Fixes #321383.
7391
7392 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7393
7394         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
7395         properties. Also when changing FormattingEnabled update the control
7396         property -as .Net does-.
7397
7398 2008-02-22  Carlos Alberto Cortez <calberto.cortez@ŋmail.com>
7399
7400         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
7401         * Binding.cs: Add stubs for the overloads of the Add method in
7402         CBCollection.
7403
7404 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7405
7406         * Binding.cs: PullData () returns a false value if we got an exception.
7407         Also when validating the control and we get an error, instead of
7408         setting the value of the previous one, cancel the event (tested in 1.1
7409         and 2.0).
7410
7411 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
7412
7413         * TreeView.cs: Make selected_node and highlighted_node internal.
7414         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
7415         to null when Nodes.Clear is called.
7416         [Fixes bug #363884]
7417
7418 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7419
7420         * FontDialog.cs: Ensure that when the Font is set in code,
7421         all the gui pieces are updated accordingly.
7422         [Fixes bug #361020]
7423
7424 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7425
7426         * TextRenderer.cs: Respect proposed size for MeasureString.
7427         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
7428         autosize, use a proposed width to force wrapping for long text.
7429         [Fixes bug #360981]
7430
7431 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7432
7433         * TreeView.cs: Factor in checkboxes = false and state images in
7434         to HitTest.  [Fixes bug #363360]
7435
7436 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7437
7438         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
7439         when drawing the selected range.
7440         [Fixes bug #363648]
7441
7442 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7443
7444         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
7445         ResizeRedraw control styles.
7446         [Fixes bug #363555]
7447
7448 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7449
7450         * TreeView.cs: StateImages are basically custom checkboxes, so
7451         factor their size the same as real checkboxes when determining
7452         what got clicked.
7453         [Fixes bug #363367]
7454
7455 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7456
7457         * MessageBox.cs: Make the message box wider if the form caption
7458         is longer than the text in the form.
7459         [Fixes bug #361137]
7460
7461 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7462
7463         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
7464
7465 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7466
7467         * TreeNode.cs: Guard against an NRE when the parent's
7468         StateImageList hasn't been set.
7469         [Fixes bug #363353]
7470
7471 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7472
7473         * SplitContainer.cs: Add SupportsTransparentBackColor and
7474         OptimizedDoubleBuffering control styles.
7475         [Fixes bug #363303]
7476
7477 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7478
7479         * Application.cs: For the app data paths and the registry key paths,
7480         ensure they are created before returning them to the user.
7481         [Fixes bug #361709]
7482
7483 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7484
7485         * Application.cs: Guard against an NRE in CompanyName and
7486         ProductName.
7487
7488 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7489
7490         * Application.cs: For CompanyName, ProductName, and ProductVersion,
7491         make sure we handle all three cases correctly: attribute is present,
7492         attribute is present but is an empty string, and attribute is not
7493         present.
7494
7495 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7496
7497         * PropertyGridView.cs: 
7498          - Fix a NRE that caused a test failure
7499          - Another performance improvement - cache the standard values
7500          listbox.
7501
7502 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7503
7504         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
7505         code paths.
7506
7507 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
7508
7509         * PropertyGridView.cs: Fix a big performance bug.
7510
7511 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7512
7513         * SelectionRange.cs: Apply patch from Andy Hume to make
7514         constructor behavior more accurate.  [Fixes bug #362117]
7515
7516 2008-02-19  Andreia Gaita <avidigal@novell.com> 
7517
7518         * Control.cs: Added a new flag is_disposing to track if the
7519         window is currently in the process of being disposed of.
7520         This is used so that, when firing visibility changes triggered
7521         by unparenting controls during Dispose, the control doesn't
7522         get created again.      
7523
7524 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7525
7526         * ComboBox.cs: Set height to preferred height when the handle
7527         is created.  [Fixes bug #360862]
7528
7529 2008-02-18  Andreia Gaita <avidigal@novell.com>
7530
7531         * XplatUIX11.cs: Create FosterParent with border width at 0.
7532         With the previous value of 4, everytime a control got reparented
7533         from parent = null, it's location would be shifted right and 
7534         down by 4, since these coordinates would be offset by the 
7535         FosterParent's border width.
7536
7537 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
7538
7539         * Control.cs: During diposing firstly remove ourselfes from
7540         the parent and *then* destroy our handle, because removing
7541         ourselfes from the parent controls collection causes 
7542         VisibilityChange, etc events, which require a handle and end
7543         up recreating the control.
7544
7545 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
7546
7547         * GridEntry.cs: Set expanded state before notifying that the
7548         expansion has taken place.
7549         * PropertyGridView.cs:
7550          - Set the propertygridtextbox text to the selected 
7551          StandardValue before proceeding to setting it.
7552          - Scrolling bugfixes.
7553
7554 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7555
7556         * GridEntry.cs:
7557          - Fix ValueText to not return null.
7558          - Fix conversion error reporting to actually happen.
7559         * PropertyGridView.cs: Set entry only if the text has changed.
7560         [Fixes bug #362116]
7561
7562 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7563
7564         * GridEntry.cs: 
7565          - Fix handling of a null current value.
7566          - Swallow editor exceptions.
7567         [Fixes bug #362114]
7568
7569 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7570
7571         * PropertyGrid.cs: Clear current items first thing before 
7572         repopulating subitems.
7573         * GridEntry.cs: 
7574          - Handle null StandardValuesCollection.
7575          - Mark as not editable if there is no PropertyDescriptor and
7576          if the Converter cannot convert from string.
7577         [Part of fix for bugs #360666 and #358332]
7578
7579 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7580         * MaskedTextBox.cs: Now skips non editable characters after a
7581         character has been entered and we are progressing to the next
7582         position in the MaskedTextBox.
7583
7584 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7585         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
7586         that it changes the selection rather than just repositioning the
7587         cursor. Fixes Bug #360873.
7588
7589 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7590         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
7591         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
7592         correctly. See #359330
7593
7594 2008-02-15  Andreia Gaita <avidigal@novell.com>
7595
7596         * XplatUIX11.cs: If the handle is null when posting a message, use the
7597         current thread queue to post instead. Fixes #332409
7598
7599         * SendKeys.cs: Slight optimization
7600
7601 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
7602
7603         * PropertyGrid.cs, PropertyGridView.cs:
7604         Fix multiple scrolling and sizing issues.
7605         [Fixes bug #359199]
7606
7607 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7608
7609         * PropertyGridView.cs: Ensure that drop down editors are shown
7610         in the WorkingArea of the screen.
7611         [Fixes bug #359807]
7612
7613 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7614
7615         * GridEntry.cs: Fail silently when UITypeEditor is missing.
7616         [Fixes bug #360666]
7617
7618 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7619
7620         * Binding.cs: Implement 2.0 DataSourceNullValue property.
7621
7622 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7623
7624         * PropertyGridView.cs:
7625          - Clear the controls in the drop down form after it is hidden.
7626          - Fix Width sizing of the dropdown editors to match MSFT.
7627
7628 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7629
7630         * PropertyGridView.cs: 
7631          - Fix height for drawing the grid entry
7632          text value, so that it clips multiline text properly.
7633          - Fix unfocusing to match MSFT.
7634
7635 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7636
7637         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
7638         Fixes a bug where on repopulation after value changed items become
7639         expandable.
7640
7641 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7642
7643         * Binding.cs: For the 2.0 profile, look for a 
7644         'PropertyChanged' event in the target control, and add checks for
7645         DataSourceUpdateMode property to change -or not- the data source
7646         from validation/control property change.
7647
7648 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
7649
7650         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
7651           not compare struct with null in 2.0).
7652
7653 2008-02-10  Luke Page <luke.a.page@gmail.com>
7654
7655         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
7656         updates the provider and if not using a provider, uses the internal document
7657         class implementation of password char. Also when showing text, uses display string
7658         from the provider, instead of the actual text.
7659
7660 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7661
7662         * Binding.cs: Ooooops, forgot to take into account the data_source
7663         and binding_member_info null case (it was breaking the Binding tests).
7664
7665 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7666
7667         * Binding.cs: Implement support for data source changes exposed by
7668         'PropertyNameChanged' events, and update the control property as
7669         needed.
7670
7671 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7672
7673         * Binding.cs: Implement 2.0 WriteValue method.
7674
7675 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7676
7677         Commit patch from James Purcell for better AutoScale implementation:
7678
7679         * ScaleControl should call GetScaledBounds with the control's total size rather
7680         than client size.  GetScaledBounds should handle ignoring the borders in its
7681         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
7682         (for the most part they just call the base code now since that is fixed).
7683         * Added ScaleChildrenInternal to allow controls to disable scaling of children
7684         without having to override ScaleChildren (since none of .NET's controls do). 
7685         This is required for most controls in Mono that have scrollbars to prevent the
7686         scrollbars from being moved/resized.
7687         * Nested ContainerControls can have a different scale mode than their parent. 
7688         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
7689         designer produce different results both of which look incorrect).
7690         * Default AutoScaleMode for ContainerControl should be Inherit.
7691         * Simplified workaround for ComboBox scaling issue.
7692         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
7693         1.0 style auto scaling should scale the whole control's size instead of
7694         ignoring the borders (except for Form) and the rounding is done differently to
7695         preserve control alignment.
7696         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
7697         GetAutoScaleSize.
7698         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
7699         * CurrentAutoScaleDimensions should round the estimated character width instead
7700         of truncating.
7701         * ListBox's GetScaledBounds should always use the height it was set to instead
7702         of the height that was passed in.  This prevents rounding errors from
7703         accumulating quickly with IntegralHeight.
7704         [Bug #359098]
7705
7706 2008-02-08  Andreia Gaita <avidigal@novell.com>
7707
7708         * Form.cs: Add a null check (darn it). 
7709
7710 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7711
7712         * MdiClient.cs: Make sure the requesting form actually owns the
7713         control menu items before removing them.  Also, use
7714         Suspend/ResumeLayout when adding or removing items so we only
7715         layout once.
7716         [Fixes bug #359887]
7717
7718 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7719
7720         * Control.cs: Guard against an NRE in ShowFocusCues.
7721         [Fixes bug #359830]
7722
7723 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7724
7725         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
7726         property, as well as stubbing DataSourceUpdateMode.
7727
7728 2008-02-08  Andreia Gaita <avidigal@novell.com>
7729
7730         * Form.cs: When closing forms, get focus back to the active control of the
7731         active form. [Fixes #341314, corner case]
7732         
7733 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7734
7735         * MdiClient.cs: After we move the scrollbars, invalidate the NC
7736         area, so any old scrollbar artifacts are cleaned up.
7737         [Fixes bug #336305]
7738
7739 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7740
7741         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
7742         for our menus, display that control box menu instead of the 1.1
7743         menu one.
7744
7745 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7746
7747         * MdiControlStrip.cs: Add property to access the mdi form tied to
7748         each toolstripitem.
7749         * MdiClient.cs: Be smarter about removing and adding toolstripitems
7750         to the implicitly merged menu.  Every time we clicked the form, items
7751         were getting removed and the re-added, causing the form to jump around
7752         as the menu resized.
7753
7754 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7755
7756         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
7757         was being reset by the implicit menu merge for menustrips.
7758         [Fixes bug #336296]
7759
7760 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7761
7762         * Form.cs: Don't do the previous change when WindowState = Normal,
7763         or it messes up where the window is placed.  Fixes test failure.
7764
7765 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7766
7767         * Form.cs: When becoming visible, if we are an MDI child, call
7768         SetWindowState with a dummy old_state so that changes will actually
7769         be made.
7770         [Fixes the 2nd part of bug #325473]
7771
7772 2008-02-07  Andreia Gaita <avidigal@novell.com>
7773
7774         * Control.cs: Reset properties to their pre parent-change values in case
7775         the new parent == null (in which case we're basically removing the control, 
7776         and don't want any events fired due to fake property changes)
7777         [Fixes #355850]
7778
7779 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
7780
7781         * PropertyGridView.cs: 
7782          - Refactor SetValue to allow setting the value
7783         when a custom editor is used, but the entry is not editable.
7784          - Remove the custom editor control on CloseDropDown.
7785         [Fixes #359196]
7786
7787 2008-02-06  Andreia Gaita <avidigal@novell.com>
7788
7789         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
7790         reflection only on 1.1, this property is public on system.drawing on 2.0.
7791         Fixed #359247
7792
7793 2008-02-06  Andreia Gaita  <avidigal@novell.com>
7794         
7795         * WebBrowser.cs: Do a normal page refresh by default.
7796
7797 2008-02-05  Andreia Gaita  <avidigal@novell.com>
7798
7799         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
7800         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
7801         platforms. Fixes #359036
7802         
7803         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
7804         platform-specific flags.
7805
7806 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7807
7808         * Binding.cs: Add 2.0 BindableComponent property - just return control
7809         by now.
7810
7811 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
7812
7813         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
7814         Jonathan for this patch. Fixes #358442.
7815
7816 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
7817
7818         * Form.cs: If we change the active MDI child form, let the others
7819         know they need to repaint their title bar so it will appear inactive.
7820         [Fixes part 1 of bug #325473]
7821
7822 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
7823
7824          * PropertyGridView.cs: Do not trucate custom editors' width
7825          and align them to the left.
7826          [Fixes #358353 and #358349]
7827
7828 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7829
7830         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
7831         Also fix the arguments passed to CollectionChangeEventArgs in the
7832         related methods.
7833
7834 2008-02-04  Geoff Norton  <gnorton@novell.com>
7835
7836         * Hwnd.cs: The conversion to Quartz coordinates happens in
7837         System.Drawing.  Removing this translation from here.
7838
7839 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
7840
7841          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
7842          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
7843          GridItemCollection.cs:
7844          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
7845
7846 2008-02-04  Geoff Norton  <gnorton@novell.com>
7847
7848         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
7849         SYSKEYUP if any other key has been pressed in the mean time.
7850         Fixes #324404
7851
7852 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7853
7854         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
7855         when the item in current position is different than 0. Also, save the
7856         item index in the beginning of the operation, instead of getting the
7857         index of the item when the event is actually performed. Lastly clean
7858         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
7859         triggered.
7860         [Fixes #357873]
7861
7862 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7863
7864         * Form.cs: Alt-Minus for MDI children system menu should work
7865         with both the minus keys on the keyboard.
7866         [Fixes bug #336295]
7867
7868 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7869
7870         * Control.cs: Don't invalidate on region change.  The WM should
7871         take care of this automagically.  Keeps us out of an infinite
7872         paint loop if someone changes the Region in the OnPaint.
7873         [Fixes bug #358327]
7874
7875 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
7876
7877          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
7878
7879 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7880
7881         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
7882         down the MonthCalendar only on F4, not Alt+F4.
7883         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
7884         [Fixes bug #358340]
7885
7886 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7887
7888         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
7889         if its part of a DateTimePicker, else, use the back color.
7890         [Fixes bug #358339]
7891
7892 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
7893
7894         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
7895         [Fixes bug #358342]
7896
7897 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7898
7899         * CurrencyManager.cs: When we get a ListChanged event from our source,
7900         always fire our own ListChanged event, as .Net does.
7901
7902 2008-02-03  Luke Page  <luke.a.page@gmail.com>
7903
7904         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
7905         #358379.
7906
7907 2008-02-03  Luke Page  <luke.a.page@gmail.com>
7908
7909         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
7910         property. Removed if for richtext property that was always true.
7911         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
7912
7913 2008-02-03  Luke Page  <luke.a.page@gmail.com>
7914
7915         * TextBoxBase.cs - commited patch from James Purcell that
7916         correctly sets the FixedHeight control style when the MultiLine
7917         property is changed on a TextBox control. Fixes bug 358229.
7918
7919 2008-02-02  Luke Page  <luke.a.page@gmail.com>
7920
7921         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
7922         Fixes bug 351938 - caret is positioned correctly when drawn
7923         and when calculating textual position of caret, no longer
7924         has a NRE in certain situations.
7925         
7926 2008-02-01  Geoff Norton  <gnorton@novell.com>
7927
7928         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
7929         get that region removed from the paint event.
7930         * XplatUICarbon.cs: Remove the window mapping after disposing of 
7931         window.  Prevents a crash with handle reuse.  Optimize exposes
7932         only onto visible windows (rare; but possible).
7933
7934 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7935
7936         * UpDownBase.cs: Make sure the internal textbox calls the base's
7937         OnMouseDown and OnMouseUp so the textbox will function correctly.
7938         There were notes saying it doesn't chain up, but its an internal
7939         class, so our implementation may differ.
7940         [Fixes bug #357482]
7941
7942 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7943
7944         * ListBox.cs: Fix a logic error and don't process MouseDown
7945         for mouse buttons other than Left.
7946
7947 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7948
7949         * Control.cs: Remove HeightInternal.
7950         * ListBox.cs: Commit patch from James Purcell that correctly
7951         calculates heights for ListBoxen.
7952         [Fixes bug #357152]
7953
7954 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7955
7956         * Label.cs: Apply patch from James Purcell that corrects the 
7957         signature of the AutoSize property.
7958         [Fixes bug #357605]
7959
7960 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
7961
7962         * ListBox.cs: Don't throw [Mouse]Click events for buttons
7963         other than the left mouse button.
7964
7965 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
7966
7967         * Control.cs: Remove my awesome optimization as it caused some
7968         regressions with control ordering.  :(
7969         [Fixes bug #357467]
7970
7971 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
7972
7973          * PropertyGridView.cs: Fix a NRE on double click when there is no
7974          selected object.
7975
7976 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7977
7978         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
7979
7980 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
7981
7982         * ListBox.cs: Call MouseClick and MouseDoubleClick.
7983         [Fixes bug #357146]
7984
7985 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7986
7987         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
7988         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
7989         instead of Hwnd.bmp_g.
7990
7991 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7992
7993         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
7994         Use the Hwnd one instead.
7995
7996 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
7997
7998         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
7999
8000 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8001
8002         * Form.cs: corcompare for RestoreBounds.
8003
8004 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8005
8006         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
8007
8008 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8009
8010         * Form.cs: Handle Alt-Minus for MDI children forms.
8011         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
8012         Add mnemonics to the control menu.
8013         [Fixes bug #336295]
8014
8015 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8016
8017         * Binding.cs: Initial implementation bits of FormattingEnabled
8018         property and BindingComplete event (2.0). 
8019         * BindingCompleteEventArgs.cs: Internal methods for setting error text
8020         and exception.
8021
8022 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8023
8024         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
8025         table.Location.  [Fixes bug #354672]
8026
8027 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8028
8029         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
8030         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
8031
8032 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8033
8034         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
8035         of doing all the re-bound work, just invalidate and call SetControlText 
8036         to set the updated text of selected item to our textbox.
8037         Fixes #333750.
8038
8039 2008-01-28  Andreia Gaita <avidigal@novell.com>
8040
8041         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
8042         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
8043         missing properties and methods. Add Load, Unload, Error, GotFocus, 
8044         LostFocus, Resize, Scroll events (only load and unload are connected)
8045
8046 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
8047
8048         * AccessibleObject.cs: Modified argument names to match MS.
8049         * Button.cs: Modified argument names to match MS.
8050         * BindingContext.cs: Modified argument names to match MS.
8051         * BindingMemberInfo.cs: Modified argument names to match MS.
8052         * ButtonBase.cs: Modified argument names to match MS.
8053         * ComboBox.cs: Modified argument names to match MS.
8054         * Control.cs: Modified argument names to match MS.
8055         * CheckedListBox.cs: Modified argument names to match MS.
8056         * CommonDialog.cs: Modified argument names to match MS.
8057         * DataGrid.cs: Modified argument names to match MS.
8058         * CursorConverter.cs: Modified argument names to match MS.
8059         * ControlPaint.cs: Modified argument names to match MS.
8060         * CheckBox.cs: Modified argument names to match MS.
8061         * ControlBindingsCollection.cs: Modified argument names to match MS.
8062         * BindingSource.cs: Modified argument names to match MS.
8063         * DataFormats.cs: Modified argument names to match MS.
8064         * ContainerControl.cs: Modified argument names to match MS.
8065         * CurrencyManager.cs: Modified argument names to match MS.
8066         * Application.cs: Modified argument names to match MS.
8067         * ContextMenuStrip.cs: Modified argument names to match MS.
8068         * ContextMenu.cs: Modified argument names to match MS.
8069         * BindingManagerBase.cs: Modified argument names to match MS.
8070         * WindowsFormsSection.cs: Fixed line ending.    
8071
8072 2008-01-27  Andreia Gaita <avidigal@novell.com>
8073
8074         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
8075         detecting that the dropdown toolwindow is hidden. EndLoop outside the
8076         while.
8077
8078 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
8079
8080         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
8081         MS. Code formatting.
8082
8083 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8084
8085         * Binding.cs: Don't avoid the Format event if the control 
8086         property type is object. Also, if the value retrieved by 
8087         the data source is null _and_ the control proeprty type 
8088         is object, return Convert.DBNull (match .Net).
8089         Fixes part of #324286.
8090
8091 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8092
8093         * ListControl.cs: Since we are getting two BinginContextChanged events
8094         for the same binding context instance (when the control is added to
8095         form, and when the form is actually shown), take it into account only the
8096         first time for a given binding context instance.
8097         Fixes part of #324286.
8098
8099 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8100
8101          * PropertryGridView.cs: Ops.
8102
8103 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8104
8105          * PropertyGridView.cs: Close dropdown form if the owner form is
8106          moved or minimized.
8107          [Fixes bug #322446]
8108
8109 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
8110
8111          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
8112          RootGridEntry.cs, CategoryGridEntry.cs:
8113          PropertyGrid rewrite.
8114          - Rewrite all of the control logic in PropertyGrid.
8115          - Rewrite all of the ComponentModel logic in GridEntry.
8116          - Rewrite all UI work in PropertyGridView.
8117          - Many bugfixes, etc.
8118
8119 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
8120
8121         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
8122         when all contained controls are autosize or dock-fill.  Also take into
8123         account when the total percentage of column/row sizes is not 100%.
8124         [Fixes bug #354672]
8125
8126 2008-01-24  Andreia Gaita <avidigal@novell.com>
8127
8128         * HtmlDocument.cs:
8129         - Save a reference to the IDocument in the instance and
8130           use that one instead of going to WebHost.Document; the document that the 
8131           WebHost returns might not be the right one (in case of frames).
8132         - Use the hashcode returned from the IDocument interface.
8133         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
8134           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
8135           LinkColor, Url, VisitedColor, Window
8136
8137         * HtmlElement.cs: 
8138         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
8139           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
8140           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
8141           SetAttribute, Equals, equality operators.
8142         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
8143           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
8144         
8145         * HtmlElementCollection.cs: Change implementation to use a generic
8146         collection. Implemented Enumerator and CopyTo
8147
8148         * HtmlHistory.cs: Add constructor, no implementation yet.
8149
8150         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
8151         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
8152         Equals, equality operators.
8153
8154         * HtmlWindowCollection.cs: Implemented. 
8155
8156         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
8157         has been deprecated).
8158
8159         * WebBrowserBase.cs: Use Completed event to track document loading
8160         (Navigated has been deprecated)
8161
8162 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
8163
8164         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
8165         level MenuItems do not respect tabs.
8166         [Fixes bug #355196]
8167
8168 2008-01-23  Geoff Norton  <gnorton@novell.com>
8169
8170         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
8171         FormWindowState.  Finished fixing Fullscreen windows on Carbon
8172
8173 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8174
8175         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
8176         be used as grab_control. Also save status of capture before show ContextMenu
8177         and restore it after close.
8178
8179 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8180
8181         * Control.cs: Internal FindRootParent method added to return high control
8182         in parent tree.
8183
8184 2008-01-23  Geoff Norton  <gnorton@novell.com>
8185
8186         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
8187         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
8188         it work again.  Handle HITTEST events.
8189
8190 2008-01-23  Geoff Norton  <gnorton@novell.com>
8191
8192         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
8193         a crash in certain cases.  Support for fullscreen windows in certain cases.
8194
8195 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
8196
8197         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
8198         [Fixes bug #355703]
8199
8200 2008-01-23  Geoff Norton  <gnorton@novell.com>
8201         
8202         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
8203
8204 2008-01-23  Geoff Norton  <gnorton@novell.com>
8205
8206         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
8207
8208 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8209
8210         * SplitContainer.cs: Remove unused declarations.
8211         * Binding.cs: Remove unused declarations.
8212
8213 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8214
8215         * Form.cs: Remove unused declaration of 'active' in Activate method.
8216         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
8217         prevent compilation warnings.
8218         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
8219         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
8220         * Bindings.cs: Remove unused formatting_enabled declaration.
8221         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8222         warnings.
8223         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8224         warnings.
8225         * PropertyGridView.cs: Remove usused 'ex' declaration.
8226         * DataGridView.cs: Remove unused declarations.
8227
8228 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8229
8230         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
8231         
8232         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
8233         to Control class, it makes possible to grab menu to controls that can't 
8234         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
8235         WmMouseMove removed since it was used only to track menu events.
8236
8237         * Control.cs:
8238         - Moved all active_tracker stuff from Form.
8239         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
8240         can call this method instead of reimplement all necessary code handle for
8241         menu tracker.
8242         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
8243         and WmMouseMove).
8244         
8245         * MenuAPI.cs: 
8246         - Remove special handle to ToolStripOverflow, now we can grab menu to 
8247         controls that can't reach Form using parent tree.
8248         - Change type of grab_control from Form to Control.
8249
8250 2008-01-22  Geoff Norton  <gnorton@novell.com>
8251
8252         * TextBoxBase.cs: Split up the sizing of controls and placing of 
8253         controls.  Fixes a bug where scrollbars in Reflector could be sized
8254         wrong and have non-working thumbers.
8255
8256 2008-01-23  Geoff Norton  <gnorton@novell.com>
8257
8258         * XplatUI.cs: Refactor environment variables to default support to the
8259         Carbon driver on the Mac.
8260
8261 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8262
8263         * Label.cs: Uses new LabelPainter for drawing operations.
8264         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
8265         * Theme.cs: DrawLabel and LabelDefaultSize removed.
8266
8267 2008-01-22  Geoff Norton  <gnorton@novell.com>
8268
8269         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
8270
8271 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8272
8273         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
8274         through the normal flat button code and don't draw the checkbox glyph.
8275         * Theme.cs: Button->ButtonBase signature change.
8276         [Fixes bug #324755]
8277
8278 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8279
8280         * LinkLabel.cs: Uses new class LinkLabelPainter.
8281
8282 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8283
8284         * MessageBox.cs: Adjust right border space, we don't need to add 
8285         "space_border*2" two times.
8286
8287 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8288
8289         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
8290         becomes a wrapper around Padding.
8291         [Fixes a part of bug #354676]
8292
8293 2008-01-22 Geoff Norton  <gnorton@novell.com>
8294
8295         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
8296         acquired.  Also ensure the buffer is large enough to grab the header
8297         we need on linux boxes.
8298
8299 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8300
8301         * Control.cs: Implement a custom enumerator so people can delete
8302         from the Controls collection while in a foreach.
8303         [Fixes bug #355074]
8304
8305 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8306
8307          * PropertyGridView.cs: Fix focusing behavior:
8308          - Tab should focus the grid text box.
8309          - Clicking on the labels shouldn't focus the grid text box.
8310
8311 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8312
8313          * PropertyGridView.cs: IsValueTypeGridItem should return true 
8314          for Arrays as well.
8315
8316 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8317
8318          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
8319           - Renamed GridEntry.SelectedObjects to TargetObjects to better
8320           reflect the property name role.
8321           - PropertyGrid.GetTarget is not required as the target is known
8322           (TargetObjects).
8323           - Setting values will handle value types as a special case now and
8324           populate them up in the chain.
8325           [Fixes #354990]
8326
8327 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
8328
8329         * Hwnd.cs: Create a public property for the Graphics we keep around.
8330
8331 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
8332
8333          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
8334          when the current object selection changes. 
8335          Fixes failing test SelectedObject_Null2.B5.
8336
8337 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
8338
8339          * PropertyGrid.cs: Process Browsable properties with 
8340          DesignerSerializationVisibilityAttribute.Content as being expandable.
8341          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
8342          will not be expandable. We should be nested components-friendly now.
8343
8344 2008-01-21  Andreia Gaita <avidigal@novell.com>
8345
8346         * WebBrowserBase.cs: Check if control was loaded properly, 
8347         don't bind if it wasn't.
8348
8349         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
8350         GetElementFromPoint, equality operators, OpenNew, Write.
8351         Remove extra set_Body
8352
8353 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
8354
8355         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
8356         that makes our AutoScale* stuff more tolerant to different orders
8357         of being set.  [Fixes bug #354669]
8358
8359 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
8360
8361          * PropertyGridView.cs, PropertyGridTextBox.cs: 
8362          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
8363          [Fixes #339005 and #348209]
8364
8365 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
8366
8367          * PropertyGridView.cs: Hide the grid text box before adjusting it
8368          for the newly selected GridItem.
8369          [Fixes #338999]
8370
8371 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
8372
8373         * Form.cs: Give MDI children the opportunity to cancel the parent form
8374         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
8375         properly for both the parent and child.
8376         * Application.cs: Signature of internal method changed, pass the previous
8377         default of false.
8378         [Fixes bug #354286]
8379
8380 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
8381
8382         * PropertyGridView.cs: Set the property value only if it has changed.
8383         [Fixes bug #338997]
8384
8385 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
8386
8387         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
8388         If the mouse hasn't actually moved, ignore these messages so the currently
8389         highlighted menuitem isn't reset to the one under the mouse.
8390         [Fixes bug #333668]
8391
8392 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
8393
8394         * PropertyGridView.cs: When the property changes Invalidate the GridItem
8395         in order for the properties with UITypeEditor.GetPaintValueSupported == true
8396         to reflect the change visually.
8397         [Fixes bug #338998]
8398
8399 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
8400
8401         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
8402         to 2.0 button drawing.
8403         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
8404         the button text is tall enough for one line.  LineLimit says it will
8405         always draw at least one line, but it is a lie.
8406         [Fixes bug #324941]
8407
8408 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
8409
8410         * XplatUIStructs.cs, X11Keyboard.cs :
8411           added some more VK_* keys to be handled.
8412
8413 2008-01-16  Andreia Gaita <avidigal@novell.com>
8414
8415         * Control.cs: Check if there is a container before setting or getting
8416         the validation flag.
8417
8418 2008-01-16  Andreia Gaita <avidigal@novell.com>
8419
8420         * ContainerControl.cs: Add flag to track if a control cancels validation, 
8421         so we don't fire click events.
8422
8423         * Control.cs: 
8424         - (HandleClick) Check if validation was cancelled before  firing the click
8425         events (doubleclicks are fired, but not clicks)
8426         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
8427         ContainerControl.set_ActiveControl, but in the case of non-selectable
8428         controls, like a Label, activecontrol is not set. 
8429
8430         * ButtonBase.cs: Only fire clicks if validation passes.
8431         
8432         Fixes #353310
8433
8434 2008-01-16  Geoff Norton  <gnorton@novell.com>
8435
8436         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
8437         trunk
8438
8439 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
8440
8441         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
8442         SelectedPath, just display the default dialog instead of crashing.
8443         [Fixes bug #348989]
8444
8445 2008-01-16  Geoff Norton  <gnorton@novell.com>
8446
8447         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
8448         AddExpose instead of trusting apples compositing manager which doesn't
8449         work for our use case.  Remove some dead code causing warnings and 
8450         redecorate some other code to prevent warnings.
8451
8452 2008-01-16  Geoff Norton  <gnorton@novell.com>
8453
8454         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
8455         carbon signals us to redraw.  Fixes another portion of the flickering bug
8456
8457 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8458
8459         * Form.cs: Prevent the MdiParent property to be set when value is the same
8460         as value already set. Fixes bug #328019.
8461
8462 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8463
8464         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
8465         it prevents NRE when closing mdi child windows. Fixes bug #325211.
8466
8467 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8468
8469         * InternalWindowManager.cs: Invalidade close button after mouse up when 
8470         mdi form is prevented to close.
8471
8472 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8473
8474         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
8475         thanks to Andy Hume. Fixes bug #325433.
8476
8477 2008-01-16  Andreia Gaita <avidigal@novell.com>
8478
8479         * LinkLabel.cs: Reset focused_index when resellecting the control.
8480         Fixes #323190
8481
8482 2008-01-15  Geoff Norton  <gnorton@novell.com>
8483
8484         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
8485         messages.
8486
8487 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8488
8489         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
8490         of truncate.
8491
8492 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8493
8494         * ContainerControl.cs: Setting AutoScaleMode to anything should set
8495         Form.AutoScale to false.
8496         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
8497         AutoScaleBaseSize should be changed on Font change unless it has been
8498         explicitly set.
8499         [Fixes bug #353827]
8500
8501 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8502
8503         * MenuAPI.cs: On instance of MenuTracker check if source control is
8504         ToolStripOverflow and use properly method to find form.
8505         [Fixes bug #338511]
8506
8507 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8508
8509         [Fixes bug #323241 Transparent toolbar support]
8510
8511         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
8512         is flat.
8513
8514         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
8515         defined in control style to mimic win32 behavior.
8516
8517         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
8518         it will be transparent.
8519
8520 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8521
8522         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
8523         CreateParams for ToolBar controls.
8524
8525 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8526
8527         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
8528         FixedToolWindow, SizeableToolWindow, or None for border styles have
8529         different minimum sizes than regular forms.  Implemented to fix
8530         regression in PDN with toolbox being too wide.
8531
8532 2008-01-14  Andreia Gaita <avidigal@novell.com>
8533
8534         * HtmlElementCollection.cs: Implemented
8535
8536         * HtmlElement.cs: Implemented:
8537           - All
8538           - InnerHtml
8539           - InnerText
8540           - Id
8541           - Name
8542           - FirstChild
8543
8544         * HtmlDocument.cs: Implemented GetElementsByTagName.
8545
8546 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8547
8548         * Screen.cs: Stub BitsPerPixel to always return 32.
8549
8550 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8551
8552         * Form.cs: Implement RestoreBounds.
8553
8554 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8555
8556         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
8557         Sebastien and his fabulous magical problem-finding machine:
8558         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
8559         respect the value set.
8560
8561 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8562
8563         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
8564         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
8565
8566 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8567
8568         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
8569         messages (to match .Net), we need to remove the capture ourselves.
8570
8571 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
8572
8573         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
8574         will process the message and close our window.
8575         [Fixes bug #324328]
8576
8577 2008-01-10  Geoff Norton  <gnorton@novell.com>
8578
8579         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
8580         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
8581         window manager.
8582
8583 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8584
8585         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
8586         failing test.
8587
8588 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8589
8590         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
8591         Linux doesn't care, having a minimum matches MS and keeps the window
8592         from becoming too small to use window decorations.
8593         [Fixes bug #338996]
8594
8595 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8596
8597         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
8598         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
8599         control.  [Fixes bug #325419]
8600
8601 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8602
8603         * ComboBox.cs: Guard against an NRE if the user open a new form from a
8604         SelectedIndexChanged event.  This closes the combobox dropdown, and we
8605         were trying to dispose it.  [Fixes bug #352830]
8606
8607 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8608
8609         * Control.cs, Form.cs: Implement the necessary semantics for
8610         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
8611         to determine if a focus rectangle should be drawn.
8612         * PropertyGrid.cs: Fix property visibility to match override.
8613         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
8614
8615 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8616
8617         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
8618         [Fixes bug #323552]
8619
8620 2008-01-09  Geoff Norton  <gnorton@novell.com>
8621         
8622         * XplatUICarbon.cs: Scroll windows in the correct direction.
8623
8624 2008-01-09  Geoff Norton  <gnorton@novell.com>
8625
8626         * XplatUICarbon.cs: Track all created utility windows so we can hide them
8627         when the app is deactivated or spaces is enabled.
8628
8629 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8630
8631         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
8632         extra separation pixel for the label rect origin if SmallImageList is
8633         null, and thus we don't need that separation between icon and label
8634         rects.
8635         Patch by Ernesto Carrea.
8636         Fixes # 340195.
8637
8638 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
8639
8640         * StatusStrip.cs: Invalidate after completing a layout.  The base
8641         OnLayout does this, but we don't call the base.
8642         * ToolStripItem.cs: Revert the previous change to invalidate after
8643         the item moves.
8644         [Fixes bug #351341 better.]
8645
8646 2008-01-07  Geoff Norton  <gnorton@novell.com>
8647
8648         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
8649         not a notification to exit the application.  Listen for WM_QUIT
8650         instead.
8651
8652 2008-01-07  Andreia Gaita <avidigal@novell.com>
8653
8654         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
8655
8656 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
8657
8658         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
8659         so it can repaint at the correct location.
8660         [Fixes bug #351341]
8661
8662 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8663
8664         * ListControl.cs: SelectedValue should return a null value if
8665         SelectedIndex is -1. Also, when setting it, it should throw an
8666         ArgumentNullException if the value is null, as well as taking
8667         into account the String.Empty value, instead of ignoring it (we have
8668         tests for that now).
8669         Fixes part of #324286.
8670
8671 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
8672
8673         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
8674         SelectionStart is updated after pressing enter.  Fixes bug #351918.
8675
8676 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8677
8678         * TextControl.cs: Revert a piece r92316 that prevented the fix
8679         from working when there were multiple tags in the text box.
8680         Fixes bug #351881.
8681
8682 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8683
8684         * TextControl.cs: Apply patch from Luke Page that prevents an
8685         NRE when determining the beginning of a paragraph.
8686         Fixes bug #351886.
8687
8688 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8689
8690         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
8691         caret gets moved with clicking away from a selected block of
8692         text.  Fixes bug #351885.
8693
8694 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8695
8696         * TextControl.cs: Apply patch from Luke Page that takes line
8697         alignment into account for mouse selection, so that center and
8698         right aligned text can be selected.
8699         Fixes bug #351881.
8700
8701 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8702
8703         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
8704         issues after loading an RTF file by using the correct line feeds.
8705         Fixes bug #351841.
8706
8707 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8708
8709         * TextControl.cs: When deleting multiple line selections, we need
8710         to invalidate every line beginning at the first line of the selection.
8711         Patch from Luke Page fixes bug #351791.
8712
8713 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8714
8715         * ListControl.cs: When getting a CurrencyManager.PositionChanged
8716         event, don't set SelectedIndex if the number of items is 1. This is
8717         because, for the first item, PositionChanged is fired _before_
8718         ItemChanged (the place where we actually populate the items), and
8719         leave us in a temporary invalid state (since items collection is
8720         empty).
8721         Fixes #349655.
8722
8723 2008-01-04  Geoff Norton  <gnorton@novell.com>
8724
8725         * XplatUICarbon.cs:  Create native toolwindows instead of
8726         the managed drawing ones.
8727
8728 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8729
8730         * LineTag.cs: If the line doesn't have any characters, return
8731         0 for GetCharIndex.  Fixes an AOORE exception after certain
8732         caret movements.  Fixes bug #351683.  Patch by Luke Page.
8733
8734 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8735
8736         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
8737         is hit when there is selected text, only the selected text gets
8738         deleted, not the character in front of the selection as well.
8739         Fixes bug #351578.
8740
8741 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8742
8743         * ComboBox.cs: When the values are displayed, calculate the
8744         ComboListBox scrollbar's LargeChange based on the visible area's
8745         height and  the actuall ItemHeight, instead of calculating it
8746         based on MaxDropItems value, since it's not used by our _current_ 
8747         2.0 profile.
8748         Fixes #332366.
8749
8750 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8751
8752         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
8753         Patch from Luke Page that fixes issues with font colors and styles
8754         not showing up in a readonly RichTextBox.  Fixes bug #324354.
8755
8756 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8757
8758         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
8759         from Luke Page.  This one fixes bug #349926.
8760
8761 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8762
8763         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
8764         an item in the IBindingList source changes with
8765         ListChangedType.ItemAdded. Ignore for now firing the event for other
8766         changes, since we want to have tests for those cases as well.
8767
8768 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8769
8770         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
8771         created.
8772
8773 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8774
8775         * TextBoxTextRenderer.cs: Implement a cache for measuring each
8776         character.  This is effective because the typical usage of a
8777         TextBox is with a limited amount of fonts and characters, and
8778         the current implementation of TextBox measures everything one
8779         character at a time.  Another second or two speedup for bug #347238.
8780
8781 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8782
8783         * Control.cs: Rewrite the Font getter to only query the parent's
8784         Font property once instead of twice.  Since this operation is
8785         recursive, the queries were growing exponentially as the control
8786         tree got deeper.  Another second or two speedup for bug #347238.
8787
8788 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
8789
8790         * Control.cs: Avoid setting a parent (and more importantly, updating
8791         the zorder of all its children) if the parent is already correct in
8792         WmShowWindow.  Decreases the startup time of the test case on bug
8793         #347238 from 35 seconds to 11 seconds.
8794
8795 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8796
8797         * X11Dnd.cs: When the dnd operation has started and we are 
8798         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
8799         This is done to match .Net, which doesn't send those messages after
8800         dnd operation was completed/cancelled.
8801         Fixes #349922.
8802
8803 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
8804
8805         * ToolStrip.cs: Previous change should be != null, not == null.
8806         Thanks Gert!
8807
8808 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
8809
8810         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
8811         user may have moved the mouse off the current item during the event.
8812
8813 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8814
8815         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
8816         calling GetItemAt for every MouseMove event by also taking into
8817         account whether any mouse button is pressed (probably dragging); 
8818         if so, we can call GetItemAt, and if not, try to not call it 
8819         (GetItemAt can be quite expensive when used with a large number of items).
8820
8821 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8822
8823         * ListView.cs: Implement -finally- support for dnd, by calling
8824         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
8825         authors list ;-).
8826         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
8827         simple calculation of distances for all the items in the owner
8828         listview.
8829
8830 2007-12-21  Geoff Norton  <gnorton@novell.com>
8831
8832         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
8833         for windows that are originally created as invisible.  Fixes missing
8834         main window in paint-mono.
8835
8836 2007-12-21  Geoff Norton  <gnorton@novell.com>
8837
8838         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
8839         subclass handler for com.novell.mwfview subclassing HIView.  Implement
8840         Pasteboard and Dnd methods.
8841
8842 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8843
8844         * ListBox.cs: When we got focus, give focus to first item if there
8845         wasn't any pervious focused item. Also update navigation to depend on
8846         SelectedIndex rather than FocusedItem, just as .Net does.
8847         Fixes #349174.
8848
8849 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8850
8851         * ListBox.cs: Both FindString and FindStringExact methods must do an
8852         case insensitive search, should allow the last valid index to be
8853         passed in the overload taking an initial index, and should also
8854         continue searching from the top back to the specified index when it
8855         reaches the bottom.
8856
8857 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8858
8859         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
8860         redraw issue, and allows RichTextBox to draw colored text even while
8861         disabled or readonly.
8862
8863 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8864
8865         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
8866         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
8867         and doesn't grey text in a disabled RichTextBox.
8868
8869 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8870
8871         * RichTextBox.cs: Apply patch from Luke Page that adds better support
8872         for many RTF commands: quad alignment, separate formatting for blocks
8873         inside groups, and ParDef support.  Makes the test case from bug #324589
8874         look much better.
8875
8876 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8877
8878         * LineTag.cs: Fix an error in the new Draw method that caused
8879         a crash when rendering the document on bug #324589.
8880
8881 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
8882
8883         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
8884         TextControl.cs: Apply patch from Luke Page that adds support
8885         for URL links in RichTextBox.
8886         [Fixes enhancement #342516]
8887
8888 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
8889
8890         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
8891         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
8892
8893 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8894
8895         * ListBox.cs: When a key gets pressed, try to find a string
8896         if the key is a character or a digit.
8897         Fixes #343971.
8898
8899 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
8900
8901         * TableLayoutPanel.cs: Remove some unused variables.
8902
8903 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
8904
8905         * DateTimePicker.cs: Commit patch from Luke Page that ensures
8906         we don't end up at an invalid date when we click the up/down
8907         spinner to change the month or year.  Fixes bug #348682.
8908
8909 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
8910
8911         * Application.cs: Calling Exit in 2.0 should chain to the
8912         Exit (CancelEventArgs) version so it can be cancelled.
8913         * Form.cs: Create a flag to allow raising the Closing
8914         events to be skipped.  We raise them once in Application.Exit
8915         and don't want to raise them again when the Form is actually
8916         closed.  [Fixes bug #349073]
8917
8918 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
8919
8920         * ToolStripDropDown.cs: Guard against an NRE when there
8921         hasn't been a mainform set in the application context.
8922         [Fixes bug #349108]
8923
8924 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8925
8926         * ListBox.cs: When SetBoundsCore gets called, besides
8927         calling UpdateScrollBars, update the value of
8928         last_visible_index, since we could need to show more items
8929         than before, and we need to let the paint routines know that.
8930         Fixes #344445.
8931
8932 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8933
8934         * ListView.cs: Add DesignerSerializationVisibility attribute to
8935         InsertionMark property.
8936         * ListViewItem.cs: Add same attribute to Position property.
8937
8938 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8939
8940         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
8941         is 2.0 only.
8942
8943 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
8944
8945         * ThemeWin32Classic.cs: Don't draw the background on a
8946         flat button if there is a background image.
8947         [Fixes bug #348649]
8948
8949 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8950
8951         * ListBox.cs: If we remove the item currently selected,
8952         remove it not only from SelectedItems, but also
8953         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
8954         the items count decreased and focused_item has bigger value than that.
8955
8956 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
8957
8958         * Control.cs: Perform our layout after we resize ourselves
8959         if we had to adjust our AutoSize.  Missed commit for bug
8960         #346246.
8961
8962 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
8963
8964         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
8965         we can provide an implementation of AutoSize.
8966         [Fixes bug #346246]
8967
8968 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8969
8970         * ListBox.cs: Add the internal overload Sort (bool paint),
8971         to indicate whether we actually need a paint or we will
8972         call Refresh ourselves. This way we don't request a paint
8973         _before_ having an updated and valid layout.
8974         Fixes #347233.
8975
8976 2007-12-12  Andreia Gaita <avidigal@novell.com>
8977
8978         * XPlatUIX11.cs: Send paint messages when updating a systray icon
8979         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
8980         properly invalidated. 
8981         Fixes #324237
8982
8983 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8984
8985         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
8986         don't simply assign it to our internal group field, but instead 
8987         use our Group property, which should do all the neccessary work
8988         required to support groups. Fixes an issue reported to me (mail) by a 
8989         guy using this new feature.
8990
8991 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
8992
8993         * Control.cs: Use Scale instead of ScaleControl to ensure the
8994         whole hierarchy gets scaled.
8995         [Fixes bug #347282]
8996
8997 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
8998
8999         * DateTimePicker.cs: Don't set the internal MonthCalendar's
9000         Parent property.  Doing this causes the control to be hosted by
9001         the Form instead of being a popup window.
9002         [Fixes bug #347665]
9003
9004 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9005
9006         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
9007         at an index higher than Count, just use Add instead of Insert.
9008         [Fixes bug #347669]
9009
9010 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9011
9012         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
9013         DrawPictureBox, this is handled by Control.PaintBackground.
9014         [Fixes bug #347276]
9015
9016 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
9017
9018         * MenuAPI.cs: When process menu keys return true by default only if menu is
9019         active. Fixes bug #342892.
9020
9021 2007-12-09  Andreia Gaita <avidigal@novell.com>
9022
9023         * Control.cs: check if windows are actually mapped before
9024         trying to zorder. Fixes #342509, #346955
9025
9026 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9027
9028         * ListView.cs:
9029         * ListViewInsertionMark.cs:
9030         * ThemeWin32Classic.cs: Implement the drawing side of the
9031         new 2.0 ListView.InsertionMark property.
9032
9033 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
9034
9035         * CurrencyManager.cs: Silence some debug spew.
9036
9037 2007-12-07  Geoff Norton  <gnorton@novell.com>
9038         
9039         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
9040         masks for our children as well as siblings to avoid having to query
9041         Quartz for this information.
9042         * XplatUICarbon.cs: Implement a delegate based system to pass
9043         information to System.Drawing.  Implement Async methods.  Remove
9044         the hack for the resize thumb and imlpement a transparent Grow Box.
9045         Rework the messaging system to proplery create window's and messages,
9046         fixes TabControl.
9047
9048 2007-12-06  Andreia Gaita <avidigal@novell.com>
9049
9050         * X11Keyboard.cs: Use Xutf8LookupString to support international 
9051         characters under alternate codepages. Patch from #340878
9052
9053 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9054
9055         * ListView.cs: When doing layout computations, set position in the
9056         ListView instances (we cache the position just as .Net does).
9057         * ListViewItem.cs: New internal setter method for Position. Also set
9058         position field as also available in 1.1, since we are going to use it
9059         now in the common case.
9060
9061 2007-12-06  Andreia Gaita <avidigal@novell.com>
9062
9063         * Control.cs: When removing controls, get the actual container
9064         to notify about active control changes. Fixes 341314.
9065
9066 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9067
9068         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
9069
9070 2007-12-05  Andreia Gaita <avidigal@novell.com>
9071
9072         * Control.cs: When updating the zorder, ignore windows that are not
9073         mapped. Fixes #342509
9074
9075 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9076
9077         * ListViewItem.cs: Actually implement serialization on this class.
9078
9079 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
9080
9081         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
9082         LinkCollection. Spaces to tabs, and removed extra tabs.
9083
9084 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9085
9086         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
9087           tests to fail (hopefully).
9088
9089 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9090
9091         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
9092         the image margin so custom renderers can correctly place it.
9093
9094 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9095
9096         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
9097         so custom renderers can correctly place it.
9098
9099 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9100
9101         * Application.cs: Let WM_CHAR messages flow through to controls
9102         hosted in Strips.  [Fixes bug #343972]
9103
9104 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9105
9106         * ToolStripManager.cs: Guard against an NRE I ran into.
9107
9108 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9109
9110         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
9111         a Link is manually added to the Links collection, we need to set
9112         its owner, so it can invalidate properly.
9113         [Fixes bug #344012]
9114
9115 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9116
9117         * ListView.cs: When changing ListViewItem.Position (which calls
9118         ListView.ChangeItemLocation), invalidate not only the area
9119         corresponding to the main item, but also to the area occupied
9120         by the items being moved.
9121
9122 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9123
9124         * ListView.cs: When changing the position of a given item,
9125         don't use item bounds, but item areas (which includes the item spacing
9126         between them). Also, use first/last position if the requested
9127         position is outside bounds (as .Net does). Invalidate the previous and
9128         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
9129         in a specific position, instead of directly accessing Items collection
9130         (this is done to get the right item - remember an Item can have a
9131         different position in the grid than in the Items collection).
9132
9133 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9134
9135         * MessageBox.cs: Calculate text area instead of just top left, this rect 
9136         area will be used in DrawString. Fixes bug #343364.
9137
9138 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9139
9140         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
9141         screen width. Partially fixes bug #343364.
9142
9143 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9144
9145         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
9146         code inside recalculate, it makes code more simple.
9147
9148 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
9149
9150         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
9151         between update or add icon. Fixes bug #324344.
9152
9153 2007-11-21  Andreia Gaita <avidigal@novell.com>
9154
9155         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
9156         window manager, since that stretches the drawing area to include
9157         the window decorations, and they get hidden. Reverts r84444 and fixes
9158         #335849 and #342790 (mdi and pdn3 regression)
9159
9160 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9161
9162         * ListView.cs: When setting focused item, try to give focus to the
9163         previous one _only_ if the previous one remains valid. 
9164         Fixes #342504.
9165
9166 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
9167
9168         * Application.cs: Revert r89650, as it broke a common case to fix
9169         an obscure case.  Fixes bug #342606.
9170
9171 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9172
9173         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
9174
9175 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9176
9177         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
9178         alignment. [Fixes #324228]
9179
9180 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9181
9182         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
9183         [Fixes bug #342123]
9184
9185 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
9186
9187         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
9188         it prevent problems when empty captions. [Fixes #342141]
9189
9190 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9191
9192         * Label.cs: Use Size instead of None.  Fixes bug #342077.
9193
9194 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9195
9196         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
9197
9198 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9199
9200         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
9201         but there isn't a MdiContainer.
9202         [Fixes bug #342358]
9203
9204 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9205
9206         * TextControl.cs: Don't recalculate document if the recalc_start and
9207         recalc_end hasn't changed.
9208         [Fixes bug #342505]
9209
9210 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
9211
9212         * DataGridViewTextBoxCell.cs: Removed CWL.
9213
9214 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9215
9216         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
9217
9218 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9219
9220         * TextControl.cs: Missed some code for bug 341534 to trigger a
9221         recalculation when the font changes.
9222
9223 2007-11-16  Andreia Gaita <avidigal@novell.com>
9224
9225         * Control.cs: When updating the zorder, check if the child to update is
9226         the same control that is set to always be on top (i.e., scrollbars), and 
9227         just put it on top directly. Fixes BadMatch error on pdn3
9228
9229 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9230
9231         * ListView.cs: Throw the needed exceptions for FindNearestItem.
9232
9233 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9234
9235         * Control.cs: Don't perform a new layout when a label changes its text,
9236         cause label handles its own autosizing.
9237         [Fixes bug #342077]
9238
9239 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9240
9241         * ListView.cs: Implement 2.0 FindNearestItem methods.
9242
9243 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9244
9245         * ToolStripPanel.cs: Make Join at least add the control to the panel,
9246         even if the rest of what Join does isn't supported.  Add some more
9247         support for vertical toolbars.
9248         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
9249         [Fixes the application breaking parts of bug #341998]
9250
9251 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
9252
9253         * ToolStripItem.cs: When determining if we have a check/image margin,
9254         we need to look at ShowCheckMargin as well as ShowImageMargin.
9255
9256 2007-11-15  Geoff Norton  <gnorton@novell.com>
9257
9258         * XplatUIOSX.cs: Rename to...
9259         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
9260         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
9261
9262 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9263
9264         * KeysConverter.cs: The default values should be an array of Keys, not
9265         strings.  Also, the array has more values for 2.0.
9266         [Fixes bug #341851]
9267
9268 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9269
9270         * Application.cs: Change ExecutablePath to use 
9271         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
9272         [Fixes bug #323552]
9273
9274 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9275
9276         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
9277         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
9278         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
9279         be ignored.  Create a new GetLineEnding that can specify which types of
9280         line endings to look for.  On Insert, only create new lines for \n and \r\n.
9281         [Fixes bug #324274]
9282
9283 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9284
9285         * TextBoxBase.cs: As we loop through each line changing the font, tell
9286         the document that the line needs to be recalculated.  Fixes bug #341534.
9287
9288 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
9289         [Another round of refactoring]
9290         * Line.cs: Add DeleteCharacters.
9291         * LineTag.cs: Add Delete.
9292         * TextBoxBase.cs: Update to use new methods.
9293         * TextControl.cs: Refactor the Delete* methods.
9294
9295 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
9296
9297         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
9298         the patch. [Fixes #324856]
9299
9300 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9301
9302         * ListView.cs:
9303         * ListViewItem.cs: Add an initial implementation of
9304         2.0 ListViewItem.Position getter.
9305
9306 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9307
9308         * ListView.cs: Add a reordered_items_indices array, to allow us
9309         to have a different sorting than that of Items (the sorting in Items
9310         could not match the actual sorting in screen). This is needed to
9311         implement a pair of 2.0 features.
9312         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
9313         actual position in the ListView grid, since it could have a position
9314         different than its Index (position in ListViewItemCollection). 
9315
9316 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
9317
9318         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
9319         not draw partial lines.
9320         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
9321         LineLimit flag from the base is preserved.
9322         Fixes the windows part of bug #338965.
9323
9324 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
9325
9326         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
9327         so that it can be canceled in KeyPress.
9328         Fixes bug #340078.
9329
9330 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9331
9332         * ListView.cs: In ItemControl, reset mouse-handling related
9333         fields even if we dont' have items (we still should reset them when
9334         we had items but then called Items.Clear). Partially based in a patch
9335         by George Giolfan.
9336         Fixes #338399.
9337
9338 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
9339
9340         * Application.cs: In ProductVersion first try AssemblyFileVersion
9341         before falling back to assembly version. Fixes bug #339787.
9342
9343 2007-11-08  Andreia Gaita <avidigal@novell.com>
9344
9345         * HtmlElement.cs: Implement InnerText setter.
9346         * WebBrowserBase.cs: Implement Navigated event support.
9347         Add flag to track when the browser "document" is ready to be retrieved.
9348         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
9349         Make sure browser document is ready before retrieving it.
9350         Clean up cached objects (document) when moving to a new page through
9351         any of the navigation methods.
9352         Use the new Mono.WebBrowser.INavigation interface to control navigation.
9353         Implement OnNavigated event.
9354
9355 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
9356
9357         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
9358         DrawLinkLabel, this is handled by OnPaintBackground.
9359         Fixes bug #339565, part II.
9360
9361 2007-11-07  Andreia Gaita <avidigal@novell.com>
9362
9363         * Control.cs: Revert r88915. Selecting text on a textbox depends on
9364         getting a Select call on click, so this call needs to be here for now.
9365         Unfixes #325809
9366
9367 2007-11-07  Geoff Norton  <gnorton@novell.com>
9368
9369         * OSXStructs.cs: Add the kEventClassApplication constants.
9370         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
9371         application is deactivated otherwise Menu overlays linger on top of
9372         other application windows.
9373
9374 2007-11-07  Geoff Norton  <gnorton@novell.com>
9375
9376         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
9377         dont support cursors yet anyways.  This allows Reflector to run.
9378
9379 2007-11-07  Geoff Norton  <gnorton@novell.com>
9380
9381         * XplatUIOSX.cs: Implement DragSize.
9382
9383 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9384
9385         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
9386         ItemControl, request the focus, as .Net does. This is needed after 
9387         Control does not request focus anymore when it receives a
9388         WM_LBUTTONDOWN.
9389
9390 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
9391
9392         * Label.cs: Make DrawImage internal so it can be called from Theme code.
9393         Remove the DrawImage call from OnPaint.
9394         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
9395         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
9396         but before we draw the text for DrawLabel and DrawLinkLabel.
9397         Fixes bug #339565.
9398
9399 2007-11-05  Andreia Gaita <avidigal@novell.com>
9400
9401         * Control.cs: Remove select call on click. Fixes #325809
9402
9403 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9404
9405         * ListViewItem.cs: Add 2.0 Position property getter.
9406
9407 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9408
9409         * ListView.cs: Add 2.0 BackgroundImageTiled property.
9410         Also, to make it work properly, change item's BackColor and
9411         BackgroundImageLayout as needed.
9412         * ThemeWin32Classic.cs: Don't fill any background rectangle 
9413         in ListView.ItemControl when drawing items; just let the Control
9414         base implementation fill it.
9415
9416 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9417
9418         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
9419         as well as adding a custom 'dummy' Converter, as .net does.
9420
9421 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9422
9423         * PropertyGridView.cs: When clicking drop-down button,
9424         select an index in the listbox only if our standard values collection 
9425         has one or more items.
9426
9427 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9428
9429         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
9430         property.
9431
9432 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9433
9434         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
9435         the value is not changed. This ensure a pushed button remains in that
9436         state when clicked again. When switching the value of PropertySort
9437         between Categorized and CategorizedAlphabetical, do not update the
9438         grid items and do not fire a PropertyChangedEvent. When clicking the
9439         sorting buttons, do not modify the PropertySort value when switching
9440         between Categorized and CategorizedAlphabetical but only update the
9441         button state.
9442
9443 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9444
9445         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
9446         formatting.
9447         * PropertyGrid.cs: Also put Categorized button in pushed state when
9448         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
9449         for help description label.
9450
9451 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9452
9453         * ListView.cs: When calculating the biggest item for a given column,
9454         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
9455         the item's width.
9456
9457 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
9458
9459         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
9460         value for PropertySort on 1.0 profile. PropertySortChanged event
9461         should only be fired on 2.0 profile. Fixed NullReferenceException
9462         in UpdateSortLayout when PropertyGrid contains no items.
9463
9464 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
9465
9466         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
9467         [Fixes bug #338554]
9468
9469 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9470
9471         * ListViewItem.cs: Implement 2.0 IndentCount property.
9472
9473 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9474
9475         * X11Dnd.cs: When sending status in a dnd operation, compare current
9476         effect with the 'allowed' field instead of 'drag_data.Allowed', since
9477         the later is only created when a Winforms application is both the
9478         source and the target, but not when we are the target only.
9479         Fixes part of #324251.
9480
9481 2007-11-01  Geoff Norton  <gnorton@novell.com>
9482
9483         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
9484         order of Z-Order.
9485         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
9486         children out of the drawing view on mac.
9487         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
9488         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
9489         
9490 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9491
9492         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
9493         on the non-hosted-control part of it shouldn't do anything.
9494         Fixes part of bug #327498.
9495
9496 2007-11-01  Andreia Gaita <avidigal@novell.com>
9497
9498         * WebBrowserBase.cs: revert previous change, resize can be called anytime
9499
9500 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9501
9502         * Application.cs: When a toolstrip has the keyboard input loop, let messages
9503         it does not use flow through to controls that are hosted in menus.
9504         Same with mouse clicks.
9505         * Form.cs: Don't close all menus on click if the click is on a
9506         control hosted in a menu.
9507         Fixes part of bug #327498, and part of bug #325969.
9508
9509 2007-10-31  Andreia Gaita <avidigal@novell.com>
9510
9511         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
9512
9513 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
9514
9515         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
9516         Addresses an issue raised in bug #336218.
9517
9518 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
9519
9520         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
9521         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
9522
9523 2007-10-30  Andreia Gaita <avidigal@novell.com>
9524
9525         * ContainerControl.cs: Check if the active control is a
9526         child of a removed control and update active_control accordingly.
9527         Fixes #329718
9528
9529 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9530
9531         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
9532         or the MaxDate.  Fixed bug #337693.
9533
9534 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9535
9536         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
9537         after calling SetWindowLong for a form, to force an immediate NC refresh.
9538         Fixes first part of bug #325150.
9539
9540 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9541
9542         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
9543         simple.  Fixes the last part of bug #322668.
9544
9545 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9546
9547         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
9548         needs to be TopMost as well, or else the MessageBox is under the form.
9549         Patch by George fixes bug #325300.
9550
9551 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9552
9553         * X11Dnd.cs: When starting a new drag operation, reset the static
9554         'dropped' field to false (previously the implementation didn't reset
9555         it and got confused after the first drag).
9556         Fixes #325071.
9557
9558 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9559
9560         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
9561         items instead of re-creating them all. For this purpose we now cache
9562         both CategoryGridEntry items and the GridEntries for the main object's
9563         properties.
9564         * GridItem.cs: Make SetParent method abstract.
9565         * GridEntry.cs: Override the SetParent method (already there, but now
9566         we override it).
9567         Fixes #324866.
9568
9569 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9570
9571         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
9572         depending on its depth (as .Net does). Update the needed values in
9573         MouseDown handler. Also draw the plus/minus rect after the label,
9574         so we don't draw on top of it.
9575
9576 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
9577
9578         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
9579         processed by forms or controls when menu is active. [Fixes #333548]
9580
9581 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9582
9583         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
9584         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
9585         focus on mouse over.
9586
9587 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9588
9589         * TextControl.cs: Code cleaning, simplifying.
9590
9591 2007-10-24  Geoff Norton  <gnorton@novell.com>
9592
9593         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
9594         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
9595
9596 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9597
9598         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
9599         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
9600
9601 2007-10-24  Andreia Gaita <avidigal@novell.com>
9602
9603         * SendKeys.cs: apply jpobst's patch to bug #332409
9604
9605 2007-10-23  Andreia Gaita <avidigal@novell.com>
9606
9607         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
9608         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
9609         for some reason
9610
9611 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9612
9613         * PropertyGridView.cs: If a property has an UIEditor available,
9614         make the drop-down/editor button available only if the property
9615         is _not_ read only.
9616
9617 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9618
9619         * PropertyGridView.cs: Don't make the grid item textbox 
9620         editable when a drop-down control is available, but 
9621         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
9622         true. The same bur the color of the grid item value's label.
9623
9624 2007-10-22  Geoff Norton  <gnorton@novell.com>
9625
9626         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
9627         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
9628         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
9629         driver.  Padd the bottom of all real windows so the resize thumb doesn't
9630         obscure scroll/status bars.
9631
9632 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
9633
9634         * WindowsFormsSection.cs: Implement.
9635
9636 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9637
9638         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
9639         closed see #325434 patch.
9640
9641 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9642
9643         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
9644         see #325434 patch.
9645
9646 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9647
9648         * PropertyGridView.cs: When showing the textbox for a grid item,
9649         have two local variables to store the read-only and non-editable
9650         status of a grid item (we were previously using just one variable
9651         to do this, when actually they are slightly different).
9652         Fixes part of #325023.
9653
9654 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9655
9656         * PropertyGridView.cs: When showing a drop-down list, try to get the
9657         values using TypeConverter.ConvertTo (to convert to a string). Fixes
9658         part of #325023.
9659
9660 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9661
9662         * PropertyGrid.cs: When updating a property and populating sub grid
9663         items, remove the previous ones, and invalidate the specific area.
9664         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
9665         area behind a grid item.
9666         * GridItemCollection.cs: Add an internal Clear method, to allow us to
9667         clean the items if needed (specially for controls implementing 
9668         ICustomTypeDescriptor and returning a variable number of properties).
9669         Fixes #324865.
9670
9671 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
9672
9673         * TextControl.cs: Clean up and document the Insert function.
9674
9675 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9676
9677         * TextControl.cs: Make sure we know our start point for updating the view
9678         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
9679         update the view.
9680
9681 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9682
9683         * ListView: Couple of corcompare fixes.
9684
9685 2007-10-17  Geoff Norton  <gnorton@novell.com>
9686
9687         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
9688         the title caption of real window.
9689
9690 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9691
9692         * ErrorProvider.cs: Add the error provider's internal window to a 
9693         containercontrol when the parent changes.  [Fixes bug #329714]
9694
9695 2007-10-17  Geoff Norton  <gnorton@novell.com>
9696
9697         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
9698         When we make a new window; restore the old active window - fixes dialogs.
9699
9700 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9701
9702         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
9703         when modifying a property, and if found then invalidate as
9704         requested.
9705         Fixes part of #324865.
9706
9707 2007-10-17  Geoff Norton  <gnorton@novell.com>
9708
9709         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
9710         highly experimental.  Fixed coordinate translation.  Fixed window locations.
9711         Initial support for clipping. Implemented NC areas and menus.  Support for
9712         launching from command line from Will Johansson (wjohansson@atacomm.com).
9713         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
9714         wjohansson@atacomm.com)
9715         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
9716         Hwnds now track the existence of all of their children for Mac clipping.
9717     * XplatUI.cs: Re-enabled the native driver on the Mac.
9718
9719 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9720
9721         * Line.cs: Move the InsertString function to here.
9722         * TextControl.cs: Cleanup some duplicate code, move some InsertString
9723         functionality to Line.
9724
9725 2007-10-17  Geoff Norton  <gnorton@novell.com>
9726
9727         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
9728
9729 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
9730
9731         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
9732         always setting value to true.
9733         * Form.cs: When changing AcceptButton, notify new and original button.
9734
9735 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
9736
9737         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
9738         a custom control that implements IButtonControl instead of an actual
9739         button.  [Fixes bug #334244]
9740
9741 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
9742
9743         * Form.cs: Change SelectActiveControl to internal, we need to call it in
9744         MdiWindowManager.
9745         
9746         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
9747         active control when activate a new mdi window.
9748         
9749         [Fixes bug #330495]
9750
9751 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
9752
9753         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
9754         is already added.
9755         [Fixes bug #333617]
9756
9757 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9758
9759         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
9760         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
9761         so we always recalculate the whole document instead of just the new part.
9762         [Fixes bug #325082]
9763
9764 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9765
9766         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
9767         when the mouse was to the left of the first character in the line.
9768
9769 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
9770
9771         * TextBox.cs, TextBoxBase.cs: When setting the document's password
9772         character, use the property instead of the variable so that the
9773         UseSystemPasswordChar property is taken into account.
9774         [Fixes bug #333748]
9775
9776 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9777
9778         * FolderBrowserDialog.cs: When a node is right clicked and the "New
9779         folder" contex menu appears, actually add the new folder to it, even
9780         if the node is not currently selected. Still use SelectedNode in case 
9781         there wasn't found a node under the pointer.
9782         Fixes #325452.
9783
9784 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9785
9786         * ListViewItem.cs: When retrieving the focused state, the index check
9787         should be done only when ListView is in virtualmode, as it is an
9788         expensive check for normal mode.
9789
9790 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9791
9792         * ListViewItem.cs: Make the focus state information be stored
9793         in the ListView, not in the items. This is done to match the MS
9794         behaviour for items that are not yet part of a ListView control;
9795         besides that, since just one item can be focused at the same time,
9796         we save a little space in our items.
9797         Fixes part of #331643.
9798
9799 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9800
9801         * ComboBox.cs: When focus is lost, deselect the text. When setting
9802         text of control, select all text. Do not hide selection when control
9803         does not have focus. Fixes bug #333663.
9804
9805 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9806
9807         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
9808         instead of ArgumentException when SelectionLength is set to negative
9809         value. Added same check to SelectionStart. Code formatting.
9810
9811 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9812
9813         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
9814         or SelectionStart. Code formatting.
9815
9816 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9817
9818         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
9819         indicating that there was not a previous drag-and-drop operation going
9820         on.
9821         Fixes part of #325071.
9822
9823 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9824
9825         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
9826         AllowedEffect, don't let the drop operation happen. 
9827         Fixes #32580.
9828
9829 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9830
9831         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
9832
9833 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9834
9835         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
9836         is called.
9837
9838 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
9839
9840         * Line.cs: Add a method that finds the tag that contains an x-coord.
9841         * LineTag.cs: Add a method that finds the character at an x-coord using
9842         a binary search, the old way was a linear search.
9843         * TextControl.cs: Change FindCursor to use the above new methods.
9844
9845 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9846
9847         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
9848         value different than AllowedEffect). This should be possible to
9849         indicate that dragging is not possible in some control/area.
9850
9851 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
9852
9853         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
9854         descent internally when font changes instead of outside code being responsible
9855         for setting it.
9856         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
9857         instead of accessing internal variables.
9858
9859 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
9860
9861         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
9862         remove special treatment for ArrangeIcons since it is already arranged.
9863
9864 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9865
9866         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
9867         the Win32 backend uses Color.
9868         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9869         Refactor to store a Color instead of a Brush for Color.
9870
9871 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9872
9873         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
9874         away.  I didn't realize I needed this when I refactored these earlier.
9875
9876 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9877
9878         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
9879         store a Color structure and use the ResPool for back color instead of
9880         holding onto brushes.
9881
9882 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
9883
9884         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
9885         [Fixes bug #325592]
9886
9887 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9888
9889         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
9890         to recalculate its size.  Fixes a part of bug #331052.
9891
9892 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9893
9894         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
9895         button.  Fixes a part of bug #331052.
9896
9897 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9898
9899         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
9900         the CreateParams.
9901         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
9902         decorations.
9903         [Fixes bug #330986]
9904
9905 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9906
9907         * TextBoxTextRenderer.cs: Don't make this a static class, as static
9908         doesn't exist in 1.1.  (Thanks jb!)
9909
9910 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
9911
9912         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
9913         class to allow us to use different backends on different platforms.
9914         Linux uses the current [Draw|Measure]String backend.  Windows uses
9915         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
9916         of GDI+.  This leads to better looking text and more accurate measurements
9917         on Windows, fixing many of the reported issues.
9918         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
9919
9920 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9921
9922         * FolderBrowserDialog.cs: When running on Windows,
9923         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
9924         since we must match both "C:" and "C:\" forms. A little hackish, but
9925         works.
9926         Fixes #325247.
9927
9928 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9929
9930         * ListView.cs: When calling EndEdit (after editing an item),
9931         create a new instance of LabelEditEventArgs to keep clean the fields
9932         in case we get a new call to BeginEdit; also do Application.DoEvents
9933         to have focus in synch. This is a fix similar to TreeView's #325244.
9934
9935 2007-10-07  Andreia Gaita <avidigal@novell.com>
9936
9937         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
9938         * WebBrowserBase.cs: Added dialog support, calling the
9939           WebBrowserDialogs classes for each specific dialog type.
9940
9941 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9942
9943         * ListView.cs: When the last item is focused and is removed,
9944         move the focus to the previous item (in Items order). This is what MS
9945         does.
9946         Fixes #330415.
9947
9948 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9949
9950         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
9951         instead of the opposite (RemoveAt call Remove). This is a better
9952         approach since we don't need to to a pair of traversals when using
9953         RemoveAt.
9954
9955 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9956
9957         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
9958         check that the node actually has nodes, and if not, move to the
9959         parent node instead. 
9960         Fixes #325265.
9961
9962 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9963
9964         * TreeView.cs: Move the previous change to the general case (to
9965         call Application.DoEvents in cases where the method was called by
9966         different places).
9967
9968 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9969
9970         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
9971         call Application.DoEvents. This is neccessary when we get a call to
9972         BeginEdit from an AfterLabelEdit handler, because the focus always
9973         goes to the TreeView, even if we try to give it to our
9974         LabelEditTextBox. The call do Application.DoEvents seems to
9975         synchronize the focus, basically.
9976         Fixes #325244.
9977
9978 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9979
9980         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
9981         should be false. This also removes some nasty recursive paths. Fixes
9982         part of #325244.
9983
9984 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
9985
9986         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
9987         state to normal. Also resize window when cascading. Fixes #325433. 
9988
9989 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
9990
9991         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
9992         DefaultForeColor, as drawing empty colored lines isn't very useful.
9993         [Fixes the not drawn lines part of bug #324358]
9994
9995 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
9996
9997         * TextControl.cs: Move Line and LineTag classes into separate files to
9998         make things easier to find.
9999         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
10000         * RichTextBox.cs: Capitalize LineTag.Length property access.
10001         - This is purely an organizational/formatting change, no logic changed. -
10002
10003 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10004
10005         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
10006         text is empty.
10007
10008 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10009
10010         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
10011         text is empty.
10012
10013 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10014
10015         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
10016         prevent calling of OnBackColorChanged. Fixes #325321.
10017
10018 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10019
10020         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
10021         because control can be disabled because owner is disabled.
10022
10023 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10024
10025         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
10026         string.Empty, test failed from previous change.
10027
10028 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10029
10030         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
10031         is null, not String.Empty.  See bug #323038.
10032
10033 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
10034
10035         * TextControl.cs: Change the margins to match MS a little better.
10036         Still not perfect for X11 due to some DrawString differences, but
10037         is still an improvement over the old stuff.
10038         Partially fixes #324467.
10039
10040 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10041
10042         * FolderBrowserDialog.cs: When using MyComputer as 
10043         RootFolder, let absolute paths be considered as valid ones. Also, use
10044         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
10045         for Windows compatibility.
10046         Partially fixes #325247.
10047
10048 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10049
10050         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
10051         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
10052         method, since it causes the dialog to not select folders directly
10053         under the root path (when setting SelectedPath property).
10054
10055 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10056
10057         * TreeNode.cs: When calling Expand/Collapse and need to call 
10058         ExpandBelow/CollapseBelow respectively, take into account
10059         partially visible nodes (previously Expanding/Collapsing
10060         a partially visible node in the bottom was not updating its +- sign).
10061
10062 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10063
10064         * TreeView.cs: When calling Expand on a TreeNode, and we need to
10065         expand nodes below (ExpandBelow), scroll the entire Viewport
10066         area if the node is above it and not visible (instead of scrolling
10067         the area from node's Bottom, which applies only when the node is
10068         visible).
10069         Fixes #325266.
10070
10071 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10072
10073         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
10074         node in the bottom area (as .Net does). This is done to preserve the
10075         scroll position when ExpandAll is called before handle is created for
10076         the 1.1 profile (bottom area, as opposed to top area in 2.0).
10077         Fixes #324103.
10078
10079 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10080
10081         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
10082         bottom area if we are in fact not using the vertical scroll bar.
10083         Fixes #324824.
10084
10085 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10086
10087         * Control.cs: Comment out a double buffering optimization that doesn't
10088         take into account invalidates created in OnPaint, causing the control
10089         to never be redrawn.  It would take quite a bit of work to work around
10090         this, but I left it commented with an explanation for later possible
10091         optimization.
10092         [Fixes bug #328681]
10093
10094 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10095
10096         * Control.cs: Ask parent to perform a layout if control is AutoSize and
10097         the text changes.
10098         * RadioButton.cs: Implement GetPreferredSizeCore.
10099         [Fixes bug #328672]
10100
10101 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10102
10103         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
10104         corcompare stuffs.
10105
10106 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10107
10108         * Application.cs: Move the sync context stuff to Run instead of RunLoop
10109         so that it doesn't get uninstalled on modal forms.
10110         * Control.cs: Install a sync context when a control is created.
10111         * WindowsFormsSyncronizationContext.cs: Create a private static control
10112         to invoke on.  This is easier than trying to find a created control we
10113         can use.
10114         [Fixes bug #327608]
10115
10116 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
10117
10118         * Application.cs: Install a WindowsFormsSynchronizationContext in the
10119         run loop, and uninstall it when done.
10120         * WindowsFormsSynchronizationContext.cs: Implement.
10121         [Fixes the common case in bug #327608]
10122
10123 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
10124
10125         * DataGridViewCellCollection.cs: Added argument checks for indexers.
10126         Use case-insensitive lookup of column name in indexer. Code
10127         formatting.
10128
10129 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10130
10131         * TreeNode.cs: When collapsing or expanding a node, check whether its
10132         change will affect the visible area (we were previously doing a
10133         IsVisible check, but that check is not enough since children nodes
10134         could be still visible). Fixes part of #325266.
10135
10136 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10137
10138         * TreeView.cs: Always select the first node when the TreeView gets
10139         focus if there is no currently selected node.
10140         [Fixes bug #324279]
10141
10142 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10143
10144         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
10145         node being selected is null.
10146         [Patch from Yves Bastide fixes bug #326858]
10147
10148 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10149
10150         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
10151         whether all the parent nodes are expanded.
10152         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
10153         call RecalculateVisibleOrder if all previous nodes are expanded.
10154         Before that we were doing a IsVisible check, but sometimes the node
10155         is not in the visible area, but _should_already be ready, because of
10156         all previous nodes are expanded. Fixes #325259.
10157
10158 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10159
10160         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
10161         portion of the item is clicked.
10162
10163 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10164
10165         * TextControl.cs: Do not tell the system to move the cursor if the
10166         textbox isn't focused.  Fixes part of bug #322668.
10167
10168 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10169
10170         * ComboBox.cs: When there are no items, do not show the dropdown if
10171         the down arrow is clicked.  Fixes part of bug #322668.
10172
10173 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10174
10175         * ToolStripComboBox.cs: Manually set the size of this control in the
10176         constructor, as it doesn't seem to be the same as DefaultSize.
10177         Fixes a failing monobuild test.
10178
10179 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10180
10181         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
10182         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
10183
10184 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10185
10186         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
10187         Desktop.  This lets it work for people who have moved their desktops
10188         from the default location on windows.  For people who have not, both
10189         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
10190
10191 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10192
10193         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
10194         but when the base constructor sets this, the control is null.  Set it
10195         again in the constructor.  Fixes a failing monobuild test.
10196
10197 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10198
10199         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
10200         get called.
10201         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
10202         called.
10203
10204 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10205
10206         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
10207         will handle it themselves.
10208         * ToolStripItem.cs: When deciding what the text of a tooltip should
10209         be, use the Text property instead of the text field.
10210         * ToolStripTextBox.cs: Handle tooltips.
10211         [Fixes bugs #325417 and #325973]
10212
10213 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10214
10215         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
10216         left click.  Fixes the easy part of bug #325969.
10217
10218 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10219
10220         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
10221         bug #325406, but set a minimum for StatusStrip to 22 to keep
10222         bug #325390 fixed.  I think this minimum would have been figured
10223         up automatically if the grip was actually a ToolStripItem, but it
10224         currently is not.
10225
10226 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10227
10228         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
10229         as this is apparently the actual value used by .Net. Also apply
10230         ItemPadding in Details view only, and decrease the general width padding,
10231         to have only the needed. This should fix #324340 in Windows too.
10232
10233 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10234
10235         * ListViewItem.cs: Don't Invalidate item if parent is inside
10236         a BeginUpdate/EndUpdate block. This prevents to have differences
10237         between the ListView and items state, as well as avoid some exceptions
10238         there.
10239         * ListView.cs: Make 'updating' field internal.
10240
10241 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10242
10243         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
10244         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
10245         size if appropriate.
10246         Fixes reopened bug #325414.
10247
10248 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10249
10250         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
10251         * ToolStripItem.cs: Invalidate before and after our new autosize when
10252         text changes.
10253         Fixes reopened bug #325390.
10254
10255 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10256
10257         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
10258         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
10259         #325044.
10260
10261 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10262
10263         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
10264
10265 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10266
10267         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
10268         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
10269         #82734.
10270
10271 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10272
10273         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
10274         item to select when the ToolStrip is selected.
10275         * ToolStripControlHost: Realign the control when the bounds or visibility
10276         change.
10277         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
10278         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
10279         preferred height.
10280         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
10281         base.OnPaint.  Was causing text not to be drawn.
10282
10283 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10284
10285         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
10286
10287 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10288
10289         * TreeView.cs: When creating the label edit text box,
10290         set is initially to Visible = false. This is done to
10291         prevent a confusion in the layout which makes it to lose
10292         focus when shown the first time. Fixes part of #82592.
10293
10294 2007-09-13 Andreia Gaita <avidigal@novell.com>
10295
10296         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
10297
10298 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10299
10300         * ToolStrip.cs: Take Margin into account when calculating preferred
10301         size.  Also, allow preferred size to get smaller than the explicit
10302         size.
10303         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
10304         First step towards fixing bug #82747.
10305
10306 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10307
10308         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
10309         full row select background over the plus/minus glyph.  Also, turn
10310         off the focus rectangle for full row select since MS doesn't seem
10311         to ever paint it.  [Fixes bug #81839]
10312
10313 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10314
10315         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
10316         This was causing keyboard opened dropdowns to lose focus.
10317         [Fixes bug #82803]
10318
10319 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10320
10321         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
10322         ClientRectangle instead.  [Fixes bug #82838]
10323
10324 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10325
10326         * SplitContainer.cs: We can't reset Visible on every layout because
10327         someone may have set Visible = false explicitly on a SplitterPanel.
10328         Make sure when we switch orientation the SplitterDistance does not
10329         change.  Fixes two failing tests.
10330
10331 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10332
10333         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
10334         TextRenderer, since the latter is only available in 2.0.
10335
10336 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
10337
10338         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
10339         * SplitContainer.cs: Implement FixedPanel layouting.
10340
10341 2007-09-12  Andreia Gaita  <avidigal@novell.com>
10342
10343         * WebBrowserBase.cs: setup shutdown routine
10344
10345 2007-09-12  Andreia Gaita  <avidigal@novell.com>
10346
10347         * Application.cs: Let keyboard events that are targetted 
10348                 to non-mwf windows hosted inside mwf (as in, webbrowser),
10349                 propagate properly. Fixes keyboard handling on the webbrowser.
10350
10351 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10352
10353         * ListView.cs: When handling MouseUp event and we are 
10354         highligting a node with the mouse right button, don't trigger
10355         Before/AfterSelecting event, since we are not actually selecting
10356         the node.
10357
10358 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10359
10360         * TreeView.cs: When editing a node, modify the edit text box
10361         depending on the text length (as you are typing), like MS does.
10362
10363 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
10364
10365         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
10366         Override GetPreferredSizeCore to perform calculations.  Remove custom
10367         autosize logic.  [Fixes bug #82739]
10368
10369 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
10370
10371         * TextBoxBase.cs: Modified should default to false.
10372
10373 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10374
10375         * Control.cs: Update the anchoring distances even when layout is supspended.
10376         Patch provided by George fixes bug #82805.
10377
10378 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10379
10380         * Control.cs: Provide a setter for ExplicitHeight.
10381         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
10382         remove the hacks in here for requested_height.
10383         [Fixes bug #82749]
10384
10385 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10386
10387         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
10388         Maximum to lower that its current Value caused an ArgumentException by setting
10389         the Value to the new Maximum.
10390
10391 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10392
10393         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
10394         handle moves to the closest tick when it is being dragged.
10395         [Fixes bug #82751]
10396
10397 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10398
10399         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
10400         can't let them count as real items when calculating where to merge in the
10401         user's items.  [Fixed bug #82786]
10402
10403 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10404
10405         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
10406         who want to add a menu item directly onto a toolstrip.
10407         [Fixes bug #82775, part II]
10408
10409 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10410
10411         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
10412         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
10413         don't set it to available.
10414         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
10415         [Fixes bug #82727, part II]
10416
10417 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10418
10419         * StatusStrip.cs: Change item placement to None if not visible.
10420         * ToolStripItem.cs: Invalidate when InternalVisible changes.
10421         These should have been committed to fix 82723, but I missed them.
10422
10423 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10424
10425         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
10426         Click, and that it is only called once.
10427         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
10428         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
10429         dropped down.
10430         [Fixes bug #82775]
10431
10432 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10433
10434         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
10435         to match .Net.
10436         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
10437         instead of 8, just like above. Partially fixes #82734.
10438
10439 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10440
10441         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
10442         fixes #82734.
10443
10444         * ListView.cs: Remove extra space between rows in Details view (match
10445         .Net). 
10446         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
10447         the DefaultFont.
10448
10449 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
10450
10451         * Application.cs: Modified ProductVersion to return value of
10452         AssemblyInformationVersion if available, and fallback to assembly
10453         version. Fixes bug #82746. Code formatting.
10454         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
10455         instead.
10456
10457 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10458
10459         * Control.cs: When updating ZOrder for a child control,
10460         take into account the implicit ones (we need it in our controls
10461         using them). Fixes #82642.
10462
10463 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10464
10465         * ToolStripItem.cs: Add support for animated images.
10466         [Fixes bug #82726]
10467
10468 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10469
10470         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
10471         visible.  [Fixes bug #82727]
10472
10473 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10474
10475         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
10476         so we repaint using the new size.  [Fixes bug #82723]
10477
10478 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10479
10480         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
10481         option.  [Fixes bug #81779]
10482
10483 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10484
10485         * TreeView.cs: Override HandleClick because the StandardClick style is
10486         set to false.  According to MSDN (and testing), the click events should
10487         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
10488
10489 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10490
10491         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
10492         the border will disappear.  Fixes reopened #82653.
10493
10494 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10495
10496         * Control.cs: If the control is autosize, and its preferred size changes
10497         when it lays out its children, tell its parent so it can be re-layed out.
10498         Fixing some of the fallout from r85433.
10499
10500 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10501
10502         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
10503         and CheckBox share some code.
10504
10505 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10506
10507         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
10508         the TrackBar, not every mouse move.  [Fixed bug #82718]
10509
10510 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10511
10512         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
10513         under 2.0 rendering.  [Fixes bug #82657]
10514
10515 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10516
10517         * TreeView.cs: If we found a TreeNode to display a context menu, but
10518         it doesn't have one to show, let the TreeView display its menu
10519         instead.  [Fixes bug #82680]
10520
10521 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10522
10523         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
10524         OnPaintInternal instead.  Give the internal TextBox a Border property
10525         so it can draw itself more correctly.  [Fixes bug #82653]
10526
10527 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
10528
10529         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
10530
10531 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10532
10533         * ComboBox.cs: Adjust combobox button state to reflect current state when
10534         back to enabled = true. Fixes first issue of #82654.
10535
10536 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10537
10538         * Control.cs: Fix last patch regression, prevent forms to update zorder when
10539         setting visible property.
10540
10541 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10542
10543         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
10544         fix zorder for controls initially created as non visible. Fixes #82667.
10545
10546 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
10547
10548         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
10549         mimic win32 look. Fixes #82656.
10550
10551 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
10552
10553         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
10554         Stubs for new net 3.5 classes.
10555
10556 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10557
10558         * ListViewItem.cs: In ListViewItemCollection operations calculate
10559         Layout for owner as well as invalidate it. Fixes part of #82642.
10560
10561 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
10562
10563         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
10564         when returning Enabled.  [Fixes bug #82651]
10565
10566 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
10567
10568         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
10569
10570 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10571
10572         * ListView.cs: Put item padding info in a single place
10573         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
10574         columns again.
10575         * ThemeWin32Classic.cs:
10576         * Theme.cs: Likewise.
10577
10578 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10579
10580         * ListView.cs: When a ListViewSubItem instance is invalidated,
10581         invoke Invalidate on parent ListViewItem, not parent ListView.
10582         Fixes #81570.
10583
10584 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10585
10586         * ListView.cs, ListViewItem.cs: corcompare stuffs.
10587
10588 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10589
10590         * BindingMemberInfo.cs: Implement == and != operators.
10591
10592 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10593
10594         * HtmlElementEventArgs.cs: Implement properties.
10595
10596 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10597
10598         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
10599
10600 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10601
10602         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
10603         Add (string,string,string) to implement the imagekey.  It turns out, we
10604         use the requested imagekey whereas .Net does not.  So I broke ours to match
10605         theirs.  :(
10606
10607 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10608
10609         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
10610
10611 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10612
10613         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
10614
10615 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
10616
10617         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
10618         up-to-date. Fixes bug #82618.
10619
10620 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
10621
10622         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
10623         reflect document changes. Fixes #82367.
10624
10625 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10626
10627         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
10628         as well as add new ones. This should make work the BackgroundImage
10629         property for ListView again.
10630
10631 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10632
10633         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
10634         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
10635         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
10636
10637 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10638
10639         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
10640         IsKeyLocked.
10641
10642 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10643
10644         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
10645         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
10646
10647 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10648
10649         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
10650         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
10651
10652 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10653
10654         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
10655
10656 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10657
10658         * GridEntry.cs: Implement GetService.
10659
10660 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
10661
10662         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
10663         for label editting, make sure we focus back on the TreeView.
10664         [Fixes bug #82590]
10665
10666 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10667
10668         * ListView.cs: Add some 2.0 overrides.
10669
10670 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10671
10672         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
10673         because getter dont returns right value before handle creation. Thanks 
10674         to George. Fixes #82569.  
10675
10676 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10677
10678         * Theme.cs: Revert last patch, it causes error under win32. 
10679
10680 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10681
10682         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
10683         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
10684         logical Desktop rather than the physical file system location. Fixes #82603. 
10685
10686 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
10687
10688         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
10689         for the patch. Fixes #82568.
10690
10691 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10692
10693         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
10694         methods.
10695
10696 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10697
10698         * ListViewInsertionMark.cs: New stubbed class.
10699
10700 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10701
10702         * FolderBrowserDialog.cs: When adding folder, immediately create the
10703         directory with temporary name and rename the directory when editing
10704         finishes. This matches MS. Ensure the node for the new folder is 
10705         selected and LabelEdit is disabled, when editing is either finished
10706         or cancelled.
10707
10708 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10709
10710         * TreeView.cs: When editing label of node, ensure node is visible.
10711
10712 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
10713
10714         * PropertyGridView.cs: Set the value only if it has changed.
10715
10716 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10717
10718         * ListView.cs: Some more code refactoring to add support sorting
10719         with groups (now for Details view). Remove unused code also.
10720
10721 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10722
10723         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
10724         Not a big fan of reacting immediately to a field in an EventArg, but that's
10725         the way it's done.  (This is part of the previous commit that got left out.)
10726
10727 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10728
10729         * FolderBrowserDialog.cs: Removed need for separate description field.
10730         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
10731         has focus when dialog box is displayed again, regardless of what
10732         button was pressed the previous time. Set RootFolder and SelectedPath
10733         each time dialog box is displayed. This ensures the treeview is
10734         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
10735         when it does not have focus. Added support for more special folders.
10736
10737 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10738
10739         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
10740         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
10741         it resets the edit_args.
10742         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
10743         [Fixes bug #82577]
10744
10745 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
10746
10747         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
10748         button to match MS. Provide more meaningful exception message for
10749         invalid RootFolder value. Use zero-length string when SelectedPath
10750         is set to null. Allow non-rooted paths in SelectedPath, but ignore
10751         them in FolderBrowserTreeView. Allow folders to be created in
10752         RootFolder. Fixes bug #82576.
10753
10754 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10755
10756         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
10757         since we need to take into account the group headers and the margin
10758         between them.
10759         * ListViewGroup.cs: Add a rows field to store the number of rows per
10760         group.
10761
10762 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10763
10764         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
10765           Anyways, let's just follow the lead.
10766
10767 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10768
10769         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
10770         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
10771         controls in GetPreferredSizeCore.
10772         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
10773         [Fixes bug #82488]
10774
10775 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10776
10777         * PrintDialog.cs: Need to instantiate the form variable here too.
10778
10779 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10780
10781         * ListView.cs: Do some reorganization to support sorting in groups,
10782         by doing the layout sequentially in ListView.Items. Also add support
10783         for the Default Group, which should be available for items with no
10784         group assigned.
10785         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
10786         for storing layout info also.
10787         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
10788         collection, as well as providing internal members to do a traversal
10789         including the default group (needed when doing layout/drawing).
10790         * ThemeWin32Classic.cs: When drawing group headers use internal
10791         ListViewGroupCollection members to take into account the default
10792         group.
10793
10794 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
10795
10796         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
10797
10798 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10799
10800         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
10801         been created.  If handle is created, we want arror keys.  If we are editing
10802         a node, we want things like enter, esc, home, end, page up, page down.
10803         Allows Esc to work for FolderBrowserDialog.
10804
10805 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10806
10807         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
10808         they close when ESC is pressed.  Thanks Andy!
10809
10810 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10811
10812         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
10813         This way we can tell if this is a CommonDialog provided with mono, or one
10814         that is being implemented outside by a developer.  If it is an external one,
10815         the developer is responsible for showing their own form.  We were showing
10816         our blank form after the developer showed his.
10817         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
10818         PageSetupDialog.cs: Instantiate form variable in our constructor.
10819         [Fixes bug #82531]
10820
10821 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10822
10823         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
10824         and always return true.  [Fixes bug #81616]
10825
10826 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
10827
10828         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
10829         TextBox.  [Fixes bug #82549]
10830
10831 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
10832
10833         * FileDialog.cs: When Save/Open is clicked and no filename is selected
10834         or entered then do not close the dialog. Fixes bug #82539. Removed
10835         CWLs.
10836
10837 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
10838
10839         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
10840         code to this method. It is calling every time filter changes. This method
10841         will help to fix the bug #80887.
10842
10843 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
10844
10845         * CheckBox.cs: Implement AutoSize calculation.
10846
10847 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
10848
10849         * CheckBox.cs: Use new 2.0 rendering for 2.0.
10850         * Theme.cs: Method declarations for 2.0 rendering path.
10851         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
10852
10853 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10854
10855         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
10856
10857 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10858
10859         * ListViewGroupCollection.cs: Implement AddRange the right way, to
10860         only call Redraw on the parent one time.
10861
10862 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10863
10864         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
10865           GetClipboardContent.
10866         * DataGridViewCell.cs: Implemented GetClipboardContent,
10867           GetEditedFormattedValue, GetFormattedValue.
10868         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
10869
10870 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
10871
10872         * TableLayoutStyleCollection.cs: corcompare fix.
10873
10874 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10875
10876         * DataObject.cs: Implemented retrieval of convertible / not convertible
10877           objects.
10878
10879 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
10880
10881         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
10882         ourselves.  This ensures the entire old bounds are repainted, in case our new
10883         size is smaller.  [Fixes bug #82518]
10884
10885 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
10886
10887         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
10888         flag to make fast handle of mouse events, without this the mouse move is
10889         handled in some manner, whether it is a mouse move or not. Fixes #81588.
10890
10891 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10892
10893         * ListView.cs: When doing layout calculations don't use a ref
10894         param to keep the current item; instead use its Index value (this 
10895         is specially important when doing the layout with Groups
10896         and Items being sparse). Also don't take into account items added to
10897         the Group but not yet added to the main ListView.Items collection.
10898
10899 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10900
10901         * ListViewGroupCollection.cs: Forgot to mimic an issue
10902         in the indexer (don't assign the ListView owner for new values).
10903
10904 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10905
10906         * ListViewGroupCollection.cs: Make the string indexer use
10907         the int based indexer to re-use code, instead of duplicate the code.
10908         Also Redraw as needed and take into account null values.
10909
10910 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
10911
10912         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
10913         [Fixes bug #82481]
10914
10915 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
10916
10917         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
10918         when other buttons are clicked or navigated to.
10919
10920 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10921
10922         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
10923           it's XplatUIX11 that attaches them.
10924
10925 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10926
10927         * DataGridView.cs: If a column has been added, recreate the editing row.
10928           Fixes #82226.
10929
10930 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10931
10932         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
10933           of the tag to draw. Makes disappearing text show up again.
10934
10935 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10936
10937         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
10938           Contents. Fixes #82487.
10939
10940 2007-08-19  Andreia Gaita  <avidigal@novell.com>
10941
10942         * Added HtmlElement.cs, HtmlElementCollection.cs, 
10943           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
10944           
10945 2007-08-19  Andreia Gaita  <avidigal@novell.com>
10946
10947         * BindingSource.cs: Implement this, dispose and getenumerator.
10948         * DataGridViewRowCollection.cs: Move the InvalidOperationException
10949         out of AddInternal, throw it only on public Add calls. The 
10950         UsingWebBrowser sample was blowing up with this when setting the
10951         DataSource after adding DataBindings, so it's likely that .net
10952         only throws this exception when Add is called directly. 
10953         
10954         * ToolStripControlHost.cs: Return the hosted control's text
10955         property, and not the ToolStripItem one (it would always return
10956         the initial value).
10957         
10958         * HtmlDocument.cs: Implement GetElementById and All
10959         * WebBrowser.cs: Remove exception on set_DocumentStream.        
10960
10961 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10962
10963         * Form.cs: Fix the max and min value for opacity (0~1).
10964
10965 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10966
10967         [Fixes #80118]
10968         * DataGridTableStyle.cs: Default header font is now null, on getter it 
10969         returns datagrid font when is null. On setter permits null.
10970
10971         * DataGrid.cs:
10972         - When ResetHeaderFont set header font to null.
10973         - On EndInit set grid_style.DataGrid.
10974
10975 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10976
10977         * TabControl.cs: Fix regression in default padding x.
10978
10979 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10980
10981         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
10982
10983 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
10984
10985         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
10986         not 2. Fixes #82229.
10987
10988 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10989
10990         * TabControl.cs: Fix tab size when image height is less than text height.
10991         Partially fixes #81837.
10992
10993 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
10994
10995         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
10996         "alt + tab". It works only for Win32, for X11 theres no way to remove window
10997         from taskbar and keep it on "alt_tab". Fixes #81722.
10998
10999 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11000
11001         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
11002         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
11003         Fixes #80877 and #79418.
11004
11005 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11006
11007         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
11008         between position and one of the screen borders. Fixes #82349.
11009
11010 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11011
11012         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
11013         the MessageBox in the taskbar. Fixes #82457.
11014
11015 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11016
11017         * MessageBox.cs: Fix form size when icon is set and text height is bigger
11018         than icon. Fixes #82468.
11019
11020 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11021
11022         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
11023         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
11024           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
11025           Refactored HandleNCCalcSize somewhat to avoid code duplication.
11026         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
11027           FormBorderStyle to decide if we're calculating a new size from the
11028           client size or not. CreateParams: Don't fake tool windows, only the X11
11029           backend manages toolwindows manually.
11030
11031 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11032
11033         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
11034         ObjectDisposedException.
11035
11036 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11037
11038         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
11039         in OnLoad should not have any effect.  [Fixes bug #82470]
11040
11041 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11042
11043         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
11044         paint for controls that create their own ToolTipWindow instead of
11045         going through ToolTip.
11046
11047 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11048
11049         * ToolTip.cs: Make Hide internal instead of public to match MS API.
11050
11051 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11052
11053         * ListViewGroupCollection.cs: Use generic List instead of an
11054         ArrayList, since this collection is 2.0 only.
11055
11056 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
11057
11058         * ToolTip.cs (Hide): Made public to make the build work (should
11059         this not be public?).
11060
11061 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11062
11063         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
11064         ToolTipWindow.
11065         * ToolTip.cs: Add an internal Visible property to facilitate transition.
11066
11067 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11068
11069         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
11070         PopupEventHandler.cs: Make these internal for 1.1.
11071         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
11072         use ToolTipWindow internals.
11073         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
11074         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
11075
11076 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11077
11078         * X11Dnd.cs: Add a null check.
11079
11080 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11081
11082         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
11083           nothing else succeeds. Fixes #82453.
11084
11085 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11086
11087         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
11088           rectangle if we're painting to another window than the one the paint
11089           message was generated on. Simplify the code somewhat, which makes
11090           PaintEventEnd also simpler.
11091
11092 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11093
11094         * Control.cs: When changing parent of a form, let the form decide whether
11095           XplatUI.SetParent should be called or not.
11096         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
11097           recreating the handle. If the new parent's handle isn't created, don't
11098           recreate our handle, just destroy it. CreateParams: Check if the
11099           parent's handle is created before fetching it.
11100
11101 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11102
11103         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
11104           Update calls to PaintEventStart/End to take a Message argument.
11105         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
11106           take a Message argument.
11107         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
11108           Message argument, and handle the case where we don't paint to the window
11109           for which the paint message was generated.
11110
11111 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11112
11113         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
11114           Marshal.GetLastWin32Error. Plug nasty memory leak in
11115           PaintEventStart/End, we were creating a DC we weren't releasing.
11116
11117 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11118
11119         * ListView.cs: Add Groups support in Details view. Also have a small
11120         method to do the layout of the group header. Don't use a separate
11121         method to do the groups calculation in Icons view, since our methods
11122         are now a little simpler.
11123         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
11124         `Bounds'.
11125         * ThemeWin32Classic.cs: Likewise.
11126
11127 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11128
11129         * Application.cs: Add FilterMessage method and rework our message loop
11130         logic to use it.
11131
11132 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11133
11134         * Application.cs: Add some methods and stub a few methods that are
11135         pretty much never used.
11136
11137 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
11138
11139         * TreeNode.cs: Add some serialization methods.
11140
11141 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11142
11143         * ListView.cs: In ListViewItemCollection have a 
11144         'is_main_collection' field to not modify ListViewItem.ListView
11145         when using it as ListViewGroup.Items (and not ListView.Items)
11146         and also don't modify selection state (.Net behaviour). 
11147         Instead, set group for items contained in a ListViewGroup.Items collection.
11148         * ListViewItem.cs: Simplify some code in Group setter.
11149         * ListViewGroup.cs: use the new .ctor to pass the current instance
11150         to the ItemsCollection.
11151         * ListViewGroup.cs: Set the ListView property for ListViewGroup
11152         instances when adding/removing. Also make Remove use RemoveAt, which
11153         should perform better.
11154
11155 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11156
11157         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
11158         that crept into the 1.1 profile.
11159
11160 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11161
11162         * ToolBarButton.cs: Implement ImageKey.
11163
11164 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11165
11166         * ToolBar.cs: Implement ScaleControl/ScaleCore.
11167
11168 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11169
11170         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
11171           created, it might have gotten destroyed since we last checked. Fixes
11172           #82405.
11173
11174 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
11175
11176         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
11177         tooltip will hide when mouse is moved off the control.
11178         [Fixes bug #82407]
11179
11180 2007-08-11 Andreia Gaita <avidigal@novell.com>
11181
11182         * WebBrowserBase.cs, WebBrowser.cs: add implementation
11183         using Mono.Mozilla for loading and navigating webcontrol
11184         with xulrunner.
11185         The initial implementation was done on 
11186         /trunk/mozembed/tests/browser , and copied here.
11187
11188 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
11189
11190         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
11191         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
11192
11193 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11194
11195         * DataGridView.cs: Add support for an editing row. Fixes #82226.
11196           RowTemplateFull: throw an exception if a column doesn't have a template.
11197         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
11198           add the row just before it.
11199         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
11200           selected.
11201         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
11202           DataGridView field to be able to reach the grid's editing row.
11203
11204 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11205
11206         * ToolTip.cs: If the control's handle hasn't been created when it has a
11207         tooltip set on it, don't check to see if we need to show the tooltip.  This
11208         check was causing the control's handle to be created.
11209         [Fixes bug #82399]
11210
11211 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11212
11213         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
11214                                         1.1             2.0
11215         Handle Not Created      -1              0
11216         Handle Created          0               0
11217         [Fixes bug #82371]
11218
11219 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11220
11221         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
11222         [Fixes bug #82348]
11223
11224 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11225
11226         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
11227         * ToolTip.cs: Implement some properties and owner draw.
11228
11229 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11230
11231         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
11232           show them again, since setting visibility causes a paint, causing an
11233           endless loop (instead use a temporary and set it all when it's known if
11234           they should be shown or not). Fixes #79265.
11235
11236 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11237
11238         * DataGridView.cs: Only do a full column/row selection if a header was
11239           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
11240           isn't pressed, deselect everything before selecting something.
11241
11242 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11243
11244         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
11245           behaviour according to bug #81075 - they are returned in the order they
11246           are selected. Fix HitTest to check if the point is within any of the
11247           headers. Allow for row/column selection when in ColumnHeader or
11248           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
11249           the row and column to call when their selected state changes, and
11250           updated selected_[rows|columns] whenever SetSelected* is called.
11251         * DataGridViewBand.cs: Initialize isRow correctly. Call
11252           SetSelected[Row|Column]CoreInternal when the selected state changes, and
11253           add a SelectedInternal to avoid StackOverflows.
11254         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
11255           ReadOnly no matter what.
11256         * DataGridViewSelectedColumnCollection.cs,
11257           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
11258           the items in reverse order (just as MS does...)
11259
11260 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11261
11262         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
11263         itself, not part of a mnemonic.  [Fixes bug #82378]
11264
11265 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11266
11267         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
11268         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
11269           the DGV, the column, the row, or the cell itself is readonly.
11270
11271 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11272
11273         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
11274         OSVersion.Platform.
11275         * FileDialog.cs: Same.
11276         * TextRendered.cs: Same.
11277         * FolderBrowserDialog.cs: Same.
11278         * TextBoxBase.cs: Same.
11279         * Application.cs: Same.
11280         * Cursors.cs: Same.
11281         * ThemeClearLooks.cs: Same.
11282
11283 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11284
11285         * XplatUI.cs: Added RunningOnUnix property to be used by controls
11286         instead of duplicating these checks everywhere.
11287         * FileDialog.cs: Use case-insensitive comparison for populating the
11288         DirComboBox when not running on unix. Fixes bug #82385.
11289         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
11290         "Look in".
11291
11292 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11293
11294         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
11295           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
11296           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
11297           cell and column selection with ctrl and shift pressed. Call the correct
11298           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
11299           the corresponding virtual method (PaintBackground to paint background,
11300           etc).
11301         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
11302           either the column, row or the cell itself is selected.
11303         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
11304           OnRowsAdded.
11305         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
11306           here. When the row is selected, don't select all cells. Each cell now
11307           queries the row to see if the row is selected.
11308
11309 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11310
11311         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
11312           SelectionMode.
11313
11314 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11315
11316         * ListView.cs: In ListViewItemsCollection check that owner is
11317         not null before trying to access it (this happens quite often
11318         using Groups). Also don't duplicate calls by calling CollectionChanged
11319         method.
11320
11321 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11322
11323         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
11324         when we are dismissed to clear keyboard mnemonics.
11325         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
11326         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
11327         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
11328         was activated by keyboard or the OS tells us to always draw them.
11329         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
11330         [Fixes bugs #82376, #82377]
11331
11332 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11333
11334         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
11335         shot at having it because Alt was pressed.
11336         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
11337         the first real menu item.
11338         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
11339         a mnemonic if Text is null.
11340         [Fixes bug #82374]
11341
11342 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11343
11344         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
11345         search do check whether the item is already contained in the
11346         collection or not; instead check if the owner of the item is the same
11347         as ours. Also, remove a redundant check in the same method. 
11348
11349 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11350
11351         * Control.cs: Allow the clip region to be set back to null.
11352         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
11353         [Fixes button still showing up in bug #82370 when Show Through is turned off]
11354
11355 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11356
11357         * GridEntry.cs: Add a null check.
11358         * PropertyGrid.cs: When checking for existing grid entries, ignore category
11359           entries. Fixes #82297.
11360
11361 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
11362
11363         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
11364         for 2.0.
11365
11366 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
11367
11368         * ListBox.cs: Implement ScaleControl.
11369
11370 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11371
11372         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
11373           have a menu strip.
11374         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
11375           parent has a menu strip. Fixes #81689.
11376
11377 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11378
11379         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
11380           moments, so apply some fuzzy logic to determine if the mouse is still
11381           inside a control or not. Fixes #82288 (for the third time).
11382
11383 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11384
11385         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
11386           Don't create the child if it has been disposed already (may happen if
11387           the user closes the form the Load event).
11388
11389 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11390
11391         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
11392           #82288.
11393
11394 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11395
11396         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
11397           might call us after we've been destroyed, in which case our own private
11398           parent field is null. Fixes #82326.
11399
11400 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
11401
11402         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
11403         check for setting the dropdown's owner.
11404
11405 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
11406
11407         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
11408         before removing system menu items.
11409
11410 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
11411
11412         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
11413         folding.
11414         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
11415         folding.
11416         * ToolStrip.cs: Add a null check to mnemonics.
11417         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
11418         no ConnectedArea.
11419         [Fixes most of bug #81689]
11420
11421 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11422
11423         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
11424
11425 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11426
11427         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
11428
11429 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11430
11431         * DataGridViewCell.cs: EditType: returns
11432           DataGridViewTextBoxEditingControl always.
11433
11434 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
11435
11436         * TextRenderer.cs: Remove the LineLimit string format flag from the
11437         DrawString fallback method so that things like buttons that aren't
11438         tall enough to draw a full line will still draw part of the text.
11439         [Fixes part of bug #82272]
11440
11441 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11442
11443         * DataGridView.cs: Implemented AutoResizeColumn(s).
11444         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
11445           according to the Alignment.
11446         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
11447           Implement alignment and padding when painting.
11448         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
11449           exists.
11450         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
11451           way.
11452         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
11453           a column is added.
11454
11455 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11456
11457         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
11458         which is internal.
11459
11460 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11461
11462         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
11463         hide GetPreferredSize from public API.
11464         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
11465         * ToolStripItem.cs: Stub out drag and drop methods and events.
11466         * ToolStripManager.cs: Stub out Save/LoadSettings.
11467         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
11468         * ToolStripPanel.cs: Fix corcompare error.
11469         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
11470         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
11471         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
11472
11473 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11474
11475         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
11476         bounds height instead of PreferredHeight.  Puts things back the way 
11477         they were for height while still fixing the width.  Fixes broken unit
11478         tests.
11479
11480 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11481
11482         * Binding.cs: Implement 2.0 constructors and add a null check.
11483
11484 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11485
11486         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
11487           and fix row index (off by one).
11488
11489 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11490
11491         * PropertyGridView.cs: Remove debug output.
11492
11493 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11494
11495         * Control.cs: We need to reset the is_created flags when the handle is
11496           destroyed. Fixes #82187.
11497         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
11498           client coordinates if the window doesn't have a parent.
11499           Win32GetParent returns the parent or the owner, and for top-level
11500           windows with no parent (but with an owner) we were calculating the
11501           location from the location of the owner.
11502         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
11503           form has been disposed.
11504         * MdiClient.cs: Add a null-check.
11505
11506 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11507
11508         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
11509         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
11510         so we can provide an implementation that returns the current width
11511         and preferred height.  Allows anchor = right to work with TextBox 2.0.
11512         [Fixes bug #82233]
11513
11514 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11515
11516         * ListView.cs: Add support for navigating items in Groups mode, by
11517         creating a big matrix containing all rows and cols of all groups. When
11518         are in other mode than Details, pressing Up should have a similar
11519         behaviour as that one of Down (moving to the next available column if
11520         current one doesn't have an item in the requested row). Also, don't
11521         proceed to use groups if ShowGroups is false.
11522         * ListViewGroup.cs: Add an internal int field to store the starting
11523         row of the group (used by the big matrix used for navigating the
11524         ListView).
11525         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
11526         false.
11527
11528 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11529
11530         * ToolStripDropDown.cs: When we do Show, start with the 
11531         DefaultDropDownDirection, but if our popup menu is going to off-screen,
11532         modify the direction to keep it on screen.  [Fixes bug #82210]
11533
11534 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
11535
11536         * FileDialog.cs: Accept any FilterIndex value, and store it
11537         unmodified. When FilterIndex is less than 1, or greater than number
11538         of filters, then default to first filter. Only add filter extension to
11539         file if user did not specifiy an extension. When type of dialog is
11540         OpenFileDialog and DefaultExt is set, then only use filter extension
11541         if: CheckFileExists is true and no file wih the default extension
11542         exists, or CheckFileExists is false, and user specified file does not
11543         exist. When CheckFileExists is true, then add first extension of 
11544         selected filter that matches existing file. Perform checks for
11545         existing file, overwrite and create after extension has been added to
11546         file name. When CheckFileExists is true and type is SaveFileDialog,
11547         then only consider first filter extension if DefaultExt is set.
11548         When CheckFileExists is true, then ignore DefaultExt if file with that
11549         extension does not exist. Also perform check for existing file when
11550         type is SaveFileDialog. Changed some field to constants.
11551
11552 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11553
11554         * ListView.cs: Take into account the region used by header
11555         control when doing the vertical scroll (this way we invalidate
11556         the precise area, and don't get any dirty one).
11557
11558 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
11559
11560         * FileDialog.cs: Check for valid filterIndex on button open/save. 
11561         Fixes #82184.
11562
11563 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11564
11565         * ListView.cs: Update some layout calculations in details view
11566         and clean the code in a pair of assignations.
11567
11568 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11569
11570         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
11571         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
11572         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
11573         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
11574
11575 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11576
11577         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
11578         performance of thread-safe Graphic methods.  (Thanks rolf!)
11579
11580 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11581
11582         * ListView.cs: When doing the layout calculations, don't calculate
11583         scroll bars before handle is created. This is unnecessary and also
11584         calculating them before handle creation item causes a number of random
11585         bugs (which begin to appear after Chris' big patch for handle creation
11586         fixes). 
11587
11588 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11589
11590         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
11591         for things that don't have a Graphics object.  Currently, things just use
11592         the static Hwnd.bmp_g which is not thread safe.
11593
11594 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11595
11596         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
11597           dialog. Fixes #82187.
11598
11599 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11600
11601         * DataGridViewElement.cs: Initialize state.
11602         * DataGridView.cs: Forward a few Mouse events to cells. Add
11603           GetRowInternal and GetCellInternal that doesn't unshare rows.
11604           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
11605           don't use the index, but look it up. Add
11606           DataGridViewControlCollection.RemoveInternal to remove controls
11607           that Remove won't remove (scrollbars, edit control).
11608         * DataGridViewColumn.cs: Initialize State correctly.
11609         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
11610           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
11611           implementing this.
11612         * DataGridViewRowCollection.cs: Implemented shared rows.
11613         * DataGridViewRow.cs: Throw exceptions as MS do.
11614         * DataGridViewCell.cs: A few properties are implemented by a
11615           Get<Property> method, so move implementation there and remove the
11616           NIEX in the method. Add a bunch of OnXInternal that DataGridView
11617           calls when necessary.
11618         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
11619           complicates matters.
11620         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
11621           unshare any rows.
11622
11623 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11624
11625         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
11626         the children controls.  Instead, we will just set up the proper docking for the
11627         children controls so we don't have to worry about it.  [Fixes bug #82188]
11628
11629 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11630
11631         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
11632         canceling and correct Before/AfterLabelEdit properties as layed out in bug
11633         81847.  [Fixes bug #81847]
11634
11635 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11636
11637         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
11638         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
11639         an explicit size based on the design-time size of the text.  Since our fonts
11640         may not match this explicit size, we tend to cut off the ends of people's labels.
11641
11642 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
11643
11644         * Menu.cs: Add some missing methods to MenuItemCollection.
11645
11646 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11647
11648         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
11649         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
11650         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
11651         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
11652         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
11653         * DataGridViewElement.cs: State defaults to Visible.
11654         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
11655         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
11656
11657 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11658
11659         * Control.cs: Minor 1.1 corcompare fix.
11660
11661 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11662
11663         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
11664         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
11665
11666 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11667
11668         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
11669           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
11670           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
11671           DataGridViewSelectedColumnCollection.cs,
11672           DataGridViewSelectedRowCollection.cs: Corcompare work.
11673
11674 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11675
11676         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
11677         it is autoset by VS2005 designer and the effect is barely noticeable.
11678
11679 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11680
11681         * TreeView.cs: Implement HitTest.
11682
11683 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11684
11685         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
11686           manually adding and removing the control from the Controls
11687           collecftion.
11688         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
11689           EditingControlInternal property that tracks the editing control.
11690           Always keeping the scrollbars in the Controls collection, as MS
11691           testing confirms is the right behaviour.
11692
11693 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11694
11695         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
11696           according to MSDN and new test.
11697
11698 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11699
11700         * TreeNode.cs: Implement ToolTipText.
11701         * TreeView.cs: Implement tooltips, NodeMouse* events.
11702
11703 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11704
11705         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
11706
11707 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11708
11709         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
11710         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
11711
11712 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
11713
11714         * Control.cs, Form.cs, ContainerControl.cs,
11715         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
11716         for misc properties.
11717
11718 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11719
11720         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
11721         * TreeView.cs: Implement StateImageList.
11722
11723 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11724
11725         * Form.cs: Don't check if the current form is the active form before
11726           activating it. Fixes #81904.
11727
11728 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11729
11730         * Form.cs: Don't check if the current form is the active form before
11731           activating it. Fixes #81904.
11732
11733 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11734
11735         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
11736
11737 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11738
11739         * Form.cs: Don't try to position the form after loading if the form was
11740           disposed. Fixes #81969.
11741
11742 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11743
11744         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
11745           properties. Had to change ToolBar into ToolStrip, which required a
11746           few #ifs.
11747
11748 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11749
11750         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
11751           resized, fixes part of #79829 (vertical lines in toolbar).
11752           PropertyGrid: Refactored Populate* to something that's easier to
11753           follow at least for me, as well as splitting it up into several new
11754           methods, required to update only subitems when something has
11755           changed by a popup editor or listbox. Don't use events to check
11756           when any values are changed, since the events are unreliable (we're
11757           changing the objects the events are registered with, and if the
11758           event handling requires the objects to be immutable (objects stored
11759           in hashtables for instance), the events will never be raised).
11760         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
11761           everytime we change a value, since events are unreliable.
11762           DropDownButtonClicked: For the same reason don't compare objects to
11763           check if it has changed or not, it would require all objects to
11764           derive Equals. Fix dialog location on windows, MS is doing weird
11765           things when creating parented forms.
11766         * GridEntry.cs: Add a SelectedObject setter.
11767
11768 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
11769
11770         * TreeNode.cs: Add some corcompare attributes.
11771         * TreeNodeCollection.cs: Implement 2.0 stuffs.
11772         * TreeView.cs: Implement some 2.0 stuffs.
11773
11774 2007-07-18  Andreia Gaita  <avidigal@novell.com>
11775
11776         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
11777         for moma.
11778
11779 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
11780
11781         * ListBox.cs: Implement custom tab offsets.
11782
11783 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11784
11785         * ToolStripContentPanel.cs: Support System renderer.
11786         * ToolStripControlHost.cs: Set RightToLeft to default to No.
11787
11788 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11789
11790         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
11791
11792 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11793
11794         * CheckBox.cs: Chain TextAlign to base implementation instead of
11795         maintaining another one.
11796
11797 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11798
11799         * ButtonBase.cs: Fix an incorrect string constant.
11800
11801 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11802
11803         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
11804         of creating one for measuring strings.
11805
11806 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
11807
11808         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
11809         Implement MaxItemSize.
11810
11811 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
11812
11813         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
11814         for DeviceContext.  Instead, use the static one available in Hwnd.
11815         Informal tests show this saves about 500k on formtest.exe.
11816
11817 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
11818
11819         * ContainerControl.cs: Implement 2.0 AutoScaling.
11820
11821 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11822
11823         * ComboBox.cs: Work around bug #82120 (bug in mcs).
11824
11825 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
11826
11827         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
11828         Darken the focus color.
11829
11830 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
11831
11832         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
11833         for the checkbox.
11834         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
11835         X, Y instead of a rect for drawing text.
11836         - For ControlPaint.DrawCheckBox, center the check a little better when the
11837         checkbox is odd width.  When drawing a flat checkbox, use a white background
11838         when state != inactive.
11839         [Fixes bugs #82097, 82100]
11840
11841 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
11842
11843         * ListControl.cs: When changing CurrencyManager, disconnect event
11844         handlers from previous one. Fixes bug #81771. Code formatting.
11845
11846 2007-07-15  Andreia Gaita <avidigal@novell.com>
11847
11848         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
11849         full preview invalidation from layout invalidation, and only invalidate
11850         the layout when setting zoom or other properties. Invalidation should
11851         always be done even when resetting properties with the same values as
11852         what is there. Fixes #81744 and #79830.
11853
11854 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11855
11856         * ListView.cs: Implement initial support for Groups. Split some of the
11857         LayoutIcons code to render a partial list of the items (needed by
11858         items contained in ListViewGroup instances). Let the
11859         ListViewItemsCollection.ListView property be modifiable (needed when
11860         using Groups, too).
11861         * ListViewGroup.cs: Use a Bounds property rather than a Location
11862         one. Also invalidate the bounds when they get changed.
11863         * ThemeWin32Classic.cs: When drawing items, also draw the group header
11864         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
11865         method as well.
11866
11867 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11868
11869         * ListView.cs: When space gets pressed and CheckBoxes is true, 
11870         don't invoke the Begin and EndUpdate methods. We are generating 
11871         a redraw of the entire control without need to do so.
11872
11873 2007-07-13  William Holmes <billholmes54@gmail.com> 
11874
11875         * Control.cs: Changing logic in FindFlatForward and 
11876           FindFlatBackward to handle multiple Controls with 
11877           the same TabIndex.  
11878           This fixes bug 81687.
11879
11880 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
11881
11882         * OSFeature.cs: Enable IsPresent.
11883
11884 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11885
11886         * Control.cs: Don't do anything in WmShowWindow if the control has been
11887           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
11888           control is created, put on a form, the control is disposed (the
11889           form is never shown), and then we get a MapNotify, triggering a
11890           WM_SHOWWINDOW.
11891         * Form.cs: Exclude the current form when sending Deactivate to all
11892           MdiChildren.
11893         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
11894           there was a race condition because assigning the handle raises
11895           events, we can get more messages, therefore trying to assign the
11896           handle again, which would fail if any of those event handlers
11897           closed/disposed the control.
11898
11899 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11900
11901         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
11902
11903 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
11904
11905         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
11906         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
11907
11908 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11909
11910         * DateTimePicker.cs: If there's no part format specifier, return an
11911           empty string.
11912
11913 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
11914
11915         * FlatButtonAppearance.cs: Throw NotSupportedException for a
11916         Transparent BorderColor.
11917
11918 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11919
11920         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
11921           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
11922           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
11923           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
11924           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
11925           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
11926           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
11927           Remove warnings.
11928         * X11Structs.cs: Remove warnings, add ToString implementations.
11929
11930 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11931
11932         * XplatUIX11.cs: Translate min/max size according to the actual min/max
11933           size, and not the current size. Fixes #81798.
11934
11935 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11936
11937         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
11938           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
11939           to the control yet).
11940
11941 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11942
11943         * PropertyGridTextBox.cs: Add a method that sends any forwarded
11944           mousedowns to the contained textbox.
11945         * X11Structs.cs: More ToString implementation.
11946         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
11947           #81791.
11948
11949 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11950
11951         * PropertyGridView.cs: Add a null-check, fixes a few tests.
11952
11953 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
11954
11955         * TableLayoutPanelCellPosition.cs: TypeConverter.
11956
11957 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11958
11959         [ Fixes #79761]
11960         
11961         * PropertyGridTextBox.cs: Propagate any color changes to all contained
11962           controls.
11963         * PropertyGridView.cs: A few color fixes.
11964
11965 2007-07-10  Jackson Harper  <jackson@ximian.com>
11966
11967         * TextControl.cs: Remove some old unused text formatting stuff.
11968
11969 2007-07-10  Jackson Harper  <jackson@ximian.com>
11970
11971         * TreeView.cs: Update full row select invalidation to match the
11972         newer DrawSelection... method.
11973         - Make sure to invalidate the entire width when selecting a new
11974         node, if we have full row selection enabled.
11975
11976 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11977
11978         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
11979           display of properties again.
11980
11981 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
11982
11983         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
11984         to existing collections.
11985
11986 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11987
11988         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
11989         that changed between 1.1 and 2.0.
11990
11991 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11992
11993         * PowerStatus.cs: Added.  This is just a data class, it is filled
11994         in by SystemInformation.
11995
11996 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
11997
11998         * Message.cs: Add op_Equality and op_Inequality.
11999
12000 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12001
12002         * MenuStrip.cs: Finish corcompare work.
12003
12004 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12005
12006         * LinkArea.cs: Add op_Equality and op_Inequality.
12007
12008 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12009
12010         * Application.cs: Add MessageLoopCallback delegate.
12011
12012 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12013
12014         * ListBox.cs: First set of 2.0 stuffs.
12015
12016 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12017
12018         * Control.cs: Make an internal Height property we can override
12019         without messing up the public API.
12020         * ListBox.cs: Override HeightInternal to always return the size
12021         the user set.  [Fixes bug #80466]
12022
12023 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
12024
12025         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
12026         paint cell borders if we haven't calculated where they go yet.
12027         [Fixes bugs #82040 and #82041]
12028
12029 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12030
12031         * ListView.cs: In Details view, set the location of item_control
12032         in the (0,0) position (and the header_control is thus on the
12033         item_control). This way the Bounds of the Items are relative to the
12034         ListView control (before this, they had a Bounds value without the
12035         header_control offset, which wasn't matching .Net). Fixes #82004.
12036
12037 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12038
12039         * ListControl.cs: When DataSource is set to null, pass an empty
12040         array of object to SetItemsCore. This is done to clean the items
12041         in the ListContol children. Fixes #81788.
12042
12043 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12044
12045         * ListControl.cs: Add 2.0 stuffs.
12046
12047 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12048
12049         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
12050         Refresh is overkill for just about every repaint request.
12051
12052 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12053
12054         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
12055         so remove my custom Get method and fix the property getter.
12056
12057 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12058
12059         * Label.cs: DefaultMargin for 2.0.
12060
12061 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12062
12063         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
12064         reported issue where other controls with mnemonics would steal strokes
12065         from a selected ComboBox.
12066
12067 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12068
12069         * ScrollOrientation.cs: Make internal for 1.1.
12070         * ScrollEventArgs.cs: Add 2.0 stuffs.
12071
12072 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
12073
12074         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12075         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
12076         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
12077
12078 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12079
12080         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
12081
12082 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12083
12084         * ListView.cs: Implement the so-incredibly broken 2.0 
12085         VirtualItemsSelectionRangeChanged event.
12086
12087 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12088
12089         * ListView.cs: When enter is pressed and selection is non empty,
12090         an OnItemActivate event must be fired.
12091
12092 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12093
12094         * ListView.cs: Store the FocusedItem information as an
12095         int instead of a ListViewItem (needed by VirtualMode).
12096         Update the calls to SetFocusedItem to pass an index instead of
12097         an item.
12098         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
12099         the Focused state from the owner ListView. 
12100
12101 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12102
12103         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
12104         property. Also, invalidate previous focused item in the mentioned
12105         property (match .Net).
12106
12107 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12108
12109         * ListView.cs: Implement 2.0 FocusedItem property setter.
12110
12111 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12112
12113         * ListView.cs: Implement 2.0 TopItem property setter.
12114
12115 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
12116
12117         * StatusStrip.cs: The default renderer is System.
12118         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
12119         if the user specifies it.
12120         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
12121         if we are ManagerRenderMode.
12122         * ToolStripMenuItem.cs: Calculate our text color better.
12123         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
12124         from Professional to the base class based off working with the System renderer.
12125         * ToolStripSystemRenderer.cs: Added.
12126
12127 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12128
12129         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
12130
12131 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
12132
12133         * ToolTip.cs: Implement 2.0 Tag property.
12134
12135 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12136
12137         * ListView.cs: Implement 2.0 HitTest methods.
12138
12139 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12140
12141         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
12142         item is under the pointer or not (sugar). Also remove the TODO
12143         regarding to the cursor changes in OneClick activation.
12144         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
12145         the subitems use the parent's HotFont if UseItemStyleForSubItems is
12146         true; otherwise don't show the underline style.
12147
12148 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12149
12150         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
12151         the code to retrieve the item at position only one time. Also
12152         change cursor when Activation is ItemActivation.OneClick as well
12153         as invalidate the item if HotTracking is true (to show/hide the
12154         underline style). Add an internal HotItemIndex property to retrieve
12155         the current hot item's index.
12156         * ListViewItem.cs: Add an internal HotFont property to cache the
12157         font used when HotTracking is true and the pointer moves within the
12158         item's borders.
12159         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
12160         HotFont depending on the hot state of the item.
12161
12162 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12163
12164         * ListView.cs: Implement 2.0 HotTracking property.
12165
12166 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12167
12168         * ToolStripControlHost.cs: If our hosted control never got created,
12169         don't try to dispose it.  [Fixes bug #81909]
12170
12171 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12172
12173         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
12174
12175 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12176
12177         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
12178
12179 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12180
12181         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
12182         Details view.
12183         * DrawListViewColumnHeaderEventArgs.cs:
12184         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
12185         using the DrawText () methods.
12186
12187 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
12188
12189         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
12190         background which got erased in my changes yesterday.
12191
12192 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12193
12194         * ListViewItem.cs: Actually set bounds for subitems in Details view
12195         (2.0 feature).
12196         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
12197         can invoke from the owner draw routines if we need it. Also, add
12198         support for Owner draw in Details view.
12199
12200 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12201
12202         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
12203         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
12204         ShowImageMargin setting, properly align text in a ToolStripLabel
12205         hosted on a ToolStripDropDown.
12206
12207 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12208
12209         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
12210         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
12211
12212 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12213
12214         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
12215
12216 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12217
12218         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
12219         location to match ToolStripMenuItems.
12220
12221 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12222
12223         * DrawListViewColumnHeaderEventArgs.cs:
12224         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
12225         column headers in ListView. 
12226
12227 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12228
12229         * UserControl.cs: Implement AutoSize.
12230
12231 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12232
12233         * DrawListViewItemEventArgs.cs:
12234         * ListView.cs:
12235         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
12236         ListView.
12237
12238 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12239
12240         * ToolStripDropDownItemAccessibleObject.cs: Added.
12241         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
12242         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12243         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
12244         ToolStripTextBox.cs: corcompare work.
12245
12246 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12247
12248         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
12249         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
12250         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
12251                 corcompare.
12252
12253 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12254
12255         * OSFeature.cs: Add IsPresent.
12256         * PrintPreviewControl.cs: Add RightToLeft.
12257         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
12258         * SplitterPanel.cs: Add AutoSizeMode.
12259
12260 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12261
12262         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
12263         * MdiClient.cs: Add 2.0 ScaleControl.
12264         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
12265         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
12266
12267 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12268
12269         * Form.cs: Implement some scaling methods, stub some RTL methods,
12270         corcompare work.
12271
12272 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12273
12274         * Control.cs: corcompare work.
12275         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
12276
12277 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12278
12279         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
12280         ControlPaint 2.0 stuffs.
12281
12282 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12283
12284         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
12285
12286 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12287
12288         * UpDownBase.cs: Add 2.0 stuffs.
12289
12290 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12291
12292         * NumericUpDown.cs: Add 2.0 stuffs.
12293
12294 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12295
12296         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
12297
12298 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12299
12300         * ErrorProvider.cs: Implement 2.0 stuffs.
12301
12302 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12303
12304         * DomainUpDown.cs: Implement 2.0 stuffs.
12305
12306 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12307
12308         * CheckedListBox.cs: Fix RefreshItems signature.
12309
12310 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12311
12312         * PictureBox.cs: Implement 2.0 stuffs.
12313
12314 2007-06-12  Andreia Gaita  <avidigal@novell.com>
12315         
12316         * TabControl.cs: Check if there are tabpages before checking
12317         the selected index - fix #81802 (font changes raise a ResizeTabs
12318         call on controls.add, which blew up nicely with no tabpages)
12319
12320 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12321
12322         * ListView.cs:
12323         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
12324
12325 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12326
12327         * ListView.cs:
12328         * ListViewItem.cs: In VirtualMode the selection information
12329         resides in the ListView, rather than in the Items. Also, throw
12330         InvalidOperationExceptions when VirtualMode is being used and
12331         CheckedItemCollection is accessed.
12332
12333 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12334
12335         * ComboBox.cs: Add ScaleControl.
12336
12337 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12338
12339         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
12340
12341 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12342
12343         * GroupBox.cs: Add 2.0 stuffs.
12344
12345 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12346
12347         * Panel.cs: Add autosize properties/event.
12348
12349 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
12350
12351         * Control.cs:
12352         - When we remove a control, remove it from the collection before performing the layout.
12353         - Setup an internal property for explicit_bounds.
12354         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
12355         - Perform a layout when we set a new AutoSizeMode.
12356
12357 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
12358
12359         * ScrollableControl.cs: Add 2.0 stuffs.
12360
12361 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12362
12363         * ScrollBar.cs: Add 2.0 stuffs.
12364
12365 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12366
12367         * Splitter.cs: Add 2.0 stuffs.
12368
12369 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12370
12371         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
12372         to have BindingContext simply use base implementation.
12373
12374 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12375
12376         * ColumnHeader.cs: corcompare fix.
12377
12378 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12379
12380         * Button.cs: corcompare fixes.
12381         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
12382
12383 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12384
12385         * Button.cs: Override GetPreferredSizeCore.
12386         * ButtonBase.cs: PerformLayout after changing properties that can affect
12387         AutoSize.  Simplify some mouse/keyboard code.
12388         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
12389         * MouseEventArgs.cs: Make Location internal for 1.1.
12390         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
12391         * Theme.cs: Add CalculateButtonAutoSize.
12392         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
12393
12394 2007-06-05  Miguel de Icaza  <miguel@novell.com>
12395
12396         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
12397
12398 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12399
12400         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
12401         since we can get different item instances every time we retrieve it.
12402
12403 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12404
12405         * ListView.cs: Work around for #81602, since an unkown an pretty
12406         infrequent condition appears only in some systems (old linux boxes, it
12407         seems).
12408
12409 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12410
12411         * Button.cs: Completely reformat and a little refactor to bring
12412         this closer to Mono circa 2007.
12413
12414 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12415
12416         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
12417         to be ButtonBase.Invalidate.
12418
12419 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12420
12421         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
12422
12423 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12424
12425         * ButtonBase.cs: Completely reformat and a little refactor to bring
12426         this closer to Mono circa 2007.
12427
12428 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
12429
12430         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
12431         values for autosize. Fixes #80137.
12432
12433 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12434
12435         * Control.cs: Don't perform layout when AutoSize changes.
12436         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
12437         directly when autosizing, use SetBounds with BoundsSpecified.None.
12438         Fixes unit tests my last commit broke.
12439
12440 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12441
12442         * Control.cs: Perform layout when AutoSize changes.
12443         * Form.cs: Implement AutoSizing.
12444
12445 2007-06-01  Chris Toshok  <toshok@ximian.com>
12446
12447         * DataGrid.cs: remove the XXX'ed check at the top of
12448         ProcessGridKey.  fixes #80464.
12449
12450 2007-06-01  Chris Toshok  <toshok@ximian.com>
12451
12452         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
12453         adding idempotent (add/remove in Edit()), and also make sure we
12454         don't add it until after we set the text, so it's not tripped in
12455         Edit().  Fixes unit test regression.
12456
12457 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12458
12459         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
12460         change is user explicit, not when the layout engine moves stuff.  Fixes
12461         anchoring to bottom and right.  [Fixes bug #81790]
12462
12463 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12464
12465         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
12466
12467 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12468
12469         * ContainerControl.cs: 
12470         Fire enter event for common ancestor if it is not a ContainerControl.
12471         Send focus to the active_control and not the 'value', the active 
12472         control might have been changed in one of the events fired.     
12473         Definitely fixes #80159.
12474
12475 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12476
12477         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
12478
12479 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12480
12481         * PropertyGrid.cs: Anchor the help description to the bottom of the
12482           help panel and refactor SelectGridItem into a
12483           SelectGridItemInternal that can be set to null (and update it to
12484           clear the help texts when it is set to null). Set root item to null
12485           when there's no SelectedObject. Fixes #80438.
12486         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
12487           when we're recalculating after a resize (only).
12488
12489 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12490
12491         * ListView.cs: Implement 2.0 RedrawItems method.
12492
12493 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12494
12495         * ListControl.cs: Disconnect PositionChanged and ItemChanged
12496         handlers from previous data manager when DataSource is set to
12497         null. Fixes #81771.
12498
12499 2007-05-31  Jackson Harper  <jackson@ximian.com>
12500
12501         * TextBoxBase.cs: These seem to be the correct values.
12502
12503 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
12504
12505         * FileDialog.cs: When close dialog with ok set filterindex using combobox
12506         value. Fixes #81784.
12507
12508 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
12509
12510         * Control.cs: Implement 2.0 scaling methods.
12511
12512 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12513
12514         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
12515           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
12516           corcompare issues.
12517
12518 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12519
12520         * ProgressBar.cs: Implemented missing 2.0 members.
12521
12522 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12523
12524         * Control.cs: Corcompare issues.
12525         * MessageBox.cs: Implemented missing 2.0 functions.
12526
12527 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12528
12529         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
12530           Implemented more 2.0 members.
12531
12532 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12533
12534         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
12535           null (strange, but it seems to happen when running unit tests).
12536
12537 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12538
12539         * ContainerControl.cs: Set active_control even earlier, before 
12540         firing any events, and undo it if validation returns false.
12541
12542 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12543
12544         * ContainerControl.cs: Raise Validation and Enter/Leave events
12545         even if there is no Form and set active_control earlier, just
12546         before firing Enter events (toshok's patches). Fixes #80647.
12547
12548 2007-05-30  Jackson Harper  <jackson@ximian.com>
12549
12550         * TextControl.cs: Redid the pageup/pagedown a little to simplify
12551         things and fix bug #81311.
12552
12553 2007-05-30  Jackson Harper  <jackson@ximian.com>
12554
12555         * X11Dnd.cs: Now that we have our own event loop, we need to
12556         cancel when we get a mouseup but it won't be accepted.
12557
12558 2007-05-30  Chris Toshok  <toshok@ximian.com>
12559
12560         * DataGrid.cs (set_CurrentCell): guard against negative
12561         column/row.
12562
12563         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
12564         array index syntax instead of looping over the property names.
12565
12566         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
12567         and set IsInEditOrNavigateMode to false there.
12568
12569 2007-05-30  Jackson Harper  <jackson@ximian.com>
12570
12571         * TreeView.cs: Make sure we don't get a bad visible order when
12572         setting to the top node.  Fixes some misc crashing in
12573         ControlInspector.
12574
12575 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12576
12577         * UserControl.cs: Add 2.0 AutoSizeMode
12578
12579 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12580
12581         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
12582
12583 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12584
12585         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
12586         lines. Fixes #80285. 
12587
12588 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12589
12590         * DataGridColumnStyle.cs: Add char trimming column header text format. 
12591
12592 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12593
12594         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
12595         Fixes #80147.
12596
12597 2007-05-29  Jackson Harper  <jackson@ximian.com>
12598
12599         * TreeNode.cs: Fix off by one on calculating whether or not a node
12600         is visible.
12601
12602 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
12603
12604         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
12605         * ScrollableControl.cs: Force an UpdateDistances when we move the
12606         scrollbars.
12607         [Fixes bug #80605]
12608
12609 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12610
12611         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
12612         update the page setup screen.
12613
12614 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12615
12616         * PageSetupDialog.cs: Fix landscape mode.
12617
12618 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12619
12620         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
12621         IconSizeHorizontalSpacing.
12622
12623 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12624
12625         * ListView.cs: The declaration of prev_tooltip_item should be inside
12626         a NET_2_0 conditional (avoid a warning).
12627
12628 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12629
12630         * PageSetupDialog.cs: Implement PrintPreview control to display
12631         the preview thumbnail. Change unit conversion to use 
12632         PrinterUnitConvert methods.
12633         
12634         Note: there is a huge bug in ms.net where the default margins are 
12635         interpreted as centimeters (?), when in fact they are set in inches. When 
12636         loading the page setup dialog initially (ms.net), the default margins 
12637         are set to 1 inch, and the dialog shows them with value 10, when in fact 
12638         it should be 25 (properly converted). Our dialog doesn't have this bug.
12639         
12640         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
12641         RectangleF.
12642         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
12643
12644 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12645
12646         * ListView.cs:
12647         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
12648         items.
12649
12650 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12651
12652         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
12653         an IntPtr on csc (it builds fine on mcs, could it be a compiler
12654         bug?), convert the ptr to Int32 first.
12655
12656 2007-05-28  Jackson Harper  <jackson@ximian.com>
12657
12658         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
12659         recieved, we will exit the dnd tracking loop.
12660
12661 2007-05-28  Jackson Harper  <jackson@ximian.com>
12662
12663         * X11Dnd.cs: Keep tracking until the xdnd finished event is
12664         recieved. TODO: I should probably stick a timer on the dropped
12665         event, and finish the drag if the XDND Finished event never shows
12666         (because some apps don't seem to send it).
12667
12668 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
12669
12670         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
12671         #81733.
12672
12673 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12674
12675         * MonthCalendar.cs: Only mark the keypresses we actually handle as
12676           handled.
12677
12678 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12679
12680         * MonthCalendar.cs: Set the size after initializing all the relevant
12681           variables. Fixes #81742.
12682
12683 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12684
12685         * KeyEventArgs.cs: Fix typo.
12686
12687 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
12688
12689         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
12690         to match MS. Fixed MinDate to only accept value less than or equal
12691         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
12692         Removed TODO's that are now verified by unit tests.
12693
12694 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
12695
12696         * TreeNodeCollection.cs: Minor corrections to exceptions to match
12697         MS.
12698
12699 2007-05-25  Jackson Harper  <jackson@ximian.com>
12700
12701         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
12702         it's own message loop.
12703         * XplatUIX11.cs: Remove some of the dnd hooks
12704
12705 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
12706
12707         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
12708         instead of MinimizedWindowSize.
12709
12710 2007-05-25  Jackson Harper  <jackson@ximian.com>
12711
12712         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
12713
12714 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12715
12716         * KeyEventArgs.cs: Added SuppressKeyPress.
12717         * Control.cs: Added support for SuppressKeyPress.
12718
12719 2007-05-24  Andreia Gaita  <avidigal@novell.com>
12720
12721         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
12722         problems with PieChart. suppress_validation should not be a counter,
12723         if there are several BeginInit calls, the first EndInit will 
12724         activate validation. Fix exceptions thrown by set_Value.
12725         * UpDownBase.cs: ValidateText only if it's the user editing it.
12726
12727 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12728
12729         * ListControl.cs: FilterItemOnProperty should return the filtered
12730         item proeprty even if DataSource is null. The same applies for
12731         GetItemText. Fixes #80427.
12732
12733 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12734
12735         * Control.cs: If a control doesn't have a parent when it's Dock is
12736         set, but it has children, it needs to do a layout.  Fixes some nested
12737         controls issues.  [Fixes bug #81199]
12738
12739 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12740
12741         * ComboBox.cs: If there are few items in the drop down list, make it
12742           the exact size the items need, no bigger. Fixes #81612.
12743
12744 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12745
12746         * Application.cs: When we have captured the keyboard for a menu,
12747         check for mouse down events in case we need to close the menu.
12748         * Control.cs, Form.cs: Remove mouse down checks for menus.
12749
12750 2007-05-24  Jackson Harper  <jackson@ximian.com>
12751
12752         * TextControl.cs: Handle tabs in non multiline mode a little
12753         differently.
12754
12755 2007-05-24  Jackson Harper  <jackson@ximian.com>
12756
12757         * TextControl.cs: We need to manually break apart tabbed text and
12758         move the tabs, since the system.drawing tabbing mechanism relies
12759         on tab stops.
12760         * TextBoxBase.cs: Move the caret properly when the user enters a
12761         tab.
12762
12763 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12764
12765         * ContainerControl.cs: Don't check CanSelect before calling
12766         ProcessMnemonic.
12767         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
12768         release a KeyboardActive on click if it's not ours.
12769
12770 2007-05-23  Andreia Gaita  <avidigal@novell.com>
12771
12772         * ColumnHeader.cs: Add TypeConverter
12773
12774 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12775
12776         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
12777
12778 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12779
12780         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
12781
12782 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12783
12784         * LinkLabel.cs: Implement public Padding property.
12785
12786 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12787
12788         * LinkLabel.cs: Implement public FlatStyle.
12789
12790 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
12791
12792         * Control.cs: Apply patch from George to call parent.PerformLayout
12793         when Visible is changed.  [Fixes bugs #81118, 81718]
12794
12795 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12796
12797         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
12798
12799 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12800
12801         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
12802
12803 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
12804
12805         * ContextMenu.cs: Implement Collapse.
12806
12807 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
12808
12809         * ToolBarButton.cs: Implement Name.
12810
12811 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
12812
12813         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
12814         use current_item, it prevents some NRE. Fixes #81675.  
12815
12816 2007-05-22  Andreia Gaita  <avidigal@novell.com>
12817
12818         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
12819         without updating the text.
12820
12821 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
12822
12823         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
12824         without calling DeleteObject.  [Should fix bug #81709]
12825
12826 2007-05-22  Jackson Harper  <jackson@ximian.com>
12827
12828         * RichTextBox.cs: Set the line endings correctly, when flushing
12829         RTF text.
12830
12831 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
12832
12833         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
12834          {Width=0,Height=0}.
12835
12836 2007-05-22  Jackson Harper  <jackson@ximian.com>
12837
12838         * TreeView.cs: Setting top with a null node should set to the very
12839         top.
12840
12841 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12842
12843         * Form.cs: ShowDialog: destroy the handle when message loop is
12844           finished, matches MS behaviour. Refactor parts of WmClose into
12845           RaiseCloseEvents, that only raises events if they haven't already
12846           been raised. Fixes #81688 and #81521.
12847         * Application.cs: Don't call close on the form when exiting a modal
12848           loop, it will raise all the (Form)Closed/Closing events again if
12849           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
12850           which doesn'r raise any events it they have been raised before.
12851
12852 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
12853
12854         * Control.cs: Add OnPrint.
12855         * ToolStrip.cs: Add GetChildAtPoint.
12856         * ToolStripContainer.cs: Add OnRightToLeftChanged.
12857         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
12858
12859 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
12860
12861         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
12862
12863 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12864
12865         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
12866           isn't visible anymore. Fixes #81651.
12867
12868 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12869
12870         * Control.cs: WmShowWindow: Update children's z-order after setting
12871           their parent. SetParent may show the window, thereby corrupting
12872           z-order, since the window will be shown on top.
12873         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
12874           multiple (and redundant) WM_SHOWWINDOW messages.
12875         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
12876           event has already been raised.
12877         * Form.cs: Change is_changing_visible_state to a counter, since
12878           SetVisibleCore can be called recursively. CreateHandle: when
12879           creating mdi children, send (De)Activated events.
12880         * MdiClient.cs: Update use of is_changing_visible_state.
12881         * Application.cs: OnThreadException: Surround exception handling with
12882           try/finally to ensure we always reset the error-handling state
12883           before leaving.
12884
12885 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12886
12887         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
12888           (#81704).
12889
12890 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12891
12892         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
12893         SmallIcon views, now that we have a standarized horizontal spacing.
12894
12895         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
12896         4, just like the other views (Match .Net).
12897
12898 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
12899
12900         * Control.cs: Delay calculating anchor distances until we actually layout.
12901         Always query the WM for the actual size and location it put us at instead of
12902         only when we send negative values.
12903         [Fixes bugs #81694, 81695]
12904
12905 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12906
12907         * Application.cs: Avoid a possible stack overflow when trying to exit
12908           the application.
12909
12910 2007-05-19  Marek Safar  <marek.safar@gmail.com>
12911
12912         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
12913         enum value.
12914
12915 2007-05-19  Andreia Gaita  <avidigal@novell.com>
12916
12917         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
12918         * NumericUpDownAcceleration.cs, 
12919           NumericUpDownAccelerationCollection.cs: Added 2.0
12920           implementation.
12921
12922 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
12923
12924         * RichTextBox.cs: Recalculate the document after the ScrollBars
12925         property is changed. Fixes bug #81681.
12926
12927 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
12928
12929         * DataObject.cs: Implement 2.0 methods.
12930
12931 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12932
12933         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
12934         in the center of the checkbox, not in the left-top corner. 
12935         Fixes #80037.
12936
12937 2007-05-18  Jackson Harper  <jackson@ximian.com>
12938
12939         * RichTextBox.cs: Recalculate the document after the scrollbars
12940         property is changed.
12941         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
12942         81486.
12943
12944 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12945
12946         * CreateParams.cs: Make HasWindowManager marginally faster.
12947         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
12948           into Hwnd so that other drivers can use it as well.
12949         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
12950           the default location from Hwnd. Fixes MDI client windows always
12951           showing up at (0,0) in Windows (Win32 won't set the default
12952           location since the window styles aren't correct).
12953
12954 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
12955
12956         * TreeView.cs: Modified DoubleBuffered to just use the base
12957         implementation.
12958
12959 2007-05-18  Jackson Harper  <jackson@ximian.com>
12960
12961         * TreeView.cs: Set the top node to the last child node when
12962         expanding all
12963         - When we get focus, if there is no selected node, use the top
12964         node.
12965
12966 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
12967
12968         * KeysConverter.cs: Add CanConvertTo.
12969         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
12970         * LinkConverter.cs: Added.
12971
12972 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12973
12974         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
12975         it prevents error when file dont have write access. Fixes #81669 and #81667.  
12976
12977 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12978
12979         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
12980         button text. Fixes #79640.  
12981
12982 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12983
12984         * Control.cs: According to MSDN controls created in the designer theres 
12985         keyboard accelerators visible by default. So included check for design
12986         in ShowKeyboardCuesInternal.  
12987
12988 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12989
12990         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
12991         text. Fixes #81621.  
12992
12993 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
12994
12995         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
12996         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
12997
12998 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
12999
13000         * Control.cs: Finish implementation of UI State using WmChangeUIState
13001         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
13002         in some controls to check for show_keyboard_cues to draw accell keys "_".  
13003
13004 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13005
13006         * ListBox.cs: When calculating the horizontal scrollbar
13007         in single column mode, don't use values less than 0 for
13008         Maximum. Fixes #81474.
13009
13010 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13011
13012         * ListBox.cs: Throw the some missing exceptions in
13013         ListBox.ObjectCollection methods.
13014
13015 2007-05-17  Jackson Harper  <jackson@ximian.com>
13016
13017         * TextBoxBase.cs: Recalculate the document when the word wrap
13018         value has changed. This fixes 81488.
13019
13020 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13021
13022         * Clipboard.cs: Implement missing GetText overload.
13023
13024 2007-05-17  Chris Toshok  <toshok@ximian.com>
13025
13026         * Control.cs (CheckDataBindings): remove the binding_context arg
13027         to binding.Check.
13028
13029         * CurrencyManager.cs (OnItemChanged): fix this now that
13030         BindingManagerBase is fixed. also remove the comment telling where
13031         the fix should go.  We set transfering_data to true/false around
13032         the call to PushData to keep UpdateIsBinding from being called.
13033         (ListChangedHandler): remove the extra OnMetaDataChanged call for
13034         PropertyDescriptorAdded in the 1.1 case.  The extra call is
13035         actually generated by System.Data generating 2 metadata changed
13036         events of its own per column add.  The fix should go there.  Add a
13037         comment to that affect in our test's Assert.Ignore.
13038
13039         * BindingManagerBase.cs: Rework PullData and PushData slightly.
13040         we keep a boolean flag (transfering_data) that keeps us from
13041         calling UpdateIsBinding multiple times if we re-enter either of
13042         them.
13043
13044         * ControlBindingsCollection.cs (AddCore): remove the
13045         binding_context arg to binding.Check.
13046
13047         * Binding.cs (IsBinding): don't check if we're binding here, just
13048         return our cached value.  we update it in UpdateIsBinding.
13049         (Check): don't take the binding_context arg, we'll just use our
13050         control's.  Also, for some reason MS doesn't use the data member
13051         field when getting the bindingmanager for this binding.  it just
13052         uses the datasource.  Make this method callable multiple times,
13053         and only do the is_null_desc stuff if manager.Position != -1 (so
13054         we don't get an exception accessing manager.Current).
13055         (UpdateIsBinding): move the code from IsBinding here.
13056         (PositionChangedHandler): call Check here to we can initialize
13057         things that require a non- -1 position.
13058
13059 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13060
13061         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
13062         control.
13063
13064 2007-05-17  Andreia Gaita  <avidigal@novell.com>
13065
13066         * TabControl.cs: Add 2.0 methods and events, including
13067         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
13068         * TabPage.cs: Add 2.0 methods
13069
13070 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13071
13072         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
13073         keyboard_cues is properly handled by message method.  
13074
13075 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13076
13077         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
13078
13079 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13080
13081         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
13082
13083 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
13084
13085         * Control.cs: 
13086         - WmUpdateUIState added to handle state changes, it make call to
13087         OnChangeUICues event.
13088         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
13089         SystemInformation.
13090
13091 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
13092
13093         * ImageKeyConverter.cs: Added.
13094         * TreeViewImageKeyConverter.cs: Added.
13095
13096 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13097         
13098         * ToolTips.cs: Update Text if SetToolTip is called for a control
13099         already showing the tooltip, as well as restarting its timer; show
13100         tooltip if we are inside the control bounds by the time of calling
13101         SetToolTip. Inside ShowTooltip remove the check to not show the 
13102         tooltip again for the active control (it is allowed by .Net to 
13103         show the tooltip on the same control multiple times).
13104
13105 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13106
13107         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13108
13109 2007-05-16  Andreia Gaita <avidigal@novell.com> 
13110
13111         * ContainerControl.cs: only process tab key if there are no 
13112         modifier keys present, otherwise the control does the 
13113         tab processing, if it needs to. Fixes #81622
13114         * TabControl.cs: Fixes calculation for which tab to select on
13115         shift+ctrl+tab.
13116
13117 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13118
13119         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13120
13121 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
13122
13123         * Control.cs: Make IsInputCharInternal to allow controls to
13124         override it and still match MS API.
13125         * TextBoxBase.cs: Override IsInputCharInternal and always
13126         return true.
13127         [Fixes bug #81616]
13128
13129 2007-05-15  Jackson Harper  <jackson@ximian.com>
13130
13131         * TextBox.cs: Disable some of the menu options when using a
13132         readonly textbox.
13133
13134 2007-05-15  Jackson Harper  <jackson@ximian.com>
13135
13136         * TextBox.cs:
13137         * TextBoxBase.cs:
13138         * RichTextBox.cs: Some new 2.0 methods
13139
13140 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
13141
13142         * FileDialog.cs: On 1.0 profile, do not support multidotted 
13143         extensions.
13144
13145 2007-05-14  Jackson Harper  <jackson@ximian.com>
13146
13147         * TextBoxBase.cs: Implement some of the new 2.0 methods.
13148         * RichTextBox.cs: We need to override these methods on 2.0.
13149         * MaskedTextBox.cs: These are implemented now
13150         * TextControl.cs: This was off by one.
13151
13152 2007-05-14  Jackson Harper  <jackson@ximian.com>
13153
13154         * TextControl.cs: Because the line endings are including in the
13155         text, we don't need to add them in anymore.
13156
13157 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13158
13159         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
13160         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
13161
13162 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13163
13164         * ToolBar.cs: Adjust size to default size when button theres no text and
13165         image, it fixes remaining issues from #81524.
13166
13167 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13168
13169         * ToolBar.cs: 
13170         - When not flat call redraw to recalculate sizes on creare handle to match
13171         win32 behavior.
13172         - Revert 77220 because it causes some regressions in toobar
13173         button.
13174
13175 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13176
13177         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
13178           now actually enters a usable state.
13179
13180 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13181
13182         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
13183         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
13184         3 buttons.
13185
13186 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13187
13188         * ToolBar.cs: Save default_size on create handle to use later for buttons
13189         without text, needed to mimic win32 behavior.
13190
13191 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13192
13193         * ToolBar.cs: Fix button layour to best fit width or height according to
13194         vertical or not. Fixes #81524.
13195
13196 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13197
13198         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
13199         toolbar size info because different styles theres different sizes.
13200         Fixes #81522.
13201
13202 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13203
13204         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
13205         if we are using checkboxes, checked is true, and we have less
13206         than two images in StateImageList; for the 1.1 in the same scenario
13207         draw the first image if we have at least one image in StateImageList.
13208         Fixes part of #81191.
13209
13210 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13211
13212         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
13213         the owner's Items collection on merge.
13214
13215 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13216
13217         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
13218         * ToolStripItemCollection.cs: Lots of fixes to when events get called
13219         and parent/owner gets changed based on gert's unit tests.
13220
13221 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13222
13223         * MaskedTextBox.cs: Started implementing parts of it.
13224
13225 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13226
13227         * ListView.cs: When clicking the checkbox on the items
13228         take into account the double clicks even if we have only
13229         one image in StateImageList (only for 1.0/1.1). Also 
13230         generate an extra change of checked state when we receive
13231         the second click on checkbox (match .Net behaviour). 
13232         Fixes part of #81191.
13233
13234 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13235
13236         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
13237
13238 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13239
13240         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
13241         even if OnLoad is overriden and base.OnLoad is not called.
13242         [Fixes bug #81582]
13243
13244 2007-05-10  Andreia Gaita  <avidigal@novell.com>
13245
13246         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
13247         shame. (I blame my ever-persisting and annoying cold)
13248
13249 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13250
13251         * ListView.cs: Don't eat navigation keys.  Let them flow through to
13252         KeyDown/KeyPress routines.  [Fixes bug #81569]
13253
13254 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13255
13256         * ListView.cs: When handling keys for selecting the item based off
13257         keyboard input, do not consider keys pressed with Alt or Control.  Also,
13258         correctly handle keys when the Shift key is down. [Fixes bug #81578]
13259
13260 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13261
13262         * Control.cs: When using UseWaitCursor, we have to store the requested
13263         Cursor to use when UseWaitCursor is turned off.
13264
13265 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13266
13267         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
13268         to false.
13269         * Application.cs: Use PreProcessControlMessage instead of
13270         PreProcessMessage.
13271         * PreProcessControlMessage.cs: Make internal for 1.1.
13272
13273 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13274
13275         * Control.cs: Add InternalContains focus property, which hast the same
13276         functionality of ContainsFocus, but also including implicit controls.
13277         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
13278         since we need to know if the focus is contained in our implicit
13279         ItemControl when calculating Layout. Fixes part of #80888.
13280
13281 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
13282
13283         * ToolTip.cs: Remove center form string alignment as it must be align to
13284         left.
13285
13286 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
13287
13288         * ToolStripItemCollection.cs: Set the new item's parent and owner
13289         in Insert like we do in Add.  [Fixes bug #81568]
13290
13291 2007-05-08  Jackson Harper  <jackson@ximian.com>
13292
13293         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
13294         - Off by one error in SetTop
13295         - Disable DoubeBuffering
13296         
13297 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13298
13299         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
13300           control as much as necessary in order to make it entirely visible,
13301           instead of centering the control in the container (matches MS
13302           behaviour). CalculateCanvasSize: we need to take the current scroll
13303           position into account when calculating the maximum canvas,
13304           otherwise the following scenario will fail: resize so that the
13305           scrollbars appear, use the scrollbars to scroll, resize again
13306           smaller, and now the canvas size is too small. Recalculate: when
13307           showing scrollbars make sure they start off at 0, and try to scroll
13308           the active control into view. Fixes #79540. HandleScrollBar: don't
13309           scroll anywhere if the scrollbar isn't visible.
13310
13311 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13312
13313         * ListView.cs: When focus changed, call Layout/Invalidate
13314         in the focused item to update the selected state (should show
13315         entire label when ListView is focused, and a part of it if is not).
13316         * ListViewItem.cs: When doing layout for LargeIcon, take into account
13317         for displaying the entire label not only the Focused state of the
13318         item, but also the Focused state of the ListView (match .Net
13319         behaviour).
13320
13321 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13322
13323         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
13324         Implement UseWaitCursor. 
13325
13326 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13327         Applying contributed patch from Sergey Volk.
13328
13329         * Clipboard.cs: Implement SetDataObject retry logic and new overload
13330         of SetDataObject.
13331         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
13332
13333 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13334
13335         * Control.cs: Implement DrawToBitmap.
13336
13337 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13338         Applying contributed patch from Stefan Noack.
13339         
13340         * Control.cs: Add [Get|Set]AutoSizeMode.
13341
13342 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13343
13344         * MdiClient.cs: Unmerge menus when the last child is closed.
13345
13346 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13347
13348         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
13349         * ToolStripManager.cs: Call Merge on DropDowns.
13350         [Fixes bug #81477]
13351
13352 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13353
13354         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
13355           uints.
13356         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
13357           visibility. We can't create forms visible, since we have to set the
13358           owner before making the form visible (otherwise Win32 will do
13359           strange things with task bar icons). The problem is that we set the
13360           internal is_visible to true before creating the control, so
13361           is_changing_visible_state is the only way of determining if we're
13362           in the process of creating the form due to setting Visible=true -
13363           this works because SetVisibleCore explicitly makes the form
13364           visibile afterwards anyways. Fixes #80775.
13365
13366 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13367
13368         * ThemeWin32Classic.cs: When drawing ListViewItems,
13369         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
13370         or LargeIcon _and_ item is not focused (match .Net behaviour).
13371
13372 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
13373
13374         * Control.cs, Form.cs: Fix some obsolete method warnings.
13375
13376 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
13377
13378         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
13379         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
13380
13381 2007-05-04  Andreia Gaita  <avidigal@novell.com>
13382
13383         * ContainerControl.cs: Fix active_control attribution when going
13384         up the parent chain so that the first parent container gets the control
13385         and the rest of the parent containers get the child containers (skips
13386         non-containers). Fixes #80729
13387
13388 2007-05-04  Randolph Chung  <tausq@debian.org>
13389
13390         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
13391         [Fixes bug #81499]
13392
13393 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13394
13395         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
13396           takes a size parameter, since the CreateParam's size isn't true for
13397           minimized forms. Fixes #81518,
13398
13399 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13400
13401         * Form.cs: Add OnDeactivateInternal.
13402         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
13403
13404 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13405
13406         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
13407           accessing the parent. Fixes #81508.
13408
13409 2007-05-03  Chris Toshok  <toshok@ximian.com>
13410
13411         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
13412         2.0 block, pass listposition + 1 to ChangeRecordState when a row
13413         was added before the current listposition.  Fixes the
13414         TestInsertRowBeforeCurrent unit test.
13415
13416 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
13417
13418         * Application.cs: Add RaiseIdle.
13419         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13420         XplatUIX11.cs: Implement RaiseIdle.
13421
13422 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
13423         corcompare work: N - Z
13424         * NotifyIcon.cs
13425         * ProgressBar.cs
13426         * RadionButton.cs
13427         * ScrollableControl.cs
13428         * SplitContainer.cs
13429         * SplitterPanel.cs
13430         * StatusBar.cs
13431         * SystemInformation.cs
13432         * TabControl.cs
13433         * TableLayoutControlCollection.cs
13434         * TableLayoutPanel.cs
13435         * TabPage.cs
13436         * ToolBar.cs
13437         * ToolBarButton.cs
13438         * ToolStrip.cs
13439         * ToolStripComboBox.cs
13440         * ToolStripContainer.cs
13441         * ToolStripContentPanel.cs
13442         * ToolStripDropDown.cs
13443         * ToolStripDropDownItem.cs
13444         * ToolStripDropDownMenu.cs
13445         * ToolStripItem.cs
13446         * ToolStripItemCollection.cs
13447         * ToolStripMenuItem.cs
13448         * ToolStripPanel.cs
13449         * ToolStripSplitButton.cs
13450         * ToolTip.cs
13451         * TreeNode.cs
13452         * TreeNodeCollection.cs
13453         * TreeNodeMouseHoverEventArgs.cs
13454         * TreeView.cs
13455
13456 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
13457
13458         * ContextMenu.cs: Add public method Show with alignment property to 2.0
13459         stuff. Thanks aatdark for the patch. 
13460
13461 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13462
13463         * GridItem.cs: Implement 2.0 Tag property.
13464
13465 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
13466
13467         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
13468         count instead of Nodes.Length.  [Fixes bug #81448]
13469
13470 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13471
13472         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
13473         [Fixes bug #81506]
13474
13475 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13476         corcompare work: A - M
13477         * BindingNavigator.cs
13478         * Button.cs
13479         * ButtonBase.cs
13480         * CheckBox.cs
13481         * Control.cs
13482         * FlowLayoutPanel.cs
13483         * Form.cs
13484         * Label.cs
13485         * LinkLabel.cs
13486         * ListView.cs
13487
13488 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13489
13490         * Application.cs: Give toolstrips a chance to process mnemonics.
13491         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
13492         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
13493         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
13494
13495 2007-05-01  Jackson Harper  <jackson@ximian.com>
13496
13497         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
13498         wider area too.
13499         - Don't set the BoundsSpecified
13500
13501 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13502
13503         * Application.cs: When using the toolstrip shortcut mechanism, allow the
13504         message to pass through to a regular control if it hosted by a toolstrip.
13505         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13506         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
13507
13508 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13509
13510         * TextRenderer.cs: Use the flags argument when using the MeasureString
13511         fallback algorithm.
13512
13513 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13514
13515         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
13516         the MDI menu item.  [Fixes bug #81483]
13517
13518 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
13519
13520         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
13521         string. When setting Name to null, use zero-length string instead.
13522
13523 2007-04-29  Andreia Gaita  <avidigal@novell.com>
13524
13525         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
13526         DeselectTab). Implement missing 2.0 TabPageCollection methods
13527         (Add, ContainsKey, RemoveByKey, IndexOfKey)
13528
13529 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
13530
13531         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
13532
13533 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
13534
13535         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
13536         Fixes bug #81479. Include details of exception when LoadFile fails.
13537
13538 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
13539
13540         * DrawListViewSubItemEventArgs.cs: Added missing setter
13541
13542 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13543
13544         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
13545         Hide methods (not complete). Implement missing 2.0 OnPopup event.
13546
13547 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13548
13549         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
13550         removed in ly last commit (it was breaking the Label edit feature).
13551
13552         * ThemeWin32Classic.cs: When drawing a ListViewItem use
13553         StringAlignment.Near for LineAlignment (match .Net).
13554
13555 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13556
13557         * TabControl.cs: Change SetTab so it adds the tabpage to the list
13558         of controls if it isn't already there - was blowing up when doing
13559         tabcontrol.TabPages[i]=new TabPage(). 
13560         SetTab now does a replace by removing the page at the index. 
13561         Add a new InsertTab method that inserts a page in a given index 
13562         instead of replacing. 
13563         Implements TabPageCollection.Insert(int, TabPage).
13564
13565 2007-04-27  Chris Toshok  <toshok@ximian.com>
13566
13567         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
13568         internal handler that can be invoked from our subclasses.)  Also,
13569         add a comment to PushData about how we need to fix it.
13570
13571         * CurrencyManager.cs: tons of changes here.  trying to get things
13572         matching the behavior of .net wrt event orders (ItemChanged,
13573         CurrentChanged, PositionChanged.)  I've implemented a private .net
13574         symbol (ChangeRecordState) that appears in stack traces because
13575         it's actually easier to do this than to effective inline all its
13576         various behaviors at every call site.
13577
13578         * RelatedPropertyManager.cs: guard against an exception here by
13579         not using parent.Current if the position is set to -1 (if the
13580         parent datasource is cleared, for instance).
13581
13582         * Binding.cs: don't parse data in PushData (this might be wrong,
13583         but it jives with MS's behavior.)  Also, don't call PushData when
13584         we get a CurrentChanged event.
13585
13586 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13587
13588         * WebBrowser.cs,
13589           WebBrowserBase.cs,
13590           WebBrowserSiteBase.cs,
13591           HtmlDocument.cs: Added stubbed out classes, no real implementations 
13592           yet.
13593
13594 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13595
13596         * MainMenu.cs: In draw method without parameters call draw method with 
13597         PaintEvent, another one (just rect) adjust rectangle and we dont need it
13598         as Rect property is already adjusted. Fixes #80694.
13599
13600 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
13601
13602         * Application.cs: Need to handle keyboard menu deselection here.
13603         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
13604         navigation, allowing keyboard to work on X11.
13605         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
13606
13607 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13608
13609         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
13610         menu bar. It fixes some drawing issues in menu bar.
13611
13612 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13613
13614         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
13615         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
13616         when <alt> key is pressed.
13617
13618 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13619
13620         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
13621         example just set visible to false and make this prevent from other problems.
13622         In SystrayAdd always remove pending expose. Fixes #81072.
13623
13624 2007-04-26  Marek Safar  <marek.safar@gmail.com>
13625
13626         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
13627         value is set.
13628
13629 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13630
13631         * ListView.cs: Added three missing 2.0 events and corresponding
13632         EventHandlers. Added the OwnerDraw property.
13633         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
13634
13635 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13636
13637         * DrawListViewItemEventArgs.cs
13638         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
13639
13640 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13641
13642         * TextControl.cs: Fixed typo in constructor
13643
13644 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
13645
13646         * Application.cs: Create a shortcut path so that currently selected
13647         MenuStrips can intercept keyboard events without having focus.
13648         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
13649         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
13650         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
13651         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
13652         generate WM_SYSCOMMAND message in X11 for other platforms.
13653         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
13654         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
13655         * ToolStripSplitButton.cs: Add DefaultItem property.
13656         
13657 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13658
13659         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
13660         fixes some menu draw problem on Windows with border diferent from default
13661         it also fixes #81403.
13662
13663 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13664
13665         * Form.cs: Refactor WndProc into separate methods, just like Control is
13666           doing it.
13667
13668 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13669
13670         * Control.cs: set_Text: move the call to the driver into a seperate
13671           virtual method so that Form can override it.
13672         * MaskedTextBox.cs: Corcompare fixes.
13673         * Form.cs: Override UpdateWindowText and only update the styles if the
13674           form has been shown (fixes #81405).
13675
13676 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13677
13678         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
13679         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
13680         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
13681         the form lost focus or another control was clicked.
13682
13683 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
13684
13685         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
13686         fixed.
13687
13688 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13689
13690         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
13691           DrawListViewItemEventHandler.cs,
13692           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
13693           Added.
13694         * X11Structs.cs: More ToString implementation.
13695
13696 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13697
13698         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
13699         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
13700
13701 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13702
13703         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
13704           handle.
13705         * FormCollection.cs: Don't add a form if it's already in the
13706           collection.
13707         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
13708           according to behaviour and MSDN. The ownerWin32 is the active
13709           window at the moment when we call ShowDialog, not the context's
13710           main form (the context's main form may open another form that opens
13711           a form with ShowDialog, the win32 owner is the second form). Add
13712           and remove forms to the Application.OpenForms in other places to
13713           better match MS behaviour. Add an IsActive property that raises
13714           On(de)Activated only if the active state has changed (we were
13715           raising OnDeactivated before OnActivated while creating forms).
13716         * Application.cs: Refactor Enabling/Disabling of windows for modal
13717           dialog loops out to separate methods, and restore the thread
13718           context when we quit the method. Fixes #81407.
13719
13720 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13721
13722         * ListView.cs: In ItemControl.HandleClicks, also fire 
13723         2.0 MouseClick or MouseDoubleClick events on the parent,
13724         not only the Click/DoubleClick events.
13725
13726 2007-04-24  Andreia Gaita  <avidigal@novell.com>
13727
13728         * TableLayoutSettings.cs: 
13729         - Added a GetControls method and a support structure to help the 
13730         TypeConverter to enumerate the controls for     serialization. 
13731         - Added a new serialization constructor. 
13732         - Added a isSerialized flag initialized to true on the 
13733         serialization constructor so that the TableLayoutPanel.LayoutSettings 
13734         setter does not throw the designed NotSupportedOperation exception
13735         when the object is built through deserialization.
13736         - Implemented GetObjectData
13737         
13738         * TableLayoutPanel.cs: Added check on LayoutSettings.
13739
13740 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13741
13742         * ListView.cs: Report Click and DoubleClick events to the parent
13743         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
13744         from breaking the click count state when using dialog forms (Control
13745         reports the clicks in a similar fashion). In the previous behaviour
13746         the last WM_LBUTTONUP message in a  double click was sent to the
13747         ListView's form, instead of the ListView, which was breaking the click
13748         count for it. Fixes #80387.
13749
13750 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
13751
13752         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
13753
13754 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
13755
13756         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
13757         us from created dropdowns for menu items that do not have subitems.
13758         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
13759         Check HasDropDownItems before calling DropDown so a dropdown will not be
13760         created if it isn't needed.
13761
13762 2007-04-24  Jackson Harper  <jackson@ximian.com>
13763
13764         * TreeView.cs: Set the first node to the selected node when we get
13765         focus if there is no selected node.
13766
13767 2007-04-24  Andreia Gaita  <avidigal@novell.com>
13768
13769         * MimeIcon.cs: remove using blocks so that image streams are
13770         not disposed of. Fixes #80151
13771
13772 2007-04-24  Jackson Harper  <jackson@ximian.com>
13773
13774         * TextBoxBase.cs: Fixup the height of textboxes when the control
13775         is created.
13776
13777 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
13778
13779         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
13780         for each ToolStripItem when the parent's RightToLeftChanged is called.
13781
13782 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13783
13784         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
13785           Fixes #80163.
13786         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
13787           property, so that the setter can be overriden too.
13788         * TextBox.cs: Change GetContextMenuInternal() to use
13789           ContextMenuInternal.
13790
13791 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13792
13793         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13794           #81406.
13795
13796 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13797
13798         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
13799           #81406.
13800
13801 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13802
13803         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
13804           avoid duplicate work. Mostily skeleton code, it's not working at
13805           all yet.
13806
13807 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
13808
13809         * NotifyIcon.cs : stub for MouseClick event
13810         * Application.cs: stub for SetUnhandledExceptionMode
13811
13812 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
13813
13814         * BindingNavigator.cs : Initial (partial) implementation
13815
13816 2007-04-23  Jackson Harper  <jackson@ximian.com>
13817
13818         * TreeView.cs: Do not create the treeview's handle when setting
13819         the scroll position.
13820         - ExpandAll needs to compute the scrollbars so it knows which
13821         position to set the bar too.
13822         * TreeNode.cs: 
13823         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
13824
13825 2007-04-23  Jackson Harper  <jackson@ximian.com>
13826
13827         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
13828         key. Fixes #81408.
13829
13830 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
13831
13832         * ToolStripItem.cs: Make GetImageSize internal.
13833         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
13834         need to draw an item.  Fixes a reported issue where images on menus
13835         that were not 16x16 were drawing incorrectly.
13836
13837 2007-04-21  Miguel de Icaza  <miguel@novell.com>
13838
13839         * Padding.cs: Use the converter, fixes the resgen2 issue with
13840         XMLNotePad. 
13841
13842 2007-04-21  Jackson Harper  <jackson@ximian.com>
13843
13844         * TreeView.cs: Dont try to unhighlight the selected node if there
13845         isn't a selected node.
13846
13847 2007-04-21  Jackson Harper  <jackson@ximian.com>
13848
13849         * UpDownBase.cs:
13850         * TextBoxBase.cs:
13851         * ListView.cs:
13852         * ListBox.cs:
13853         * TreeView.cs: Use the InternalBorderStyle property to set the
13854         initial border style, this forces the client rectangle to be sized
13855         correctly.
13856
13857 2007-04-20  Jackson Harper  <jackson@ximian.com>
13858
13859         * TreeView.cs: Simplify scrolling to the last node after expanding
13860         all.
13861         - Fix some off by ones with setting the bottom.
13862
13863 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
13864
13865         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
13866         that.  We were incorrectly doing it the other way around.  Also,
13867         update ClientSize if we change the BorderStyle before the control
13868         is created.
13869
13870 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
13871
13872         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13873         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13874         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
13875         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
13876         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
13877         Caption to CaptionHeight.
13878         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
13879         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
13880         and FixedFrameBorderSize to return value from current XplatUI driver.
13881         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
13882         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
13883         and FixedFrameBorderSize using win32 API. Renamed Caption to
13884         CaptionHeight.
13885         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
13886         * SystemInformation.cs: Fixed typo in BorderSize.
13887
13888 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
13889
13890         * XplatUI.cs: Added MenuAccessKeysUnderlined.
13891         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
13892         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
13893         returning false.
13894         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
13895         value from XplatUI driver.
13896         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
13897         SystemParametersInfo.
13898         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
13899         override.
13900         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
13901         returning false.
13902
13903 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13904
13905         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
13906
13907 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13908
13909         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
13910
13911 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
13912
13913         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
13914         MenuStrips that contain ToolStripSeparators.
13915
13916 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13917
13918         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
13919           DefineStdCursorBitmap.
13920         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
13921           has been created off a standard cursor. This is used to get a
13922           bitmap of the standard cursor when Draw or DrawStretched is called
13923           in order to draw the cursor.
13924         * X11Structs.cs: Added XcursorImage and XcursorImages.
13925         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
13926           DefineStdCursorBitmap.
13927         * Cursors.cs: Update all relevant creations of Cursor to use the new
13928           internal constructor.
13929
13930 2007-04-19  Jackson Harper  <jackson@ximian.com>
13931
13932         * TextBox.cs: Move the has_been_focused into the base control, so
13933         some of the text adding methods can manipulate it (probably time
13934         for a better name for this flag too).
13935         - Call a new version of selectall that doesn't scroll
13936         * TextBoxBase.cs: When we append text, if the document is empty,
13937         don't scroll.  If the document has text already, we scroll to the
13938         end of the appended text.
13939         - When the text is changed, we reset the has_been_focused, so the
13940         next time the control gets focused, all the text is selected.
13941
13942 2007-04-19  Jackson Harper  <jackson@ximian.com>
13943
13944         * TextControl.cs: Move the margins to the document, add a method
13945         so the margin sizes can be updated.
13946         * TextBoxBase.cs: When the border style is changed, update the
13947         border sizes.
13948
13949 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
13950
13951         * Control.cs: Respect DefaultPadding.
13952         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
13953         padding into account.
13954         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
13955
13956 2007-04-19  Jackson Harper  <jackson@ximian.com>
13957
13958         * TextControl.cs: Oops, we need to use the ClientRect not the
13959         bounds here.
13960
13961 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13962
13963         * ListView.cs: In ItemControl.ItemsMouseDown, take into
13964         account the double clicks when CheckBoxes are used and
13965         the pointer is inside the checkbox. Fixes part of #81191.
13966
13967 2007-04-18  Jackson Harper  <jackson@ximian.com>
13968
13969         * TextControl.cs: Pressing the end key shouldn't move the caret
13970         past the line ending.
13971         * TextBoxBase.cs: We can still delete if we are in the line
13972         ending and the combine will just kill the existing line ending.
13973
13974 2007-04-18  Jackson Harper  <jackson@ximian.com>
13975
13976         * TextControl.cs: We can't move lines, then invalidate their
13977         bounds, we need to get the old bounds and combine that with the
13978         new bounds.
13979         * TextBoxBase.cs: Before combining two lines for a delete, we need
13980         to invalidate the area of the old line, since that will be moved
13981         in the combine operation.
13982
13983 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
13984
13985         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
13986         with transparent background. Fixes #80482.
13987
13988 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
13989
13990         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
13991         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
13992         [Fixes bug #81391]
13993
13994 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13995
13996         * CreateParams.cs: Add a couple of helper methods and do a less string
13997           concatenation in ToString.
13998         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
13999           overload that takes a Control parameter, since this method may be
14000           called before a control is assigned to the hwnd (from
14001           CreateWindow), and update CreateWindow to use the new overload. In
14002           GetMenuOrigin subtract the title bar from the y position if the
14003           form has a window manager (since we're painting it and not X).
14004         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
14005           CreateParams to calculate the origin (since border sizes may vary).
14006           In ScreenToMenu only subtract the title height if we actually have
14007           a title.
14008         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
14009           mdi children never have menus of themselves.
14010         * InternalWindowManager.cs: Implement menu handling like form does.
14011           Added GetMenuOrigin to calculate the menu origin, can't use the
14012           CreateParams from the form like normally since it's lying.
14013         * Hwnd.cs: Implement GetBorderSize better (in the sense more
14014           windows-like) and add Inflate and comparison operators to the
14015           Borders type. When calculating MenuOrigin and it's a form with a
14016           window manager, use the window manager to calculate it.
14017
14018 2007-04-17  Chris Toshok  <toshok@ximian.com>
14019
14020         * Control.cs (CreateControl): turns out in 2.0 we don't need this
14021         OnBindingContextChanged thing here.  It's only generated from
14022         ContainerControl.OnCreateControl.  Fixes a newly written unit test
14023         - BindingTest.BindingContextChangedTest4.
14024         
14025 2007-04-17  Jackson Harper  <jackson@ximian.com>
14026
14027         * ScrollBar.cs: When setting values, make sure the current
14028         position stays within the new values range.
14029
14030 2007-04-17  Chris Toshok  <toshok@ximian.com>
14031
14032         * Control.cs (CreateControl): talk about a bizarre corner case.
14033         Don't emit OnBindingContextChanged here if we're a parentless
14034         control (i.e. if we're a form.).  Fixes
14035         BindingTest.BindingContextChangedTest2.
14036
14037 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14038
14039         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
14040         from win32. Fixes #81255.
14041
14042 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14043
14044         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
14045         already present in CalculateButtonTextAndImageLayout.
14046
14047 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14048
14049         * XplatUIX11.cs: When setting min/max size for a window we need to
14050           translate the coordinates to x coordinates. Create an overload of
14051           SetWindowMinMax that takes a CreateParams handling this, and change
14052           SetWMStyles to call this function (can't use Control.FromHandle in
14053           the SetWindowMinMax to get the control/CreateParams from the handle
14054           because the handle might not have been assigned to the control
14055           yet). Fixes #81371.
14056
14057 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14058
14059         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
14060         if StateImageList is non-null and it has less than two items (match MS
14061         behaviour). Also, in HandleNavKeys handle the Space key, calling
14062         the new ToggleItemsCheckState method, which tries to change the
14063         checked state of the selected items. Fixes part of #81191.
14064
14065 2007-04-16  Jackson Harper  <jackson@ximian.com>
14066
14067         * RichTextBox.cs: namespace cleanup.
14068
14069 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14070
14071         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
14072
14073 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14074
14075         [Fixes #79447]
14076         * Control.cs: Call invalidate in set_Region.
14077
14078         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
14079         it dont works here.
14080
14081 2007-04-16  Jackson Harper  <jackson@ximian.com>
14082
14083         * TextBoxBase.cs: When enter is pressed, we need to update all
14084         lines below the current.
14085
14086 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
14087
14088         * MdiClient.cs: Implement implicit menu merging for MDI
14089         children.  When a child form is active, if it has a menustrip
14090         and the parent form has a MainMenuStrip, automatically merge
14091         the menus.
14092
14093 2007-04-15  Andreia Gaita  <avidigal@novell.com>
14094
14095         * TabControl.cs: Refactored sizing methods to not repeat
14096         code all over the place. Tab bounds are now calculated
14097         as if alignment is top and single line, and only when 
14098         setting the bounds are the positions adjusted according
14099         to alignment. Replaced hardcoded positions, spacings and
14100         paddings by getting the values the ThemeEngine. 
14101         Fixes #79619.
14102         
14103         * Theme.cs: Change TabControl properties and methods so
14104         that all start with TabControl*. Added more properties
14105         to help remove hardcoded values on tabcontrol.
14106         Add CPDrawBorder3D declaration so the Theming classes
14107         can access it.
14108         
14109         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
14110
14111         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
14112         on the Theming namespace, and call the appropriate methods here.
14113         Change CPDrawBorder3D to public.
14114
14115 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14116
14117         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
14118         the control after firing the OnMouseUp event, instead of sending
14119         the message before the mentioned event. This is so we can match the
14120         MS behaviour. Fixes part of #80385.
14121
14122 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14123
14124         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
14125         RightToLeft property.
14126
14127 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14128
14129         * ToolStrip.cs: Add properties and internal methods to support merging.
14130         * ToolStripItem.cs: Add MergeAction and MergeIndex.
14131         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
14132         not trigger reparenting or layouts.
14133         * ToolStripManager.cs: Add Merge and RevertMerge methods.
14134         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
14135         is hosting the overflow menu.
14136
14137 2007-04-13  Jackson Harper  <jackson@ximian.com>
14138
14139         * TextControl.cs: Set the line ending correctly for the first
14140         inserted line.
14141
14142 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
14143
14144         * Theme.cs: Update GetMethod to get the new definition for 
14145         KnownColors.Update (and fix theme color updates).
14146
14147 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
14148
14149         * MessageBox.cs: Fix some test and button position.
14150
14151 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14152
14153         * Form.cs: Consider the implicit controls in
14154         GetRealChildAtPoint. We need it since this method
14155         is called on Form when handling the some messages in
14156         WndProc, and need to consider those implicit ones too.
14157         Fixes #80385.
14158
14159 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
14160
14161         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
14162         if there are no ShortcutKeys set.
14163         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
14164         set, use it when painting.
14165
14166 2007-04-12  Jackson Harper  <jackson@ximian.com>
14167
14168         * TextControl.cs: Fix some off-by-one issues in line duplication
14169         and insertion in the undo manager. Also, overwrite the first tag
14170         of a line on insert, if it is just a zero lengthed tag. This
14171         prevents us from getting an extra stranded tag at the beginning of
14172         the first line.
14173
14174 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
14175
14176         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
14177         to calculated proper size including when handle was not created yet.
14178
14179 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14180
14181         * MdiWindowManager.cs: When moving a form, allow the form to be moved
14182           when the mouse is outside of it's parent's client rectangle. Fixes
14183           #79982 (take 3, part 2).
14184
14185 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14186
14187         * X11Structs.cs: Add a few ToString() overrides.
14188         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
14189           the window location in a window-manager independent way. Reworked
14190           FrameExtents, it now actually works. Reworked AddConfigureNotify
14191           and ReparentNotify handling to use GetTopLevelWindowLocation
14192           instead of the earlier, more hacky solution. Reworked SetWMStyles,
14193           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
14194           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
14195           for all other windows (fixes #81281 part 1), a toolwindow is hidden
14196           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
14197           and generally refactored to do as few calculations as possible
14198           inside the lock.
14199
14200 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
14201
14202         * Theme.cs: Change "reflective-contract" between MWF and SD to 
14203         minimize # of calls, avoid Color serialization and avoid updating 
14204         every "known colors" each time a single one is updated.
14205
14206 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14207
14208         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
14209         when not readonly and the text is explicitly set. Code style updates.
14210         * DataGridTableStyle.cs: Removed extra line.
14211         * DataGrid.cs: Code style updates. Removed extra whitespace.
14212         * DataGridColumnStyle.cs: Code style updates. Removed extra 
14213         whitespace.
14214
14215 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14216
14217         * XplatUIX11.cs: Added comment that "fixes" #80021.
14218
14219 2007-04-09  Jackson Harper  <jackson@ximian.com>
14220
14221         * TextControl.cs: We don't need this -1 on the line count anymore.
14222
14223 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14224
14225         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
14226         entered value to underlying type, and convert it back to a string to
14227         apply formatting. Modified GetFormattedValue to use TypeConverter
14228         if available.
14229
14230 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
14231
14232         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
14233         Use SubItems property when we want to ensure there's at least one
14234         subitem. Modified SubItems property to ensure there's always at least
14235         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
14236         the NRE's reported by MS.
14237
14238 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
14239
14240         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
14241         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
14242         Spaces to tabs. Removed extra tabs.
14243
14244 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
14245
14246         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14247         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
14248
14249 2007-04-06  Jackson Harper  <jackson@ximian.com>
14250
14251         * TextBoxBase.cs: When a delete removes a line, recalculate all
14252         lines below that line (they need to get offsets setup correctly)
14253         and invalidate.
14254
14255 2007-04-05  Jackson Harper  <jackson@ximian.com>
14256
14257         * TextControl.cs: We need to invalidate across the width of the
14258         document when we are invalidating multiple lines.
14259         * TextBoxBase.cs: Don't delete into the line ending.
14260
14261 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14262
14263         * ListView.cs: Restore the check for the MouseHover event
14264         in ListView. It looks like the ListView fires more than one MouseHover
14265         event when HoverSelection is true  _only_ in weird-corner scenarios, but
14266         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
14267         event.
14268
14269 2007-04-05  Mike Kestner  <mkestner@novell.com>
14270
14271         * ListView.cs : raise MouseDown before updating selection.
14272         [Fixes #80373 tab 1&3]
14273
14274 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14275
14276         * ToolStripRenderer.cs: Add static method to mirror image.
14277         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
14278         and RightToLeftAutoMirrorImage.
14279         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
14280
14281 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14282
14283         * ToolStripSplitStackLayout.cs: Support Alignment property.
14284         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
14285
14286 2007-04-05  Jackson Harper  <jackson@ximian.com>
14287
14288         * TextControl.cs: Move around the line endings when crossing line
14289         boundaries.
14290         - When combining lines, strip the ending text off the first line.
14291
14292 2007-04-05  Jackson Harper  <jackson@ximian.com>
14293
14294         * TextControl.cs:
14295         * TextBoxBase.cs: Try to never move the cursor into the line
14296         ending.
14297         
14298 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14299
14300         * ToolStripItem.cs: Make sure we aren't firing mouse events when
14301         the item is disabled.  Also add a few missing methods.
14302
14303 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14304
14305         * ListView.cs: We don't need the MouseEnter/MouseLeave check
14306         to fire just one MouseHover event when HoverSelection is true, since
14307         .Net does fire more than one MouseHover event in that scenario. Also,
14308         fix the selection in HoverSelection, by invoking UpdateMultiSelect
14309         if MultiSelect is true, instead of only setting ListViewItem.Selected.
14310         Finally, we need to reset the Hover logic in MouseMove, even when we
14311         don't have a selected item.
14312
14313 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14314
14315         * ToolStrip.cs: Add several missing methods, properties, and events.
14316
14317 2007-04-04  Chris Toshok  <toshok@ximian.com>
14318
14319         * DataGridTextBoxColumn.cs: set the bounds of the text box to
14320         (0,0,0,0) in Commit, as MS does.
14321
14322         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
14323         make sure we set CurrentRow on a row header click *before* calling
14324         Select.  This moves the current cell (and the textbox) to the new
14325         row.  The call to Select then hides the textbox, giving us the
14326         correct behavior.  Fixes #80362.
14327
14328         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
14329         (ListChangedHandler): reorder the position/current changed events,
14330         and call UpdateIsBinding in the ItemAdded case.
14331
14332         * GridColumnStylesCollection.cs: add some columns events, one of
14333         which raises the CollectionChanged event.
14334
14335 2007-04-04  Jackson Harper  <jackson@ximian.com>
14336
14337         * TextControl.cs: When we delete multiple selection lines
14338         invalidate the selection area, don't need to do that for single
14339         lines because the final update view will handle it.
14340
14341 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14342
14343         * Control.cs: When we CreateControl, we need to also create all of the
14344         control's children.  The child's OnLoad must also fire before the parent's
14345         OnLoad.  Fixes the toolbox size in PDN.
14346
14347 2007-04-04  Jackson Harper  <jackson@ximian.com>
14348
14349         * TextBoxBase.cs: When the user presses enter, insert a line
14350         ending into the text. (Maybe this would be a good spot for
14351         Environment.NewLine).
14352         * TextControl.cs: Remove undo manager hack, line endings get
14353         inserted properly now.
14354         
14355 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
14356
14357         * MenuAPI.cs: 
14358         - Remove unneeded parameters in UpdateCursor.
14359         - Fix UpdateCursor to check if menu is active.
14360         - Call UpdateCursor when menu deactivate my click.
14361         [Fixes remaining issues from #80410]
14362
14363 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
14364
14365         * Control.cs: GetRealChildAtPoint method added, it make an
14366         recursive child control search for the point. 
14367
14368         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
14369         menu.
14370
14371         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
14372
14373 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
14374
14375         * Form.cs: Fix mouse position when send back mouse event after closes
14376         menu.
14377
14378 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
14379
14380         * Form.cs: Simplify the BUTTONDOWN for active tracker.
14381
14382 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14383
14384         * Control.cs: Fix an issue where if a user resized a control inside
14385         a sizing method like OnResize, we would overwrite their explicit
14386         value.  Also, only call DefaultSize once in the constructor instead
14387         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
14388         nothing actually changed.
14389
14390 2007-04-03  Jackson Harper  <jackson@ximian.com>
14391
14392         * TextControl.cs: Don't attempt to copy text for lines with no
14393         text in them (technically this shouldn't happen, but we aren't
14394         always inserting line endings when we should be).
14395
14396 2007-04-03  Jackson Harper  <jackson@ximian.com>
14397
14398         * TextBoxBase.cs: Calculate the scrollbars before calculating the
14399         document, because this sets some of the document size properties
14400         that are needed.
14401
14402 2007-04-03  Jackson Harper  <jackson@ximian.com>
14403
14404         * TextBoxBase.cs: We need to calculate maximums even if this is
14405         not a multiline control, because the maxs are used for scrolling.
14406         - Display the caret after doing a page up/down, we need to
14407         manually display it because a proper CaretMoved event isn't
14408         triggered (this is because of the way the math is done to
14409         determine how far to scroll).
14410
14411 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14412
14413         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
14414         (ToolBar was relying on SetBoundsCore to default the values sent 
14415         base off of BoundsSpecified.)
14416
14417 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14418
14419         * DateTimePicker.cs: Change Text so that when a null value or empty
14420           string is assigned to the test we always raise ValueChanged and
14421           TextChanged (earlier implementation would only raise ValueChanged
14422           if the current date value was different from DateTime.Now).
14423
14424 2007-04-03  Andreia Gaita <avidigal@novell.com> 
14425
14426         * ButtonBase: Call update after invalidation, fixes #80194
14427
14428 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14429
14430         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
14431           #79335.
14432
14433 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14434
14435         * XplatUIX11.cs: SetWMStyles: If the control is a form with
14436           FormBorderStyle = None, don't give the window any decorations.
14437           Fixes #81276.
14438
14439 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14440
14441         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14442         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
14443           to check for is a mix of several styles (such as WS_CAPTION for
14444           instance).
14445         * Control.cs: Don't paint an area bigger than the client area when
14446           painting the background colour. Add an internal GetCreateParams.
14447           Update calls to XplatUI.CalculateWindowRect due to API change.
14448         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
14449           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
14450           the size if it hasn't been handled by any windows. When creating
14451           and moving windows, X wants the location of the entire window, but
14452           the size of the client window, so add
14453           TranslateClientRectangleToXClientRectangle,
14454           TranslateWindowSizeToXWindowSIze and
14455           TranslatedXWindowSizeToWindowSize to cope with this, and call them
14456           before every window creation and move. Update CalculateWIndowRect
14457           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
14458           In AddConfigureNotify don't do anything if the hwnd is a zombie
14459           (fixes the BadWindow we were getting while running the tests),
14460           always calculate the offsets when it's a parentless window, not
14461           only when reparented, and translate the window size, since we're
14462           getting the client size of the whole window, excluding entire
14463           window.
14464         * Theme.cs: Added BorderSizableSize.
14465         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14466           anymore. Update calls to XplatUI.CalculateWindowRect due to API
14467           chang
14468         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
14469           change. Fake the window styles here instead of in XplatUIWin32 so
14470           that all back-ends get the same window styles (and it's Form that's
14471           deciding when to use wm, not the Win32 backend anyways)
14472         * Hwnd.cs: Completely reworked GetWindowRectangle and
14473           GetClientRectangle - they are now passed a CreateParams and they
14474           only use Style and ExStyle to determine the rectangles (they should
14475           now work just like Win32AdjustWindowRectEx - though quite a few
14476           special cases are probably missing). They should also be 100%
14477           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
14478           == rect), and all numbers (borders, menu sizes) are taken from the
14479           current theme. Added a GetBorders helper function that will return
14480           the borders for any given CreateParams (including captions and
14481           menus), and GetBorderSize that returns the given border size only.
14482         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14483           Hwnd.GetClientRectangle.
14484
14485 2007-04-02  Chris Toshok  <toshok@ximian.com>
14486
14487         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
14488         logic between the values we present to the user and the values
14489         which are stored in the column's property.  Also, don't call
14490         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
14491
14492 2007-04-02  Jackson Harper  <jackson@ximian.com>
14493
14494         * TextBoxBase.cs: Scroll faster!
14495
14496 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14497
14498         * StatusStrip.cs: Layout fixes for PDN.
14499         * ToolStrip.cs: Set item's available to true, and placement to main when
14500         added.
14501         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
14502         changing in setter before doing any work, add InternalVisible.
14503         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
14504         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14505         infinite loop.
14506
14507 2007-04-02  Jackson Harper  <jackson@ximian.com>
14508
14509         * TextBox.cs: LBUTTON does not make the textbox select all of it's
14510         text on focus.
14511
14512 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14513
14514         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
14515           Makes ToolStripComboBoxes show up again.
14516
14517 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14518
14519         * ListView.cs: Add a hover_pending field in ListView
14520         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
14521         cycle (we are resetting the MouseHover logic in XplatUI
14522         to handle HoverSelection). Fixes #80429.
14523
14524 2007-04-02  Jackson Harper  <jackson@ximian.com>
14525
14526         * TextControl.cs: Make sure the attributes get set on the last
14527         tag.
14528         - Still have to do the end tag if we have stepped all the ways to
14529         the end.
14530
14531 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
14532
14533         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
14534         on an internal libgdiplus call when the information is already 
14535         available via the public API.
14536
14537 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14538
14539         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
14540           control is removed from a control collecftion.
14541         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
14542           Fixes FormPropertyTest (failed on rare occasions).
14543         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
14544           of Win32SetParent (when changing from no parent to a parent it
14545           might add the new parent's location in screen coordinates to this
14546           window's location).
14547         * Form.cs: Rework ChangingParent once again, now the handle is
14548           recreated whenever a FormWindowManager is added or removed (that is
14549           whenever a normal form is parented or abandoned). Also change
14550           CreateParams so that all non-toplevel windows always get the
14551           specified sice (StartupPosition is never considered for
14552           non-TopLevel forms).
14553         * ContainerControl.cs: Add ChildControlRemoved, the container control
14554           needs to be notified when a control is removed from it's
14555           collection, in the case the removed control is the active control.
14556
14557 2007-04-02  Jackson Harper  <jackson@ximian.com>
14558
14559         * RichTextBox.cs: Use the new methods for setting the font and
14560         color, these methods set the specified attribute without
14561         overriding the other attributes.
14562
14563 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14564
14565         * ToolStripPanel.cs: Fixes for better layouts in PDN.
14566
14567 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
14568
14569         * TextBox.cs: Added internal ChangeBackColor method to special-case
14570         Color.Empty. Added check for invalid ScrollBars value.
14571         * TextBoxBase.cs: Added internal ChangeBackColor method.
14572         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
14573         internal ChangeBackColor method to special-case Color.Empty. Added
14574         check for invalid ScrollBars value.
14575
14576 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
14577
14578         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
14579
14580 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14581
14582         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
14583         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
14584         [Based on submitted patch from Olivier Duff.]
14585
14586 2007-03-30  Jackson Harper  <jackson@ximian.com>
14587
14588         * TextBox.cs: Only select all on initial focus if the user has not
14589         specified a selection area.
14590
14591 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14592
14593         * UserControl.cs: Override CreateParams.
14594
14595 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14596
14597         [ Fixes #80995 ]
14598
14599         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14600         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
14601           check for is a mix of several styles (such as WS_CAPTION for instance).
14602         * Control.cs: Don't paint an area bigger than the client area when painting
14603           the background colour. Add an internal GetCreateParams. Update calls to
14604           XplatUI.CalculateWindowRect due to API change.
14605         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
14606           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
14607           hasn't been handled by any windows. When creating and moving windows, X
14608           wants the location of the entire window, but the size of the client
14609           window, so add TranslateClientRectangleToXClientRectangle,
14610           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
14611           to cope with this, and call them before every window creation and move.
14612           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
14613           removing DeriveStyles). In AddConfigureNotify don't do anything if the
14614           hwnd is a zombie (fixes the BadWindow we were getting while running the
14615           tests), always calculate the offsets when it's a parentless window, not
14616           only when reparented, and translate the window size, since we're getting
14617           the client size of the whole window, excluding entire window.
14618         * Theme.cs: Added BorderSizableSize.
14619         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14620           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
14621         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
14622           Fake the window styles here instead of in XplatUIWin32 so that all
14623           back-ends get the same window styles (and it's Form that's deciding when
14624           to use wm, not the Win32 backend anyways)
14625         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
14626           they are now passed a CreateParams and they only use Style and ExStyle
14627           to determine the rectangles (they should now work just like
14628           Win32AdjustWindowRectEx - though quite a few special cases are probably
14629           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
14630           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
14631           sizes) are taken from the current theme. Added a GetBorders helper
14632           function that will return the borders for any given CreateParams
14633           (including captions and menus), and GetBorderSize that returns the given
14634           border size only.
14635         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14636           Hwnd.GetClientRectangle.
14637
14638 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14639
14640         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
14641           layout of the mdi children is handled by CreateParams. Fixes
14642           #79964,
14643
14644 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14645
14646         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
14647         processed.
14648
14649         * Form.cs: When active tracker mouse down is not processed, send event 
14650         back to control inside mouse position. [Fixes #81227]
14651
14652 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14653
14654         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
14655         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
14656         stealing focus from the active form on Windows.  (Control will be made
14657         visible in ShowWindow.)
14658
14659 2007-03-29  Mike Kestner  <mkestner@novell.com>
14660
14661         * ImageList.cs : add internal Changed event.
14662         * ListView.cs : hook up to StateImageList.Changed to perform
14663         invalidations when the the state icon list changes. [Fixes #81191]
14664
14665 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14666
14667         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
14668         to prevent tooltips from stealing focus from the active form on Windows.
14669
14670 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14671
14672         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
14673
14674         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
14675
14676 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14677
14678         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
14679         balloons.
14680
14681 2007-03-29  Jackson Harper  <jackson@ximian.com>
14682
14683         * TextControl.cs: When deleting text from non multiline textboxes,
14684         we need to update the entire document, because line offsets will
14685         be shifting.
14686
14687 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14688
14689         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
14690         added to theme, now we can create themes that uses diferent notify engines
14691         like notification-daemon from galago project or growl for Mac OS.
14692
14693 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14694
14695         * NotifyIcon.cs: Prevent Balloon to show in task bar.
14696
14697 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14698
14699         * XplatUIX11.cs: Prevent system to open more than one balloon.
14700
14701         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
14702         some compiler warning messages.
14703
14704 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14705
14706         [Fixes #79149]
14707
14708         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
14709
14710         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
14711         implemented, this methods is used by NotifyIcon.BalloonWindow class.
14712
14713         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
14714         systems.
14715
14716 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14717
14718         * ListViewItem.cs: Forgot to make Invalidate internal.
14719
14720 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14721
14722         * ListView.cs: Add a InvalidateSelection method to
14723         invalidate methods which are currently selected, and call
14724         it when setting FullRowSelect and HideSelection, instead of
14725         calling Redraw.
14726
14727 2007-03-28  Chris Toshok  <toshok@ximian.com>
14728
14729         * XplatUIX11.cs (UnmapWindow): reindent this block.
14730
14731         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
14732         the selection_start if we're moving the selection (that is, not
14733         extending it). Fixes bug #80461.
14734
14735 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14736
14737         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
14738         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
14739         create private ControlCollection.
14740
14741 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14742
14743         * Control.cs: We need to call OnVisibleChanged for our implicit
14744         children as well as our normal children.  Fixes scrollbars in
14745         comboboxes not showing up.
14746
14747 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14748
14749         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
14750         the check for IsHandleCreated first.  The check in CreateHandle is not
14751         good enough because CreateHandle can be overriden, and the override 
14752         should not be called if the handle is already created.
14753
14754 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14755
14756         * ToolStrip.cs: Remove MonoTODO for tooltips.
14757         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
14758         * ToolStripContainer.cs: Add custom ControlCollection class.
14759         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
14760         * ToolStripDropDown.cs: Add some missing properties/methods.
14761         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
14762         * ToolStripItem.cs: Remove MonoTODO for tooltips.
14763         * ToolStripManager.cs: Add IsShortcutDefined.
14764         * ToolStripOverflow.cs: Override LayoutEngine.
14765         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
14766         * ToolStripSeparator.cs: Add ImageKey.
14767
14768 2007-03-28  Jackson Harper  <jackson@ximian.com>
14769
14770         * TextControl.cs: If a char delete removes a line ending, we need
14771         to update the ending style.
14772         - Make sure the line ending calcs get called.
14773
14774 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14775
14776         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
14777           it was making the new code not work. Fixed a typo in the new code
14778           as well. Fixes #79826.
14779
14780 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14781
14782         * XplatUIWin32.cs:
14783         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
14784         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
14785         - SystrayBalloon method implemented.
14786         [Add support for notifyicon balloon on win32, #79149]
14787
14788 2007-03-27  Mike Kestner  <mkestner@novell.com>
14789
14790         * ThemeWin32Classic.cs : update StateImageList selection to mirror
14791         the ms behavior when only one image is added to the list.
14792         [Fixes #81191]
14793
14794 2007-03-27  Jackson Harper  <jackson@ximian.com>
14795
14796         * TextControl.cs: Improvements to non multiline line ending
14797         drawing/measuing.
14798
14799 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14800
14801         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
14802
14803 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14804
14805         * NotifyIcon.cs: 
14806         - Balloon message handling added.
14807         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
14808
14809         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
14810         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
14811         to SystrayBalloon to me like other Systray method, also a
14812         handle parameter added.
14813
14814 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14815
14816         * ListView.cs: Show scrollbars even when items.Count == 0
14817         but the columns Width is bigger than the ListView.Width.
14818         Also, when columns.Count == 0 set layout_wd and layout_ht
14819         to the ClientRectangle values, so we don't show any scrollbar
14820         in that case.
14821
14822 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14823
14824         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
14825
14826 2007-03-27  Jackson Harper  <jackson@ximian.com>
14827
14828         * RichTextBox.cs: The RTF library decodes the text properly for us
14829         now.
14830
14831 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14832
14833         * ListView.cs: Display HeaderControl even when columns.Count == 0.
14834         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
14835         ListView header (HeaderControl), instead of Control.BackColor.
14836
14837 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
14838
14839         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
14840         Fixes tab control issues where controls would not show up because they
14841         never received their OnVisibleChanged call.
14842
14843 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
14844
14845         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
14846         BalloonTipShown).
14847
14848 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
14849
14850         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
14851         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
14852         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
14853         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
14854         the handle.  Fix WindowState by using the internal variable until we are 
14855         sure that we've been shown.
14856         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
14857         max or min.
14858         [Fixes bug #81198]
14859
14860 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14861
14862         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
14863           (at least borders). Fixes #79386 on Linux (with a small difference
14864           in behaviour: when trying to resize a caption-less window metacity
14865           shows the sysmenu. Resizing is still possible though).
14866         * XplatUIWin32.cs: When setting window styles send request an extra
14867           WM_NCCALCSIZE when it's a form without title (due to no text and no
14868           caption), since Win32 seems to calculate it wrong the first time we
14869           get the message, though the second time things work as they should.
14870         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
14871           newly reparented window might show up unparented. Update
14872           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
14873           there's no title text. Fixes #79386.
14874
14875 2007-03-27  Mike Kestner  <mkestner@novell.com>
14876
14877         * ListBox.cs : don't perform invalidations if the handle hasn't been
14878         created.  [Fixes #80753]
14879
14880 2007-03-27  Mike Kestner  <mkestner@novell.com>
14881
14882         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
14883         [Fixes #80428]
14884
14885 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
14886
14887         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
14888         needed to implement Balloon.
14889
14890 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14891
14892         * ListViewItem.cs: In the constructors that take
14893         an array of strings, don't use ListViewSubItemCollection.AddRange
14894         method to add items, since we need to have a different behaviour (in
14895         the constructors we add an item for each null string, opposed to
14896         the behaviour of AddRange, which adds nothing).
14897
14898 2007-03-26  Andreia Gaita  <avidigal@novell.com>
14899
14900         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
14901
14902 2007-03-26  Jackson Harper  <jackson@ximian.com>
14903
14904         * TextControl.cs: Draw and measure line endings when in non
14905         multiline mode.
14906         - When searching the text, count the end of the last line as a
14907         word boundary.
14908
14909 2007-03-26  Jackson Harper  <jackson@ximian.com>
14910
14911         * RichTextBox.cs: The selection_start and selection_end don't
14912         really track the correct tags for the selection. So we'll manually
14913         compute the correct tag here.
14914
14915 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14916
14917         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
14918           and Continuous styles. Fixes #79469.
14919
14920 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
14921
14922         * ToolStrip.cs: Implement Tooltips.
14923         * ToolStripItem.cs: Create internal method for determining tooltip.
14924
14925 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
14926
14927         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
14928
14929 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
14930
14931         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
14932         it prevents a problem thak keeps icon visible after application 
14933         closes on win32.
14934
14935 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
14936
14937         * NotifyIcon.cs: Balloon properties and methods created.
14938
14939         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
14940         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
14941
14942 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
14943
14944         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
14945
14946 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
14947
14948         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
14949         parameter indicates which aspects were explicit/user-set.
14950         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
14951
14952 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
14953
14954         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
14955         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
14956         SmallChange, and Value (2.0).
14957         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
14958
14959 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14960
14961         * ListView.cs: Always set item_control.Width in LayoutDetails
14962         if View is Details. Setting it later in CalculateScrollBars
14963         in a not-so-corner scenario (the sum of columns width is
14964         not bigger than the ListView width when handle is created, and then
14965         that sum gets bigger by increasing the width of the columns)
14966         causes a very weird recursion path (which shouldn't be happening,
14967         since header_control sets it in CalculateScrollBars too). This bug
14968         appeared after Chris' fixes for handle created issues, so probably
14969         it's related to some handle-creation time.
14970
14971 2007-03-23  Chris Toshok  <toshok@ximian.com>
14972
14973         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
14974         case where there's an add row, just so we don't end up in a case
14975         where it's not displayed (this happens when the row is partially
14976         obscured).  Fixes bug #79574.
14977
14978 2007-03-23  Jackson Harper  <jackson@ximian.com>
14979
14980         * TextControl.cs:
14981         * TextBoxBase.cs:
14982         * RichTextBox.cs: Preserve line endings in the lines text buffer,
14983         also added an enum that represents the line ending type. 
14984
14985 2007-03-23  Andreia Gaita  <avidigal@novell.com>
14986
14987         * NumericUpDown.cs: Fix logic so Text and Value properties are not
14988         messed with in every method call, but only from DownButton, 
14989         UpButton, UpdateEditText() and ValidateText. Fixes #80346
14990
14991 2007-03-23  Chris Toshok  <toshok@ximian.com>
14992
14993         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
14994         format objects if the format spec is "".  Fixes bug #80889.
14995
14996 2007-03-22  Miguel de Icaza  <miguel@novell.com>
14997
14998         * ToolStripPanel.cs (Join): added stubs to build PDN3
14999
15000         * Control.cs (AutoScrollOffset): Add.
15001
15002         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
15003         property, its only implemented for Win32, on X11 it defaults to
15004         some hardcoded value.
15005
15006         * ToolStripItem.cs (AllowDrop): Add property
15007
15008 2007-03-22  Mike Kestner  <mkestner@novell.com>
15009
15010         * ListView.cs : in FullRowSelect Details mode, only enable box
15011         selection if the user clicks over the "item" column outside of the
15012         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
15013
15014 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15015
15016         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
15017           handle is not created yet.
15018         * Form.cs: Select: Don't call CreateHandle if the handle is already
15019           created, avoids a stack overflow on Windows when we are recreating
15020           controls.
15021         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
15022           they are made visible, and override AfterTopMostControl to keep
15023           them on top when other controls are brought to front.
15024           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
15025           or force_*scroll_visible is true (old implementation always shows
15026           scrollbars when needed, no matter what auto_scroll was set to).
15027         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
15028           IsHandleCreated check.
15029
15030 2007-03-22  Andreia Gaita  <avidigal@novell.com>
15031
15032         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
15033         row or col separator.
15034         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
15035
15036 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15037
15038         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
15039
15040 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15041
15042         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
15043         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
15044         every time. Fixes #80410.
15045
15046 2007-03-22  Chris Toshok  <toshok@ximian.com>
15047
15048         * BindingSource.cs (AddNew): partially implement.
15049
15050         remove a couple of NotImplementedException's
15051         to get bug #81148 closed.
15052
15053 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15054
15055         [Fixes #80380]
15056         
15057         * Control.cs:
15058         - UpdateCursor method added to update the screen cursor.
15059         - GetAvailableCursor method added to return cursor for enabled tree,
15060         it searches for cursor on control and it's parent's for enabled control.
15061         - Call UpdateCursor method on setter of Cursor property.
15062         - On setter of Enabled call UpdateCursor when it is false, we need to
15063         change cursor to normal (or to this parent cursor) because cursor 
15064         setting theres no effect to disabled controls.
15065         - Some minor source changes to follow the coding style guidelines.
15066
15067         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
15068         controls.
15069
15070 2007-03-22  Chris Toshok  <toshok@ximian.com>
15071
15072         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
15073         generates.
15074
15075 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15076
15077         * XplatUIX11.cs: Implement default locations for forms.
15078         * Form.cs: Completely rework startup location for forms. Fixes #79964.
15079         * Hwnd.cs: Add previous_child_startup_location (to track the current
15080           startup location for any child forms of the current form) and
15081           previous_main_startup_location (to track the startup location for
15082           the current toplevel form).
15083
15084 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15085
15086         * Control.cs: Don't trigger a layout if an implicit control is added
15087         that isn't visible.  Also, don't notify the owner when an implicit control
15088         is added.  (Owners shouldn't even know about their implicit controls.)
15089
15090 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15091
15092         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
15093         to save some re-layouts.
15094
15095 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
15096
15097         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
15098         [Fixes #81203]
15099
15100 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15101
15102         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
15103         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
15104
15105 2007-03-21  Mike Kestner  <mkestner@novell.com>
15106
15107         * ListView.cs : disable selection update for non-left button clicks
15108         with mods and over selected items.  [Fixes #80524]
15109
15110 2007-03-20  Jackson Harper  <jackson@ximian.com>
15111
15112         * TextControl.cs:
15113         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
15114         \r\r\n, \n.
15115
15116 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15117
15118         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
15119           very probably a more complicated calculation there. Update the
15120           textbox' ForeColor and BackColor when the ComboBox' colors are
15121           changed. Change the border change in LayoutComboBox to only affect
15122           the textbox, not all the calculations there. Seems to fix most of
15123           #79436.
15124
15125 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15126
15127         * ComboBox.cs: Handle Home and End keys as well as all combinations of
15128           modifiers + navigation keys as input keys, enables advanced text
15129           selection in the combobox (like Shift+Left Arrow for instance).
15130           ComboTextBox now overrides Focused and returns whatever
15131           ComboBox.Focused returns, since it really should be focused
15132           whenever the ComboBox is. Fixes #80795. Also make the border around
15133           the text box one pixel bigger, as mentioned in #79436.
15134
15135 2007-03-20  Jackson Harper  <jackson@ximian.com>
15136
15137         * TreeView.cs: Don't offset the images, this was causing some
15138         artifacts when expanding/collapsing with images that were the
15139         exact height of the treenode.
15140
15141 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15142
15143         * TrackBar.cs: Query the theme for the correct value when the mouse
15144           moves and the thumb is pressed. 
15145         * Theme.cs: Added TrackBarValueFromMousePosition
15146         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
15147           implementation was updating the trackbar value when drawing, now
15148           the drawing methods only draw. Fixes #80900. Refactored the
15149           calculations out to TrackBarValueFromMousePosition and
15150           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
15151           according to the mouse position whenever it wants to. Changed the
15152           light coloured pen when drawing the thumb from ControlLight to
15153           ControlLightLight, because the ControlLight is the same colour as
15154           the background so the 3D effect is lost. 
15155
15156 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15157
15158         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
15159         defined. Fixes #80784.
15160
15161 2007-03-20  Marek Habersack  <mhabersack@novell.com>
15162
15163         * ContextMenuStrip.cs: align with the change introduced in
15164         revision 74664.
15165
15166 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15167
15168         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
15169         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
15170         in SetTopmost.
15171
15172 2007-03-19  Chris Toshok  <toshok@ximian.com>
15173
15174         * Control.cs (WmPaint): don't make use of the Handle property
15175         after an event is emitted, as the user could have closed the
15176         form/destroyed the control.  Store the Handle in a local variable
15177         and make use of that.  Fixes bug #80768.
15178
15179 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15180
15181         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
15182         behavior in X11 environments.
15183
15184 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15185
15186         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
15187         because on setter of topmost we dont call SetTopmost when handle is not
15188         created.
15189
15190 2007-03-20  Jackson Harper  <jackson@ximian.com>
15191
15192         * TextControl.cs: Need to use SelectionLength () not
15193         selection_length, since that var is reset to -1.
15194         - Draw the caret when we don't have focus.
15195         * TextBox.cs: The selectall actually doesn't occur until the first
15196         focus.
15197         * TextBoxBase.cs: Need to update the caret position after a
15198         selectall.
15199         
15200 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15201
15202         * ListView.cs: Enable scrolling when using Tile view.
15203
15204 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15205
15206         [Fixes #80902]
15207
15208         * XplatUIDriver.cs: Abstract SetOwner method created.
15209
15210         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
15211         must be implemented and was masked as todo.
15212
15213         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
15214         GWL_HWNDPARENT.
15215
15216         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
15217         cheking for null owner to remove transient. The SetTopmost will be change
15218         on a decond step.
15219
15220         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
15221         SetTopmost. Now owned forms will work properly in win32 and X11.
15222
15223 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15224
15225         * MdiWindowManager.cs: Update function name.
15226         * Form.cs: After closing a form MdiParent is always null.
15227         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
15228           better what it should do: necessary book-keeping when the form is
15229           closed, it should not close the form itself.
15230
15231 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15232
15233         * ListViewItem.cs: Fix back and fore color. The subitems only
15234         use their own colors if they are set, otherwise use the listview's
15235         colors. Don't set default colors on constructor for subitem.
15236         Fixes #79315.
15237
15238 2007-03-19  Mike Kestner  <mkestner@novell.com>
15239
15240         * ListView.cs : make box selection for Details views with 
15241         FullRowSelect conform to MS behavior when clicking in the "item" 
15242         column and clicking outside the defined columns.
15243         [Fixes case 5-6 of #80374]
15244
15245 2007-03-19  Chris Toshok  <toshok@ximian.com>
15246
15247         * ScrollableControl.cs: create the controls from within the ctor,
15248         but don't actually add them until our handle is created.  this
15249         fixes a NRE possibility jpobst found (if you override OnLayout in
15250         a subclass, it's called before your ctor).  Also, add a
15251         IsHandleCreated guard to UpdateSizeGripVisibility as well.
15252
15253 2007-03-19  Jackson Harper  <jackson@ximian.com>
15254
15255         * TextBox.cs: Reduce the amount of invalidation we do.
15256         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
15257         some of them are true by default on MS.
15258         - Add some functions to reduce the amount of invalidates we do.
15259         * TextControl.cs: Less invalidation.
15260
15261 2007-03-19  Chris Toshok  <toshok@ximian.com>
15262
15263         [ Fixes #81773, and *seems* to fix #81553 as well ]
15264
15265         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
15266         AccumulateDestroyedHandles.  We need to do it *after* we send
15267         WM_DESTROY, as the user's code can access Control.Handle in
15268         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
15269         move the WM_DESTROY/zombie handling to before the call to
15270         XDestroyWindow.  For some reason without this ordering
15271         FormTest.RecreateHandle hangs.  This ordering is semantically
15272         equivalent, however, as XDestroyWindow is async anyway.
15273
15274 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
15275
15276         * RichTextBox.cs: Reset backcolor_set after setting default.
15277
15278 2007-03-19  Chris Toshok  <toshok@ximian.com>
15279
15280         * ScrollableControl.cs: the scroll position should not effect the
15281         canvas size.  commit patch from georgegiolfan@yahoo.com, which
15282         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
15283         
15284 2007-03-19  Chris Toshok  <toshok@ximian.com>
15285
15286         * ScrollableControl.cs: clean this up a bit.  create the
15287         scrollbars in the ctor and just show/hide them as needed.  Also,
15288         make hscroll_visible/vscroll_visible internal to Recalculate, and
15289         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
15290         everywhere else.  This seems to fix the scrollbars appearing
15291         beneath the content for me (i have *no* idea why that is,
15292         however.)
15293
15294 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15295
15296         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
15297         some redundacy for stuff in Anchor and Dock that base will take care of.
15298         [Fixes #80762]
15299
15300 2007-03-19  Mike Kestner  <mkestner@novell.com>
15301
15302         * ListView.cs : make box selection for Details views without 
15303         FullRowSelect dependent on the text bounds, not item bounds.
15304         * ListViewItem.cs : add an internal property to obtain the TextBounds
15305         in Details view.  [Fixes case 1-4 of #80374]
15306
15307 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15308
15309         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
15310         we're < 2.0. #78448 && #80316
15311
15312 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15313
15314         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
15315         have the same style available as the previously selected one.  Also,
15316         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
15317
15318 2007-03-19  Jackson Harper  <jackson@ximian.com>
15319
15320         * TextControl.cs: Add an alignment property that all new lines
15321         will be given.
15322         - Make sure to use the align shift when calculating the line's X
15323         position.
15324         * TextBox.cs: Set the alignment on the document as well as on all
15325         the document lines.
15326
15327 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15328
15329         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
15330           throw if setting the parent of an mdichild that already has an
15331           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
15332           AssemblyProductAttribute in the assembly, use the type's namespace (as
15333           MS seems to do). CreateControl: don't create the handle if the control
15334           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
15335           create handle if the control is not a form. Change FocusInternal to
15336           virtual so that it can be overriden by Form.
15337         * TextBox.cs: Update call to FocusInternal.
15338         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
15339           form is not a toplevel form when it's a mdi child, so update is_toplevel
15340           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
15341           hasn't been created. Show (IWin32Window): Don't allow this overload for
15342           toplevel windows. CenterToParent/CenterToScreen/Select: create the
15343           handle as MS does. SetVisibleCore: if called on a MdiChild and the
15344           parent isn't visible yet, save the visibility and restore it when the
15345           parent is made visible.
15346         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
15347           methods, since the visibility of the scrollbars can be changed from
15348           several places, not only from AutoScroll.
15349           [Fixes #81179]
15350
15351 2007-03-19  Jackson Harper  <jackson@ximian.com>
15352
15353         * RichTextBox.cs: Enable shortcuts by default.
15354         * TextBoxBase.cs: Add conditional shortcuts.  
15355
15356 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
15357
15358         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
15359
15360 2007-03-19  Chris Toshok  <toshok@ximian.com>
15361
15362         [ Fixes bug #80604]
15363         
15364         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
15365         swallow the message we're waiting on, instead of delivering it, as
15366         this is only used for the WM_SHOWWINDOW raised from
15367         MapWindow/UnmapWindow, and the message needs to be generated
15368         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
15369         before doing the Map/Unmap.  Also make sure that the Hwnd is still
15370         alive after the message has been handled.
15371
15372         *before* the window is shown.
15373
15374         * Control.cs (CreateControl): guard a few more things inside the
15375         if (!is_created) block, as we might end up being called again -
15376         yay .net.
15377         (WmShowWindow): call CreateControl if we're showing the control.
15378
15379 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15380
15381         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
15382           controls without a handle if they have any parent with a handle. In
15383           Dispose add a check whether the handle is created or not before
15384           calling BeginInvoke, this removes the need of the extra disposing
15385           parameter (which was bogus anyway since it didn't prevent the
15386           invoke from happening, it only skipped the check for an existing
15387           handle, meaning that the invoke would call on an inexistent
15388           handle).
15389
15390 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
15391
15392         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
15393         appears in taskbar.
15394
15395 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15396
15397         * MessageBox.cs:
15398         - Fixed a problem that dont show help button for messages with 3 buttons.
15399         - Refactory button size and position calculations, now dont use fixed 
15400         values, also fixed button sizes (#80043) and form's border space.
15401         - AddButton method created, now all other AddButton methods call this one.
15402         - Some other source code cosmetic changes.
15403
15404 2007-03-18  Jackson Harper  <jackson@ximian.com>
15405
15406         * RichTextBox.cs: Don't do this all fonts must match check if
15407         there is only one char selected.
15408
15409 2007-03-18  Jackson Harper  <jackson@ximian.com>
15410
15411         * TreeView.cs: ScrollWindow works properly now, so we don't need
15412         to screw around with the scroll area.  This fixes some artifacts
15413         when expanding and collapsing.
15414
15415 2007-03-18  Jackson Harper  <jackson@ximian.com>
15416
15417         * TextBoxBase.cs: Allow updating the selection position when the
15418         cursor is outside the textarea, but we have a capture.
15419         * TextControl.cs: A special case for when the cursor is outside
15420         the bounds of the TB.
15421         
15422 2007-03-18  Jackson Harper  <jackson@ximian.com>
15423
15424         * TextBoxBase.cs: Remove image pasting code for now.  There is no
15425         way to get an image on the clipboard right now anyways.
15426         * TextControl.cs:
15427         * RichTextBox.cs: Use the new RTF Picture class for pictures.
15428
15429 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15430
15431         * MessageBox.cs:
15432         - Set window properties in constructor intead of on CreateParams.
15433         - Remove topmost from Window ExStyle.
15434         - Set ShowInTaskbar to false.
15435         - Set form border to FixedDialog.
15436         - Some cosmetic changes and remove unneeded comments.
15437         - It fixes itens 2,3 and 4 of bug #80043.
15438
15439 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
15440
15441         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
15442         none was explicitly set. Fixes part of bug #79949.
15443
15444 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15445
15446         * ToolStripComboBox.cs: Add AutoComplete*.
15447
15448 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15449
15450         * ToolStripComboBox.cs: Add FlatStyle.
15451
15452 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
15453
15454         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
15455         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
15456
15457 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15458
15459         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
15460           CheckBox.cs, RadioButton.cs, BindingSource.cs,
15461           DataGridColumnStyle.cs: Remove warnings.
15462
15463 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15464
15465         * Menu.cs: MergeMenu: Check menu argument for null before looping over
15466           it.
15467         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
15468           visibility of mdi child forms. FormSizeChangedHandler: update the
15469           maximized size if size has changed while maximized.
15470         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
15471           creating the handle.
15472         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
15473           avoid creating the handle if not created.
15474         * XplatUI.cs: Update debug output.
15475         * XplatUIStructs.cs: Added ToString's for a couple of structs.
15476
15477 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
15478
15479         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
15480         ProcessCmdKey().
15481         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
15482         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
15483         Implement keyboard shortcuts.
15484
15485 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15486
15487         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
15488         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
15489         ColorDialog and all derived classes.
15490
15491 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15492
15493         [ Fixes bug #79828 ]
15494
15495         * ToolBar.cs:
15496         - Rename ToolBarButtonInfor to ToolBarItem.
15497         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
15498         - Maintain an array of ToolBarItem, used instead of ToolBarButton
15499         collection to be able add same button more than one time on a toolbar.
15500         - Refactory all properties and methods to use ToolBarItem. 
15501
15502         * ToolBarButton.cs: 
15503         - Remove all propeties and methods that is now in ToolBarItem.
15504         - Rectangle propery now gets the rectangle from first ToolBarItem to
15505         mimic win32 behavior.
15506         - Size calculation and layout methods also removed.
15507
15508         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
15509         ToolBarItem instead of ToolBarButton to right drawing buttons when
15510         same button/separator was added more than one time to ToolBar.
15511
15512         * ThemeNice.cs: Same as above. 
15513
15514 2007-03-15  Andreia Gaita  <avidigal@novell.com>
15515
15516         * XplatUIX11.cs: Fire extra MouseMove events right after
15517         MouseDown and MouseUp, emulating win32's <censored> behaviour
15518         for apps that rely on it.
15519
15520 2007-03-15  Jackson Harper  <jackson@ximian.com>
15521
15522         * TextControl.cs:
15523         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
15524         it is drawn on the controls client window and there is no NC
15525         area.
15526         - Set the background color to gray on 2.0 when we are readonly.
15527
15528 2007-03-15  Chris Toshok  <toshok@ximian.com>
15529
15530         [ Fixes bug #81144 ]
15531         
15532         * XplatUIX11.cs: implement VirtualScreen independently of
15533         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
15534         property.
15535
15536 2007-03-15  Chris Toshok  <toshok@ximian.com>
15537
15538         * Hwnd.cs: add an internal field for the cached_window_state.
15539
15540         * XplatUIX11.cs: cache the window state, invalidating the cache
15541         (and thus re-querying the X server) only when we see an update to
15542         the _NET_WM_STATE property.
15543
15544 2007-03-15  Chris Toshok  <toshok@ximian.com>
15545
15546         * BindingSource.cs: get a lot of the unit tests working.
15547
15548 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15549
15550         * Control.cs: Modify UpdateStyles to store distances when bounds >=
15551         0 instead of just bounds > 0.  [Fixes bug #80912]
15552
15553 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15554
15555         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
15556         and methods.
15557
15558 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
15559         
15560         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
15561         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
15562         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
15563         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
15564
15565 2007-03-15  Chris Toshok  <toshok@ximian.com>
15566
15567         [ Fixes #81101 ]
15568         
15569         * Control.cs: add Ivan's fix for 81101, with a slight modification
15570         - you can set control.Target to null.
15571
15572 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
15573
15574         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
15575         HideDropDown, use Hide instead to prevent an NRE.
15576         [Fixes bug #81147]
15577
15578 2007-03-14  Jackson Harper  <jackson@ximian.com>
15579
15580         * TextBoxBase.cs: Mess with the creation stuff a little. We need
15581         to calculate the document before the handle is created, in some
15582         cases. (Actually just one case).
15583
15584 2007-03-14  Jackson Harper  <jackson@ximian.com>
15585
15586         * TextBoxBase.cs: Need to display the caret after letting the base
15587         wndproc handle the focus methods, because the caret display
15588         methods check the focus state.
15589         - Try to display the caret after updating it's position with SelectWord.
15590         - Don't need to do an immediate update on this recalc, since there
15591         will be an invalidate anyways.
15592
15593 2007-03-14  Jackson Harper  <jackson@ximian.com>
15594
15595         * TreeView.cs: Some workarounds so that we can match event order a
15596         little better.
15597
15598 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
15599
15600         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
15601         #80803. Avoid NullReferenceException when Control does not have
15602         parent. Fixed different blinkstyle issues. Only subscribe to Tick
15603         event a single time. Only draw error icon when control is created and
15604         visible. Fixes failing unit tests.
15605
15606 2007-03-14  Andreia Gaita  <avidigal@novell.com>
15607
15608         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
15609         Selecting events. Fire Leave and Enter events when changing tabs.
15610
15611 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
15612
15613         * TreeView.cs: Add TreeViewNodeSorter.
15614         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
15615
15616 2007-03-14  Chris Toshok  <toshok@ximian.com>
15617
15618         * Form.cs: go ahead and remove the RecreateHandles that jpobst
15619         removed earlier and I had him add back it.  It turns out metacity
15620         *does* in fact handle the MOTIF_WM_HINTS property changing, it
15621         just doesn't redraw the window titlebar until you resize the
15622         window.  This also means we aren't recreating the entire window
15623         hierarchy on X when you change this property.  And it looks better
15624         on windows, too.
15625
15626 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15627
15628         * ListViewItem.cs:
15629         * ListView.cs: Collecting selection information
15630         is now done in SelectedIndexCollection rather than in
15631         SelectedListViewItemCollection. This is done so we can
15632         have the selection information code in one single place
15633         (virtual mode selection information entirely depends on
15634         SelectedIndexCollection).
15635
15636 2007-03-13  Miguel de Icaza  <miguel@novell.com>
15637
15638         * ErrorProvider.cs: Add stubs for ISupportInitialize
15639
15640 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15641
15642         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
15643         in the right order with the right values, from the Checked property, 
15644         just as MS does (instead of triggering them from ListView).
15645
15646         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
15647
15648 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15649
15650         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
15651         the correct handler in OnItemCheck method (ItemCheckEventHandler 
15652         instead of EventHandler). This used to throw an InvalidCastException.
15653
15654 2007-03-13  Jackson Harper  <jackson@ximian.com>
15655
15656         * TextBoxBase.cs: Calculate the document before the handle is
15657         created, so there isn't an extra invalidate called.
15658
15659 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
15660
15661         * Form.cs: Don't set owner in ShowDialog until we are sure
15662         that we aren't going to throw an exception.  [Fixes bug #80773]
15663
15664 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
15665
15666         * TreeView.cs: Make it compile.
15667
15668 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15669
15670         * Control.cs: Another place we don't call SizeFromClientSize.
15671         * Form.cs: Another place we don't call SizeFromClientSize.
15672         [Fixes bug #81125]
15673
15674 2007-03-12  Jackson Harper  <jackson@ximian.com>
15675
15676         * TreeView.cs: Basically emulating some strangness here with
15677         exanding nodes and setting node positions when windows aren't
15678         created.
15679         - Also attempting to walk the node tree less than previously, and
15680         just use visible order calculations for determining offsets.
15681         - oops made scrolling backwards.
15682         * TreeNode.cs: We need to start nodes with a zero visible order,
15683         because the order calcs are based on the first nodes order.
15684
15685 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15686
15687         * Form.cs: Don't exit the program if RecreateHandle is called on
15688         the main form.
15689
15690 2007-03-12  Chris Toshok  <toshok@ximian.com>
15691
15692         * XEventQueue.cs: remove the use of PostQuitState.
15693
15694         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
15695         WM_QUIT message in GetMessage, return false (and if we're in the
15696         nested WaitForHwndMessage, repost the WM_QUIT message).
15697
15698 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15699
15700         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
15701         or the MaximizeBox properties.  [Part of bug #80640]
15702
15703 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
15704
15705         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
15706         no links.
15707
15708 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15709
15710         * ToolStripItem.cs: Fix some tests I broke by checking Visible
15711         instead of visible.
15712
15713 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
15714
15715         * FileDialog.cs: Use text of File name combobox to determine what
15716         files the user selected. Added tokenizer to parse the file names.
15717         Fixes bug #81123.
15718
15719 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15720
15721         * Control.cs: We can't call SizeFromClientSize in the constructor,
15722         but we still need to do the same work, so make an internal version.
15723         [Fixes bug #80621]
15724
15725 2007-03-12  Jackson Harper  <jackson@ximian.com>
15726
15727         * TreeView.cs:
15728         * TreeNode.cs:
15729         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
15730         IsExpanded.
15731
15732 2007-03-12  Jackson Harper  <jackson@ximian.com>
15733
15734         * TextBoxBase.cs: Now that the handles are being created a little
15735         later, we need to make sure that the document is recalculated when
15736         the handle is created.
15737
15738 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
15739
15740         * Theme.cs: GetLinkFont abstract method added.
15741         
15742         * LinkLabel.cs: 
15743         - Remove CalcTrimRectangle, no longer needed.
15744         - Factor also remove, position issues must be fixed in libgdiplus.
15745         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
15746         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
15747         care about font used to draw links.
15748         - Set TabStop to true when control is "Selectable", control is selectable
15749         when have one or more links. Fixes #80501 (test case is also added).
15750         - Set the LinkArea values after links change, LinkArea values must be
15751         based in first link position and size, a test case was created.
15752         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
15753         the attribute must be true LinkArea.Length > 0. The same was applied to
15754         TabStop.
15755         
15756         * ThemeWin32Classic.cs: 
15757         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
15758         in draw method.
15759         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
15760         color change.
15761         - Draw focus rectangle for every parts focused, including parts that 
15762         is on another line, its because regions returns various rectangles
15763         and not only one. Needed to mimic W32 look.
15764         - Uses Graphics.Clip to delimite region painted, it mean that now 
15765         complete text is passed to DrawString, with this we solve layout
15766         issues without create another text renderer.
15767         - Uses Region.Intersect to fix some flickers problems, now only needed
15768         parts will redrawed.
15769         - This changes fixes #79614 and some other unreported issues, on Linux 
15770         some layout problems still remain, the problem is under 
15771         MeasureCharacterRanges but it is an libgdiplus bug.
15772
15773 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
15774
15775         * TextBox.cs: Set for foreground color.
15776         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
15777         this is already done in Control.
15778
15779 2007-03-10  Jackson Harper  <jackson@ximian.com>
15780
15781         * TextBox.cs: Set the background color, but reset the
15782         backcolor_set flag which is just for the user setting the
15783         background color.
15784
15785 2007-03-09  Chris Toshok  <toshok@ximian.com>
15786
15787         * Control.cs: really remove the call to XplatUI.SetVisible from
15788         CreateHandle(), like I said I did when I merged the branch.
15789
15790         * BindingSource.cs: implement some more of this stuff.
15791
15792 2007-03-09  Jackson Harper  <jackson@ximian.com>
15793
15794         * TextBox.cs: Don't explicitly set our background colors.
15795         * TextControl.cs:
15796         * TextBoxBase.cs: Draw readonly text.
15797         - Need to invalidate when backcolor or readonly are changed.
15798         
15799 2007-03-09  Jackson Harper  <jackson@ximian.com>
15800
15801         * TextBoxBase.cs: Don't set the forecolor until the handle is
15802         created.
15803         - Do not raise OnPaint, and removed some old debug code.
15804
15805 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
15806
15807         * ScrollableControl.cs: Fix mouse wheel scrolling.
15808
15809 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
15810
15811         * Control.cs: Wire up MouseDoubleClick event.
15812
15813 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
15814
15815         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
15816         top or bottom.
15817         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
15818         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
15819         item is added.  This logic was moved to ToolStrip.OnItemAdded.
15820         [Fixes bug #81090]
15821
15822 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15823
15824         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
15825
15826 2007-03-08  Jackson Harper  <jackson@ximian.com>
15827
15828         * TreeView.cs: Show the correct image for selected node (this used
15829         to work, not sure how the code got deleted). Also implemented 2.0 feature
15830         SelectedImageKey.
15831
15832 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15833
15834         * ListView.cs:
15835         * ListViewItem.cs: Cache index in items when retrieving them
15836         in VirtualMode.
15837
15838 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15839
15840         * ToolStripItem.cs: Don't return the explicit_size if we are using 
15841         AutoSize.  Fixes invalidation issue when user has explicitly set a
15842         size and has AutoSize = true.
15843
15844 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15845
15846         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
15847
15848 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
15849
15850         * DataGridView.cs: Remove event handler from DataView when a
15851         DataTable is used as DataSource.
15852
15853 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
15854
15855         * Control.cs: Create internal setter for client_size to allow it to be
15856         set without triggering resizing code.
15857         * Form.cs: Calculate client_size in constructor, only change client_size
15858         in FormBorderStyle property if Handle has been created.
15859         [Fixes #80574, #80791]
15860
15861 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
15862
15863         * SystemInformation.cs: Add TerminalServerSession.
15864
15865 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
15866
15867         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
15868         TreeView code.
15869
15870 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
15871
15872         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
15873         Handle before we were supposed to.  Now checks ActivateOnShow property
15874         in Control.
15875         * Control.cs: Add internal ActivateOnShow property.
15876         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
15877         for ActivateOnShow.
15878         * Hwnd.cs Remove no longer needed no_activate field.
15879
15880 2007-03-07  Jackson Harper  <jackson@ximian.com>
15881
15882         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
15883         2.0 properties
15884         * DrawTreeNodeEventHandler.cs: Add
15885         * DrawTreeNodeEventArgs.cs: Correct default value.
15886         
15887 2007-03-07  Chris Toshok  <toshok@ximian.com>
15888
15889         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
15890         to be called before NativeWindow.WndProc.  Put the HwndCreating
15891         magic there to hook up our Hwnd's to handles.
15892
15893 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
15894
15895         * DataGridView.cs: Comment out debug code.
15896
15897 2007-03-07  Chris Toshok  <toshok@ximian.com>
15898
15899         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
15900         to make the rest of the world happy]
15901
15902         * Control.cs (CreateHandle): there's no need to call
15903         XplatUI.SetVisible here, it's effectively done by
15904         XplatUI.CreateWindow on X now, and always was on windows.
15905
15906         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
15907         shortcircuit out of the loop if we have a message loop running on
15908         this thread.
15909
15910         [Changelog from merge]
15911
15912         2007-03-05  Chris Toshok  <toshok@ximian.com>
15913
15914                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
15915                 causes handle creation.
15916
15917         2007-02-28  Chris Toshok  <toshok@ximian.com>
15918
15919                 * ApplicationContext.cs: Add a flag to make sure we only raise the
15920                 ThreadExit event once (ExitThreadCore can be indirectly called
15921                 from a few places.)  I don't like the additional flag, but it
15922                 makes the event ordering/count correct.
15923
15924                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
15925                 without locking the collection.  An enumerator doesn't give us any
15926                 protection from modification anyway.  Lock the thread hash and
15927                 replace the complicated enumerator loop with a foreach.
15928                 (Application.CloseForms): make internal so it can be called from
15929                 ApplicationContext.  This should probably be moved to MWFThread.
15930                 (Application.ExitThread): don't call MWFThread.Current.Exit()
15931                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
15932                 when the runloop exits (in response to WM_QUIT.)
15933                 (Application.RunLoop): add a comment (and check) for
15934                 context.MainForm being null after setting context.MainForm.Visible
15935                 = true.  This is because you're perfectly free to dispose of a
15936                 form in VisibilityChanged.  Chalk this up to another case where we
15937                 need to synchronously generate WM_ACTIVATE from Control.Show.
15938                 Also, add handling for WM_QUIT here so we'll exit the loop.
15939                 
15940                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
15941                 fact that we don't wait if we're only unmapping the whole_window
15942                 makes me a bit nervous, but it doesn't seem to cause any problems
15943                 yet.
15944
15945                 also, add a comment about the stupid, broken and wrong resetting
15946                 of PostQuitState to false in GetMessage().
15947
15948                 In PostQuitMessage, we need to add a WM_QUIT message to the
15949                 thread's queue.  We use the FosterParent to get the right
15950                 handle/hwnd/queue.
15951
15952                 Lastly, in SetVisible, we need to unmap both windows, since the
15953                 waiting only happens when we're unmapping the client window.  So
15954                 now, the *only* time we unmap just the whole_window is in the hack
15955                 for resizing a control to 0,0.
15956                 
15957         2007-02-21  Chris Toshok  <toshok@ximian.com>
15958
15959                 * Application.cs (CloseForms): rewrite this so that we don't
15960                 modify the list while we're traversing it.
15961
15962         2007-02-20  Chris Toshok  <toshok@ximian.com>
15963
15964                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
15965                 of OnHandleCreated.
15966                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
15967                 handle is created.  otherwise we'll create it here.
15968                 (VerticalScrollEvent): same here.
15969
15970                 * Application.cs (CloseForms): call Form.Dispose, don't post
15971                 WM_CLOSE_INTERNAL.
15972
15973                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
15974                 here. Application should Dispose() of the Form's.
15975
15976                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
15977                 WM_DESTROY as well.
15978                 (MapWindow,UnmapWindow): only actually do the waiting for
15979                 SHOWWINDOW if the control we're dealing with is a Form.
15980                 (CreateWindow): if the control isn't a form, SendMessage
15981                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
15982
15983                 * Control.cs (SetVisibleCore): always use is_visible here, not
15984                 value.  If we use value, we can end up re-setting something
15985                 visible if, for instance, you do Control.Hide() in a delegate
15986                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
15987
15988         2007-02-20  Chris Toshok  <toshok@ximian.com>
15989
15990                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
15991                 the message we need.  PeekMessage returning false should not be a
15992                 condition under which we exit the loop.
15993
15994         2007-02-15  Chris Toshok  <toshok@ximian.com>
15995
15996                 * Control.cs (Refresh): only refresh if we've got a handle and are
15997                 visible.
15998                 (CreateAccessibilityInstance): CreateControl() here.
15999                 (UpdateChildrenZOrder): complicate the code loop even more by
16000                 taking into account controls that haven't had their handle
16001                 created, and those that aren't visible.  But on the flip side,
16002                 simplify the code by splitting it into two loops.  one which
16003                 builds up the list of child controls we're interested in, and the
16004                 other that sets the z order of those children.
16005
16006         2007-02-14  Chris Toshok  <toshok@ximian.com>
16007
16008                 * Control.cs: Control.AccessibilityObject causes the control to be
16009                 created, not just the handle.
16010
16011         2007-02-14  Chris Toshok  <toshok@ximian.com>
16012
16013                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
16014                 problem on X where a window might have its handle created (and be
16015                 visible) while the window is unmapped.  calling XConfigureWindow
16016                 on an unmapped window is bad, and generates X errors.
16017
16018         2007-02-13  Chris Toshok  <toshok@ximian.com>
16019
16020                 * Control.cs (CreateHandle): don't loop over our children setting
16021                 their parent here.  do it when in WndProc when we're shown.
16022                 (UpdateChildrenZOrder): make this internal so we can call it from
16023                 ScrollableControl.
16024                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
16025                 creating its handle.  Also, remove the calls to PerformLayout from
16026                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
16027                 OnVisibleChanged only seems to be called directly here for the
16028                 toplevel control.  It's propagated down the window hierarchy by
16029                 calls to child.OnParentVisibleChanged.
16030                 (OnVisibleChanged): don't do layout here - it's done (oddly
16031                 enough, according to a glance at stack traces on ms.net..) in
16032                 ScrollableControl.
16033                 
16034                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
16035                 z order of our children before calling PerformLayout.
16036
16037         2007-02-12  Chris Toshok  <toshok@ximian.com>
16038
16039                 [big change, fixes #80020]
16040                 
16041                 * AccessibleObject.cs: we need to make owner internal again to fix
16042                 some of ControlAccessibleObject.
16043
16044                 * Control.cs: lots of changes here.  add support for WM_CREATE,
16045                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
16046                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
16047                 we create child controls.  leave the MonoTODO's for the
16048                 accessibility calls, but fix the exceptions so the tests pass.
16049
16050                 Add the InvalidOperationExceptions to Invoke methods, and remove a
16051                 couple of InvokeInternal methods we aren't using.
16052                 
16053                 Also, add a couple of CreateHandle calls in places where we know
16054                 the handles are being created but our code doesn't reference
16055                 .Handle.
16056
16057                 Make SetVisibleCore call OnVisibleChange if the handle isn't
16058                 created.  If the handle is created, we rely on XplatUI.SetVisible
16059                 generating the event synchronously.
16060                 
16061                 Lastly, make sure we don't use this.Handle inside CreateHandle,
16062                 because we can call back into client (and that code can dispose of
16063                 the control).
16064
16065                 * XplatUIStructs.cs: misc/cleanup.
16066
16067                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
16068                 although we don't populate the wParam properly.
16069                 (CreateWindow): generate WM_CREATE.
16070                 (MapWindow,UnmapWindow): make these calls synchronous, at great
16071                 performance expense (particularly in the unmap case), to match
16072                 win32 behavior.
16073
16074                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
16075                 to call it.
16076                 (set_MdiParent): don't recreate the handle unless it's been
16077                 created already.
16078                 
16079                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
16080                 it's created.
16081
16082                 * NativeWindow.cs: this is probably the weirdest part of the
16083                 patch.  We need a way to link up the window being created to the
16084                 WM_CREATE message.  Since we can only be creating one window at a
16085                 time on a given thread, we keep track of a per-thread reference so
16086                 we can dispatch it properly.  We also need to keep track of the
16087                 Hwnd currently being created so that the win32 backend doesn't
16088                 have problems.
16089                 
16090                 * XplatUIWin32.cs: a similar change to the one we made in
16091                 NativeWindow.cs.
16092
16093 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16094
16095         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
16096         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
16097         to draw the menu shortcut string.
16098
16099 2007-03-07  Jackson Harper  <jackson@ximian.com>
16100
16101         * TreeNode.cs: Add the 2.0 collapse method.
16102
16103 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16104
16105         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
16106
16107 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16108
16109         * DataGridView.cs: Change DataSource will clear column and row
16110         lists. Call Invalidate() to reflect DataSource change.
16111
16112 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16113
16114         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
16115         and a new row is added to it.
16116
16117 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16118
16119         * DataGridView.cs: Add columns when DataSource is en empty list but
16120         is a System.Data.DataView (from a System.Data.DataTable).
16121
16122 2007-03-06  Andreia Gaita  <avidigal@novell.com>
16123
16124         * Label.cs: Implement AutoEllipsis (2.0)
16125
16126 2007-03-06  Jackson Harper  <jackson@ximian.com>
16127
16128         * TreeView.cs: Implement 2.0 TopNode setter property.
16129         - Use a local var instead of the skipped_nodes field for computing
16130         how many nodes to skip.  Otherwise we won't scroll because the
16131         valuechanged handler checks if skipped_nodes is equal to the new
16132         value.
16133         - Implement 2.0 Sort method.
16134         - Add useless 2.0 DoubleBuffer property
16135         - Implement 2.0 LineColors property.  Lets you change the color of
16136         the lines in the tree. Terribly useful for creating non cohesive
16137         desktops.
16138         - Implement 2.0 image key feature.
16139
16140 2007-03-06  Jackson Harper  <jackson@ximian.com>
16141
16142         * TreeView.cs: We can't get the bounds of the nodes before raising
16143         the AfterSelect event, because that event could change the node's
16144         bounds (scrolling, font change, etc).
16145
16146 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16147
16148         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
16149         * Form.cs: Don't recreate handle when creating FormWindowManager, just
16150           update window styles. In CreateParams us VisibleInternal instead of
16151           VIsible to get the actual visible flag set for this form.
16152         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
16153           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
16154           handle the case when the form is already maximized, in which case
16155           it should be restored. Fixes #81043.
16156
16157 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16158
16159         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
16160
16161 2007-03-05  Jackson Harper  <jackson@ximian.com>
16162
16163         * TreeViewHitTestInfo.cs: implement.
16164
16165 2007-03-05  Jackson Harper  <jackson@ximian.com>
16166
16167         * InternalWindowManager.cs: class status fix.
16168
16169 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16170
16171         * InternalWindowManager.cs: All windows that have a parent
16172         are confined to their parent when they're being moved.
16173         Fixes #80822.
16174
16175 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
16176
16177         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
16178         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
16179
16180 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16181
16182         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
16183           buttons invisible before deciding which ones should be visible
16184           (fixes minimize/maximize buttons showing up in toolwindows). Remove
16185           an unused variable.
16186         * InternalWindowManager.cs: Remove warning.
16187
16188 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16189
16190         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
16191         to throw an InvalidOperationException is virtual mode is being used.
16192
16193 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16194
16195         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
16196         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
16197         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
16198         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
16199         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
16200         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
16201
16202 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16203
16204         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
16205           driver.KeyboardDelay from XplatUI.KeyboardDelay 
16206         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
16207           (patch by Sergey Volk)
16208
16209 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16210
16211         * ToolWindowManager.cs: Added, contains logic for
16212           tool windows.
16213         * CreateParams.cs: Add a few helper methods and an
16214           internal variable to know which control the CreateParams belongs
16215           to.
16216         * Control.cs: Call Form.ChangingParent when the
16217           parent is about to be changed.
16218         * XplatUIX11.cs: DeriveStyles (): Set
16219           caption_height for all windows that have captions and are children.
16220           Update to use ToolWindowManager instead of InternalWindowManager
16221           for ToolWindows.
16222         * XplatUIWin32.cs: Set fake window styles for all
16223           windows that have window managers.
16224         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
16225           now duplicated for mdi windows when they are
16226           maximized, first for the buttons the window itself has, then for
16227           the buttons that appear in the menu bar. Makes things a little
16228           easier). Updated UpdateWindowDecorations, SetWindowState and the
16229           mouse eventhandlers accordingly.
16230         * Form.cs: Add ChangingParent (), contains the
16231           logic of what should happen when the parent changes. In MdiParent
16232           don't set things that ChangingParent () is doing. When handling
16233           WM_CLOSE, we can close the form if there are any other modal forms
16234           and the current form is a descendent of the modal form.
16235         * InternalWindowManager.cs: A lot of refactoring,
16236           the title buttons are now extracted to a separate container class
16237           that takes care of all button code (clicks, tooltips, etc). Moved
16238           Iconic|Maximized|Normal Bounds properties to this class from
16239           MdiWindowManager, so that the window state logic can succeed for
16240           other than mdi wm's. Implemented general window state change logic.
16241           Moved CreateButtons to ThemeWin32Classic, since the theme might
16242           override which buttons are available when as well as the exact
16243           location.
16244         * FormWindowManager.cs: Added, contains logic for
16245           normal forms.
16246         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
16247           which buttons go where (and if they are at all visible). 
16248           Removed special handling of maximized windows, since they aren't special. 
16249           In DrawManagedWindowDecorations don't try to draw the text if it is
16250           empty.
16251         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
16252           use whatever the wm gives us.
16253
16254 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16255
16256         * ButtonBase.cs: Add 2.0 properties.
16257         * Button.cs: Override Draw for 2.0.
16258         * Control.cs: Add Entered and Selected properties.
16259         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
16260         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
16261         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
16262         buttons.
16263         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
16264
16265 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16266
16267         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
16268
16269 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16270
16271         * XplatUIWin32.cs: Register a new class with Windows each time we get
16272         a new ClassStyle.  [Fixes bugs #79432, #80817]
16273         * Controls.cs: Set the correct ClassStyle in CreateParams.
16274         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
16275
16276 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
16277
16278         * ListView.cs: Add fireEvent argument to ReorderColumn since the
16279         ColumnReordered event must not be signaled when modifying DisplayIndex
16280         of a ColumnHeader. Added internal ReorderColumns method which takes
16281         care of drawing, and updating the internal DisplayIndex of the
16282         ColumnHeader. Added AddColumn method which is invoked from
16283         ColumnHeaderCollection when adding or inserting columns, and which
16284         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
16285         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
16286         Recalculated dispay indices after removing a ColumnHeader.
16287         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
16288         match MS. Allows last display index to be returned after ListView
16289         is disposed. Update actual location of ColumnHeader when DisplayIndex
16290         is modified.
16291
16292 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
16293
16294         * LinkLabel.cs: Improve CalcTrimRectangle.
16295         
16296         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
16297
16298 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16299
16300         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
16301         get rectangle as a result value.
16302
16303 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16304
16305         * LinkLabel.cs: Theres some diferences between rectangle return from 
16306         MeasureCharacterRanges and the area used for DrawString to fix this 
16307         CalcMeasurementFactor method was created, it calcules the diferences
16308         to be use later to adjust rectangle in draw operations. Fixes #80473.
16309         
16310         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
16311         to adjust draw rectangle.
16312
16313 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
16314
16315         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
16316         text and some other changes to reduce and optimize source code.
16317
16318 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
16319
16320         * RadioButton.cs: Implement 2.0 event.
16321         * RelatedImageListAttribute.cs: Implement new class.
16322
16323 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
16324
16325         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
16326
16327 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
16328
16329         * CheckBox.cs: Implement 2.0 functionality.
16330
16331 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16332
16333         * ListView.cs: Refactor Add and AddRange methods of
16334         ListViewItemCollection, to not update the ListView
16335         everytime an item is added in AddRange. Also move the update
16336         code to a new CollectionChanged method, and call it
16337         from other methods that need it as well (this should also fix some
16338         bugs when Sorting is used).
16339
16340 2007-02-27  Jackson Harper  <jackson@ximian.com>
16341
16342         * TextControl.cs: Try to never let the caret stay in a non-text
16343         tag.
16344         * TextBoxBase.cs: Update the caret.
16345
16346 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
16347
16348         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
16349         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
16350         delete POINT structure, duplicate of one in XplatUIStructs.
16351         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
16352
16353 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
16354
16355         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
16356         edit box since otherwise the Label would immediately be set (even if
16357         the user did not modify the label). In OnKeyDown set Handled to true
16358         if Return or Escape was pressed. In ColumnHeaderCollection unlink
16359         columns that are to be removed. In ListViewItemCollection unlink items
16360         that are to be removed.
16361
16362 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
16363
16364         * TextRenderer.cs: If we set a GDI clip region, we need to clear
16365         it when we are done.  [Fixes bug #80949]
16366
16367 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16368
16369         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
16370
16371 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16372
16373         * ListView.cs: I forgot to commit the changes for ListView 
16374         in my previous patch.
16375
16376 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16377
16378         * Clipboard.cs: Partially implement an overload of SetDataObject.
16379         * Form.cs: Implement ShowWithoutActivation.
16380         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
16381
16382 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16383
16384         This is a first set of changes to make the Virtual mode works,
16385         by avoiding the retrieval of ListViewItem instances until
16386         draw time.
16387
16388         * ListView.cs: Store item position in the ListView instead of the
16389         ListViewItem, this way we don't request the Bounds property of
16390         ListViewItem inside the ListView calculations, as well as cache the item
16391         size in item_size field. Store indexes instead of ListViewItem
16392         instances in the matrix used by icon view. Add a ItemMatrixLocation
16393         struct to hold the row and col info of the matrix info.
16394
16395         * ListViewItem.cs: Don't store the location anymore, and only cache
16396         the rectangles for GetBounds. Use the ListView.GetItemLocation
16397         method to retrieve the actual location.
16398
16399 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16400
16401         * TextRenderer.cs: Add clipping support, thanks to George.
16402         [Fixes bug #80949]
16403
16404 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16405
16406         * ListViewItem.cs: Cancel label edit when item is removed from 
16407         ListView.
16408         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
16409         event before the edit textbox is displayed.  Added CancelEdit method
16410         which is used end to editing while ignoring the value set by the
16411         user. In EndEdit, set focus to ListView to avoid losing focus to
16412         other controls. In ListViewItemCollection.Clear, cancel editing of
16413         any of the items.  In Remove, cancel editing of item being removed.
16414         Avoid udplicate code by modifing RemoveAt to invoke Remove.
16415
16416 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16417
16418         * FileDialog.cs: Update FSEntry when move is successful. Fixes
16419         bug #80948.  
16420
16421 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16422
16423         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
16424         compatible with non X11 systems. Fixes #80901.
16425
16426 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16427
16428         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
16429         whether the item should be unselected and reselect. We do no want this
16430         when we're starting to edit the label. Do not fire the 
16431         SelectedIndexChanged event from ListView when its already been fired
16432         by modifying ListViewItem.Selected. Fixes bug #80943.
16433
16434 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16435
16436         * TextRenderer.cs: Previos commit logic was backwards.
16437
16438 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16439
16440         * TextRenderer.cs: Don't add padding on MeasureText if we were
16441         sent the NoPadding flag.
16442
16443 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16444
16445         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
16446         after DrawButton. To prevent image overlaps button borders SetClip and 
16447         ResetClip added before and after draw image. Fixes #79129.
16448
16449 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16450
16451         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
16452         window size, it fix problem when you run under win32 that theres
16453         Size diferent than ClientSize. Also fix controls size and positions
16454         to mimic Win32. Fixes #80837.
16455
16456 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
16457
16458         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
16459         menu area to fix some problems for non X11 systems. Fixes #80613.
16460
16461 2007-02-22  Jackson Harper  <jackson@ximian.com>
16462
16463         * TreeNode.cs: When a node is expanded, set its is_expanded flag
16464         even if it doesn't have any children.
16465
16466 2007-02-22  Jackson Harper  <jackson@ximian.com>
16467
16468         * TreeView.cs: Calculate the top node 'on the fly', this
16469         eliminates issues where you need to click on the tree before
16470         scrolling it to get the top node computed correctly.
16471         * TreeNodeCollection.cs: We don't need to mess with the top node
16472         anymore.
16473
16474 2007-02-22  Jackson Harper  <jackson@ximian.com>
16475
16476         * DataGridViewRow.cs: Fix typo so height can actually be set.
16477         Patch by Peter Grimm.
16478
16479 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16480
16481         * FileDialog.cs: Fixed support for renaming files and directories.
16482         * ListView.cs: Do not lose focus when edit is canceled. Process
16483         Escape as regular key (to prevent closing of dialogs).
16484
16485 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16486
16487         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
16488         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
16489
16490 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16491
16492         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
16493         did not modify label.
16494         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
16495         modified the text. Reset Label when user presses Escape in edit mode.
16496         Move focus to ListView after having cancelled or finished editing the
16497         label.
16498
16499 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
16500
16501         * ComboBox.cs: Removed unnecessary initializations. Marked items field
16502         private. Clear textbox when Text is set to null and SelectedIndex is
16503         already -1.
16504         * FileDialog.cs: Removed unnecessary initializations. Removed 
16505         workarounds for ComboBox bugs that are now fixed. Modified
16506         DefaultExt, InitialDirectory and Title property to change null to
16507         zero-length string in getters. Avoid directly accessing fields.
16508
16509 2007-02-20  Jackson Harper  <jackson@ximian.com>
16510
16511         * TextControl.cs: Remove RecalAlignments call, that was some
16512         debugging leftovers.
16513         - Don't use the line indent when we shouldn't.
16514         * RichTextBox.cs: Add support for paragraph left indents.
16515
16516 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16517
16518         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
16519         Seems like the class status pages doesn't catch params differences.
16520
16521 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16522
16523         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
16524
16525 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16526
16527         * ComboBox.cs: Setting Text should have no effect if item text of
16528         selected item exactly matches value. First lookup text using
16529         case-sensitive comparison, and fallback to case-insensitive comparison.
16530         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
16531         allow startIndex to be last index. Changed ArgumentOutOfRangeException
16532         paramname to match MS. Restart from first item if string is not found
16533         after startIndex. Fixed paramname of ArgumentNullException that is
16534         thrown for null value in ObjectCollection.Contains.
16535
16536 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16537
16538         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
16539
16540 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16541
16542         * ListControl.cs: In SelectedValue use value.Equals to compare for
16543         equality instead of ==, otherwise it will fail for strings.
16544         Fixes #80794.
16545
16546 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16547         
16548         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
16549         since the caret won't show up unless ShowSelection is true. 
16550         Fixes #80795.
16551
16552 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16553
16554         * Application.cs: When disabling all forms but the main form, do not
16555           disable any descendants of the main form (such as mdi children or
16556           other parented forms). Fixes #80822 on Windows.
16557         * Form.cs: If we have a parent, set the WS_CHILD style.
16558         * Control.cs: Update the window styles if the control whose parent has
16559           changed is a form (the WS_CHILD style has to be switched).
16560
16561 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16562
16563         * XplatUIStructs.cs: MsgUIState structure added.
16564
16565 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16566
16567         * FileDialog.cs: Removed need for separate fileName field. On 2.0
16568         profile, do not check filename(s) for illegal character if filename(s)
16569         were set non-interactively but always check on 1.0 profile. Fixed NRE
16570          in DefaultExt and only strip off first leading dot. Improve exception
16571         message when invalid Filter is set. Do not ignore InitialDirectory if
16572         it does no exist. Store specified Title, and if empty use default
16573         title (depending on type of dialog). Added an internal DialogTitle 
16574         property for retrieving dialog title. Fixed logic of displayed dir to
16575         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
16576         string as its buggy.
16577         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
16578         FileName is a zero-length string (it can never be null). Override 
16579         DialogTitle property to set default title of dialog box.
16580         * SaveFileDialog.cs: Override DialogTitle property to set default
16581         title of dialog box.
16582
16583 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16584
16585         * FileDialog.cs: Modify default text of filename and filetype labels
16586         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
16587         after we've updated the SelectedIndex. Fixes part of bug #80887.
16588         * SaveFileDialog.cs: Set text of filetype label.
16589
16590 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16591
16592         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
16593         label field. Needed by latest Jackson's fixes for ListView.
16594
16595 2007-02-16  Andreia Gaita  <avidigal@novell.com>
16596
16597         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
16598         print preview images.
16599
16600 2007-02-16  Jackson Harper  <jackson@ximian.com>
16601
16602         * ListView.cs: Make AfterLabelEdit work correctly.
16603         * FileDialog.cs: After changing the name of the folder, we have to
16604         make sure that it is created, or that we pop up an error because
16605         it already exists.
16606
16607 2007-02-16  Jackson Harper  <jackson@ximian.com>
16608
16609         * X11Dnd.cs: Implement aliases on mime handlers, so things like
16610         System.String are mapped to text.
16611         - Handle dataobjects, getting all the possible formats out of them
16612         - We dont need the drag event args before we give feedback. This
16613         allows feedback cursors to be immediate before selections have
16614         been converted.
16615
16616 2007-02-16  Jackson Harper  <jackson@ximian.com>
16617
16618         * TextBoxBase.cs: Modified the method for inserting images to
16619         taking a line and position instead of tag and position.
16620         * RichTextBox.cs: Handle PngBlip data by inserting the png image
16621         into the RTF file.
16622         * TextControl.cs: Allow images to be inserted as the first tag of
16623         a line.
16624         - Fix some off by one issues when we assume the first tag is a
16625         text tag, not an image tag.
16626
16627 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16628
16629         * ListView.cs: Set focus to ListView when ItemControl gets a
16630         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
16631         Fixes part of #80467.
16632
16633 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16634
16635         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
16636           validate Text input (if null or empty string reset Value to default
16637           value). Fixes #80830.
16638
16639 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16640
16641         * ListView.cs: Set owner as null for columns and items when
16642         Dispose is invoked. Fixes #80607.
16643
16644 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
16645
16646         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
16647         showing DropDowns, don't show a Grip when doing Flow layout.
16648         [This fixes the toolbox in PDN 2.72.]
16649         * ToolStripItem.cs: Add Anchor property and some internal properties to
16650         reduces needed changes to FlowLayout.
16651         * ToolStripOverflow.cs: Remove unused variable.
16652         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
16653         use it in the layout calculations.
16654
16655 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16656
16657         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
16658         reported in #79640.
16659         
16660         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
16661         size calculation.
16662
16663 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16664
16665         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
16666         MeasureString format, it can make button very large in some cases, it is
16667         strange but is what win32 do.
16668
16669 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16670
16671         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
16672         size calculation.
16673
16674         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
16675         rendering, the value is based on MenuAccessKeysUnderlined.
16676
16677 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16678
16679         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
16680         for most themes.
16681         
16682         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
16683         
16684         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
16685         and use MenuAccessKeysUnderlined instead.
16686
16687 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16688
16689         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
16690         A selected control would not get a Focus call if:
16691                 - the default active control of the container is the same as
16692                   the one that was selected
16693                 - we are switching from one container to another
16694         Under these conditions, the container being selected already has
16695         an active_control, which is the same as the one being activated, 
16696         so set_ActiveControl would always return and not send the Focus
16697         call. Fix to check if the currently active control of the container
16698         is actually focused.
16699
16700 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
16701
16702         * StatusStrip.cs: Implement the spring layout.
16703         * ToolStripControlHost.cs: Make sure the hosted control's visibility
16704         always matches the host.
16705         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
16706         and TextAfterImage.
16707
16708 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16709
16710         * Control.cs: Code reorganization only.
16711           - Reorganize the WndProc cases so that each case has it's own handling method, 
16712           to help with the no-line-numbering stack traces.
16713           - Formatting changes (it's vstudio's fault, really :p)
16714
16715 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16716
16717         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
16718           Thread.CurrentUICulture to match DateTimePicker's (and MS)
16719           behaviour.
16720
16721 2007-02-12  Jackson Harper  <jackson@ximian.com>
16722
16723         * RichTextBox.cs:
16724         * TextBox.cs: By default we have a non multiline document
16725         - use the multiline property instead of the internal variable
16726         * TextBoxBase.cs: Treat multiline and non multiline the same in
16727         most places.
16728         - Use the documents multiline flag instead of tracking it ourself
16729         * TextControl.cs: Attempt at getting multiline to match MS
16730         behavior.  Lines now track an offset, which is either their X or Y
16731         offset depending on whether or not we are in multiline mode.
16732         - Update all the methods to understand that lines have an X value.
16733         - Fix crash in Undo::Duplicate when empty lines are deleted.
16734
16735 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
16736
16737         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
16738         code moved to properties PreferredHeight and PreferredWidth. It solve the
16739         all problems when preferred sizes must be recalculated. Fixes #80801.
16740
16741 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
16742
16743         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
16744         font height when compatible_text_rendering is false. Partially fix #80801.
16745
16746 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16747
16748         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
16749
16750 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16751
16752         * Form.cs: Improved exception messages in ShowDialog.
16753
16754 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16755
16756         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
16757         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
16758         if not set. Fixes bug #80764. Avoid accessing current_settings field
16759         directly.
16760
16761 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
16762
16763         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
16764         false.
16765
16766         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
16767         public in 2.0 and for easy maintenance and dont break compatibility it is 
16768         internal in 1.1.
16769         
16770 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16771
16772         * ToolStripItem.cs: Implement using images from ImageList.
16773
16774 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16775
16776         * DateTimePicker.cs: Change default date-formatting culture from
16777           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
16778           seems to be the way MS does it.
16779
16780 2007-02-08  Andreia Gaita  <avidigal@novell.com>
16781
16782         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
16783         (the 6 was cut off on the right side)
16784
16785 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16786
16787         * Form.cs: Tell MenuStrips to close when the form is clicked.
16788         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
16789         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
16790         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
16791         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
16792         support for Overflow, where items that do not fit are automatically
16793         reparented to a drop down menu.
16794         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
16795         Also: fixes bug #80747.
16796
16797 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16798
16799         * ComboBox.cs: Remove warning (unused code).
16800         * ScrollableControl.cs: Remove warning for 1.1 profile.
16801
16802 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16803
16804         * Form.cs: Remove a warning.
16805
16806 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16807
16808         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
16809           'g' specifier, not documented anywhere, but seems to always show up
16810           as a single space (might have something to do with the DateTime 'g'
16811           specifier, which is the era format, but since DateTimePicker can't
16812           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
16813           won't crash if the format has an unmatched quote. Now shows
16814           single-character formats correctly. Fixes #80744.
16815
16816 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
16817
16818         * StatusStrip.cs: Stretch property needs to call base.Stretch,
16819         not this.Stretch to fix stack overflow. [Fixes bug #80760]
16820
16821 2007-02-07  Chris Toshok  <toshok@ximian.com>
16822
16823         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
16824         background color.  it overwrites the background image we've
16825         already painted.  Fixes #80599.
16826
16827 2007-02-07  Chris Toshok  <toshok@ximian.com>
16828
16829         * DataGrid.cs: return immediately from Edit() when there are no
16830         columns.  Fixes #80662.
16831
16832 2007-02-07  Chris Toshok  <toshok@ximian.com>
16833
16834         * MessageBox.cs: fix #80625.  don't always show the Help button in
16835         2.0.  use the displayHelpButton parameter to determine if we
16836         should show it. Also, make the internal show_help field private.
16837
16838 2007-02-07  Chris Toshok  <toshok@ximian.com>
16839
16840         * Control.cs (SetVisibleCore): check in the proposed patch for
16841         80604, and set is_visible before calling CreateControl.
16842
16843 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
16844
16845         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
16846         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
16847         on it.
16848
16849 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
16850
16851         * MenuAPI.cs: hotkey_active internal field added, it is required because
16852         we need to know when hotkeys must be draw, before this change a keystate
16853         Navigating was used but we can have menu in navigating state without
16854         hotkeys. Fixes #80694.
16855         
16856         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
16857
16858 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16859
16860         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
16861           corresponding events and methods to be internal for 1.1 profile and
16862           public for 2.0 profile (required by SizeGrip).
16863         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
16864           implicit control list). Don't set the size nor the location of the
16865           SizeGrip anymore as it's not needed.
16866         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
16867           draw directly on the captured control (fixes #80656). Removed
16868           ShowGrip (it wasn't used anywhere), redraw (always true), added
16869           GetDefaultSize and GetDefaultRectangle to calculate defaults.
16870         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
16871           be called from SizeGrip.
16872
16873 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16874
16875         * Timer.cs: Throw ArgumentException if Interval <= 0.
16876
16877 2007-02-05  Jackson Harper  <jackson@ximian.com>
16878
16879         * TreeView.cs: We need to check scrollbar visibility when window
16880         visibility is updated, because non visible trees don't ever add
16881         scrollbars.
16882         * Cursor.cs: We want the override cursor to be reset to NULL when
16883         we set current cursor to the default cursor.
16884
16885 2007-02-05  Jackson Harper  <jackson@ximian.com>
16886
16887         * TextControl.cs: Don't have crlfs when we are non multiline.
16888         - Consolidate the line position.
16889
16890 2007-02-05  Jackson Harper  <jackson@ximian.com>
16891
16892         * X11Keyboard.cs: BACK+CTRL gets a special char code.
16893
16894 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16895
16896         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
16897           handling LeaveNotify->NotifyUngrab in order to send
16898           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
16899           after calling XUngrabPointer, so we call WindowUngrabbed directly
16900           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
16901         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
16902           MouseCaptureChanged correctly. Also create handles if changing
16903           Capture (matches MS behaviour).
16904
16905 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16906
16907         * SizeGrip.cs: Make the last change 2.0 only.
16908
16909 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16910
16911         * SizeGrip.cs: If resizing and the capture is lost, revert any size
16912           changes to initial size (fixes #80597).
16913
16914 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16915
16916         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
16917
16918 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16919
16920         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
16921           background) and only allow dragging if enabled. This way the
16922           sizegrip can be used to fill the open square that otherwise would
16923           have been shown in the bottom right corner of ScrollableControl
16924           when ScrollableControl is not suppose to support sizing.
16925         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
16926           sizegrip is shown and enabled, and hook up with necessary events.
16927
16928 2007-02-01  Chris Toshok  <toshok@ximian.com>
16929
16930         * DataGridTextBoxColumn.cs: clean up the
16931         GetFormattedString/GetColumnValueAtRow combination of functions.
16932         Also fix UpdateUI, and the initial state of
16933         IsInEditOrNavigateMode.
16934
16935         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
16936         aren't supposed to scroll the textbox here, we're supposed to
16937         scroll the datagrid.
16938
16939 2007-02-01  Chris Toshok  <toshok@ximian.com>
16940
16941         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
16942         setting the position.
16943
16944 2007-02-01  Chris Toshok  <toshok@ximian.com>
16945
16946         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
16947         here, since the most recent focus fixes keep us from generating
16948         the Leave event when our textbox gets focus.
16949         (Edit): we should be passing null for the column style's
16950         instantText parameter.
16951         
16952 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
16953
16954         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
16955         raised.  Fixes menu text/icons not showing up in PDN.
16956
16957 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16958
16959         * Control.cs: Remove code in constructor that makes every
16960         control with WS_CHILD set have initial location -1, -1.
16961
16962 2007-01-31  Jackson Harper  <jackson@ximian.com>
16963
16964         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
16965         XplatUIX11.
16966         * XplatUIX11.cs: Give teh keyboard to teh dnd.
16967
16968 2007-01-31  Jackson Harper  <jackson@ximian.com>
16969
16970         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
16971         - Remove some debug code.
16972
16973 2007-01-31  Jackson Harper  <jackson@ximian.com>
16974
16975         * XplatUIX11.cs: If you set the override cursor during a grab, it
16976         should actually override the grab cursor.  This comes into play
16977         when you are setting custom cursors in a DND feedback method.
16978
16979 2007-01-31  Jackson Harper  <jackson@ximian.com>
16980
16981         * X11Dnd.cs: Add support for handling the QueryContinue and
16982         GiveFeedback events.
16983         - Cancel drag and drop actions when the escape key is clicked.
16984         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
16985         can handle the ESCAPE key.
16986         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
16987         done when dnd events are continued after the button is released.
16988         - Add a new helper method so that dnd can translate key events.
16989
16990 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
16991
16992         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
16993         make it more obvious what is happening.
16994
16995 2007-01-30  Jackson Harper  <jackson@ximian.com>
16996
16997         * XplatUIX11.cs: Don't break when handling button release in drag
16998         and drop operations. We need that BUTTONUP message to get through
16999         so capture is released.
17000         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
17001         this is handled automatically when the mouse is down.
17002
17003 2007-01-30  Jackson Harper  <jackson@ximian.com>
17004
17005         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
17006         is closed, so we need to make sure that we aren't changing the
17007         dialog result when the OK (Open or Save) button has been clicked
17008         and we are closing the window ourselves.  Note we don't need to
17009         worry about the cache being written in this case, because it was
17010         already done in the previous FilOk call.
17011
17012 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17013         
17014         * DateTimePicker.cs: Remove a warning.
17015         * ComboBox.cs: Remove a couple of warnings.
17016
17017 2007-01-29  Chris Toshok  <toshok@ximian.com>
17018
17019         * XplatUIX11.cs: don't crash, and remove the icon if the user has
17020         set one, if SetIcon is passed a null icon.
17021
17022 2007-01-29  Andreia Gaita  <avidigal@novell.com>
17023
17024         * TextBox.cs: Redraw when the password characters changes
17025         * TextControl.cs: Check if textbox has a password char and draw 
17026         a line of password chars instead of the text in the line. LineTag gets 
17027         an extra Draw() method which allows document.Draw to override the text 
17028         that will be drawn. Removes 1024 char limitation on length of passworded 
17029         lines.
17030
17031 2007-01-29  Jackson Harper  <jackson@ximian.com>
17032
17033         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
17034         single chars is not.
17035
17036 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
17037
17038         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
17039         one pixel.  Fix a StackOverflowException caused by an overload wrongly
17040         calling itself.
17041
17042 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
17043
17044         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
17045         also remove ProcessArrowKey and put the code inside ProcessKeys.
17046
17047 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
17048
17049         * PaddingConverter.cs: Added.
17050
17051 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17052         
17053         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
17054         ShowPanels is false (fixes #80600). Only draw up to 127 characters
17055         of text (fixes #80601). For panels clip the text to draw to the
17056         panel (fixes #80603).
17057
17058 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17059
17060         * ComboBox.cs: Fixed implementation of ResetText.
17061
17062 2007-01-25  Jackson Harper  <jackson@ximian.com>
17063
17064         * TextControl.cs: For the last char of a line we need to use the
17065         line size, not that chars width, since it won't actually be
17066         computed since the right side of a char is based on the start of
17067         the left side of the next char, and the next char does not exist.
17068
17069 2007-01-25  Chris Toshok  <toshok@ximian.com>
17070
17071         * Splitter.cs: fix the new unit tests, and reindent some switch
17072         statements.
17073
17074 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17075
17076         * ComboBox.cs: Implemented 2.0 methods and events.
17077         * TextBoxBase.cs: Added OnTextUpdate, so that
17078         ComboBox.ComboTextBox can inform ComboBox of it.
17079
17080 2007-01-25  Jackson Harper  <jackson@ximian.com>
17081
17082         * TextControl.cs: Respect ShowSelection when deciding whether or
17083         not to display the caret, this allows comboboxes to have carets
17084         when the combotextbox does not have focus.
17085
17086 2007-01-25  Jackson Harper  <jackson@ximian.com>
17087
17088         * TextControl.cs: Add a Suspend/Resume for updating, basically the
17089         same as the Suspend/Resume for recalc, except this will do actual
17090         Invalidates.
17091         - New Undo manager, works much like the MS version.
17092         - Implemented Redo
17093         * TextBoxBase.cs: The Cut operation is undoable.
17094
17095 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17096         
17097         * TextBoxBase.cs: Don't antialias text. Makes it look way better
17098         on Windows (no difference on Linux).    
17099
17100 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17101
17102         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
17103         we don't want to activate any windows. Fixes #79433.
17104
17105 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
17106
17107         - ButtonBase.cs: Fix capitalization of parameter: disposing.
17108         [Fixes bug #80609]
17109
17110 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
17111
17112         * FileDialog.cs:
17113         - Move to using System.ComponentModel.EventHandlerList
17114         - Replace Refresh with Invalidate
17115         - Clear the mime filecache on closing
17116         - Some other memory reducing work. After beeing closed FD now uses
17117           only about 300 KB for the fdo mime stuff plus the memory of the
17118           cached icons.
17119         * Mime.cs: Changed coding style and removed unnecessary commented
17120         code. Some more memory memory reducing work.
17121
17122 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17123
17124         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
17125         a few other missing 2.0 properties.
17126         * Theme.cs: Added DrawFlatStyleComboBox.
17127         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
17128
17129 2007-01-24  Chris Toshok  <toshok@ximian.com>
17130
17131         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
17132         wake_waiting flag, not just when there's data to be read.  if we
17133         don't, then future wakeup's won't reach us and we'll be doomed to
17134         wait for the entire 1 second timeout forever (unless there are X
17135         events to be had).
17136
17137 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17138
17139         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
17140         until you pass Items.Count, not Items.Count - 1 like 1.1.
17141
17142 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
17143
17144         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
17145
17146 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17147
17148         * ToolStripContainer.cs: The recent Dock fix exposed that I was
17149         adding the panels in the wrong order.
17150
17151 2007-01-24  Jackson Harper  <jackson@ximian.com>
17152
17153         * TextBoxBase.cs: When we move the caret we also need to move the
17154         selection, this fixes some random crashing after doing select
17155         text, unselect, delete a char, paste.
17156
17157 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17158
17159         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
17160
17161 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17162
17163         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
17164         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
17165         * ToolBar.cs: Force redraw in BackgroundImageChanged.
17166
17167 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17168
17169         * ToolBar.cs:
17170         - Implement support for vertical toolbars. Fixes #80539;
17171         - Call LayoutToolBar when resize, it fix some other problems in layout.
17172         - Rename requested_height to requested_size, as we can have width on it
17173         when toolbar is vertical.
17174         - Create a private property "Vertical" that uses Dock to verify when 
17175         toolbar is vertical or not.
17176         - Set ControlStyles when change Dock property.
17177         - Refactory in LayoutToolBar to have better variables names and to support
17178         vertical toolbars.
17179         - Fixes default value for ButtonSize when button count is equal zero, size
17180         must be (39, 36) test case writed.
17181
17182 2007-01-23  Chris Toshok  <toshok@ximian.com>
17183
17184         * Control.cs: fix the checks so that they work correctly for mdi
17185         parents/children.
17186
17187 2007-01-23  Chris Toshok  <toshok@ximian.com>
17188
17189         * Control.cs: ControlCollection seems to have super-secret
17190         abstraction breaking knowledge of Mdi containers.  allow MdiClient
17191         to add toplevel controls.
17192
17193 2007-01-23  Chris Toshok  <toshok@ximian.com>
17194
17195         * Control.cs: throw an ArgumentException if a toplevel control is
17196         added to our control collection from ControlCollection.Add, as
17197         well as from ControlCollection.IList.Add.  This fixes the
17198         ControlSetTopLevelTest.TestTopLevelAdd unit test.
17199
17200         Also, in ControlCollection.IList.Add, don't through an
17201         ArgumentNullException, throw an ArgumentException, when value ==
17202         null.  This matches MS.
17203
17204 2007-01-23  Chris Toshok  <toshok@ximian.com>
17205
17206         * BindingSource.cs: initial, incomplete, implementation of
17207         BindingSource.
17208
17209 2007-01-23  Jackson Harper  <jackson@ximian.com>
17210
17211         * TextControl.cs:
17212         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
17213         that I can fix a broken unit test (TextBoxTest::ClearUndo)
17214         
17215 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17216
17217         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
17218
17219 2007-01-23  Andreia Gaita  <avidigal@novell.com>
17220
17221         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
17222         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
17223         IndexOfKey() for 2.0
17224
17225 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17226
17227         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
17228         to prevent it from changing z-order.
17229         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
17230         leave UI updates in MdiWindowManager.
17231         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
17232         1 sized (NC handling goes weird on Linux otherwise).
17233         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
17234         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
17235         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
17236         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
17237         and SetWindowState(s) to allow for changing the size of an activated child
17238         before activating it (reduces a lot of flicker).
17239
17240 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17241
17242         * Form.cs: Changing FormBorderStyle has different semantics based
17243         on whether the Form is visible or not.  If not visible, don't change
17244         the Size.  But InvalidateNC needs to be called to force the window
17245         to pick up the changes and redraw itself.  [Fixes bug #80574]
17246
17247 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17248
17249         [Moma work]
17250         * ContainerControl.cs: ProcessCmdKey.
17251         * ErrorProvider.cs: new constructor.
17252         * Form.cs: fix AutoValidateEvent compiler warning.
17253         * Label.cs: fix OnAutoSizeChanged compiler warning.
17254         * MenuStrip.cs: fix CanOverflow compiler warning.
17255         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
17256         * TextBox.cs: Dispose.
17257         * ToolStrip.cs: CanOverflow, re-enable double buffering.
17258         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
17259         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
17260         * ToolStripItem.cs: Overflow, RightToLeft properties.
17261
17262 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17263
17264         * Form.cs: Move the layout of the main form to MdiWindowManager.
17265         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
17266         do a layout of the main window to update MdiClient's client area to
17267         the right area. Fixes #80533. Remove the calculation of nc size, 
17268         it was just wrong and the correct one is the same as for 
17269         InternalWindowManager. 
17270
17271 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
17272
17273         * Control.cs: Setting Anchor or Dock needs to reset the other
17274         to its default.  [Fixes bug #80556]
17275
17276 2007-01-20  Chris Toshok  <toshok@ximian.com>
17277
17278         * CheckedListBox.cs: class status changes.
17279
17280         * ScrollableControl.cs: same.
17281
17282         * RichTextBox.cs: same.
17283
17284         * ContainerControl.cs: same.
17285
17286         * ListView.cs: same.
17287
17288         * NotifyIcon.cs: same.
17289
17290         * MenuStrip.cs: same.
17291
17292         * RadioButton.cs: same.
17293
17294         * CheckBox.cs: same.
17295
17296         * PrintPreviewDialog.cs: same.
17297
17298         * Form.cs: same.
17299
17300 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
17301
17302         * TreeNode.cs: Apply Alan's patch for Name property.
17303
17304 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17305         
17306         * Form.cs: Implemented SizeGripStyle.
17307         * SizeGrip.cs: Check for minimum and maximum size for the
17308         control being resized and only resize if size has actually
17309         changed.
17310
17311 2007-01-19  Chris Toshok  <toshok@ximian.com>
17312
17313         * DataGridColumnStyle.cs: stop setting _readonly in the
17314         PropertyDescriptor setter.  fixes a unit test failure.
17315
17316         also, rename ParentReadOnly to TableStyleReadOnly, and have it
17317         just consult our table style (if we have one).  We don't need to
17318         consult the datagrid readonly attribute because that's passed in
17319         as the _ro arg to Edit.  this simplifies things a little.
17320         
17321         * DataGrid.cs: use CurrentColumn instead of
17322         current_cell.ColumnNumber just to simplify some of the code.
17323
17324         switch the order of some things in the CurrentCell setter to keep
17325         the previous cell from getting a textbox again -
17326         EnsureCellVisibility causes scrolling to happen, which calls Edit.
17327         So we need to set the new cell before calling it.
17328         
17329         call Edit in OnEnter, as does Microsoft.
17330         
17331         also, make sure the current table style isn't the one we create
17332         initially when checking to see if it's different than the one
17333         we're setting it to in BindColumns (this fixes #80421).
17334
17335         * GridTableStylesCollection.cs: table styles can have "" for a
17336         mapping name.  part of the fix for #80421.
17337
17338         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
17339         Edit significantly.
17340
17341 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17342
17343         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
17344         and less GDI object leaky-er.
17345
17346 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17347
17348         * LinkLabel.cs: Add opaque control style
17349
17350 2007-01-18  Jackson Harper  <jackson@ximian.com>
17351
17352         * TextControl.cs: Calculate width properly.
17353         - Don't store the tag's X offset, this can be figured out very
17354         easily.
17355         - When getting the caret tag make sure to get the last empty tag.
17356
17357 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17358
17359         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
17360         [Fixes bug #79959]
17361
17362         * Control.cs: Color.Empty shouldn't count for previous transparent
17363         redraw changes.
17364
17365 2007-01-18  Jackson Harper  <jackson@ximian.com>
17366
17367         * TextBox.cs:
17368         * RichTextBox.cs:
17369         * TextControl.cs: Starting to merge in some pieces of my older
17370         undo work.  Basically just some slight cleanup of the undo API.
17371
17372 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17373
17374         * TrackBar.cs: Fix signature of RightToLeftLayout.
17375         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
17376         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
17377         * Application.cs: Implemented UseWaitCursor.
17378
17379 2007-01-18  Jackson Harper  <jackson@ximian.com>
17380
17381         * TextControl.cs: We can't skip tags if any part of the tag is
17382         visible.
17383
17384 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17385
17386         * ContainerControl.cs: Override OnLayout.
17387
17388 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17389
17390         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
17391
17392         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
17393         everything else.
17394
17395 2007-01-18  Chris Toshok  <toshok@ximian.com>
17396
17397         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
17398         (leftover from the container_selected days, I'd wager).  fixes bug
17399         #80546.
17400
17401 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17402
17403         * Control.cs: Apply patch from George to fix the new testcase on
17404         bug #80451.  We can't just check for Color.Transparent, we need 
17405         to check if the back color's alpha channel is < 255.
17406
17407 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17408
17409         * Form.cs: Move setting show_icon = true to before the constructor
17410         so that the base constructor has that information when it calculates
17411         the form's size.  Was causing forms to be (6, 6) bigger than they
17412         were supposed to be.  Thanks for catching this Rolf!
17413
17414 2007-01-18  Jackson Harper  <jackson@ximian.com>
17415
17416         * TextControl.cs: When replacing a selection we need to invalidate
17417         from the initial selection start, because selection start is moved
17418         to the end of the replacement.
17419
17420 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17421
17422         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
17423
17424 2007-01-18  Chris Toshok  <toshok@ximian.com>
17425
17426         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
17427         I just added.
17428
17429 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
17430
17431         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
17432         layout methods and properties from ToolBarButton must be available
17433         into ToolBarButtonInfo.
17434
17435 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17436
17437         * Control.cs: If the control has a transparent background, we
17438         need to refresh it when it moves and when it's parent's background
17439         image changes.  [Fixes bug #80451]
17440
17441 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17442
17443         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
17444
17445 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17446
17447         * XplatUIWin32.cs: Implement proper double buffering for Windows.
17448         [Fixes bug #80447, and probably speeds up things as well]
17449
17450 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17451
17452         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
17453         * XplatUIWin32.cs: We need to recalculate NC size after changing 
17454         window style to toolwindow (otherwise the client rectangle will be
17455         3 pixels to small for some reason).
17456         * MdiWindowManager.cs: Revert NC size calculations to match how
17457         they are calculated only based on window styles (to match
17458         Win32AdjustWindowRectEx, since otherwise when setting size or 
17459         location, Control will call Win32AdjustWindowRectEx to update client 
17460         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
17461         calculate a different value of client size causing another paint 
17462         (and flickering))
17463         * InternalWindowManager.cs: When moving or resizing a window only
17464         update size or location if they actually changed.
17465         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
17466         (seems to match Windows behaviour better). Cleaned up 
17467         ManagedWindowDecorations to draw what's needed and nothing else
17468         (was drawing borders and lines where they shouldn't be)
17469         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
17470         (style = 0xFFFF) and takes into account caption height when 
17471         calculating window rectangle.   
17472
17473 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17474
17475         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
17476         can be added to toolbar multiple times, we need to maintain a list of 
17477         button information for each positions.
17478
17479 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17480
17481         * ToolBar.cs: Some small stetic changes.
17482
17483 2007-01-16  Jackson Harper  <jackson@ximian.com>
17484
17485         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
17486         that allow us to have nested recalc = false blocks.
17487         - Add paste support for images in the RichTextBox
17488         * RichTextBox.cs: flush the text after the color is changed, so
17489         the change takes effect.
17490         - Use SuspendRecalc
17491         - Some extra debugging info
17492         * TextControl.cs: Tags no longer track their length, it is just
17493         computed from the next tags length, this makes things a little
17494         simpler and reduces places that we have to track length changes.
17495         - Refactored the linetag class a little so we could make it
17496         a base class for different kinds of tags
17497         - Created a image tag, a tag that can have a single image inserted
17498         into it
17499         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
17500         that we can call suspend multiple times.
17501         - Add some debugging methods
17502
17503 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17504
17505         * MdiClient.cs: Add ActivatePreviousChild for 
17506         mdi child window navigation.
17507         * Form.cs: Use MdiClient.ActivateNextChild/
17508         ActivatePreviousChild instead of Form.SelectNextControl
17509         to select the next/previous child since 
17510         SelectNextControl doesn't do it in the same order
17511         as mdi children should do it.
17512
17513 2007-01-16  Chris Toshok  <toshok@ximian.com>
17514
17515         * Control.cs: remove container_selected field.
17516
17517 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17518
17519         * MdiClient.cs: Update main form's ActiveChild when
17520         updating keyboard focus for the mdi child.
17521
17522 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
17523
17524         * Control.cs: PreferredSize fix.
17525
17526         * Form.cs: Add several 2.0 events, properties, and methods.
17527
17528 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
17529
17530         * Form.cs: Provide meaningful message when MdiParent is assigned a
17531         Form that is not an MdiContainer.
17532
17533 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17534
17535         * MdiClient.cs: Update main form's ActiveChild when
17536         activating a mdi child.
17537
17538 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17539
17540         * MdiWindowManager.cs: Fix NRE when merging menus and main form
17541         doesn't have a menu.
17542
17543         * Form.cs: Request NCRecalc after creating a mdi child window.
17544         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
17545         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
17546         
17547         * MdiClient.cs: Add new method SendFocusToActiveChild that either
17548         sends keyboard focus to the active child, or to the MdiClient
17549         if there are no child forms.
17550         
17551 2007-01-15  Chris Toshok  <toshok@ximian.com>
17552
17553         * ListView.cs: drop the *Internal overrides, just do our work in
17554         ItemControl's WndProc instead.
17555
17556         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
17557         of the various controls, and forward the events properly (in the
17558         same manner as MS) from the textbox to the UpDown.  Also the
17559         ActiveControl of the UpDownBase gets set properly now.  Finally,
17560         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
17561
17562         * NumericUpDown.cs: set Text in the ctor.
17563
17564         * DomainUpDown.cs: call UpdateEditText in the ctor.
17565         
17566         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
17567         so even a Selectable = false textbox can be focused if you click
17568         in it.  Go figure.
17569
17570         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
17571         just add their handling in their respective WndProc's.  Also add
17572         an explicit FocusInternal method that doesn't consult CanFocus
17573         before calling Select(this).
17574
17575         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
17576         do our work in WndProc instead.
17577
17578         * TabControl.cs: same.
17579
17580         * ComboBox.cs: same.
17581
17582 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17583
17584         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
17585         Fixes #80006.
17586
17587 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17588
17589         * ListViewItem.cs:
17590         * ThemeWin32Classic.cs: Don't draw the item text outside
17591         item bounds in Details view, as well as use trimming.
17592         Fixes bug #80376.
17593
17594 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17595
17596         * Form.cs: Implement Form.ShowIcon.
17597         
17598         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
17599         null, which when combined with the DlgModalFrame window style removes
17600         the icon from the title bar.
17601
17602 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17603
17604         * Control.cs: Call OnMouseClick after OnClick. (2.0)
17605
17606 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17607
17608         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
17609         menu when mdi child windows theres a menu, uses insert to get icon
17610         at first position. Partially fix #80006.
17611
17612 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17613
17614         * Clipboard.cs: Implement 2.0 methods.
17615
17616 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17617
17618         * Menu.cs: Implement Insert method of MenuItemCollection class
17619         to fix MenuMerge.
17620
17621 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17622
17623         * ListView.cs: Implement 2.0 FindItemWithText method.
17624
17625 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17626
17627         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
17628         to calculate menu bar size. Fixes #80290.
17629
17630 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17631
17632         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
17633
17634 2007-01-11  Chris Toshok  <toshok@ximian.com>
17635
17636         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
17637         initial form.
17638
17639 2007-01-11  Chris Toshok  <toshok@ximian.com>
17640
17641         * LinkLabel.cs: make sure to call base.Select in our Select method
17642         if it turns out we're going to be selected (i.e. if we have a link
17643         that is going to receive focus).  That way our container's
17644         ActiveControl is updated properly.
17645
17646 2007-01-11  Chris Toshok  <toshok@ximian.com>
17647
17648         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
17649         they have 1 or more links.  this fixes the crash gert reported.
17650
17651 2007-01-11  Andreia Gaita  <avidigal@novell.com>
17652
17653         * ContainerControl.cs: Remove ContainerSelected flag, not needed
17654         anymore.
17655
17656         * Control.cs (Controls.Add): Check if control to be added to the collection
17657         is a top level control, and throw an ArgumentException if it is.
17658         Remove ContainerSelectedFlag, not needed anymore.
17659
17660         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
17661         top most control doesn't activate the form. This fixes a problem in the
17662         MessageBox, where the default button wouldn't get focus because the form
17663         was activated before being Loaded - when the Owner is set, SetTopMost is
17664         called, and it would activate it.
17665
17666 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
17667
17668         * Button.cs: When clicked and setting the parent form's DialogResult,
17669         use FindForm instead of Parent, since parent could be a container
17670         control and not the Form.  Fixes bug #80495.
17671
17672 2007-01-10  Chris Toshok  <toshok@ximian.com>
17673
17674         * Form.cs: move the call to SendControlFocus into the same
17675         is_loaded check.
17676
17677 2007-01-10  Chris Toshok  <toshok@ximian.com>
17678
17679         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
17680         It breaks in the face of the new ActiveControl stuff, and should
17681         be unnecessary.
17682
17683         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
17684         activecontrol's focus if it's not already set, after we set
17685         ActiveControl, but before we call OnActivated.  Re-fixes #79667
17686         after the previous focus/active control fixes regressed it.
17687
17688         * Control.cs: reindent some code.
17689         
17690 2007-01-10  Chris Toshok  <toshok@ximian.com>
17691
17692         * Splitter.cs: clearing some outstanding changes from my tree.
17693         Replace all accesses (not writes) to the internal dock_style field
17694         with the Dock property.
17695
17696 2007-01-10  Chris Toshok  <toshok@ximian.com>
17697
17698         * Control.cs: make FireEnter, FireLeave, FireValidating, and
17699         FireValidated virtual.
17700
17701         * Form.cs: override and don't chain up calls to FireEnter and
17702         FireLeave.
17703
17704 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17705
17706         * ListView.cs: Add more text padding space when using
17707         auto resize for columns (the previous value didn't work fine).
17708
17709         * ThemeWin32Classic.cs: Update text position inside columns,
17710         to match the appeareance of .Net.
17711
17712         * ColumnHeader.cs: When using auto resize, only the Width should
17713         depend on the sub items, not the Height. Also, set width after
17714         auto resizing (the value of Width should never remain as -1 or -2).
17715
17716 2007-01-10  Chris Toshok  <toshok@ximian.com>
17717
17718         * Application.cs: fix compilation errors when debug is enabled.
17719
17720 2007-01-10  Chris Toshok  <toshok@ximian.com>
17721
17722         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
17723         add some nice ascii art pictures and explanation of the process).
17724         (GetMostDeeplyNestedActiveControl): new utility function we need
17725         because our ActiveControl can refer to a child container with its
17726         own ActiveControl.
17727
17728         * Form.cs (OnActivated): remove the call to SelectActiveControl
17729         from here, since you can override this method and not chain up,
17730         and winforms still sets the active control.
17731         (OnCreateControl): also remove the unnecessary SelectActiveControl
17732         call from here.
17733         (WndProc): it's actually called from the WM_ACTIVATE block, just
17734         before calling OnActivated.
17735
17736         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
17737         inside the else.  the ActiveControl setter will end up setting
17738         focus on @control.  This keeps us from setting it again (and
17739         generating an extra LostFocus/GotFocus pair).
17740         (Select (bool, bool)): reindent.
17741
17742 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
17743
17744         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
17745         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
17746         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
17747         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
17748         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
17749         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
17750         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
17751         ToolStripTextBox.cs: Another wave of corcompare work.
17752
17753 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17754
17755         * ColumnHeader.cs: Implement 2.0 AutoResize method using
17756         the Width property.
17757
17758         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
17759         methods by callling Column.AutoResize method on columns.
17760
17761 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
17762
17763         * Control.cs: Provide proper implementations of PreferredSize
17764         and GetPreferredSize (2.0).
17765
17766 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
17767
17768         * Form.cs: Remove one character (!) to make my previous OnClosing
17769         stuff work for modal windows like MessageBox.
17770
17771 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17772
17773         * ListView.cs:
17774         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
17775         ListView.Columns to get the last displayed column. Fixes #80452.
17776
17777 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
17778
17779         * Label.cs, LinkLabel.cs: Source code identation fixes.
17780
17781 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
17782
17783         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
17784         we dont need to invalidate only borders because when we invalidate four
17785         border lines the invalidate's generates a complete redraw of button, 
17786         because it now invalidate a complete rect some other redraws operations
17787         are fixed. Fixes #80196.
17788         
17789         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
17790         Remove ToolBarInvalidateEntireButton as it is not used.
17791
17792 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
17793         
17794         * Form.cs: Make sure that both OnClosing and OnFormClosing are
17795         called for 2.0 profile.
17796         * CloseReason.cs: Make class internal for 1.1.
17797
17798 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
17799
17800         * ToolStripManager.cs: Implement FindToolStrip functionality.
17801         * ToolStrip.cs: Register and unregister with ToolStripManager.
17802
17803 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
17804
17805         * Control.cs: This was messy.  2.0 moves much of ControlCollection
17806         to ArrangedElementCollection.  Implemented this with as few #if's as 
17807         possible (which is still too many).
17808
17809 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
17810
17811         * Control.cs: Implement SizeFromClientSize() [2.0].
17812
17813 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
17814
17815         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
17816         use Theme.BorderSize to calculate area instead of static value 1, 
17817         by the way use new BorderStaticSize instead     Border3DSize when 
17818         border_static is true. Fixes #79537.
17819         
17820         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
17821         
17822         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
17823         it is not needed.
17824
17825 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
17826
17827         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
17828
17829 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
17830
17831         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
17832         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
17833         
17834         * Hwnd.cs: 
17835         - border_static field added, it will used to define when a control 
17836         theres 3D border but it must be static (thin).
17837         - In GetWindowRectangle use Theme.BorderSize to calculate area 
17838         instead of static value 1, by the way use new BorderStaticSize instead
17839         Border3DSize when border_static is true.
17840
17841         * XplatUIX11.cs, XplatUIOSX.cs: 
17842         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
17843         
17844         * Theme.cs: BorderStaticSize field added.
17845
17846 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
17847
17848         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
17849
17850 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
17851
17852         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
17853         mimic same behavior than win32 that set border only in CreateParams,
17854         it fix problems under CreateParams overrides. Fix #79442 and partial
17855         fix #79537.
17856         
17857         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
17858         of thi control you must call recreate handle. 
17859         
17860         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
17861         need to do anything as RecreateHangle will take care about borders.
17862
17863 2007-01-05  Mike Kestner  <mkestner@novell.com>
17864
17865         * ListView.cs: hack to eliminate Lost/Got focus notifications on
17866         cycles between the ItemControl and parent.  Fixes #80388.
17867
17868 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
17869
17870         * Control.cs: Lazy init layout engine. Do not directly use 
17871         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
17872
17873 2007-01-05  Chris Toshok  <toshok@ximian.com>
17874
17875         * DataGrid.cs: don't forceably rebind columns in SetDataSource
17876         unless our list manager has changed (i.e. unless we have reason to
17877         believe our columns have changed).  Fixes #80422.
17878         
17879         also, disable the call do BindColumns in
17880         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
17881         1.1 the event isn't raised in response to a column addition on a
17882         table.)
17883
17884 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
17885
17886         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
17887         that inheritors can not call it if they choose.  Fixes bug #80456.
17888
17889 2007-01-05  Andreia Gaita  <avidigal@novell.com>
17890
17891         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
17892         doesn't blow up with a null exception on marshalling.
17893         
17894 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
17895
17896         * Control.cs: Implement several 2.0 protected properties and methods.
17897         Ensure that all necessary events are being called when properties
17898         are set.
17899
17900 2007-01-05  Mike Kestner  <mkestner@novell.com>
17901
17902         * ListView.cs: implement PgUp/PgDn for Details view.  Also
17903         fixes First/LastVisibleIndex to use the item_control.ClientRect 
17904         instead of the parent control.  Fixes #80378.
17905
17906 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
17907
17908         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
17909           determine whether to use yard-pound or not (bug #78399).
17910
17911 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
17912
17913         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
17914         problems. So it is time to bring back the old popupbutton colors.
17915
17916 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17917
17918         * ColumnHeader.cs:
17919         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
17920         property by using the internal information of the
17921         columns order in ListView.
17922
17923 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
17924
17925         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
17926         Add 2.0 Tag properties.
17927
17928         * LinkArea.cs: Add 2.0 ToString method.
17929
17930 2007-01-03  Chris Toshok  <toshok@ximian.com>
17931
17932         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
17933         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
17934         when we're editing, which fixes #80047.
17935
17936 2007-01-03  Chris Toshok  <toshok@ximian.com>
17937
17938         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
17939         #80404.
17940
17941 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
17942
17943         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
17944         property and implementation.
17945
17946         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
17947         for MdiWindowListItem property.
17948
17949         * ToolStripDropDown.cs: Don't consider hidden menu items while
17950         laying out the menu.
17951
17952 2007-01-03  Andreia Gaita  <avidigal@novell.com>
17953
17954         * SendKeys.cs: window handle is not needed in win32, so just
17955         get the active window for X after parsing keys and don't use
17956         it when building the message; it is passed by parameter to the 
17957         Xplat method and used there to build the message instead. Also,
17958         wait for events to be processed on SendWait, as opposed to Send,
17959         which doesn't wait :) Playing with threads and Send() completely 
17960         hangs on ms.net, only SendWait() works.
17961         
17962         XplatUIX11.cs
17963         X11Display.cs: Check for valid window handle.
17964
17965 2007-01-03  Jackson Harper  <jackson@ximian.com>
17966
17967         * TextControl.cs: Need to prevent wrap calculations when replacing
17968         text (this was there before i removed it accidently).
17969         - Don't update the cursor during the positioning, just set it to
17970         selection_start at the end of the operaion.
17971
17972 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17973
17974         * Control.cs:
17975         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
17976         
17977 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17978
17979         * MonthCalendar.cs: Added Click and DoubleClick events again,
17980         but this time they only hide Control's Click and DoubleClick.
17981         
17982 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
17983
17984         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
17985         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
17986
17987 2007-01-02  Jackson Harper  <jackson@ximian.com>
17988
17989         * TextBoxBase.cs: We move the caret with the split now, so we
17990         don't need to explicitly move the caret after splitting.  This
17991         fixes the caret bumping down an extra line on Enter.
17992
17993 2007-01-02  Miguel de Icaza  <miguel@novell.com>
17994
17995         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
17996         2.72). 
17997
17998         * ScrollableControl.cs: Add Scroll event.
17999
18000 2007-01-02  Mike Kestner  <mkestner@novell.com>
18001
18002         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
18003         to fix all hdr height padding codepaths.  Fixes #80207.
18004
18005 2007-01-02  Chris Toshok  <toshok@ximian.com>
18006
18007         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
18008         setting it to the Control defaults anyway, and it being after the
18009         Dock set was screwing up layout.
18010         (set_Dock): don't short circuit out of setting base.Dock.  Also,
18011         no need to call UpdateStatusBar here, as it'll be re-layed out if
18012         it needs to be.
18013
18014 2007-01-02  Mike Kestner  <mkestner@novell.com>
18015
18016         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
18017         to header height for width == -1. Fixes the rest of #80207.
18018
18019 2007-01-02  Mike Kestner  <mkestner@novell.com>
18020
18021         * ListView.cs: rework the mouse event forwarding everaldo added
18022         to translate the coordinates to the parent control not
18023         raise the parent events until after we've done our work. Hover
18024         needs more work, in the case where HoverSelection is on, because
18025         the item control receives more than one MouseHover per Enter
18026         event, so we need to ensure only the "first" hover gets forwarded.
18027         Opening a minor bug for that.
18028
18029 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
18030
18031         * CheckedListBox.cs: Fixed SelectionMode to match MS.
18032         * ListControl.cs: Implemented AllowSelection property. Removed extra
18033         tabs.
18034         * ListBox.cs: Implemented AllowSelection property.
18035
18036 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18037
18038         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
18039         SelectedItem, it prevent for errors when you must disable item
18040         before perform click. Fixes #80409.
18041
18042 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18043
18044         * MenuAPI.cs: Prevent second level and beyond submenus to close
18045         until first level when move out side of popup.
18046         
18047 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18048
18049         * MenuAPI.cs:
18050         - Down submenu positin in three pixels.
18051         - Closes sub menu when mouse leaves from menu. Fixes #80402.
18052
18053 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18054
18055         * ThemeWin32Classic.cs:
18056         - Fix popup menu size adding one pixel on the top.
18057         - Down menu item border from two to one to mimic Win32.
18058         - Some source identation fixes. 
18059
18060 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18061
18062         * ThemeWin32Classic.cs: Use float numbers to calculate size and
18063         position of menu arrows, it fix wrong arrow size.
18064
18065 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18066
18067         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
18068         instead of line, it simplify draw operation and fix it using 3D
18069         borders to mimic Win32.
18070
18071 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
18072
18073         * StatusStrip.cs: Add implementation of the sizing grip.
18074
18075         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
18076         StatusStrip rendering.
18077
18078 2006-12-31  Chris Toshok  <toshok@ximian.com>
18079
18080         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
18081         override the layout style (anchor/dock) of the control.  assign to
18082         Dock instead.  Fixes bug #80416.
18083
18084         * ToolStrip.cs: same.
18085
18086 2006-12-31  Andreia Gaita  <avidigal@novell.com>
18087
18088         * ContainerControl.cs: Use ContainerSelected flag to check if 
18089         a Container is directly selected, or if Select is called on a 
18090         non-container. If a container is directly selected, focus events 
18091         should not be raised.
18092         Apply #80411 patch to throw exception on set_ActiveControl if 
18093         control is the same as the current one.
18094         
18095         * Control.cs: Use ContainerSelected flag (see above).
18096         Add invalidation check to raise event but not invalidate if 
18097         dimensions are 0.       
18098         Apply #80411 patch.
18099         
18100
18101 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
18102
18103         * MenuAPI.cs: After click, dont close popup menu when menu is
18104         ContextMenu. Fixes #80399.
18105
18106 2006-12-30  Chris Toshok  <toshok@ximian.com>
18107
18108         * ContainerControl.cs: make sure we throw the exception if the
18109         container control doesn't contain the control we're setting
18110         ActiveControl to.
18111
18112 2006-12-30  Chris Toshok  <toshok@ximian.com>
18113
18114         * Control.cs (SetTopLevel): fix the exception raised by
18115         SetTopLevel for child controls.
18116         (set_Anchor): call UpdateDistances when setting the anchor type.
18117         This fixes bug #80336.
18118
18119 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18120
18121         * Theme.cs: For now, revert back to 8pt font.
18122
18123 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
18124
18125         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
18126         Fixes #80395.
18127
18128 2006-12-29  Chris Toshok  <toshok@ximian.com>
18129
18130         * Control.cs: reorder the code in OnResize to give the same event
18131         ordering as MS.
18132
18133 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18134
18135         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
18136         TileHorizontally and TileVertically.
18137         
18138 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
18139
18140         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
18141         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
18142         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
18143         Corrected copyright and email adress.
18144
18145 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18146
18147         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
18148         of Exception in FullPath property if no TreeView is associated with
18149         the TreeNode.
18150
18151 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18152
18153         * Theme.cs: Marked default_font as private, and initialize it in ctor
18154         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
18155         on 2.0 profile.
18156         * ThemeGtk.cs: Removed default_font intialization.
18157         * ThemeWin32Classic.cs: Removed default_font initialization.
18158
18159 2006-12-28  Chris Toshok  <toshok@ximian.com>
18160
18161         * Control.cs: fix a couple of place where we were creating handles
18162         more aggressively than we should be.  Fixes ControlRefresh unit
18163         tests.
18164
18165 2006-12-28  Chris Toshok  <toshok@ximian.com>
18166
18167         * Control.cs: contrary to what the comment said, Control.Dock does
18168         not supercede Control.Anchor - the last one you assign to decides
18169         the layout behavior.  so we need to keep track of which was the
18170         last set.  Also, fix some of the affected property arguments in
18171         PerformLayout calls, and remove an redundant parent.PerformLayout
18172         call in OnResized.
18173
18174         Add a VisibleInternal property, which returns is_visible.  We
18175         can/should get rid of all the usage of this field elsewhere.
18176
18177 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18178         
18179         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
18180         control style, not DoubleBuffer. Added UseDoubleBuffering property
18181         that indicates whether doublebuffering is enabled and supported.
18182         (comment from and code based on Gert Driesen's patch in #80324).
18183         Fixes #80324.
18184
18185 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18186         
18187         * Control.cs: Fixed a NRE.
18188
18189 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18190
18191         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
18192         for 2.0.
18193
18194 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18195
18196         * Control.cs: Rewrote double buffering, now a seperate
18197         class handles all the buffering, no Graphics is disposed of
18198         until the painting is finished (earlier implementation 
18199         would crash if the control was resized in the OnPaint, 
18200         since it would cause the double buffer to be recreated
18201         and the old one disposed), a separate Graphics is 
18202         created for every paint (MS behaviour and anyways the state
18203         of the Graphics would have to be saved and restored otherwise)
18204         
18205         * XplatUIDriver.cs: 
18206         * XplatUIX11.cs:
18207         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
18208         so that we can get the graphics for the back buffer without
18209         having to create a new one and remove the offscreen_dc parameter
18210         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
18211         
18212 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18213
18214         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
18215         Also make virtual all the key-related methods.
18216
18217         * ListViewItem.cs: Make virtual the key related methods for
18218         ListViewSubItemCollection.
18219
18220 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18221
18222         * ListView.cs:
18223         * ListViewItem.cs:
18224         * ThemeWin32Classic.cs:
18225         * Theme.cs: Initial support for Tile view in ListView,
18226         as well as the implementation of the required bits for it (Item
18227         and Subitem).
18228
18229 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18230
18231         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
18232         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
18233         Provide useful exception messages.
18234
18235 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18236
18237         * TrackBar.cs: Remove a warning.
18238         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
18239         when used by DateTimePicker, fixes #80287. This also requires that 
18240         MonthCalendar implements it's own drawing for the yearly updown control,
18241         otherwise the Capture tracking would be too complicated. Removed the Click 
18242         and DoubleClick events (according to comments they were hiding the base class
18243         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
18244         raise these events, not that they cannot be raised. It is possible to raise 
18245         them by calling OnClick and OnDoubleClick). Added two internal fields in 
18246         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
18247         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
18248         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
18249         event, no longer needed.
18250         
18251 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18252
18253         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
18254         true if new value differs from current value.
18255
18256 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18257
18258         * Control.cs: ControlCollection.Count must be public. Fixed build of
18259         unit tests.
18260
18261 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18262
18263         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
18264
18265 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18266
18267         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
18268
18269 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18270
18271         * Control.cs: Invalidates control including when Width and Height is 
18272         equal zero or is not visible, only Paint event must be care about 
18273         this. Fixes #79913.
18274
18275 2006-12-26  Chris Toshok  <toshok@ximian.com>
18276
18277         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
18278         more corcompare work.
18279
18280         * DataGridView.cs: fix compiler warning.
18281
18282         * ColumnHeader.cs: some corcompare work, and also take the
18283         opportunity to make the internal fields private.
18284
18285         * ListView.cs: fix the fallout from the above field change.
18286
18287 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18288
18289         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
18290         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
18291         ToolStripTextBox.cs: Fixes to events and corcompare.
18292
18293 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18294
18295         * ListView.cs: Call owner.OnMousexx event to propagate events from
18296         item to ListView. Fixes #80367.
18297
18298 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18299
18300         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
18301         if value is less than one. ItemHeight should not be set to a value
18302         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
18303         Removed extra tabs.
18304
18305 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18306
18307         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
18308         * ToolStripStatusLabel.cs: Add Spring for Moma.
18309
18310 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18311
18312         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
18313         Fixed code formatting. Removed debug code.
18314         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
18315
18316 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18317
18318         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
18319         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
18320         ArgumentOutOfRangeException if ColumnCount is negative. In 
18321         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
18322         less than 4 or higher than 32768.
18323         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
18324         Fixed FormatProvider to return CurrentCulture unless explicitly set.
18325         Fixed IsFormatProviderDefault to return true if FormatProvider has
18326         not been explicitly set.
18327
18328 2006-12-25  Chris Toshok  <toshok@ximian.com>
18329
18330         * Application.cs: add a couple of 2.0 events.
18331
18332 2006-12-25  Chris Toshok  <toshok@ximian.com>
18333
18334         * Control.cs: fix compiler warning.
18335
18336         * AxHost.cs: corcompare fixes.
18337
18338         * ApplicationContext.cs: corcompare fixes.
18339
18340 2006-12-25  Chris Toshok  <toshok@ximian.com>
18341
18342         * Control.cs: only update dist_right/dist_bottom if the
18343         width/height is > 0.  this fixes anchored controls being resized
18344         smaller until they disappear and then resized larger again.
18345
18346 2006-12-25  Chris Toshok  <toshok@ximian.com>
18347
18348         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
18349         since they're nothing more than X/Left and Y/Top, respectively.
18350
18351         Also, move back to a per-control Bitmap/Graphics for
18352         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
18353         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
18354         Height.
18355
18356 2006-12-25  Miguel de Icaza  <miguel@novell.com>
18357
18358         * MessageBox.cs: Implemented overload that takes a new "bool
18359         displayHelpButton" by adding a new internal field "show_help".
18360         When clicked this will raise the HelpRequested on the owner or the
18361         main form. 
18362
18363         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
18364         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
18365
18366         * ListView.cs: Add support ColumnWidthChanged and
18367         ColumnWidthChanging. 
18368
18369         Add support for ColumnReordered event.
18370         (ReorderColumn): Add NET_2_0 specific support for cancelling the
18371         reorder.
18372
18373         Very nice codebase!
18374
18375         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
18376
18377         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
18378
18379 2006-12-24  Chris Toshok  <toshok@ximian.com>
18380
18381         * GridTablesFactory.cs: 2.0 corcompare work.
18382
18383         * ToolStripContainer.cs: add "override" to
18384         ContextMenuStripChanged, and remove the local event object.
18385
18386         * ToolStripDropDown.cs: same with a couple properties.
18387
18388         * ToolStripPanel.cs: same with AutoSizeChanged event.
18389
18390         * TextBoxBase.cs: add "override" to AutoSizeChanged.
18391
18392         * Form.cs: add the remaining 2.0 events, and do some corcompare
18393         attribute work.
18394
18395         * DateTimePicker.cs: add "new" to padding.
18396
18397         * ButtonBase.cs: use Control's use_compatible_text_rendering.
18398
18399         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
18400
18401         * DataGridView.cs: PaddingChanged is overridden.
18402
18403 2006-12-24  Chris Toshok  <toshok@ximian.com>
18404
18405         * Control.cs: corecompare work here too.
18406
18407         * DataGridViewElement.cs, DataGridView.cs,
18408         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
18409         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
18410         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
18411         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
18412         work.
18413
18414 2006-12-24  Miguel de Icaza  <miguel@novell.com>
18415
18416         * Control.cs: Switched the error message on the console for a
18417         todo.  A review of the code will have to cope with this anyways
18418         (since its a large feature, it is in our radar) and it was
18419         producing too much output when running PDN.
18420
18421         * ToolStripComboBox.cs: Set the text when the SelectedIndex
18422         changes.  Applications depend on this (PDN 2.72)
18423
18424 2006-12-23  Chris Toshok  <toshok@ximian.com>
18425
18426         * TableLayoutSettings.cs: finish up the corcompare work for this
18427         class.
18428
18429 2006-12-23  Chris Toshok  <toshok@ximian.com>
18430
18431         * Control.cs: make SetImplicitBounds internal, do some futzing
18432         with LayoutEngine so that it's available in 1.1, and remove the
18433         entire duplicated code mess from PerformLayout.  Use
18434         System.Windows.Forms.Layout.DefaultLayout instead.
18435
18436         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
18437
18438 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18439
18440         * Form.cs: Add MainMenuStrip property.
18441
18442 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18443
18444         * Control.cs: Add ContextMenuStrip property and implementation.
18445         Fix ContextMenu implementation to show menu centered on control when
18446         activated using the keyboard instead of showing at screen (0,0).
18447
18448         * ToolStripDropDown.cs: Fix needed overload of Show ().
18449
18450 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18451
18452         * Menu.cs: Name property added for 2.0 profile.
18453         
18454 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18455
18456         * Menu.cs: Update information about FindMenuItem, method to be
18457         implemented soon.
18458
18459 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18460
18461         * MenuAPI.cs: When deselect items deselect also selected subitems.
18462         
18463 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18464
18465         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
18466         FindSubItemByCoord to found itens that is not active, also an
18467         cheking added to FindSubItemByCoord to search for items only 
18468         in visible popup windows. Fixes #80274.
18469
18470 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
18471
18472         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
18473         internal property, it be care about change ExStyle. 
18474
18475 2006-12-22  Andreia Gaita  <avidigal@novell.com>
18476
18477         * ContainerControl.cs: set activeControl for parent forms up the 
18478         tree when the new activecontrol is a container.
18479         When validating the active control, if it is a container, also
18480         raise up the validation for it's active control. Fixes #80280
18481         
18482         * Control.cs: Add internal property flag and check to prevent
18483         Focus events from getting raised when Select() is called for
18484         a ContainerControl. There are still too many focus events being
18485         raised at the moment though.
18486         Cleaned up the code a bit.
18487
18488 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18489
18490         * Control.cs: Added all missing 2.0 events.and
18491         fixed a couple of corcompare issues.
18492         * TrackBar.cs: Implemented missing 2.0 bits.
18493         * MonthCalendar.cs, 
18494         * DateTimePicker.cs, 
18495         * MdiClient.cs: Fixed some corcompare issues.
18496
18497 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18498
18499         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
18500         SplitterPanel.cs: corecompare work.
18501
18502 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18503
18504         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
18505         Clean up warnings for BackgroundImageChanged and PaddingChanged
18506         events now that they are implemented in Control.cs.
18507
18508 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18509
18510         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
18511         
18512         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
18513         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
18514         of TableLayoutPanel and supporting cast.
18515
18516 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18517
18518         * XplatUIWin32.cs: 
18519         - GrabWindow now confines the mouse pointer to the confine window.
18520         - Added Win32ClipCursor and Win32GetClipCursor.
18521
18522         * Control.cs: 
18523         - Added CaptureWithConfine to be able to capture and confine 
18524         mouse pointer.
18525         
18526         * InternalWindowManager.cs: 
18527         - Call CaptureWithConfine instead of Capture if we're an
18528         MdiChild (fixes #79982).
18529
18530 2006-12-21  Chris Toshok  <toshok@ximian.com>
18531
18532         * DataGrid.cs: guard against the initial state of selection, where
18533         selection_start == -1.  make sure we only select from index >= 0.
18534         Fixes bug #80291.
18535
18536 2006-12-21  Chris Toshok  <toshok@ximian.com>
18537
18538         * Control.cs: we don't need to be so draconian with
18539         UpdateDistances, and we thusly don't need to call it before
18540         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
18541
18542 2006-12-21  Daniel Nauck  <dna@mono-project.de>
18543
18544         * ComboBox.cs,
18545         TextBox.cs: Implemented AutoComplete properties.
18546
18547 2006-12-20  Chris Toshok  <toshok@ximian.com>
18548
18549         * DataGridView*.cs: some corecompare work.
18550
18551 2006-12-20  Jackson Harper  <jackson@ximian.com>
18552
18553         * XplatUIX11.cs: We need to hide the caret when deleting it,
18554         otherwise you get carets left lying around everywhere.
18555         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
18556         prevents getting some weird half drawn caret tracers when
18557         scrolling.
18558         * TextControl.cs: Attempt to reduce the number of times we need to
18559         recreate the caret.
18560
18561 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
18562
18563         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
18564
18565 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18566
18567         * DateTimePicker.cs:
18568         - Implemented missing 2.0 bits.
18569         - Changed some default values to match MS.
18570         
18571 2006-12-20  Jackson Harper  <jackson@ximian.com>
18572
18573         * TextBoxBase.cs: When changing the font across the document we
18574         can't recalculate after changing each line, since that will cahnge
18575         the line count.
18576         - PreferredHeight is a little different than i thought.
18577         - When backspacing, move the caret before we do the actual char
18578         delete, because when that delete crosses a wrap boundary the
18579         positional information will change.
18580
18581 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18582
18583         * Control.cs: Added some missing 2.0 bits: 
18584         BackgroundImageLayout, BackgroundImageLayoutChanged, 
18585         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
18586         add IBindableComponent and IDropTarget implementation.
18587         
18588         * MonthCalendar.cs: 
18589         - Added all missing 2.0 features:
18590         BackgroundImageLayout, RightToLeftLayout, 
18591         OnHandleDestroyed, RightToLeftLayoutChanged, 
18592         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
18593         PaddingChanged.
18594         - Rewrote all the BoldDate code, it was completely broken.
18595         - Fixed all the tests (the tests can now be re-enabled, the
18596         problems were not with the tests, but with the control, it was
18597         mostly broken).
18598         
18599         * DateTimePicker.cs: Changed the location where the 
18600         MonthCalendar is shown.
18601         
18602 2006-12-19  Chris Toshok  <toshok@ximian.com>
18603
18604         * DataGridView.cs: add IDropTarget implementation.
18605
18606         * ToolStripPanel.cs: add IDropTarget implementation.
18607
18608 2006-12-19  Jackson Harper  <jackson@ximian.com>
18609
18610         * TextControl.cs: soft now means something different than what it
18611         used to mean, we want to move the caret regardless of whether or
18612         not this break was soft (would we really have wanted the caret
18613         to not move with the break in the old context?)
18614         * TreeView.cs: Make sure we factor in the vert scrollbar when
18615         calculating the horizontal scrollbar's maximum.
18616
18617 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18618
18619         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
18620         check for keywords in alternate casing, close bug #80049.
18621
18622 2006-12-19  Chris Toshok  <toshok@ximian.com>
18623
18624         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
18625         methods (which all do nothing).
18626
18627         * IDropTarget.cs: add the 4 missing methods.
18628
18629 2006-12-19  Chris Toshok  <toshok@ximian.com>
18630
18631         * TableLayoutRowStyleCollection.cs: corcompare work.
18632         
18633         * TableLayoutSettings.cs: same.
18634
18635         * TableLayoutStyle.cs: same.
18636
18637         * TableLayoutColumnStyleCollection.cs: same.
18638
18639 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
18640
18641         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
18642         TableLayoutPanel I've had in my local tree for way too long.
18643
18644 2006-12-19  Miguel de Icaza  <miguel@novell.com>
18645
18646         * TableLayoutSettings.cs: Finish the public API (still needs all
18647         the logic to update on changes). 
18648
18649         * TableLayoutPanelCellPosition.cs: new file.
18650         
18651         * TableLayoutRowStyleCollection.cs,
18652         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
18653         TableLayoutSettings.cs: Track the final 2.0 table api.
18654
18655 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18656
18657         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
18658         and Image List 2.0 members for ColummnHeader.
18659         * ListView.cs: Add key-related 2.0 methods for
18660         ColumnHeaderCollection.
18661
18662 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18663
18664         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
18665         ArgumentNullException if items argument is null. Ignore null item in
18666         arrays. Removed extra tabs.
18667
18668 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18669
18670         * MonthCalendar.cs: Fixed InvalidCastException.
18671
18672 2006-12-19  Jackson Harper  <jackson@ximian.com>
18673
18674         * TextControl.cs: Don't increment the position here.
18675         - When calculating char positions only add in the line break size
18676         for hard line breaks.
18677
18678 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18679
18680         * SendKeys.cs: Changed some things to match ms.net behaviour
18681         when parsing shifted capital letters.
18682         
18683         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
18684         Add window handle as parameter to SendInput. X11 needs the 
18685         window handle, and the handle being passed      to it in the keys 
18686         queue is the active control handle (which windows needs), not 
18687         the window handle.
18688         
18689         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
18690         to support SendKeys on X.       
18691         
18692         * X11Keyboard: Implement helper method to lookup a linux keycode
18693         given the virtual keycode. Added table of keycode-2-virtualkey
18694         values to support this.
18695
18696 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18697
18698         * ListView.cs: Add support for SelectedIndexCollection
18699         and SelectedItemCollection 2.0 methods. Implement support
18700         for ImageKey too.
18701         * ListViewItem.cs: Add support for ListViewSubItemCollection
18702         2.0 methods. Also, fix an incorrect behavior of AddRange method
18703         (it shouldn't call Clear).
18704         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
18705
18706 2006-12-19  Jackson Harper  <jackson@ximian.com>
18707
18708         * RichTextBox.cs: 
18709         * TextBoxBase.cs: New args for FormatText
18710         * TextControl.cs: Rewrote the main drawing method, this version
18711         feels a little easier to understand and debug to me.  Hopefully it
18712         does to others also
18713         - Fix FormatText to OR in the new formating values.  Added
18714         FormatSpecified param, basically this works in the same way as
18715         BoundsSpecified in Control.
18716         - Set the caret properties when the caret is positioned.
18717         - When wrapping text make sure that we calculate the width of the
18718         last character
18719         - when calculating alignments we might have wrapped down to the
18720         next line, so don't search for an individual tag, search for the
18721         end of the line
18722         - We need to invalidate the selection area when we replace the
18723         selection.
18724         
18725 2006-12-19  Daniel Nauck  <dna@mono-project.de>
18726
18727         * Application.cs: add Restart () 2.0 support
18728
18729 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18730
18731         * MenuItem.cs: Invalidate menu item rectangle after change Enable
18732         property. Fixes #80268.
18733         
18734 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18735
18736         * MenuAPI.cs: Dont trigger select event when closes top menu
18737         item. Fixes #80270.
18738
18739 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18740
18741         * MenuAPI.cs: When you click on menuitem only trigger onselect
18742         event for top menu itens. Fixes #80271.
18743         
18744 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18745
18746         * MdiWindowManager.cs: Make IconicBounds depend on
18747         the bottom of MdiClient, not the top (fixes #80267)
18748         
18749 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18750
18751         * MdiClient.cs: Added missing 2.0 attribute
18752
18753 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18754
18755         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
18756         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
18757
18758 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18759
18760         * MenuAPI.cs: Fix click when menuitem is not popup,
18761         this regression was caused by last commit (#80272).
18762
18763 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
18764
18765         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
18766         fire click event or close menu. Fixes #80272.
18767
18768 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18769
18770         * ListViewHitTestInfo.cs: add
18771
18772 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18773
18774         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
18775         * FlatButtonAppearance.cs: add
18776         * DockingAttribute.cs: add
18777
18778 2006-12-17  Chris Toshok  <toshok@ximian.com>
18779
18780         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
18781         and rebind our columns when it does - this way, if you make
18782         changes to the DataTable (or set the Table attribute on a DataView
18783         after setting it as the DataGrid's DataSource, the changes are
18784         made visible.)  Fixes bug #80107.
18785
18786 2006-12-17  Daniel Nauck  <dna@mono-project.de>
18787
18788         * ListViewGroup.cs: add internal Location property for layouting.
18789         * Theme.cs: add abstract ListViewGroupHeight function.
18790         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
18791
18792 2006-12-16  Andreia Gaita  <avidigal@novell.com>
18793
18794         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
18795         Added reset of selected index to 0 when adding first tab page.
18796         Fixes #80264
18797         
18798         * NumericUpDown.cs: Fix NET_2_0 check
18799
18800 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18801
18802         * ListViewGroup.cs: fixed DefaultValueAttribute value
18803
18804 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18805
18806         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
18807
18808 2006-12-15  Miguel de Icaza  <miguel@novell.com>
18809
18810         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
18811         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
18812         ScrollableControl.cs: Add a handful of methods that are
18813         overwritten in 2.0 
18814
18815 2006-12-15  Chris Toshok  <toshok@ximian.com>
18816
18817         * XplatUIWin32.cs: initial implementation of the Reversible
18818         drawing functions.  there are some problems.  DrawReversibleFrame
18819         doesn't seem to work at all for Dashed FrameStyle, and in the
18820         Thick case there are drawing errors at the corners (we probably
18821         need to bind Rectangle instead of doing moveto/lineto's.)
18822
18823 2006-12-16  Andreia Gaita  <avidigal@novell.com>
18824         
18825         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
18826         to send blocks of key messages. Send accumulates keys to send with Flush, 
18827         while SendWait sends all keys immediately.
18828                 
18829         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
18830         XplatUIX11.cs,  XplatUIX11-new.cs:
18831         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
18832         to Win32 SendInput.
18833         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
18834         
18835         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
18836         testing for ms.net on this class is very tricky, as the tests run too fast 
18837         to allow the hook to release, essentially freezing the keyboard and the 
18838         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
18839         category :p
18840
18841 2006-12-16  Daniel Nauck  <dna@mono-project.de>
18842
18843         * Padding.cs: fixed serialization compability to MS ("_var" field names),
18844                         added missing attributes.
18845  
18846 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18847
18848         * ListViewGroup.cs: Added missing attributes.
18849         * ListViewGroupCollection.cs: Added missing attributes.
18850
18851 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18852
18853         * ListViewItem.cs: fixed ListViewSubItem text property.
18854
18855 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18856         
18857         * Control.cs: Added missing 2.0 attributes
18858         
18859 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18860         
18861         * MdiClient.cs: Added missing 2.0 attribute.
18862         * MonthCalendar.cs: Added some missing 2.0 attributes 
18863         and properties.
18864         
18865 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18866
18867         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
18868
18869 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
18870
18871         * MainMenu.cs: Add the new 2.0 constructor to help out people
18872         using the MainMenu in VS2005.
18873
18874 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18875         
18876         * MdiChildContext.cs: Removed it, no longer used.
18877         * MdiClient.cs: Added missing 2.0 attributes.
18878         
18879 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18880         
18881         * InternalWindowManager.cs: Fix a NullRef with previous 
18882         changes for toolwindows.
18883         
18884 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18885
18886         * Control.cs: 
18887         - Added AfterTopMostControl to allow for certain controls 
18888         to always stay on top when normal controls are brought to 
18889         front.
18890         
18891         * XplatUIWin32.cs: 
18892         - (DrawInversibleRectangle): Get window rectangle from Win32 
18893         in stead of from control, since Win32 doesn't calculate
18894         screen coords correctly from control's Location if it 
18895         have docked siblings.
18896         
18897         * MdiWindowManager.cs:
18898         - Correct the control menu popup location when clicked on
18899         the maximized form icon. (fixes #80223.1)
18900         - Don't show moving rectangle if mouse hasn't moved from
18901         the original clicked point.
18902         - Removed FormGotFocus handler (not used).
18903         - Calculate the control buttons location from the main
18904         window's size and not client size (fixes #79770).
18905         - Form is now closed when the form icon is double-clicked
18906         (fixes #79775). 
18907         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
18908         
18909         * InternalWindowManager.cs:
18910         - Moved some MDI-only methods to MdiWindowManager.
18911         - Removed unused properties and methods.
18912         - Unified method naming for methods handling wm messages.
18913         - Moved all message handling to seperate methods for
18914         each message.
18915         
18916         * ThemeWin32Classic.cs:
18917         - DrawManagedWindowDecorations now draws the title bar 
18918         with a gradient brush.
18919         - Add a CPDrawButtonInternal that allows us to specify
18920         light, normal and dark colors for the buttons (control 
18921         buttons for MDI children were drawn with the same light
18922         color as the background, therefore loosing the 3D effect).
18923         
18924         * SizeGrip.cs:
18925         - Add a CapturedControl property that is used to 
18926         determine the control to resize (defaults to parent). 
18927         Needed for MdiClient, since its SizeGrip's parent is
18928         MdiClient, but the control to resize is the main form.
18929         
18930         * MdiClient.cs:
18931         - Set SizeGrip's CapturedControl to the main form in order
18932         to resize the main form and not the MdiClient.
18933         - Override AfterTopMostControl to leave the scrollbars 
18934         always on top.
18935
18936 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18937
18938         * ListView.cs: fixed ListViewItemCollection AddRange and
18939                         implemented ListViewItemCollection AddRange 2.0 support.
18940
18941 2006-12-15  Daniel Nauck  <dna@mono-project.de>
18942
18943         * ListViewGroup.cs: Add.
18944         * ListViewGroupCollection.cs: Add
18945         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
18946         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
18947                                 stub for ImageKey 2.0 support.
18948
18949 2006-12-14  Mike Kestner  <mkestner@novell.com>
18950
18951         * ListView.cs: add text padding to the autocalculation for columns
18952         of width -2.  Fixes #80207.
18953  
18954 2006-12-14  Mike Kestner  <mkestner@novell.com>
18955
18956         * ListView.cs: add some index guarding for partial row navigation 
18957         logic.  Fixes #80250.
18958
18959 2006-12-14  Mike Kestner  <mkestner@novell.com>
18960
18961         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
18962         are added or inserted to the collection.  Fixes #81099.
18963
18964 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
18965
18966         * MenuAPI.cs: Closes menu when right click out side of popup
18967         it fix problem in ContextMenu and MainMenu. Fixes #80252.
18968
18969 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18970
18971         * ListViewItem.cs: Fix dumb error.
18972
18973         * ListView.cs: Add Find and ContainsKey methods in 
18974         ListViewItemCollection, and also return true for IsReadOnly
18975         and IsFixedSize (changes for 2.0). 
18976
18977 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
18978
18979         * Control.cs: Allow Region to be set to null.
18980
18981 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18982
18983         * MdiWindowManager.cs: Remove unused (commented out) code.
18984         * Form.cs: When the MdiChild is maximized, the form needs 
18985         WM_NCMOUSELEAVE, so request it.
18986         * InternalWindowManager.cs: 
18987         - Added tooltips to control buttons.
18988         - Removed duplicated control button handling code.
18989         - Removed unused (commented out) code.
18990         
18991 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
18992
18993         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
18994         was used because we must set cursor without trigger ChangeCursor event
18995         and without change Cursor control property. Fixes #79963.
18996
18997 2006-12-12  Andreia Gaita  <avidigal@novell.com>
18998         
18999         * Control.cs: Check if Region setter value is null, and ignore
19000
19001 2006-12-12  Jackson Harper  <jackson@ximian.com>
19002
19003         * TextControl.cs: We were almost always drawing one more line then
19004         needed, since the GetLineByPixel will return the last line found
19005         at that pixel. In most cases though, we were invalidating up to
19006         the junction between two lines.
19007         - Improve debug code.
19008
19009 2006-12-12  Chris Toshok  <toshok@ximian.com>
19010
19011         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
19012         and FillReversibleRectangle.
19013
19014         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
19015         and FillReversibleRectangle.
19016
19017         * XplatUIWin32.cs: add stubs which do nothing for
19018         DrawReversibleFrame, DrawReversibleLine, and
19019         FillReversibleRectangle.
19020
19021         * XplatUIOSX.cs: add stubs which raise NIE for
19022         DrawReversibleFrame, DrawReversibleLine, and
19023         FillReversibleRectangle.
19024
19025         * XplatUIX11.cs: add working implementation for
19026         DrawReversibleFrame, DrawReversibleLine, and
19027         FillReversibleRectangle.
19028         
19029         * ControlPaint.cs: implement DrawReversibleFrame,
19030         DrawReversibleLine, and FillReversibleRectangle, by calling into
19031         the appropriate XplatUI method.
19032
19033 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19034
19035         * Form.cs: Make MdiClient have the focus even if it's
19036         not selectable, since it should receive WM_KEY* and WM_MOUSE 
19037         messages. Fixes #79907.
19038         
19039 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19040
19041         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
19042         queried after the window is created.
19043         
19044         * XplatUIX11.cs: Added SendParentNotify to implement 
19045         WM_PARENTNOTIFY logic. Fixes #79965.
19046         
19047         * Control.cs: Added MakeParam.
19048         
19049 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19050
19051         * MdiClient.cs: Resume Layout before setting window
19052         states (fixes #80201).
19053
19054 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19055
19056         * MenuAPI.cs: Deselect a menu item after performing
19057         the click (fixes #80197).
19058
19059 2006-12-11  Jackson Harper  <jackson@ximian.com>
19060
19061         * TextBoxBase.cs: We need to cap this value, since Maximum -
19062         ViewPortHeight can be less than zero.
19063         - Only do selection with the left mouse button.
19064         * TextBox.cs: Don't tell the world that we have a context menu.
19065         * Control.cs: New method so that we can control whether or not the
19066         context menu is visible outside MWF.
19067
19068 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19069
19070         * ToolBarButton.cs: Fix text positon. 
19071
19072 2006-12-11  Miguel de Icaza  <miguel@novell.com>
19073
19074         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
19075
19076         * Control.cs (DoubleBuffered): Add implementation.
19077
19078         * Application.cs (OpenForms): Add.
19079
19080 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19081
19082         * Form.cs: Use opacity instead of Opactiy to determine if we need
19083         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
19084
19085 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19086
19087         * Control.cs: Fix NRE if Control.Site was set to null.
19088
19089 2006-12-11  Chris Toshok  <toshok@ximian.com>
19090
19091         * Control.cs: ControlCollection.Remove should return if the arg is
19092         null, and ControlCollection.SetChildIndex should raise a ANE.
19093
19094 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
19095
19096         * Control.cs: Verify value set for Dock property. Code formatting
19097         updates.
19098
19099 2006-12-11  Jackson Harper  <jackson@ximian.com>
19100
19101         * TextControl.cs: Draw the caret and the selection when a flag is
19102         set on the owner.
19103         * TextBoxBase.cs: We want to draw the caret and the selection for
19104         TextBox but not for TextBoxBase.
19105         - If the window is resized and scrolling is no longer needed (the
19106         whole doc is visible) set the scroll position to zero.
19107         - The default SelectWord (the one TextBox uses) should move the
19108         caret to the end of the word.
19109         - SelectAll moves the caret to the end of the selection.
19110         * TextBox.cs: We don't selectall on focus, we just do it when the
19111         control is created.
19112         
19113 2006-12-11  Mike Kestner  <mkestner@novell.com>
19114
19115         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
19116
19117 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19118
19119         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
19120         2.0 support.
19121         * ListViewItem.cs: Add Name 2.0 property.
19122
19123 2006-12-11  Andreia Gaita  <avidigal@novell.com>
19124
19125         * TabControl.cs: Set visibility on selected or default tab 
19126         when tabcontrol handle is created, so that it's contents
19127         actually show up (duh). Fixes #80193
19128         Don't redraw the control if there is no handle created, as
19129         the selected index might be completely invalid. Added some tests
19130         to check for this.
19131
19132 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19133
19134         * ToolBar.cs: Uses maximun width and height of all buttons as 
19135         button rectangle when ButtonSize specified, it looks strange but
19136         is what happens in Win32. Fixes #80189.
19137
19138 2006-12-11  Jackson Harper  <jackson@ximian.com>
19139
19140         * TextControl.cs: Need to track undo levels ourself, since
19141         compound actions will mess them up.
19142
19143 2006-12-10  Andreia Gaita  <avidigal@novell.com>
19144
19145         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
19146         SelectedIndex value is changed (even if it's not valid).
19147         Reset SelectedIndex to 0 when the handle is created and if
19148         the current index is invalid.
19149         Fixes SelectdeIndex unit tests and #80128
19150
19151 2006-12-08  Chris Toshok  <toshok@ximian.com>
19152
19153         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
19154         calls EndEdit, it needs to be called before we set current_cell to
19155         its new value.  Otherwise, we end up committing the value in the
19156         textbox to the new cell as well.  Fixes bug #80160.
19157
19158 2006-12-08  Chris Toshok  <toshok@ximian.com>
19159
19160         * Form.cs (set_CancelButton): if the button's DialogResult is
19161         None, set it to Cancel.  Fixes bug 80180.
19162
19163 2006-12-08  Jackson Harper  <jackson@ximian.com>
19164
19165         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
19166         to watch ourselves when setting the canvas size and setting the
19167         scrollbar values.
19168
19169 2006-12-08  Chris Toshok  <toshok@ximian.com>
19170
19171         * DataGrid.cs: comment out the two MakeTransparent calls for the
19172         time being so people using trunk (and not 1.2.2) on windows can
19173         actually use the datagrid.  This deals with bug #80151.
19174
19175 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19176
19177         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
19178         Graphics.DrawImage (image, int, int, int, int) overload instead
19179         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
19180         the dpi difference and was blurring images it drew.
19181         [Fixes bug #79960]
19182
19183 2006-12-08  Chris Toshok  <toshok@ximian.com>
19184
19185         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
19186         rowcnt is 0 (such as with an empty datasource), and make sure we
19187         initialize not_usedarea.Y to cells.Y, so we don't draw over the
19188         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
19189
19190 2006-12-08  Chris Toshok  <toshok@ximian.com>
19191
19192         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
19193         grid.
19194
19195 2006-12-08  Chris Toshok  <toshok@ximian.com>
19196
19197         [ Fixes bug #80167 ]
19198         
19199         * ThemeWin32Classic.cs: don't draw the image if the button's flat
19200         style is FlatStyle.System.
19201
19202         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
19203         ButtonBase.flat_style private, and switch uses of it to the public
19204         property.
19205         
19206 2006-12-08  Chris Toshok  <toshok@ximian.com>
19207
19208         [ Fixes bug #80121 ]
19209         
19210         * ThemeWin32Classic.cs: center the caption text in the datagrid
19211         when we draw it.
19212
19213         * DataGrid.cs: lessen the amount we add to the caption height from
19214         6 to 2.  6 was making it huge.
19215
19216 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19217
19218         * UpDownBase: Handle MouseWheel call directly instead of capturing
19219         the inner textbox's OnMouseWheel. Fixes #80166
19220
19221 2006-12-08  Jackson Harper  <jackson@ximian.com>
19222
19223         * TextControl.cs: We need to invalidate the textbox when we empty
19224         it (how had this not been discovered before?)
19225
19226 2006-12-08  Jackson Harper  <jackson@ximian.com>
19227
19228         * TextBoxBase.cs: Reworked the mouse down code so I could get it
19229         to behave like MS, we now ignore the eventargs.Click and just
19230         track state ourself, which we were already doing anyways.
19231         - Constrain the double click handler to the double click size.
19232         
19233 2006-12-08  Chris Toshok  <toshok@ximian.com>
19234
19235         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
19236         direction if that scrollbar isn't shown.  fixes bug #80158.
19237
19238 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19239
19240         * NumericUpDown.cs: Update value on getter. Fixes #79950
19241
19242 2006-12-08  Chris Toshok  <toshok@ximian.com>
19243
19244         * MenuItem.cs: add back in the event cloning code.  I didn't know
19245         how to do it in the face of the EventHandlerList work i'd done
19246         last week.  Fixes bug #80183.
19247
19248 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19249
19250         * Control.cs: Add an invalidate to the BackgroundImage setter.
19251         [Fixes 80184]
19252
19253 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19254
19255         * ToolStrip*: Add some small properties reported by MoMA, fix event
19256         firing and default properties based off of unit tests, and add some
19257         attributes based off of the class status page.
19258
19259 2006-12-07  Jackson Harper  <jackson@ximian.com>
19260
19261         * TextBoxBase.cs: Take HideSelection into account when determining
19262         whether or not to show the selection.
19263         * RichTextBox.cs: After inserting the RTF into the document move
19264         the cursor to the beginning of the document.
19265
19266 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19267
19268         * Control.cs: Remove static ArrayList "controls" which maintained
19269         a reference to every control created.
19270         * Application.cs: Create a static FormCollection to maintain a reference
19271         to every form created.  Use it in places that formerly enumerated through
19272         the controls one looking for forms.
19273         * Form.cs: Add and remove self from above FormCollection.
19274
19275 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
19276
19277         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
19278           not libgdk (though it makes me wonder why I didn't have any
19279           problems)
19280
19281 2006-12-07  Chris Toshok  <toshok@ximian.com>
19282
19283         [ you had to know this was coming after that last commit...]
19284         
19285         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
19286         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
19287         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
19288         XCopyArea).
19289
19290 2006-12-07  Chris Toshok  <toshok@ximian.com>
19291
19292         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
19293         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
19294         all the behavior we need for double buffering.
19295
19296         * XplatUIDriver.cs: implement the 3 double buffer methods using a
19297         client side Bitmap, just like the old Control-based double buffer
19298         code did.  The methods are virtual, so each XplatUI driver
19299         subclass can replace the implementation to use a faster, platform
19300         specific approach.
19301
19302         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
19303         double buffer code, and clean things up a bit in the process.
19304
19305 2006-12-06  Chris Toshok  <toshok@ximian.com>
19306
19307         * Control.cs: reindent WndProc.
19308
19309 2006-12-06  Chris Toshok  <toshok@ximian.com>
19310
19311         [ I wanna be like BenM when I grow up ]
19312         
19313         * Hwnd.cs: create a single static Graphics object on the static
19314         Bitmap we create.  use this for our text measurements.
19315
19316         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
19317         This was causing us to allocate a backbuffer for every control,
19318         even when it wasn't flagged as double buffered.  Instead use the
19319         single graphics instance.  This might have implications for
19320         multithreaded applications.  If we run into problems we can switch
19321         to creating 1 Graphics per control, on the static Hwnd bitmap.
19322
19323         this change nets us a 7M savings in private dirty mappings when
19324         running FormsTest.exe.
19325
19326 2006-12-06  Chris Toshok  <toshok@ximian.com>
19327
19328         * ListView.cs: the BackgroundImage override is just to set
19329         attributes.  chain up to base.BackgroundImage.
19330
19331         * RichTextBox.cs: same.
19332
19333         * ToolBar.cs: same, but we need to also redraw the toolbar when it
19334         changes, so instead a handler for BackgroundImageChanged.
19335         
19336         * Control.cs: make background_image private.
19337
19338 2006-12-06  Chris Toshok  <toshok@ximian.com>
19339
19340         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
19341         sure we even need this assignment, but roll with it for now.
19342
19343         * Control.cs: make the cursor field private.
19344
19345 2006-12-06  Chris Toshok  <toshok@ximian.com>
19346
19347         * Form.cs: we don't need to explicitly set ImeMode to
19348         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
19349         behavior in the face of ImeMode.Inherit.
19350
19351         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
19352         change the ctor's assignment to use ImeMode instead of ime_mode.
19353
19354         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
19355         ImeModeInherit.  Only check for the parent's imemode (and return
19356         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
19357         This fixes the button unit test, which sets both ImeMode and
19358         DefaultImeMode to ImeMode.Disable.
19359
19360         also make the ime_mode field private.
19361
19362 2006-12-06  Chris Toshok  <toshok@ximian.com>
19363
19364         * Control.cs: make control_style private.
19365
19366         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
19367         setting the styles to true, then setting them to false instead of
19368         reverting to their previous values.
19369
19370         also, call SetStyle on the scrollbars instead of using
19371         control_style directly.
19372
19373 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
19374
19375         * FormCollection.cs: Implement. [2.0]
19376
19377 2006-12-06  Chris Toshok  <toshok@ximian.com>
19378
19379         * Control.cs: make tab_stop private.
19380
19381         * Label.cs: set TabStop, not tab_stop.  reformat some event
19382         add/remove methods to make them more compact.
19383
19384 2006-12-06  Chris Toshok  <toshok@ximian.com>
19385
19386         * RadioButton.cs: fix TabStop handling.
19387
19388 2006-12-06  Chris Toshok  <toshok@ximian.com>
19389
19390         * TextBox.cs: remove the explicit assignments to has_focus.
19391         Control does that.
19392
19393         * ButtonBase.cs: remove the assignment to has_focus.  Control will
19394         manage that.
19395         
19396 2006-12-06  Chris Toshok  <toshok@ximian.com>
19397
19398         * ButtonBase.cs: remove all uses of is_enabled from this code.
19399         it's always true when any of the code containing the checks is
19400         executed.
19401
19402 2006-12-06  Chris Toshok  <toshok@ximian.com>
19403
19404         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
19405         with different semantics (some are present in both 1.1 and 2.0
19406         profiles) so that we match MS's behavior in our unit tests.
19407
19408 2006-12-06  Jackson Harper  <jackson@ximian.com>
19409
19410         * TextControl.cs: Make this operation undoable.
19411         * TextBoxBase.cs: Factor the border width into the preferred
19412         height.
19413         - implement Modified as per the spec.
19414
19415 2006-12-06  Chris Toshok  <toshok@ximian.com>
19416
19417         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
19418
19419 2006-12-06  Chris Toshok  <toshok@ximian.com>
19420
19421         * Control.cs: make right_to_left and context_menu fields private.
19422
19423 2006-12-06  Chris Toshok  <toshok@ximian.com>
19424
19425         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
19426         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
19427         Control.child_controls private.  switch all uses over to
19428         Control.Controls.
19429
19430 2006-12-06  Chris Toshok  <toshok@ximian.com>
19431
19432         * System.Windows.Forms/GroupBox.cs,
19433         System.Windows.Forms/AccessibleObject.cs,
19434         System.Windows.Forms/ErrorProvider.cs,
19435         System.Windows.Forms/Control.cs,
19436         System.Windows.Forms/UpDownBase.cs,
19437         System.Windows.Forms/ScrollBar.cs,
19438         System.Windows.Forms/DateTimePicker.cs,
19439         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
19440         System.Windows.Forms/ToolTip.cs,
19441         System.Windows.Forms/RadioButton.cs,
19442         System.Windows.Forms/LinkLabel.cs,
19443         System.Windows.Forms/Splitter.cs,
19444         System.Windows.Forms/TextBoxBase.cs,
19445         System.Windows.Forms/ToolStripTextBox.cs,
19446         System.Windows.Forms/ContainerControl.cs,
19447         System.Windows.Forms/ThemeWin32Classic.cs,
19448         System.Windows.Forms/SizeGrip.cs,
19449         System.Windows.Forms/ToolStripDropDown.cs,
19450         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
19451         private.  switch all uses over to Control.Parent.
19452
19453 2006-12-06  Chris Toshok  <toshok@ximian.com>
19454
19455         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
19456         Control does this before calling emitting these events.
19457
19458         * TabControl.cs: same.
19459
19460         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
19461         Control.client_rect.
19462
19463         * ButtonBase.cs: use the ClientSize property instead of the
19464         client_size field.
19465
19466         * ScrollableControl.cs: same.
19467
19468         * Control.cs: another pass at making properties private.  also,
19469         move the initialization of tab_stop to the ctor.
19470
19471 2006-12-05  Andreia Gaita <avidigal@novell.com>
19472
19473         * TabControl.cs: Let the selected index be set freely if the 
19474         control handle is not yet created.
19475
19476 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19477
19478         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
19479         internal until I can rewrite DefaultLayout.
19480         * ToolStrip.cs: Fix build error and some general cleaning.
19481         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
19482         Fix build errors caused by making some of Control's fields private.
19483
19484 2006-12-05  Jackson Harper  <jackson@ximian.com>
19485
19486         * TextControl.cs: Redo Insert a little so that it use IndexOf
19487         instead of Split, this prevents it from messing up on things like
19488         \n\n\n. Also more effecient since the split array doesn't need to
19489         be created.
19490         * TextBoxBase.cs: AppendText doesnt handle multiline and non
19491         multiline text differently, this is the first of many fixes that
19492         will make multiline/non-multiline the same thing as far as the
19493         TextBoxBase is concerned.
19494         - Don't split the text and insert lines, this can lose some line
19495         endings (like is the last line a soft or hard break). Instead use
19496         the new Insert.
19497         - Fix an off by one when combining all the lines in the Text
19498         getter.
19499         - Remove separate multiline handling from the Text getter/setter.
19500
19501 2006-12-05  Chris Toshok  <toshok@ximian.com>
19502
19503         * ButtonBase.cs: a few changes:
19504
19505         - don't reinitialize internal Control fields in the ctor when they
19506         have the same values as Control sets them.
19507
19508         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
19509         this before calling those methods.
19510
19511         - we don't need to call Refresh for anything.  use Invalidate
19512         instead.
19513
19514         - OnEnabledChanged doesn't need to redraw at all - Control.cs
19515         calls Refresh in its OnEnabledChanged.
19516         
19517         - several of the events we were registered for in the ctor to
19518         redraw ourselves already include calls to Invalidate in the
19519         property setters that raise the events.  remove the extra
19520         invalidation.
19521
19522         - reformat a switch statement that was 83274658 columns wide.
19523         
19524 2006-12-05  Mike Kestner  <mkestner@novell.com>
19525
19526         * ComboBox.cs: fix a unit test regression from a TextBox
19527         SelectionLength return of -1 when there's no selection.  
19528
19529 2006-12-05  Chris Toshok  <toshok@ximian.com>
19530
19531         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
19532         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
19533         cleaning up some of the internal Control fields being used by
19534         subclasses.
19535
19536 2006-12-05  Mike Kestner  <mkestner@novell.com>
19537
19538         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
19539         listbox after AddImplicit calls since it defaults to hidden. Add a 
19540         hack to preserve requested heights across DropDownStyle changes.
19541
19542 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19543
19544         * PropertyGrid.cs: Hide FindFirstItem method from public API.
19545
19546 2006-12-05  Chris Toshok  <toshok@ximian.com>
19547
19548         * DataGridView.cs: fix compiler warnings.
19549
19550         * PrintControllerWithStatusDialog.cs: same.
19551
19552         * ToolBar.cs: same.
19553
19554         * FolderBrowserDialog.cs: same.
19555
19556         * Splitter.cs: same.
19557
19558         * DataGridViewComboBoxCell.cs: same.
19559
19560         * XplatUIWin32.cs: same.
19561
19562         * PictureBox.cs: same.
19563
19564         * Win32DnD.cs: same.
19565
19566         * PageSetupDialog.cs: same.
19567
19568         * FileDialog.cs: same.
19569
19570         * PrintDialog.cs: same.
19571
19572         * DataGridTextBoxColumn.cs: same.
19573
19574         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
19575
19576 2006-12-05  Chris Toshok  <toshok@ximian.com>
19577
19578         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
19579         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
19580         System.ComponentModel.EventHandlerList work.
19581
19582 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
19583
19584         * DrawTreeNodeEventArgs.cs: Added.
19585
19586 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19587         
19588         * InternalWindowManager.cs: Remove an unused field.
19589         
19590 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19591
19592         * InternalWindowManager.cs:
19593         - Save the point where the title bar is clicked.
19594         
19595         * MdiWindowManager.cs:
19596         - Only allow moving of the window as long as the 
19597         clicked point on the title bar does not get out of
19598         MdiClient's rectangle. Fixes #79982.
19599         
19600         * MdiClient.cs:
19601         - Added Horizontal/VerticalScrollbarVisible.
19602         - Simplified the scrollbar sizing algorithm.
19603         - Cache the difference in scrolled value in
19604         H/VBarValueChanged and move the calculation out
19605         of the for loop.
19606
19607 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19608
19609         * Control.cs: Make the Console.WriteLine in WndProc 
19610         write more info.
19611
19612 2006-12-05  Chris Toshok  <toshok@ximian.com>
19613
19614         * ToolStripManager.cs, ToolStripButton.cs,
19615         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
19616         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
19617         ToolStripSplitButton.cs, ToolStripSeparator.cs,
19618         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
19619         ToolStripProgressBar.cs, ToolStripContainer.cs,
19620         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
19621         to using System.ComponentModel.EventHandlerList.
19622
19623 2006-12-04  Chris Toshok  <toshok@ximian.com>
19624
19625         * LinkLabel.cs: fix up compiler warnings.
19626
19627         * TableLayoutSettings.cs: same.
19628
19629         * TreeView.cs: same.
19630
19631         * ToolBar.cs: same.
19632
19633         * TabControl.cs: same.
19634
19635         * RichTextBox.cs: same.
19636
19637         * ListViewItem.cs: same.
19638
19639         * PropertyGrid.cs: same.
19640
19641         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
19642
19643         * ToolTip.cs same.
19644
19645         * TextRenderer.cs: fix up compiler warnings.
19646
19647         * Label.cs: same.
19648
19649         * Form.cs: corcompare fixes.
19650
19651         * PictureBox.cs: fix up compiler warnings.
19652
19653         * ImageListStreamer.cs: same.
19654
19655         * TrackBar.cs: corcompare fix.
19656
19657         * Control.cs: fix up compiler warnings.
19658
19659         * SplitterPanel.cs: same.
19660
19661         * NumericTextBox.cs: same.
19662
19663         * ImageList.cs: same.
19664
19665         * StatusStrip.cs: same.
19666
19667         * ProgressBar.cs: corcompare fix.
19668
19669         * ToolStripButton.cs: fix up compiler warnings.
19670
19671         * ToolStripStatusLabel.cs: same.
19672
19673         * ToolStripSplitButton.cs: same.
19674
19675         * ToolStripSeparator.cs: same.
19676
19677         * ToolStripProgressBar.cs: same.
19678
19679         * ToolStripDropDownMenu.cs: same
19680
19681         * ToolStripDropDown.cs: same.
19682
19683         * ToolStripDropDownButton.cs: same.
19684
19685         * ToolStrip.cs: same.
19686
19687         * ToolStripControlHost.cs: same.
19688
19689         * ToolStripContentPanel.cs: same.
19690
19691         * ToolStripDropDown.cs: same.
19692
19693         * ToolStripContainer.cs: same.
19694
19695         * ToolStripPanel.cs: same, and add "new" where we need it to work
19696         with the new ArrangedElementCollection.
19697
19698         * ToolStripItemCollection.cs: add "new" where we need it to work
19699         with the new ArrangedElementCollection.
19700
19701 2006-12-04  Andreia Gaita <avidigal@novell.com>
19702
19703         * TabControl.cs: Fix default tab selection to after TabControl
19704         gets focus and not before. Fixes #80128
19705
19706 2006-12-04  Chris Toshok  <toshok@ximian.com>
19707
19708         * DataGridTableStyle.cs: remove the gross calling of
19709         datagrid.Refresh from here.  It's a broken idea and it doesn't
19710         work anyway.
19711
19712         * DataGrid.cs: instead, just register/unregister from the
19713         DataGridTableStyle events in CurrentTableStyle.  we play it
19714         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
19715         even though some would most likely not require it.  Fixes bug
19716         #80115 (and one portion of #80117 as a side effect).
19717
19718 2006-12-04  Chris Toshok  <toshok@ximian.com>
19719
19720         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
19721         so the textbox (if any) goes away.  Fixes bug #80117.
19722
19723 2006-12-04  Chris Toshok  <toshok@ximian.com>
19724
19725         * DataGridColumnStyle.cs: set the column's readonly property
19726         initially based on the property descriptor's IsReadOnly.  Fixes
19727         bug #80044.
19728
19729 2006-12-04  Chris Toshok  <toshok@ximian.com>
19730
19731         * ComboBox.cs: wrap the dropdown style changing work in
19732         SuspendLayout/ResumeLayout.  Fixes bug #79968.
19733
19734 2006-12-04  Jackson Harper  <jackson@ximian.com>
19735
19736         * TextBoxBase.cs: Fix off by one, since these are one-based.
19737         * TextBox.cs: Select all the text when we get focus.  The TextBox
19738         does this but the RTB does not.
19739
19740 2006-12-04  Chris Toshok  <toshok@ximian.com>
19741
19742         * DataGridTextBoxColumn.cs: remove some spew.
19743
19744         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
19745         but some part of me is saying "it shouldn't be here.."  At any
19746         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
19747         setting the value.
19748
19749 2006-12-04  Chris Toshok  <toshok@ximian.com>
19750
19751         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
19752         to reassign the propertydescriptor.
19753
19754 2006-12-04  Jackson Harper  <jackson@ximian.com>
19755
19756         * TextBoxBase.cs:
19757         * TextControl.cs: Remove some unused variables.  Maybe this will
19758         patch things up between mike and I.
19759         - don't split lines less then one char wide, if the viewport is
19760         that small text won't be visible anyways.
19761         
19762 2006-12-04  Jackson Harper  <jackson@ximian.com>
19763
19764         * TextBoxBase.cs: Default selection length is -1, need to do some
19765         more testing on windows to see when this is used for the property.
19766         - Redid the Lines [] property to that we properly remove soft line
19767         breaks
19768         - added support for preserving carriage returns
19769         -  CanUndo is not a variable like 'is undo enabled' it just returns
19770         true if there is undo operations available.
19771         - AppendText doesn't need to grab the last tag itself anymore,
19772         this happens automatically when we move the cursor.
19773         * TextControl.cs: Add CompoundActions to the undo class. This
19774         allows combining the other operations into one big option.  ie a
19775         paste will combine { delete old, insert new, move cursor }
19776         - Add InsertString undo operation
19777         - New method for deleting multiline text
19778         - Add carriage returns to lines. So we can preserve carriage
19779         returns when text is 'roundtripped'
19780
19781 2006-12-04  Chris Toshok  <toshok@ximian.com>
19782
19783         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
19784         minimum 0.  Fixes the scrollbar exception in bug #80136.
19785
19786 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19787
19788         * MdiClient.cs: 
19789         * MdiWindowManager: Removed unused fields and methods.
19790         
19791 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19792         
19793         * StatusBar.cs: Update all panels when a AutoSize=Contents
19794         panel needs updating.
19795         
19796         * StatusBarPanel.cs: Remove twidth and only use initialize.
19797         Fixes #80031.
19798                 
19799 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19800
19801         * Form.cs: When a form's MdiParent is set add it directly
19802         on top of the z-order in stead of relying on MdiClient's
19803         ActivateChild to do it. Fixes #80135.
19804         
19805         * MdiClient.cs: 
19806         - Remove original_order, mdi_child_list is already doing
19807         the same thing.
19808         - Create mdi_child_list on construction in
19809         stead of first use (avoids a few null checks).
19810
19811         * MenuItem.cs: Use an already existing list of mdi children
19812         to get the correct order of children and remove the other
19813         redundant list.
19814
19815 2006-12-04  Chris Toshok  <toshok@ximian.com>
19816
19817         * PropertyGridView.cs: cached_splitter_location is only used in
19818         !DOUBLEBUFFER code.
19819
19820         * PropertyGrid.cs: implement the ComComponentNameChanged event
19821         using Events, hoping that would fix the warning.  Looks like a
19822         compiler bug instead (#80144).
19823
19824         * PropertyManager.cs: remove unused method.
19825
19826 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
19827
19828         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
19829         include parentesis to fix expression evaluation. Fixes #79634.
19830
19831 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
19832         
19833         * MenuAPI.cs:
19834         - Changes to fix behavior in Menu control, some reported in #80097
19835         and other detected during behavior refactory like a select event
19836         problems.
19837         - Remove unneded "if's" conditions.
19838         - Created an internal to flag when popup is active in control, we need 
19839         it because in .NET you can have menu active but without popup active
19840         when you active menu using popup without visible items.
19841         - Mimic win32 behavior for Select and Popup events.  
19842         - Dont open popup menu when you dont have visible subitems.
19843         - Do nothing when click on disabled menu item.
19844         - Some small changes to follow the coding style guidelines.
19845         - Unselect menu only when another control gives focus. Fixes #80097.
19846         - Remove unused code.
19847         
19848         * MenuItem.cs: internal VisibleItems method to check if menu
19849         theres visible subitems, it will be usefull to fix some 
19850         behavior in Menu control.
19851         
19852 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
19853         
19854         * Timer.cs: Tag property for 2.0 profile.
19855         
19856 2006-12-01  Chris Toshok  <toshok@ximian.com>
19857
19858         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
19859         
19860         * Win32DnD.cs: comment out some unused fields.
19861
19862         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
19863         some unused properties/methods.
19864
19865         * XplatUIX11.cs: fix MousePosition so we override the base class's
19866         property instead of conflicting with it.
19867
19868         * PictureBox.cs: comment out some unused fields
19869
19870         * OSXStructs.cs: make some struct fields public.
19871
19872         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
19873         MousePosition so we override the base class's property instead of
19874         conflicting with it.
19875
19876         * X11Dnd.cs: comment out some unused fields
19877
19878         * X11DesktopColors.cs: fix some struct field visibility to quiet
19879         the compiler.
19880
19881         * X11Dnd.cs: remove some debug code.
19882
19883         * ThemeClearlooks.cs: comment out unused field.
19884
19885         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
19886
19887         * ThemeGtk.cs: comment out some unused pinvokes.
19888
19889         * Timer.cs: remove some unused fields.
19890
19891         * ThemeClearlooks.cs: comment out unused field.
19892
19893         * UpDownBase.cs: comment out unused field.
19894
19895         * DataObject.cs: comment out unused field.
19896
19897         * DataGridBoolColumn.cs: reomve unused field.
19898
19899         * DataGrid.cs: remove unused field.
19900
19901         * Cursor.cs: remove old ToBitmap code.
19902
19903         * ControlPaint.cs: remove unused method.
19904
19905         * ScrollBar.cs: remove unused fields.
19906
19907         * ComboBox.cs: remove unused field, and chain up to
19908         AccessibleObject ctor.
19909
19910         * ListBox.cs: remove unused field.
19911
19912         * ButtonBase.cs: wrap a couple fields in NET_2_0.
19913
19914         * GridEntry.cs: remove unused fields.
19915
19916         * Binding.cs: remove unused fields.
19917
19918         * AxHost.cs: remove unused method.
19919
19920         * ContainerControl.cs: remove unused field.
19921
19922         * ScrollableControl.cs: remove unused fields.
19923
19924 2006-12-01  Chris Toshok  <toshok@ximian.com>
19925
19926         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
19927         the Where/WhereString stuff.  it's easy enough to CWL
19928         Environment.StackTrace.
19929
19930         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
19931         unused private fields.
19932
19933 2006-12-01  Jackson Harper  <jackson@ximian.com>
19934
19935         * TextControl.cs: Do not update the view while inserting multiline
19936         text. If we update the view we might wrap lines, before entering
19937         the new lines, which causes the new line insertion calculations to
19938         be totally fubared.
19939         - Remove an old TODO
19940         - Make debug output a little nicer
19941         
19942 2006-12-01  Chris Toshok  <toshok@ximian.com>
19943
19944         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
19945
19946 2006-12-01  Chris Toshok  <toshok@ximian.com>
19947
19948         [ fix the majority of the CS0108 warnings we've been suppressing ]
19949         
19950         * TreeView.cs: mark BackgroundImageChanged as 'new'.
19951
19952         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
19953         to "LayoutToolBar" to quiet mcs.
19954         
19955         * TabControl.cs: mark our ControlCollection class as 'new'.
19956
19957         * TextBoxBase.cs: mark some events as 'new'.
19958
19959         * Splitter.cs: TabStop is 'new'.
19960
19961         * ControlBindingsCollection.cs: mark a few methods as new since
19962         they change the visibility from protected to public.
19963
19964         * RadioButton.cs: DoubleClick -> base class, and remove unused
19965         HaveDoubleClick.
19966
19967         * MonthCalendar.cs: ImeMode property -> base class, and mark many
19968         events as new.
19969
19970         * NumericUpDown.cs: TextChanged -> base class.
19971
19972         * CheckedListBox.cs: mark our ObjectCollection class as new to
19973         quiet mcs.
19974
19975         * FolderBrowserDialog.cs: make HelpRequest event new and have it
19976         muck with the base class.
19977
19978         * StatusBar.cs: fix some mcs warnings about Update being the same
19979         name as a base class method.
19980
19981         * RichTextBox.cs: mark some events as new, and make them do things
19982         to the base class impl.
19983
19984         * UserControl.cs: mark TextChanged as new, and have it manipulate
19985         base.TextChanged.
19986
19987         * UpDownBase.cs: mark some things new.
19988
19989         * CheckBox.cs: mark DoubleClick "new", and add some text about
19990         what we need to look at.
19991
19992         * Panel.cs: make the events "new", and manipulate the base
19993         version.  these are just here for attributes.
19994
19995         * AccessibleObject.cs: make owner private.
19996
19997         * Control.cs: deal with AccessibleObject.owner being private.
19998         cache our own copy if we need it.
19999
20000         * Button.cs: add "new" to the DoubleClickEvent.
20001
20002         * ListBox.cs: no need to track our own has_focus here.  let
20003         Control.has_focus do it for us.  Also some other work to clear up
20004         warnings about not overriding base class methods of the same name.
20005         
20006         * ComboBox.cs: clear up some warnings about not override base
20007         class methods of the same name.
20008
20009 2006-12-01  Chris Toshok  <toshok@ximian.com>
20010
20011         * Form.cs: flag a few things as "new" to quiet some of the mcs
20012         warnings.
20013
20014         * AxHost.cs: same.
20015
20016         * PrintPreviewDialog.cs: same.
20017
20018         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
20019         now DGV isn't so horrible on the class status page.  also, move
20020         all events to using System.ComponentModel.EventHandlerList.  my
20021         wrists hurt.
20022
20023 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20024
20025         * MdiWindowManager.cs:
20026         - Set form to active mdi child if shown,
20027         and update the active mdi child to the next 
20028         remaining child in the z-order if the form is hidden.
20029
20030         * Form.cs: 
20031         - Track if the form has been visible and if its 
20032         visibility is beeing changed, so that the MdiClient
20033         can properly decide the ActiveMdiChild. The MdiClient 
20034         cannot track this since the form can change visibility 
20035         before MdiClient is created.
20036
20037         * MdiClient.cs:
20038         - Don't activate anything of the parent form is changing
20039         its visibility.
20040         - Rework ActiveMdiChild to only return visible mdi 
20041         children and take into account several other corner 
20042         cases.
20043
20044 2006-12-01  Chris Toshok  <toshok@ximian.com>
20045
20046         * IBindableComponent.cs: new 2.0 interface.
20047
20048 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
20049
20050         * DataGrid.cs: Font for caption area is bold by default.
20051
20052 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
20053
20054         * Menu.cs: Tag property for 2.0.
20055         
20056 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
20057
20058         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
20059         
20060 2006-12-01  Chris Toshok  <toshok@ximian.com>
20061
20062         * TreeView.cs: doh, the Begin* events should be
20063         TreeViewCancelEventHandler.
20064
20065 2006-12-01  Chris Toshok  <toshok@ximian.com>
20066
20067         * Form.cs: Form.ControlCollection already stores off the
20068         form_owner field.  don't access the base class's internal "owner"
20069         field.
20070
20071         * Control.cs: make all the fields in Control.ControlCollection
20072         private.  there's no need for any internal fields here.
20073
20074 2006-12-01  Chris Toshok  <toshok@ximian.com>
20075
20076         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
20077         OnHandleCreated.  Fixes bug #80109.
20078
20079 2006-12-01  Chris Toshok  <toshok@ximian.com>
20080
20081         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
20082         SplitContainer.cs, Control.cs, StatusStrip.cs,
20083         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
20084         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
20085         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
20086         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
20087         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
20088         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
20089         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
20090         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
20091         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
20092         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
20093
20094         do most of the work to convert our code over to use
20095         System.ComponentModel.Component.Events for
20096         adding/removing/dispatching events.
20097
20098
20099 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20100
20101         * DataGridView.cs: Fix an ArgumentNullException reported 
20102         twice today in IRC.
20103
20104 2006-11-30  Mike Kestner  <mkestner@novell.com>
20105
20106         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
20107         grabbed listbox.  Fixes #80036 and #80101.
20108
20109 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20110
20111         * Message.cs: Changed ToString() to match MS.
20112         
20113 2006-11-30  Jackson Harper  <jackson@ximian.com>
20114
20115         * TextBoxBase.cs: You can still change the selected text on a read
20116         only textbox.
20117         * TextControl.cs: Lower magic number for wrap calculations. This
20118         lets text get closer to the right (far) edge.
20119
20120 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20121
20122         * Control.cs: Tweak 2.0 layout properties.
20123         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
20124         * TextRenderer.cs: Add a new overload.
20125         * ToolStrip*: Huge amount of changes and new features.
20126
20127 2006-11-30  Mike Kestner  <mkestner@novell.com>
20128
20129         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
20130         scroll range correct.  Fixes #79994.
20131
20132 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20133
20134         * MdiWindowManager.cs: Update main form's text when
20135         a form is closed. (fixes #80038)
20136         
20137 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
20138
20139         * ToolBar.cs:
20140         - Fix an regression in ButtonSize.
20141         - Get ImeMode default value change to "Disable".
20142         - Get ShowTooltips default value change to true, default value is 
20143         "false" but after make a test in .NET we get "true" result as default.
20144         
20145 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
20146
20147         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
20148
20149 2006-11-29  Chris Toshok  <toshok@ximian.com>
20150
20151         * XplatUIWin32.cs (GetWindowTransparency): check return value of
20152         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
20153         SetWindowTransparency hasn't been called.
20154
20155 2006-11-29  Chris Toshok  <toshok@ximian.com>
20156
20157         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
20158         if it's supported.
20159         (set_AllowTransparency): reorder things a little so that the
20160         WS_EX_LAYERED style is removed properly.
20161
20162 2006-11-29  Chris Toshok  <toshok@ximian.com>
20163
20164         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
20165         
20166         * Form.cs: only call the XplatUI transparency method (get/set) if
20167         SupportsTransparency says it's supported. Otherwise fallback to
20168         doing nothing (in the set case) or returning the instance field we
20169         cache (in the get case).
20170
20171         * XplatUIStructs.cs: add TransparencySupport flag enum.
20172         
20173         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
20174         change to SupportsTransparency.
20175
20176         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
20177         TransparencySupport.None from SupportsTransparency.
20178
20179         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
20180         TransparencySupport.Set from SupportsTransparency.
20181
20182         * XplatUIWin32.cs: implement GetWindowTransparency calling
20183         GetLayeredWindowAttributes, and implement SupportsTransparency by
20184         checking whether or not both
20185         GetWindowTransparency/SetWindowTransparency are available
20186         entrypoints.  We need to do this since SetWindowTransparency is
20187         available as of win2k, but GetWindowTransparency requires winxp.
20188         yay win32 api.
20189
20190         * XplatUI.cs: Add GetWindowTransparency, and change
20191         SupportsTransparency to allow for either/both Get/Set.
20192
20193 2006-11-29  Chris Toshok  <toshok@ximian.com>
20194
20195         * DataGrid.cs: keep from going into an infinite loop redrawing a
20196         datagrid that has no datasource.  Fixes bug #80033.
20197
20198 2006-11-29  Chris Toshok  <toshok@ximian.com>
20199
20200         * MenuItem.cs: fix the NRE when we assign text (and therefore call
20201         Invalidate) before the mainmenu has been assigned to a control.
20202
20203 2006-11-29  Chris Toshok  <toshok@ximian.com>
20204
20205         * DataGrid.cs: detect when we should be double the double click
20206         row/column autosize stuff, although that codepath has yet to be
20207         written.  part of the work for bug #79891.
20208
20209 2006-11-29  Chris Toshok  <toshok@ximian.com>
20210
20211         * Binding.cs (SetControl): fix unit test.
20212
20213 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20214
20215         * PageSetupDialog.cs: Validate the margins and set them in
20216         PageSettings. 
20217         * NumericTextBox.cs: New class to mimic the behavior of the
20218         textboxes used in the printing dialogs.
20219
20220 2006-11-29  Andreia Gaita  <avidigal@novell.com>
20221         
20222         * Form.cs: Revert previous change (remove call UpdateBounds
20223         from form constructor), because it messes with the handle creation
20224         order, and that one needs lots and lots of love.
20225         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
20226         for valid printer and throw InvalidPrinterException if document
20227         is set but printer not valid), adding a MonoTODO. Once 
20228         handle creation is done properly, we can put this back in.
20229
20230 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20231
20232         * MenuItem.cs: Create a invalidate method for menu item, to be
20233         calling from set text, it make text changes to imadiate update
20234         on screen. Fixes #80013. 
20235         
20236 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20237
20238         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
20239         fixes bug #80070 and some other problem on toolbar buttons
20240         layout.
20241
20242 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20243
20244         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
20245         with dotted brush.      Fixes #79564
20246         
20247 2006-11-28  Andreia Gaita  <avidigal@novell.com>
20248
20249         * Form.cs: Removed call to UpdateBounds on Form
20250         constructor, it was causing a call to CreateHandle
20251         before it was supposed to.
20252         * PrintControllerWithStatusDialog: Applied patch
20253         by Chris Toshok to hide controller when there are
20254         no printers available.
20255         PrintDialog.cs: initialize printer settings to 
20256         null - correct DefaultValues test #5
20257         * PrintPreviewControl.cs: Move PrintController
20258         initialization to GeneratePreview
20259         * PrintPreviewDialog.cs: 
20260         - Remove Preview generation     from Document_set(). It is 
20261         called on OnPaint
20262         - Throw InvalidPrinterException on CreateHandle if
20263         a Document is set but there are no printers or 
20264         printer is not valid.
20265         * ThemeWin32Classic: don't paint PrintPreviewControl
20266         if there is nothing to paint    
20267
20268 2006-11-28  Miguel de Icaza  <miguel@novell.com>
20269
20270         * Form.cs: Add another popular method.
20271
20272         * TabPage.cs: ditto.
20273
20274 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20275
20276         * MenuItem.cs: Fixed a warning.
20277         * InternalWindowManager: Fixed a warning.
20278
20279 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20280
20281         * MenuItem.cs:
20282         - When cloning a menu also clone MdiList and clone the 
20283           window menu items properly (as the forms and menuitems
20284           are kept in an internal hashtable, these need updating 
20285           as well)
20286         - Rewrote the window menu code, menu items are added in the
20287           order the forms were added to their parent, and they are
20288           updated every time the window menu is shown (before the
20289           list was only generated once, in the current order of the
20290           forms, and would never be updated). A checkmark is shown
20291           next to the item corresponding to the active mdi child.
20292
20293 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20294
20295         * XplatUIStructs.cs: 
20296         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
20297         
20298         * XplatUIWin32.cs: 
20299         - Added TME_NONCLIENT to TMEFlags.
20300         - Handles WM_NCMOUSEMOVE in GetMessage to 
20301           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
20302
20303         * MdiWindowManager:
20304         - Now merges mdi child menu to parent menu when maximized.
20305         - Recalculate NC areas of both mdi child and mdi parent. 
20306           Fixes #79757 (4).
20307           on window state and size changes.Fixes #79844 (3).
20308         - Handle WM_NCCALCSIZE to properly calculate borders.
20309
20310         * Form.cs:
20311         - Add/remove to the mdi containers list of mdi children 
20312           in the order they are added.
20313         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
20314           to the maximized mdi child.
20315         
20316         * InternalWindowManager.cs:
20317         - Only execute a click on the control buttons on the mouse up,
20318           not on the mouse down. Show the state of the button 
20319           (was only showing Normal state, never Pressed state). The
20320           pressed button now follows the mouse (if you click the Close 
20321           button and move the mouse over the Maximize button, the 
20322           Maximize button will be shown as pressed). Since Win32 does
20323           not generate WM_NCLBUTTONUP if you release the button outside
20324           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
20325           it as a mouse up.
20326         
20327         * ThemeWin32Classic.cs:
20328         - Draw a missing border around mdi child forms. Fixes #79844 (2).
20329
20330         * MdiClient.cs:
20331         - Added a list of forms which contains the order the forms are
20332           added to the mdi parent.
20333         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
20334         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
20335         - If the active form changes set the scrollbars to the top
20336           of the Z order, otherwise the form could hide them.
20337         - Scrollbars are now sized according to ClientSize, not 
20338           to Size, and they take into account the other scrollbar
20339           to determine maximum.
20340         
20341 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
20342         
20343         * XplatUI.cs:
20344         * XplatUIDriver.cs:
20345         * XplatUIX11.cs:
20346         * XplatUIWin32.cs:
20347         * XplatUIOSX.cs:
20348         - Added RequestAdditionalWM_NCMessages for windows to 
20349           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
20350           Currently only implemented in XplatUIWin32.
20351
20352 2006-11-27  Chris Toshok  <toshok@ximian.com>
20353
20354         * Hwnd.cs: only add the hwnd to the windows hash in
20355         set_WholeWindow and set_ClientWindow if whole_window/client_window
20356         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
20357
20358 2006-11-27  Mike Kestner  <mkestner@novell.com>
20359
20360         * ComboBox.cs: remove redundant OnDropDown call.  It is called
20361         from the ComboListBox.ShowWindow code. Fixes #79969.
20362
20363 2006-11-27  Chris Toshok  <toshok@ximian.com>
20364
20365         * Hwnd.cs: remove the setters for ExposePending and
20366         NCExposePending - noone uses them.
20367
20368 2006-11-27  Jackson Harper  <jackson@ximian.com>
20369
20370         * TextControl.cs: new param for ReplaceSelection which determines
20371         whether we select the new selection, or set the cursor to the end
20372         of the new selection.
20373         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
20374         pasting, select the new text.
20375         * RichTextBox.cs: Use new param for ReplaceSelection.
20376
20377 2006-11-27  Jackson Harper  <jackson@ximian.com>
20378
20379         * TextBoxBase.cs: Set the selection to the caret after the caret
20380         is moved, otherwise they get out of sync.
20381
20382 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
20383
20384         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
20385         it fixes #80015
20386
20387 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
20388
20389         * ThemeWin32Classic.cs: 
20390         - Fix toolbar drop down arrow position.
20391         - Fix drop down appearance when ToolBar.Appearance is normal,
20392         it fixes #80018.
20393         
20394 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
20395
20396         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
20397         * Control.cs: Same.
20398         * UpDownBase.cs: Same.
20399         * ButtonBase.cs: Same.
20400         * ScrollBar.cs: Same.
20401         * TrackBar.cs: Same.
20402         * PictureBox.cs: Same.
20403         * UserControl.cs: Same.
20404         * Label.cs: Same.
20405         * ListControl.cs: Same.
20406         * TextBoxBase.cs: Same.
20407         * ListView.cs: Same.
20408         * RichTextBox.cs: Same.
20409         * TreeView.cs: Same.
20410
20411 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
20412
20413         * PrintDialog.cs:
20414         - Text label for where 
20415         - Text label comment was not shown
20416
20417 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
20418
20419         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
20420
20421 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20422
20423         * InternalWindowManager.cs: 
20424         - Handle WM_PARENTNOTIFY to activate the form
20425         if any child control is clicked.
20426         - The form is only sizable if not minimized.
20427
20428         * MdiWindowManager.cs:
20429         - Save the IconicBounds if the form is moved.
20430         - Rework SetWindowState, now the window bounds 
20431         are stored only if the old window state is Normal.
20432         
20433         * MdiClient.cs:
20434         - In SetWindowStates store the old window state if 
20435         the window is maximized and restore window state if
20436         the window looses focus.
20437         - Don't handle any scrollbar value changes if 
20438         initializing the scroll bars. Fixes #79771.
20439         - Reworked ArrangeIconicWindows. Current algorithm
20440         tests bounds agains all other minimized windows, if
20441         any intersections create new bounds (going left to 
20442         right, bottom to top) and then test again. When 
20443         successful the bounds are saved and never computed
20444         again. Fixes #79774.
20445
20446 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20447
20448         * InternalWindowManager.cs: Added HandleTitleBarUp.
20449
20450 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20451
20452         * NumericUpDown.cs: In .NET 1.1, user entered text is still
20453         hexadecimal in ParseUserEdit.
20454
20455         
20456 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20457
20458         * MdiWindowManager.cs: 
20459         - Handle a click on the form's icon to show the 
20460         system menu (when maximized). Fixes #79775.
20461         - Change the existing click handler for the form's
20462         icon when not maximized to show on MouseUp.
20463         Fixes #79776.
20464
20465         * Form.cs: In OnResize only layout the mdi child's
20466         parent if it actually has a parent. Might not if
20467         the window is closing.
20468
20469
20470 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20471
20472         * MdiClient.cs: Ignore active MDI client for text of parent, if
20473         child has no text set.
20474
20475 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20476
20477         * ToolBar.cs: Fixed ToString to match MS.
20478
20479 2006-11-22  Andreia Gaita  <avidigal@novell.com>
20480
20481         * NumericUpDown: 
20482         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
20483         update inner values on set. Fixes #79966.
20484         - Override OnLostFocus to update value on NET 2. Fixes #79950.
20485         - Fix hexadecimal parsing.
20486         
20487         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
20488         parent. Fixes #79957
20489
20490 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20491
20492         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
20493         the actual size has to be queried, since if height /
20494         width is negative Win32 changes it to 0. 
20495         Fixes #79999 on Windows.
20496         
20497         * XplatUIX11.cs: Set height / width to 0 if negative
20498         in SetWindowPos. Fixes #79999 on Linux.
20499         
20500 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20501
20502         * ThemeWin32Classic.cs: Fix text redenring when button is
20503         pressed.
20504
20505 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20506
20507         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
20508         and later navigate by mouse. Fixes #79528.
20509
20510 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20511
20512         * ToolBar.cs: Set default value for TabStop to false in
20513         constructor, it fixes remaining behavior of bug #79863.
20514
20515 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20516
20517         * MdiWindowManager.cs:
20518         * InternalWindowManager.cs:
20519         - Moved a few methods specific to Mdi from 
20520         InternalWindowManager to MdiWindowManager.
20521         Fixes #79996.
20522         
20523 2006-11-21  Chris Toshok  <toshok@ximian.com>
20524
20525         * XplatUIOSX.cs: stub out InvalidateNC.
20526
20527         * XplatUIWin32.cs: implement InvalidateNC using the call I found
20528         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
20529
20530         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
20531
20532         * XplatUIDriver.cs: add InvalidateNC abstract method.
20533
20534         * XplatUI.cs: add InvalidateNC.
20535
20536 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20537
20538         * ToolBar.cs: Invalidate complete button area when pressed status 
20539         was changed.
20540         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
20541         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
20542         by 1 when button is pressed.
20543
20544 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20545
20546         * ToolButton.cs: Invalidate middle of DropDown button when
20547         ToolBar theres DropDownArrows.
20548         * ThemeWin32Classic.cs: Change position of DropDown arrow and
20549         fix DropDown drawing operations.
20550
20551 2006-11-20  Chris Toshok  <toshok@ximian.com>
20552
20553         * NativeWindow.cs: fix the formatting of functions ('{' on the
20554         following line), and enable the thread exception dialog.
20555
20556         * Application.cs: remove the duplicate exception catching from
20557         here.
20558
20559 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20560
20561         * Toolbar.cs: Triggers button click event when click on icon
20562         of dropdown ToolBarButton. Fixes #79912.
20563         
20564 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20565
20566         * Theme.cs:
20567         * ThemeWin32Classic.cs:
20568         - Added a property WindowBorderFont to enable themeing
20569           of mdi child windows' Text.
20570           
20571 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20572
20573         * InternalWindowManager.cs:
20574         * Form.cs:
20575         * MdiClient.cs:
20576         * MdiWindowManager.cs: 
20577         - If mdi child is maximized, set mdi parent's
20578           text to "Parent - [Child]". Fixes #79770.
20579         - If there is any maximized mdi child windows, only the active 
20580           window (and any new windows) is maximized, the rest are normal.
20581         - On a WindowState change only save mdi child's window bounds 
20582           if the old window state was normal. Fixes #79774.
20583         - The scroll bars are now calculated on hopefully all
20584           necessary events. Fixed #79771 / #79844->6 / #79906.
20585         - MdiClient.SizeScrollBars() now takes into account docked 
20586           controls in the parent when calculating available space.
20587         - InternalWindowManager now always repaints the entire title
20588           area. Fixes #79844->1/4/5.
20589         - Added RequestNCRecalc on mdi child windowstate changes.
20590           Fixes #79772.
20591
20592 2006-11-20  Mike Kestner  <mkestner@novell.com>
20593
20594         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
20595         in the MouseUp handler of the listbox and move the return handling
20596         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
20597
20598 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20599
20600         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
20601
20602 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20603
20604         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
20605           working in 1.2.x anymore. So, updated.
20606
20607 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
20608
20609         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
20610         NumberGroupSeparator of current culture instead of assuming en-US.
20611         Fixed bug #79967.
20612
20613 2006-11-17  Mike Kestner  <mkestner@novell.com>
20614
20615         * Control.cs: Add the concept of implicit bounds setting so that
20616         dock/undock round trips preserve explicitly set size/locations.
20617         Fixes #79313.
20618
20619 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20620
20621         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
20622           can't handle those filters. (Fixes bug #79961)
20623
20624 2006-11-17  Chris Toshok  <toshok@ximian.com>
20625
20626         [ fixes the exit/crashes associated with #79835.  it's clearly
20627         suboptimal though, we need to figure out a better way to solve
20628         this. ]
20629         
20630         * PrintPreviewControl.cs: deal with the new invalid printer
20631         exceptions.
20632
20633         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
20634         and return false (so CommonDialog.ShowDialog doesn't actually show
20635         the form.)
20636
20637         * PrintDialog.cs: enable/disable the Ok button depending on
20638         whether or not the printer is valid.
20639
20640         * CommonDialog.cs (ShowDialog): only actually show the form if
20641         RunDialog returns true.
20642
20643 2006-11-17  Jackson Harper  <jackson@ximian.com>
20644
20645         * TextControl.cs: When soft splitting a line, mark it as a soft
20646         split line. Also carry over the current line break to the next
20647         line.
20648
20649 2006-11-17  Chris Toshok  <toshok@ximian.com>
20650
20651         * XplatUIX11.cs: when scrolling a window with an invalid area, we
20652         only want to shift the part of the invalid area that overlaps the
20653         area we're scrolling.  we also don't want to clear the invalid
20654         area unless the invalid area was entirely contained within the
20655         scrolling area.
20656
20657 2006-11-16  Chris Toshok  <toshok@ximian.com>
20658
20659         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
20660         also make sure to free the memory returned by XGetWindowProperty
20661         in GetText().
20662
20663         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
20664
20665 2006-11-16  Chris Toshok  <toshok@ximian.com>
20666
20667         * XplatUI.cs: add a new super secret way to get at the totally
20668         unsupported X11 backend.
20669
20670 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
20671
20672         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
20673
20674 2006-11-16  Jackson Harper  <jackson@ximian.com>
20675
20676         * TreeView.cs: Allow more explicit setting of top node position
20677         for scrollbars. Slower algo, but more accurate.
20678         - CollapseAll should maintain the current top node.
20679         * TextBoxBase.cs: When positioning the caret, use the line, pos
20680         method, since the x, y method does not grab the correct tag, and
20681         the caret height never gets set correctly. (Maybe I should just do
20682         away with the caret having its own height, and always use the
20683         carets current tag for height).
20684
20685 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
20686
20687         [Fixes 79778, 79923]
20688
20689         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
20690         Parent to the FosterParent instead.
20691
20692 2006-11-16  Jackson Harper  <jackson@ximian.com>
20693
20694         * TreeView.cs: Need to recalc the topnode when we expand or
20695         collapse. The scrolling methods can't handle this on their own,
20696         since they use differences between the last scroll position, and
20697         those difference get completely messed up since we are expanding
20698         nodes.  This problem should probably be fixed in the scrolling
20699         methods, so they can figure out exactly where they are, but this
20700         will slow things down a little.
20701         * ThemeWin32Classic.cs: Special case for groupboxes with empty
20702         strings, makes nunit-gui look a lot nicer.
20703
20704 2006-11-16  Chris Toshok  <toshok@ximian.com>
20705
20706         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
20707         the broken multithreaded event handling we have in here.  File
20708         this entry under "Why we should move to the new X11 backend".
20709
20710         Any thread can make it into UpdateMessageQueue, which gets events
20711         from the X socket - some of which could belong to hwnds being
20712         managed by a different thread.  We can also have multiple threads
20713         in UpdateMessageQueue at the same time, with each one reading from
20714         the X socket.  This leads to many problems, with the following
20715         solutions:
20716
20717         We can't use hwnd.Queue.Enqueue anywhere in here and must use
20718         EnqueueLocked.
20719
20720         The MotionNotify compression we do can't work across threads
20721         (without locking the entire queue, perhaps) since we call
20722         hwnd.Queue.Peek, so we just punt and don't compress motion events
20723         unless the owning thread is the one which got the X event.
20724
20725         ConfigureNotify is another fun one, since it modifies the hwnd's
20726         bounds and then enqueues the event.  We add a lock to Hwnd which
20727         is held when setting configure_pending to true (and enqueuing the
20728         event).
20729
20730         There is a race wrt the wake socket.  we need to make sure that
20731         only 1 thread is waiting on that socket, or else a thread could
20732         sleep waiting for data that never comes.  It's difficult (but not
20733         impossible) to make happen, because it seems to require something
20734         like the following:
20735
20736             1. Thread 1 polls on wake_receive
20737         
20738             2. poll returns saying there's data to be read on
20739                wake_receive.
20740         
20741             3. Thread 2 polls on wake_receive and immediately returns
20742                saying there's data to be read.
20743
20744             4. Thread 2 reads the wakeup byte from wake_receive
20745
20746             5. Thread 1 attempts to read the wakeup byte from
20747                wake_receive.
20748
20749             6. Thread 2 exits (due to a form closing, perhaps).
20750
20751             7. Thread 1 blocks forever.
20752         
20753         Fun, eh?
20754
20755         Fixing the Expose handling isn't done yet, and the races inherent
20756         in that piece of code are responsible for the drawing mistakes you
20757         see when generating expose events in a MT app (like NPlot).  This
20758         one is the likely to be the hardest to bandaid, and it doesn't
20759         appear to cause anything but drawing problems.  The other issues
20760         caused apps to exit or hang.
20761
20762         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
20763         called from a different thread than the one that should be calling
20764         these functions.
20765
20766         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
20767
20768 2006-11-15  Chris Toshok  <toshok@ximian.com>
20769
20770         * Application.cs: null out the context's MainForm when we exit
20771         RunLoop.  Fixes a newly checked in unit test as well as the last
20772         ODE from bug #79933.
20773
20774 2006-11-15  Chris Toshok  <toshok@ximian.com>
20775
20776         * Form.cs (set_Owner): allow a null value so we can clear the
20777         form's owner.
20778         (Dispose): set all our owned_form's Owner properties to null, and
20779         clear the owned_forms collection.
20780         (WM_CLOSE): clean up this a little bit.. still not right though.
20781
20782         * ApplicationContext.cs: OnMainFormClosed should only call
20783         ExitThreadCore if the main form isn't recreating.  Fixes unit
20784         test.
20785
20786 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20787
20788         [Fixes 78346]
20789
20790         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
20791
20792 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20793
20794         [Fixes 79433]
20795
20796         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
20797         keep popup window types from stealing focus from the main form
20798         on Windows.
20799
20800         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
20801
20802         * MenuAPI.cs: Set above flag to true.
20803
20804 2006-11-15  Chris Toshok  <toshok@ximian.com>
20805
20806         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
20807         the button being released is not in wParam.
20808
20809 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
20810
20811         * Form.cs: Add the released button to MouseEventArgs.Button
20812         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
20813         on Win32.
20814
20815 2006-11-15  Chris Toshok  <toshok@ximian.com>
20816
20817         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
20818         GetText().  untested because it's unused in our implementation.
20819         Control.Text always caches the text, even if
20820         ControlStyles.CacheText is not set.
20821
20822         fixes bug #79939.
20823
20824 2006-11-15  Chris Toshok  <toshok@ximian.com>
20825
20826         [ fixes #79933 ]
20827         
20828         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
20829         message.  no hiding, no disposing.
20830
20831         in the WM_CLOSE handler, hide the form if it's modal.
20832
20833 2006-11-15  Chris Toshok  <toshok@ximian.com>
20834
20835         * XplatUIX11.cs: use AddExpose instead of sending a message.
20836         fixes textbox border drawing.
20837
20838 2006-11-15  Chris Toshok  <toshok@ximian.com>
20839
20840         * PropertyGridView.cs: keep from crashing on mouse move/down when
20841         the property grid is empty.
20842
20843 2006-11-14  Jackson Harper  <jackson@ximian.com>
20844
20845         * TextControl.cs: Make PageUp and PageDown more like the MS
20846         versions.
20847         * TextBoxBase.cs: When we set the text property position the
20848         cursor at the beginning of the document.
20849
20850 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20851
20852         * Form.cs: if a mdi child's WindowState has changed
20853         before it's creation, it would display wrong control
20854         buttons.
20855         
20856 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
20857
20858         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
20859           (Fixes bug #79927)
20860
20861 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
20862
20863         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
20864         the window gets to paint its borders even if the window is
20865         getting smaller.
20866         
20867         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
20868         otherwise the old control buttons would still be painted 
20869         if the window gets bigger.
20870         
20871         * PaintEventArgs.cs: add an internal method so that the clip 
20872         rectangle can be changed.
20873         
20874 2006-11-13  Chris Toshok  <toshok@ximian.com>
20875
20876         [ fixes bug #79745 ]
20877         
20878         * NotifyIcon.cs: lots of cleanup.
20879
20880         * X11Structs.cs: add an enum for XEMBED messages.
20881
20882         * XplatUIX11.cs: reindent one of the giant switch statements, it
20883         was taking up an additional tab stop, and this file is already way
20884         too wide for my laptop's screen.
20885
20886         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
20887         we get it, resize the hwnd to the WMNormalHints max_width/height.
20888
20889 2006-11-13  Jackson Harper  <jackson@ximian.com>
20890
20891         * TextBoxBase.cs: Compute the value changes for the mouse wheel
20892         teh simple way.
20893
20894 2006-11-13  Chris Toshok  <toshok@ximian.com>
20895
20896         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
20897         #79898.  force a reference to the Region to stick around so the
20898         unmanaged object isn't collected (rendering our handle in the MSG
20899         stale).
20900
20901 2006-11-13  Chris Toshok  <toshok@ximian.com>
20902
20903         * XplatUIX11.cs: fix #79917 for window managers which support
20904
20905         using XStoreName on the raw utf8, and we need to convert to
20906         COMPOUND_TEXT if it's non-latin1.
20907
20908 2006-11-13  Chris Toshok  <toshok@ximian.com>
20909
20910         * Form.cs (set_DialogResult): we need to set closing to false if
20911         we're setting our result to None.  fixes bug #79908.
20912
20913 2006-11-13  Jackson Harper  <jackson@ximian.com>
20914
20915         * TextControl.cs: When formatting text, compute the adjusted tag
20916         lengths correctly, using FindTag for the end tag instead of trying
20917         to figure it out outselves.
20918         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
20919         the item, ItemHeight doesn't work, because trees with large
20920         imagelists use those for their height
20921         * TreeView.cs: ActualItemHeight factors in the image height
20922         - compute left edge of checkboxes correctly
20923         - when expanding/collapsing move the bottom down one pixel, so we
20924         aren't moving part of the node
20925
20926 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20927
20928         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
20929         stack in PaintEventStart so that it won't get disposed by the gc
20930         before reaching PaintEventEnd.
20931
20932 2006-11-13  Jackson Harper  <jackson@ximian.com>
20933
20934         * TextBoxBase.cs: Don't select the word if we are on a line with
20935         no text.
20936         - We don't need to position the caret on mouse up, since the mouse
20937         move handler should be doing this
20938         - When double clicking a blank line, the caret is advanced to the
20939         next line.
20940
20941 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
20942
20943         * TreeNodeCollection.cs: Avoid duplicating indexer code.
20944
20945 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
20946
20947         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
20948         Fixes part of bug #79910.
20949
20950 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
20951
20952         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
20953           (bug #79903). Some minor string updates to match ms.
20954
20955 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
20956
20957         * FileDialog.cs: Don't add an extension if the filename
20958           already ends with that extension.
20959
20960 2006-11-10  Jackson Harper  <jackson@ximian.com>
20961
20962         * TreeView.cs: Use the currently highlighted node for the
20963         BeforeSelect event.
20964         * TextBoxBase.cs: There is no need to expand selection on
20965         MouseMove.
20966         - CanUndo means 'is there any undo operations', not 'is undo
20967         allowed on this textcontrol. Fixed ClearUndo unit test.
20968
20969 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
20970
20971         * Button.cs: only perform click when button is Selectable (so as 
20972         not to activate default buttons when they're disabled)
20973         
20974         * Control.cs: Rewrite of the SelectNextControl and related 
20975         methods. HandleClick now selects next control if the current one
20976         is being disabled.
20977         
20978         * Form.cs: OnActivated selects next active control only if Load 
20979         has already occurred. If Load hasn't run, there's no point in 
20980         selecting here, Load might change the state of controls.
20981         
20982         * FocusTest.cs: Tests marked as working again for these fixes
20983
20984 2006-11-10  Chris Toshok  <toshok@ximian.com>
20985
20986         * XplatUIX11.cs: a couple of fixes.
20987
20988         - use XInternAtoms with almost all the atoms we need to register,
20989         instead of many, many calls to XInternAtom.  should help a bit on
20990         startup time, at the expense of making the code look a little
20991         worse.
20992
20993         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
20994         isn't reparented (which seems to be a clue that we're running fon
20995         compiz) and they have an Owner form.  This fixes the tool windows
20996         in paint.net when running under compiz.
20997
20998         - when setting the opacity of a window, support both the case
20999         where the window has been reparented and also when it hasn't been.
21000         Since compiz/beryl doesn't seem to reparent windows, and these are
21001         the only window managers which support translucency, I'm not sure
21002         why we need the hwnd.reparented case at all.. but leave it in.
21003         now we get translucent windows in paint.net under compiz/beryl.
21004
21005 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21006
21007         * FileDialog.cs: Always return the value for FilterIndex that
21008           was set. Internally convert it to values that make sense.
21009
21010 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21011         
21012         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
21013
21014 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21015
21016         * Toolbar.cs: Change default value of DropDownArrows to true, the 
21017         signature still using false to make it compatible with MS but the 
21018         initial value is true. Fixes #79855.
21019
21020 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21021
21022         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
21023           only available on Linux.
21024
21025 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
21026
21027         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
21028         reduce number of calls to redraw method during toolbar creation.
21029
21030 2006-11-09  Mike Kestner  <mkestner@novell.com>
21031
21032         * ListView.cs : raise SelectedIndexChanged when an item is selected
21033         programmatically via the Item.Selected property.  Gert's nice 
21034         ListViewSelectedIndexChanged test fixture now runs clean.
21035
21036 2006-11-09  Mike Kestner  <mkestner@novell.com>
21037
21038         * ListView.cs : raise SelectedIndexChanged when a selected item is
21039         removed from the item collection using Remove or RemoveAt.
21040
21041 2006-11-09  Mike Kestner  <mkestner@novell.com>
21042
21043         * ListView.cs : raise SelectedIndexChanged once per selected item
21044         for compat with MS.  Fixes #79849+.
21045
21046 2006-11-09  Chris Toshok  <toshok@ximian.com>
21047
21048         * TabControl.cs: initialize row_count to 0, and set it to 1 when
21049         we need to (if we have any tab pages).  Fixes unit test.
21050
21051 2006-11-09  Chris Toshok  <toshok@ximian.com>
21052
21053         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
21054         width is 0, not 3.  Fixes a unit test.
21055
21056 2006-11-09  Mike Kestner  <mkestner@novell.com>
21057
21058         * ListView.cs : use Implicit scrollbars so that focus isn't 
21059         stolen from the listview when they are clicked. Fixes #79850.
21060
21061 2006-11-09  Chris Toshok  <toshok@ximian.com>
21062
21063         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
21064         have a root item.  Fixes #79879.
21065
21066 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
21067
21068         * FileDialog.cs:
21069           - Fix ToString ()
21070           - An ArgumentException is now thrown if a wrong filter
21071             is applied (matches ms). The previous filter doesn't change
21072             anymore if an exception is thrown.
21073           - Changing the FileName property also affects FileNames
21074         * ColorDialog.cs: The length of the CustomColors array is always
21075           16. It doesn't matter if we use a smaller array or null to update
21076           or change the custom colors property.
21077         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
21078           for RootFolder if we get a undefined value.
21079
21080 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21081
21082         * StatusBarPanel.cs: 
21083         - Width is set to MinWidth if Width is smaller than
21084         MinWidth. Fixes #79842.
21085         - MinWidth now always overrides Width (MSDN says MinWidth
21086         is set to Width when AutoSize = None, but they do not 
21087         behave like that).
21088         - Style has now the the correct default value.
21089         
21090 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21091  
21092         * TrackBar.cs: 
21093         - The control is completely invalidated on 
21094         Got/LostFocus to draw the focus rectangle correctly.
21095         - When AutoSize then height is always 45 (width for 
21096         vertical controls).
21097         
21098         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
21099         on the mouse when moved and it doesn't move when grabbed
21100         until the mouse moves as well. Also fixed some wrong 
21101         calculations when clicking on the thumb (control thought
21102         click was outside of thumb and didn't grab it).
21103         Fixes some of the issues in #79718.
21104
21105 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
21106
21107         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
21108
21109 2006-11-08  Chris Toshok  <toshok@ximian.com>
21110
21111         * PropertyGridView.cs: only call ToggleValue if the item is not
21112         readonly.
21113
21114 2006-11-08  Jackson Harper  <jackson@ximian.com>
21115
21116         * TextBoxBase.cs: The RichTextBox and textbox have very different
21117         word selection methods.  Implement the textbox's simple word
21118         selection here, and let the RichTextBox override and provide it's
21119         own.
21120         - Don't do extra selection on mouseup
21121         * RichTextBox.cs: Use the documents word selection algorithm, I
21122         think ideally, this function will be pulled into the
21123         RichTextBox.cs code someday.
21124
21125 2006-11-08  Chris Toshok  <toshok@ximian.com>
21126
21127         * RootGridEntry.cs: new class to represent GridItemType.Root.
21128
21129         * CategoryGridEntry.cs: reformat, and add boilerplate.
21130         
21131         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
21132         returns the UI parent anyway, and we need special handling to
21133         implement the GetTarget method in the face of it.  Also, implement
21134         Select().
21135
21136         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
21137         a root grid item, and use that instead of PropertyGrid.grid_items.
21138         Also, make use of TypeConverters (and add limitted support for
21139         ICustomTypeDescriptors) when initially populating the grid.
21140         Arrays now show up more or less properly.
21141
21142 2006-11-08  Chris Toshok  <toshok@ximian.com>
21143
21144         * Application.cs: set the modal dialog to non modal after we close
21145         it.  Fixes bug #79866.
21146
21147 2006-11-08  Jackson Harper  <jackson@ximian.com>
21148
21149         * TextControl.cs: When combining lines carry over the line end
21150         style from the end line.
21151         - Invalidate the selected area when setting it, if it is visible.
21152         * TextBoxBase.cs: Only rich text box can do full line selects.
21153         - Make sure to set the cursor position when there is a click,
21154         otherwise two clicks in separate areas could cause a large chunk
21155         to be selected.
21156
21157 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21158
21159         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
21160         Fixes #79863.
21161
21162 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21163
21164         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
21165         time. Remove tooltips when ToolButton click events.  Fixes #79856.
21166
21167 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21168
21169         * MenuAPI.cs: Ignore right click for menu actions and fixes
21170         menu border when clicked.  Fixes #79846.
21171
21172 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21173
21174         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
21175         MouseState after create wParam for message, this fixes mouse button 
21176         equal none in mouse up events.
21177         
21178 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
21179
21180         * Control.cs : Focus() now calls Select to set the Container's
21181         Active Control and to give it focus. To avoid infinite recursion
21182         (because ActiveControl also calls Focus at one point), a check 
21183         is made in Focus with the help of a new internal variable
21184         is_focusing.
21185
21186 2006-11-07  Mike Kestner  <mkestner@novell.com>
21187
21188         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
21189         if there's a selection.  Fixes #79849.
21190
21191 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
21192
21193         * PropertyGrid.cs: Avoid fixed height of help description label.
21194         Fixes part of bug #79829.
21195
21196 2006-11-07  Chris Toshok  <toshok@ximian.com>
21197
21198         * XplatUIX11.cs: fix #79790 again, by using the
21199         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
21200
21201 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21202
21203         * ToolBar.cs: Fix left click checking.
21204
21205 2006-11-07  Chris Toshok  <toshok@ximian.com>
21206
21207         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
21208
21209 2006-11-07  Chris Toshok  <toshok@ximian.com>
21210
21211         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
21212         PropertyManager unit tests.
21213
21214         * PropertyManager.cs: make property_name internal.
21215
21216 2006-11-07  Chris Toshok  <toshok@ximian.com>
21217
21218         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
21219         pass a unit test.  Also, don't set image_index to anything in
21220         response to setting the ImageList property.
21221
21222 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21223
21224         * ToolBar.cs: Ignore click events when mouse button is not a
21225         left button, only accepts other button for dropdown menus.  
21226         Fixes #79854.
21227
21228 2006-11-07  Chris Toshok  <toshok@ximian.com>
21229
21230         * DataGrid.cs: make the back and parent row buttons a little less
21231         ugly.
21232
21233 2006-11-07  Jackson Harper  <jackson@ximian.com>
21234
21235         * TextBoxBase.cs: When converting to Text don't put line breaks in
21236         for soft line breaks.
21237         * TextControl.cs: There is an initial "fake" line in the document,
21238         this is now a soft break line, so that an extra line feed doesn't
21239         get added to the end of documents.
21240
21241 2006-11-07  Chris Toshok  <toshok@ximian.com>
21242
21243         [ fix bug #79778 ]
21244         
21245         * CurrencyManager.cs: if the list is readonly, don't bother
21246         checking if IBindingList.AllowNew is true.
21247
21248         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
21249         for non-DataRowView datasources..  or rather, make it not crash.
21250         (DataGridPaintRelationRow): make sure we limit the row painting to
21251         the area not covered by the row header, and make our cell width at
21252         least large enough to cover the relation area.  This allows grids
21253         that have relations but no rows to render correctly.
21254         (DataGridPaintRowContents): same type of changes here.
21255         (SetDataSource): move back to always calling
21256         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
21257         navigating back through relations.
21258         (HitTest): handle the case where we have no cells but have
21259         relations.  Right now we generate a hit in cell 0 of whatever the
21260         row is, not sure if this is strictly correct, but it works for our
21261         purposes.
21262         
21263         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
21264         bother doing anything.
21265
21266 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
21267
21268         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
21269         early version of StatusStrip.  Not responsible for eaten
21270         application or firstborn children.
21271
21272 2006-11-06  Chris Toshok  <toshok@ximian.com>
21273
21274         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
21275         call GetTabRect with a -1 index.  Fixes #79847.
21276
21277 2006-11-06  Jackson Harper  <jackson@ximian.com>
21278
21279         * TreeNodeCollection.cs: Update scrollbars after clearing.
21280
21281 2006-11-06  Chris Toshok  <toshok@ximian.com>
21282
21283         * NumericUpDown.cs: fix the ToString method for some unit test
21284         love.
21285
21286 2006-11-06  Chris Toshok  <toshok@ximian.com>
21287
21288         * PropertyGrid.cs:
21289         - set the initial SelectedGridItem if we can.
21290
21291         - Exclude non-mergable properties only if we're merging > 1
21292         object.  Merging 1 object isn't really merging, obviously.
21293
21294         - Handle PropertySort.NoSort just like Alphabetical, which is
21295         wrong of course, but at least gets things on the screen.
21296         
21297         * PropertyGridView.cs:
21298         - Add method "FindFirstItem" which finds the first property grid
21299         item, so we can select it by default.
21300
21301         - make use of GridEntry.CanResetValue.
21302
21303         - Don't call RedrawBelowItemOnExpansion here anymore, the
21304         individual GridEntry's will do that.
21305
21306         - Remove the ITypeDescriptorContextImpl internal class.
21307         
21308         * GridEntry.cs:
21309         - this class needs to implement ITypeDescriptorContext, as it's
21310         what MS's PropertyDescriptorGridEntry does, which means we can
21311         remove the ITypeDescriptorContextImpl internal class from
21312         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
21313
21314         - keep a reference to our PropertyGridView, and move the call to
21315         RedrawBelowItemOnExpansion here from PGV.  This means
21316         programmaticly setting Expanded actually does something visible.
21317
21318         - add a CanResetValue() function which takes into account our
21319         possibly multiple "selected_objects" in the merged case.  Shifting
21320         PropertyGridView to use this method fixes another unreported
21321         crasher found running the test for #79829.
21322
21323         - when Top or Bounds is updated, make sure the PropertyGridTextBox
21324         is updated to reflect this.
21325
21326         * CategoryGridEntry.cs: the ctor takes the PGV now.
21327         
21328 2006-11-06  Jackson Harper  <jackson@ximian.com>
21329
21330         * TextControl.cs: These are 1 based.
21331         * TextBoxBase.cs: When setting the selected text, don't change the
21332         selected text tags, this is done by ReplaceText, just position the
21333         cursor at the end of the new text.
21334
21335 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
21336
21337         * ListView.cs: Allow label edit only when, when LabelEdit is
21338           set to true.
21339
21340 2006-11-06  Jackson Harper  <jackson@ximian.com>
21341
21342         * TextControl.cs: If a suitable wrapping position isn't found,
21343         just wrap right in the middle of a word.
21344
21345 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
21346
21347         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
21348           bug #79820.
21349
21350 2006-11-06  Jackson Harper  <jackson@ximian.com>
21351
21352         * TreeView.cs: Can't use the VisibleCount property when setting
21353         scrollbar heights, because this doesn't take into account whether
21354         or not the horz scrollbar just came visible.
21355
21356 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
21357
21358         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
21359         activated.  Fixes #79369, #79832.
21360
21361 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
21362
21363         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
21364           had to remove support for links that point to a directory. FileInfo
21365           returns no usefull information (means, the directory they point to)
21366           for such links. Replaced some empty string ("") with String.Empty.
21367
21368 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
21369
21370         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
21371         NullReferenceException when attempting to remove node that is not in
21372         collection. Throw NullReferenceException when null is passed to 
21373         Remove. Allow first element of the collection to be removed. Fixes
21374         bug #79831.  In GetEnumerator ().Current return null if positioned 
21375         before the first element of the collection. In GetEnumerator ().Reset,
21376         position before first element of the collection.
21377
21378 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
21379
21380         * PropertyGrid.cs: To match MS, remove default title and description
21381         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
21382         buttons.
21383
21384 2006-11-04  Chris Toshok  <toshok@ximian.com>
21385
21386         * Theme.cs: add a Clamp method, just for kicks.
21387
21388         * ThemeWin32Classic.cs: clamp all color components to [0..255].
21389
21390 2006-11-04  Chris Toshok  <toshok@ximian.com>
21391
21392         * Form.cs: if the form isn't visible, Close() does nothing.
21393
21394 2006-11-03  Chris Toshok  <toshok@ximian.com>
21395
21396         * Form.cs (Close): if the form is modal, don't Dispose of it, only
21397         Hide it.
21398         (WndProc): don't Dispose after handling the WM_CLOSE message.
21399
21400         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
21401         them as such, instead of using casts from Control to Form.  Also,
21402         don't Dispose of the modal dialog when we fall out of the loop -
21403         Close() it instead.
21404
21405         fixes bug #79813.
21406
21407 2006-11-03  Chris Toshok  <toshok@ximian.com>
21408
21409         * Control.cs (Dispose): only go through the dispose thing if we're
21410         @disposing, and we haven't already been disposed.  Fixes bug
21411         #79814.
21412
21413         * Form.cs: no reason to call "base.Dispose()" here instead of
21414         "Dispose()".
21415
21416 2006-11-03  Mike Kestner  <mkestner@novell.com>
21417
21418         * ComboBox.cs : use ToString instead of casts in AddItem for
21419         sorting functionality.  Fixes #79812.
21420
21421 2006-11-03  Chris Toshok  <toshok@ximian.com>
21422
21423         * Application.cs: pave the way for actually using the thread
21424         exception dialog.  it's ifdefed out at the moment.
21425
21426 2006-11-03  Chris Toshok  <toshok@ximian.com>
21427
21428         * ThreadExceptionDialog.cs: until we get a better layout, actually
21429         hide the details textbox and label when we shouldn't see them.
21430
21431 2006-11-03  Jackson Harper  <jackson@ximian.com>
21432
21433         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
21434         multiline textboxes anymore.  This method also determines the
21435         width/height of a textboxes canvas area.
21436         - Sorta a revert of the last patch.  For multiline just position
21437         the controls, then bail.  This way the scrollbar width won't be
21438         altered.
21439
21440 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
21441
21442         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
21443         it dont need.  Fixes #79537.
21444
21445 2006-11-02  Jackson Harper  <jackson@ximian.com>
21446
21447         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
21448         send the status after firing the DndOver event.
21449
21450 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21451
21452         * TrackBar.cs: Now orientation only switches height / width if
21453         the control's handle is created (Win32 does it like this). Also 
21454         fixed a typo in ToString() for a test to pass, changed the 
21455         exception thrown in set_LargeChange and set_SmallChange to 
21456         match Win32 behaviour, and added TrackBar tests to the unit 
21457         tests.
21458
21459 2006-11-02  Chris Toshok  <toshok@ximian.com>
21460
21461         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
21462         not _NET_WM_STATE_NO_TASKBAR.
21463
21464 2006-11-02  Jackson Harper  <jackson@ximian.com>
21465
21466         * TextControl.cs: Increment count by one, since in the update view
21467         count - 1 is used.
21468
21469 2006-11-02  Jackson Harper  <jackson@ximian.com>
21470
21471         * TextBoxBase.cs: Use client rectangle not bounds for checking if
21472         the mouse is in the client rectangle (duh).
21473
21474 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21475         
21476         * TrackBar.cs: Fixed trackbar jumping around when clicking
21477         on it - the trackbar was not detecting correctly at which
21478         side of the thumb the click was done. (fixes #79718)
21479
21480 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
21481
21482         * ListBox.cs: scroll visible area when change SelectedIndex to
21483         a non visible area.  Fixes #79481.
21484
21485 2006-11-01  Jackson Harper  <jackson@ximian.com>
21486
21487         * TextControl.cs: When replacing the selection move the selection
21488         start/end/anchor to the end of the new text.
21489
21490 2006-11-01  Jackson Harper  <jackson@ximian.com>
21491
21492         * XplatUIWin32.cs: When setting the parent change the controls
21493         visibility to it's visibility flag, not to it's old parents
21494         visibility (.Visible walks the parent chain).
21495
21496 2006-11-01  Chris Toshok  <toshok@ximian.com>
21497
21498         * XplatUIX11.cs: revert the #79790 fix, as the simple.
21499         XSetTransientForHint fix breaks paint .net's tool windows.  more
21500         work needed for that one.
21501
21502 2006-11-01  Chris Toshok  <toshok@ximian.com>
21503
21504         * ScrollBar.cs: throw ArgumentException instead of Exception in
21505         LargeChange/SmallChange setters.  fixes unit tests.
21506
21507 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21508
21509         * ContainerControl.cs: reverted rev.67183 (which was itself
21510         a reversion of rev.66853... eh).
21511         
21512         * Control.cs: Fixes Reflector hang by changing Focus() call
21513         to what it was before rev.66643 (calling Select() here sets 
21514         ActiveControl, which in some situations calls back Focus and 
21515         eventually does a stack overflow). Temp fix.    
21516         Changes to GetNextControl() to not look for children to select when
21517         parent cannot be selectable (so it looks for siblings instead)  
21518         
21519 2006-10-31  Mike Kestner  <mkestner@novell.com>
21520
21521         * CheckedListBox.cs : off by one error in returned index from
21522         ObjectCollection.Add.  Fixes #79758.
21523
21524 2006-10-31  Chris Toshok  <toshok@ximian.com>
21525
21526         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
21527         calls for the textbox/spinner, to keep from recursing to the point
21528         where we crash.  Fixes #79760.
21529
21530 2006-10-31  Chris Toshok  <toshok@ximian.com>
21531
21532         * ListControl.cs (set_SelectedValue): don't throw exceptions on
21533         null/"" value, just return.  matches ms's behavior and fixes some
21534         failing tests.
21535
21536 2006-10-31  Chris Toshok  <toshok@ximian.com>
21537
21538         * Control.cs (set_Capture): make a logic a little easier to
21539         follow.
21540
21541         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
21542         if it's being destroyed.  A necessary fix surely, but a bandaid
21543         also, to fix the stuck capture problem in bug #78413.
21544
21545 2006-10-31  Chris Toshok  <toshok@ximian.com>
21546
21547         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
21548         convention of clearing hwnd.ClientRect when we set the
21549         width/height (so it'll be recalculated by Hwnd).
21550
21551 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21552
21553         * ContainerControl.cs: reversed Contains check from
21554         ActiveControl due to hanging problems. This fix
21555         partly regresses #79667 (button does not have
21556         initial focus), so this might be a symptom for 
21557         a larger parenting problem (set_ActiveControl
21558         is being called but the child control does
21559         not have the parent set yet?)   
21560         
21561 2006-10-31  Mike Kestner  <mkestner@novell.com>
21562
21563         * MenuAPI.cs : fix keynav when menu is click activated.
21564
21565 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
21566
21567         * ToolStrip*: Version 0.2.
21568
21569         * MenuStrip.cs: Version 0.1.
21570
21571         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
21572
21573 2006-10-30  Chris Toshok  <toshok@ximian.com>
21574
21575         [ fixes the oversized notify icon issue in bug #79745 ]
21576         
21577         * NotifyIcon.cs: scale the icon down to the size we're given by
21578         the XplatUI layer (this would be faster if we did it once instead
21579         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
21580         since it's never invoked.
21581
21582         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
21583         pixels high by default, so let's hardcode our systray icon to that
21584         size.  The SYSTEM_TRAY protocol should really have a way for
21585         client apps to query for the correct icon size.. but oh well.  A
21586         couple of patches to deal with the screwy client_window ==
21587         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
21588         instance, and also make sure we don't XSelectInput twice).
21589
21590 2006-10-30  Chris Toshok  <toshok@ximian.com>
21591
21592         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
21593         recreating forms.  Control recreation is the bane of my existence.
21594         Fix it in a way that keeps everyone happy.
21595
21596 2006-10-30  Chris Toshok  <toshok@ximian.com>
21597
21598         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
21599         just non-CHILD ones.  otherwise sometimes scrollbars end up with
21600         client_windows not being resized to the proper size (ReportBuilder
21601         shows this extremely well).
21602
21603 2006-10-30  Chris Toshok  <toshok@ximian.com>
21604
21605         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
21606         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
21607         showing up in the gnome taskbar.  Fixes bug #79790.
21608
21609 2006-10-30  Chris Toshok  <toshok@ximian.com>
21610
21611         * ApplicationContext.cs: guard against a NRE.
21612
21613         * Application.cs: null out the old MainForm for the context, so we
21614         don't try to use it again once it's disposed.  Fixes bug #79783.
21615
21616 2006-10-30  Chris Toshok  <toshok@ximian.com>
21617
21618         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
21619         BindingContext, set the data source directly, otherwise do the
21620         lazy approach - the actual ListManager will be created when we get
21621         a BindingContext. Fixes bug #79700.
21622
21623 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21624
21625         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21626           XplatUIX11.cs: Remove old 2 parameter SetVisible.
21627
21628         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
21629
21630 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21631
21632         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
21633         of SetVisible that allows a window to be shown, but not activated.
21634         This is needed on Windows for MenuStrip, and can probably be used
21635         with MainMenu and ComboBox to fix the focus stealing issues on
21636         Windows.
21637
21638         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
21639
21640 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
21641
21642         * PictureBox.cs: Fix the output of the ToString method.
21643
21644 2006-10-29  Chris Toshok  <toshok@ximian.com>
21645
21646         * Control.cs (get_TopLevelControl): fix bug #79781.
21647
21648 2006-10-29  Chris Toshok  <toshok@ximian.com>
21649
21650         * ListControl.cs (set_DataSource): throw Exception here, not
21651         ArgumentException, to match MS behavior.
21652
21653 2006-10-29  Chris Toshok  <toshok@ximian.com>
21654
21655         * Form.cs: remove the try-catch's around calls to GetWindowState.
21656         We can just check the return value.
21657
21658         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
21659         Instead return -1.
21660
21661         * XplatUI.cs: Add note about additional return value for
21662         GetWindowState.
21663
21664 2006-10-29  Chris Toshok  <toshok@ximian.com>
21665
21666         * Control.cs (CreateHandle): when we create our handle, we also
21667         create the handles of our child controls.  Fixes one of the
21668         Control unit tests (CH11).
21669
21670 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21671
21672         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
21673
21674 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21675
21676         * ThemeClearlooks.cs: A little speedup.
21677
21678 2006-10-27  Chris Toshok  <toshok@ximian.com>
21679
21680         * Control.cs: implement Control.FromChildHandle in a way that
21681         matches the docs (and fixes the failed test.)
21682
21683 2006-10-27  Chris Toshok  <toshok@ximian.com>
21684
21685         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
21686         comments).
21687
21688         * DataGrid.cs: implement ResetForeColor such that the tests
21689         succeed.
21690         
21691 2006-10-27  Chris Toshok  <toshok@ximian.com>
21692
21693         * ToolBarButton.cs: setting text/tooltiptext to null results in it
21694         being set to "".  Fixes bug #79759.
21695
21696 2006-10-27  Jackson Harper  <jackson@ximian.com>
21697
21698         * TextControl.cs: We need to clear the entire selection area when
21699         setting the start, otherwise multiline selections are still
21700         visible.
21701
21702 2006-10-26  Chris Toshok  <toshok@ximian.com>
21703
21704         * PropertyGridView.cs: 
21705
21706         - ifdef all the code specific to the double
21707         buffer case, and provide some alternatives in the non-doublebuffer
21708         code, which makes heavy use of XplatUI.ScrollWindow to move things
21709         around without having to invalidate (and cause flicker).  There
21710         are still some drawing problems in the non-doublebuffered case, so
21711         DOUBLEBUFFER is defined by default.
21712
21713         - Fix the way dropdowns are handled.  now we explicitly watch for
21714         the events which might cause the dropdown to close, and break out
21715         of the nested event loop there.  This gets rid of all Capture
21716         code, at the expense of the Msg special casing.  Seems to work,
21717         though, and fixes bug #79743.
21718
21719 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
21720         * Control.cs: SetIsRecreating now recreates implicitly added
21721         child controls as well. Finally fixes #79629. The flag passed to 
21722         SetIsRecreating has also been removed since it wasn't used.
21723         
21724 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21725
21726         * PageSetupDialog.cs: Clean some code, fix some bits, 
21727         add some checks, and add a printer sub-dialog.
21728
21729 2006-10-26  Chris Toshok  <toshok@ximian.com>
21730
21731         * PropertyGrid.cs: make set_SelectedObject call
21732         set_SelectedObjects, and move the duplicate logic to the
21733         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
21734
21735         * PropertyGridView.cs: hide the textbox when we get a
21736         SelectedObjectsChanged event.
21737
21738         Fixes bug #79748.
21739
21740 2006-10-26  Chris Toshok  <toshok@ximian.com>
21741
21742         * PropertyGridView.cs: deal with the type converter not supporting
21743         GetStandardValues() or GetStandardValues() returning null, which
21744         is does in the default case.  Fixes #79742.
21745
21746 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
21747
21748         * CheckedListBox.cs: nunit no longer crashes when selecting 
21749         Project/Edit menu option
21750         
21751 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
21752
21753         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
21754         is no menu selected. fixes #79739
21755
21756 2006-10-25  Chris Toshok  <toshok@ximian.com>
21757
21758         * PropertyGridView.cs: factor out the splitter invalidation code
21759         into the SplitterPercent setter, and for kicks implement the
21760         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
21761         amount in either direction.
21762
21763 2006-10-25  Chris Toshok  <toshok@ximian.com>
21764
21765         * PropertyGridView.cs: do some cleanup of the brush used to draw
21766         text - read only fields should be grayed out.  not sure how to do
21767         this with the textbox, though.  but the textbox's should also be
21768         readonly now at least.  Also, hide/show the textbox when resizing
21769         the control.
21770         
21771         * CursorConverter.cs: use System.Reflection when getting the
21772         properties of Cursors, as TypeDescriptor.GetProperties isn't
21773         returning static properties.
21774
21775 2006-10-25  Chris Toshok  <toshok@ximian.com>
21776
21777         * PropertyGridView.cs: factor out the up/down handling, and reuse
21778         it for page up/down.  also add End/Home support.
21779
21780 2006-10-25  Chris Toshok  <toshok@ximian.com>
21781
21782         * PropertyGridView.cs:
21783
21784         - ensure the selected grid item is visible in the scrolled area,
21785         fixes bug #79572.
21786
21787         - fix Keys.Down handling when you're on the last item in the
21788         propertygrid.
21789
21790 2006-10-25  Mike Kestner  <mkestner@novell.com>
21791
21792         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
21793         clicks too.  Fixes #79725.
21794
21795 2006-10-24  Chris Toshok  <toshok@ximian.com>
21796
21797         * PropertyGrid.cs: use property.Converter instead of
21798         TypeDescriptor.GetConverter(property.PropertyType), so we catch
21799         TypeConverters declared on the property as well as on the
21800         PropertyType.  Fixes bug #79678.
21801
21802 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
21803
21804         * MimeIcon.cs, Mime.cs:
21805           Fallback to the default platform handler if no shared mime info
21806           stuff exists (fixes #79693).
21807
21808 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21809         * ContainerControl.cs: Incorrect contains check in ActiveControl 
21810         from previous fix (duh).
21811
21812 2006-10-20  Chris Toshok  <toshok@ximian.com>
21813
21814         * PropertyGridView.cs: the dropdown should be MIN(number of items
21815         in list, 15).  Fixes #79551.
21816
21817 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
21818         Fixes #79384, #79394, #79652, #79667
21819         * Application.cs: 
21820         
21821         - Modal windows are now destroyed in the proper order for windows
21822         
21823         * ContainerControl.cs:
21824         
21825         - ActiveControl setter has more conditions on when to return:
21826                 - if we're reselecting the active control, but it actually
21827                 didn't have focus (window hidden or some such), it runs
21828                 - if the active control being selected doesn't actually 
21829                 exist in the container, it returns
21830         
21831         * Form.cs
21832         
21833         - The ShowDialog now gets the current form as the owner when
21834         invoking without parameters, and correctly activates the owner 
21835         when returning
21836         
21837         * MessageBox.cs
21838         
21839         - MessageBox now catches the Escape key to exit
21840
21841 2006-10-20  Chris Toshok  <toshok@ximian.com>
21842
21843         * PropertyGridView.cs: fix a number of issues (bug #78565, and
21844         most of bug #79676):
21845
21846         - you can navigate around the property grid with the arrow keys.
21847
21848         - the dropdown is sized properly when the pg has a vertical
21849         scrollbar.
21850
21851         - fix the indentation for subentries, and properly select the
21852         entire label rect.
21853
21854         - fix the gray bar's drawing (only draw it to the last element,
21855         not for the height of the control.  Also make sure we draw that
21856         last horizontal grid line.
21857
21858         - use the same mechanism the datagrid uses wrt the editing textbox
21859         when scrolling/resizing/etc.  Namely, we hide it first, do the
21860         operation, then show it again (if it's still visible).
21861         
21862         - aggressively remove a lot of unnecessary refreshes (and also
21863         calls to Invalidate(). call more limited variants, and only redraw
21864         what we need.)
21865         
21866         * PropertyGrid.cs:
21867
21868         - when we're populating the merged collection, fill in the UI
21869         parent with either the passed in item, or the category item we
21870         create.
21871
21872         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
21873
21874         * GridItem.cs: drop some fully qualified names.
21875         
21876         * GridEntry.cs: add a "UIParent", which is basically the parent
21877         treenode.
21878
21879         * GridItemCollection.cs: add an IndexOf method.
21880
21881 2006-10-20  Mike Kestner  <mkestner@novell.com>
21882
21883         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
21884         a working win32 NC invalidation mechanism, we can't invalidate
21885         menus.  [Fixes #79705]
21886
21887 2006-10-20  Mike Kestner  <mkestner@novell.com>
21888
21889         * ListBox.cs : don't update the VScrollbar if the list is empty,
21890         just hide it.  [Fixes #79692]
21891
21892 2006-10-20  Jackson Harper  <jackson@ximian.com>
21893
21894         * RichTextBox.cs: Handle some special chars better, and don't skip
21895         the entire group when we encounter a special char that we don't
21896         handle correctly.
21897
21898 2006-10-18  Chris Toshok  <toshok@ximian.com>
21899
21900         * PropertyGridView.cs: address a number of issues from bug #79676,
21901         mostly of the cosmetic variety.
21902
21903         - The highlight rectangle for indented items not extends all the
21904         way to the left.
21905
21906         - Indented items aren't indented so much.
21907
21908         - the dropdown is properly sized width-wise if the pg has a
21909         vertical scrollbar.
21910
21911 2006-10-18  Chris Toshok  <toshok@ximian.com>
21912
21913         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
21914         systray stuff is rather convoluted to begin with.
21915
21916         systray icons are a single window for some reason (that I haven't
21917         figured out yet), and for them, client_window == whole_window.
21918         Given the way the tests are structured elsewhere to determine
21919         which paints are pending (client vs. nc), that situation will
21920         always yield PAINT, not NCPAINT.  So, if we have a pending
21921         nc_expose and no pending expose, remove the hwnd from the paint
21922         queue, and also set nc_expose_pending to false, to keep us from
21923         blocking further expose's adding the hwnd to the paint queue.
21924
21925         phew.  like i said, a rather convoluted change.  Fixes the
21926         notifyicon repaint issues in bug #79645.
21927
21928 2006-10-18  Chris Toshok  <toshok@ximian.com>
21929
21930         * Form.cs: when getting the backcolor of the form, don't get
21931         base.BackColor, as this allows parents to influence the background
21932         color.  This breaks mdi forms.  Instead, if the background_color
21933         is empty, return the default.
21934
21935 2006-10-18  Chris Toshok  <toshok@ximian.com>
21936
21937         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
21938         to being private instead of internal static.
21939
21940         * Control.cs: remove all the stupid ParentWaitingOnRecreation
21941         crap, it wasn't working for more deeply nested controls anyway,
21942         and we already have the is_recreating flag - use that instead.
21943         Before calling DestroyHandle in RecreateHandle, recurse through
21944         the control tree setting it to true.  this returns the recreate
21945         code to much of its original simplicity, while now guaranteeing we
21946         actually recreate everything we're supposed to.  This change gets
21947         fyireporting actually showing mdi children.
21948
21949 2006-10-17  Chris Toshok  <toshok@ximian.com>
21950
21951         * Form.cs: remove some debug spew, and collapse some duplicate
21952         code at the end of SetClientSizeCore.
21953
21954         * XplatUIX11.cs: 
21955         - add some more debug spew here too wrt Destroy handling.
21956         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
21957         in Control's handling of WM_DESTROY.
21958         - Remove the handling of zombie window DestroyNotifies from the
21959         event loop - we don't need it.  Now the only DestroyNotifies we
21960         actually handle are ones generated by X.
21961         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
21962         match gtk's (functioning) handling of this. This keep metacity
21963         from leaving droppings in the form of wm borders with no window
21964         contents all over the place.
21965
21966         * Control.cs:
21967         - add a bunch of debug spew wrt control recreation.
21968         - fix a bug where we weren't tracking Visible properly on
21969         recreated hwnds.
21970         - fixed the WM_PAINT double buffer handling to support re-entrant
21971         calls (yes, i know it's gross, but it's happening to us).
21972
21973 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
21974         * ThemeWin32Classic.cs: changed drawing of selected days
21975         to make them look better.
21976
21977 2006-10-16  Chris Toshok  <toshok@ximian.com>
21978
21979         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
21980         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
21981
21982         * XplatUIX11.cs: move away from using hwnd.client_dc and
21983         hwnd.non_client_dc and on to a stack of dc's (and in window's
21984         case, PAINTSTRUCT's), so we can deal with nested Paint calls
21985         without puking or not disposing of Graphics objects.
21986
21987         * XplatUIOSX.cs: same.
21988
21989         * XplatUIWin32.cs: same.
21990
21991 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
21992
21993         * FileDialog.cs: Don't call on_directory_changed inside
21994           OnSelectedIndexChanged (it changes the SelectedIndex too).
21995           Instead move it to OnSelectionChangeCommitted.
21996
21997 2006-10-13  Chris Toshok  <toshok@ximian.com>
21998
21999         * XplatUIX11.cs: more Destroy work.  the current code does the
22000         following things, in order:
22001
22002         1. Enumerates all handles of all controls at or below the one
22003         being destroyed, in pre-order.  As it is doing this, it marks the
22004         handles as zombie and clears all references to them.
22005         
22006         2. calls XDestroyWindow on the window passed in.
22007
22008         3. SendMessage's WM_DESTROY to all he handles in the accumulated
22009         list.
22010
22011 2006-10-13  Chris Toshok  <toshok@ximian.com>
22012
22013         * XplatUIX11.cs: set hwnd.zombie to true before calling
22014         SendMessage (WM_DESTROY).  this keeps us from marking the new
22015         window a zombie, and also keeps us from calling sendmessage at
22016         all.
22017
22018 2006-10-13  Jackson Harper  <jackson@ximian.com>
22019
22020         * TextControl.cs: Do not show the caret and selection at the same
22021         time.  Reduces ugliness by 35%.
22022
22023 2006-10-13  Chris Toshok  <toshok@ximian.com>
22024
22025         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
22026         zombie after we do the recursive call, so we actually do call
22027         SendMessage on the children controls.
22028         (GetMessage): if we find a pending paint event for a zombie hwnd,
22029         remove the hwnd from the paint queue, or else it will always be
22030         there (and we'll effectively loop infinitely)
22031
22032 2006-10-13  Mike Kestner  <mkestner@novell.com>
22033
22034         * MenuItem.cs : add Selected format under keynav too.
22035         Fixes #79528.
22036
22037 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
22038
22039         * PropertyGrid.cs: Fixed some NRE's and small difference between our
22040         implementation and that of MS.
22041
22042 2006-10-13  Chris Toshok  <toshok@ximian.com>
22043
22044         * Control.cs (OnInvalidated) only futz with the invalid_region if
22045         the control is double buffered.  this fixes the apparent hang in
22046         the ListView unit tests.  Someone needs to make the
22047         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
22048
22049 2006-10-13  Chris Toshok  <toshok@ximian.com>
22050
22051         * PropertyGridView.cs:
22052
22053         - do a little refactoring so that only one place calls
22054         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
22055         else call that.  Also make it Refresh, since there are redraw bugs
22056         otherwise (we should take a look at that...)
22057
22058         - do a little more refactoring work to share the body of code
22059         involved with the drop down.  it was duplicated in the code
22060         dealing with the listbox handling and in the code dealing with the
22061         UITypeEditors.
22062
22063         - add a Capture to the dropdown form's control once it's
22064         displayed, and add a MouseDown handler that checks to make sure
22065         the position is inside the control.  If it's not, close the
22066         dropdown.  This fixes #78190.
22067
22068         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
22069         if the value is different than the initial value.
22070         
22071 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
22072
22073         * Control.cs: see #78650
22074         - Fixed GetNextControl for several cases:
22075                 - Changed FindFlatForward to return 
22076                 correct sibling control when more than one
22077                 control has same TabIndex as the currently 
22078                 focused one.
22079                 - Changed FindFlatBackward to loop children
22080                 from last to first and apply same logic as in
22081                 FindFlatForward
22082                 - Changed FindControlForward to search for
22083                 children when control is not a container
22084                 but has children, or search for siblings if
22085                 control is a container...
22086                 - Changed FindControlBackward   to continue
22087                 searching for child controls when hitting 
22088                 Panel-like parents
22089                 
22090         - Fixed Focus method to update ActiveControl
22091         (FocusTest.FocusSetsActive failure)
22092         
22093         * TabControl.cs:
22094         - Focus rectangle now refreshes when gaining
22095         or losing focus
22096         - Removed grab for Tab key on IsInputKey that 
22097         was keeping tab navigation from working (#78650)
22098
22099 2006-10-13  Chris Toshok  <toshok@ximian.com>
22100
22101         * PropertyGridView.cs:
22102         - Rewrite SetPropertyValue to loop over SelectedGridItem's
22103         SelectedObjects.
22104
22105         - Deal with GridItem.Value == null a few places.
22106
22107         * PropertyGrid.cs: 
22108         - replace the PopulateGridItemCollection with a pair of methods
22109         which compute the intersection of all the properties in the
22110         SelectedObjects array.  Fixes #79615.
22111
22112         - Throw ArgumentException from set_SelectedObjects if there's a
22113         null in the array.
22114
22115         - Add GetTarget method which can be used to traverse up the
22116         GridItem.Parent chain.  It depends on the assumption that
22117         selected_objects for different GridEntries are always in the same
22118         order (a safe assumption).  Use this method and loop over all the
22119         selected objects in the entry when calling RemoveValueChanged and
22120         AddValueChanged.
22121         
22122         * GridEntry.cs: Make this handle multiple selected objects.
22123         .Value returns null if not all the selected objects share the same
22124         value.
22125
22126 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
22127         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
22128           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
22129           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
22130           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
22131           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
22132         add additional functionality.
22133
22134 2006-10-12  Mike Kestner  <mkestner@novell.com>
22135
22136         * ErrorProvider.cs : new ToolTipWindow ctor sig.
22137         * HelpProvider.cs : new ToolTipWindow ctor sig.
22138         * ToolTip.cs : remove ToolTip param from Window sig since it is
22139         not used.
22140         * ToolBar.cs : add tooltip support.  Fixes #79565.
22141
22142 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22143
22144         * ComboBox.cs: move the events in set_SelectedIndex to 
22145         after the call to HighlightIndex in order to avoid 
22146         possible recursion and subsequent problems with the call
22147         to HighlightIndex and include a range check in 
22148         set_HighlightIndex. Fixes #79588
22149         
22150 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22151
22152         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
22153         to ui thread's settings instead of sunday. 
22154         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
22155
22156 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22157
22158         * DateTimePicker.cs
22159         * MonthCalendar.cs
22160         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
22161         and implement missing functionality (selecting different parts 
22162         of the date and edit them individually with the keyboard).
22163         
22164 2006-10-11  Chris Toshok  <toshok@ximian.com>
22165
22166         * Control.cs (OnInvalidated): fix NRE relating to last change.
22167
22168 2006-10-11  Chris Toshok  <toshok@ximian.com>
22169
22170         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
22171         atoms in _NET_WM_STATE here if the window is maximized.  We need
22172         to do this because we're *replacing* the existing _NET_WM_STATE
22173         property, so those atoms will be lost otherwise, and any further
22174         call to GetWindowState will return Normal for a window which is
22175         actually maximized.  Fixes #79338.
22176
22177 2006-10-11  Jackson Harper  <jackson@ximian.com>
22178
22179         * TextControl.cs: Special case for setting selection end to
22180         selection start, we basically kill the anchor.
22181         - some todo comments.
22182
22183 2006-10-11  Chris Toshok  <toshok@ximian.com>
22184
22185         * Control.cs: switch to using an "invalid_region" to track which
22186         parts of the image buffer need updating.  This is more code than
22187         the simple fix from r66532.  That version just attempted to always
22188         fill the entire buffer on redraw, which turns out to be
22189         inefficient when invalidating small rectangles.  This version
22190         simply adds the invalid rectangle to the invalid region.  When we
22191         get any WM_PAINT message we see if it can be filled using the
22192         image buffer, and if it can't (if the paint event's clip rectangle
22193         is visible in the invalid region) we first fill the image buffer.
22194         So, the image buffer is still a cache, we just fill it lazily.
22195
22196         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
22197         need it any longer.
22198
22199 2006-10-11  Chris Toshok  <toshok@ximian.com>
22200
22201         * XplatUIX11.cs (SetWindowPos): we need to update both position as
22202         well as size after calling XMoveResizeWindow.  This keeps us from
22203         ignoring future SetWindowPos calls.  Fixes the disappearing
22204         DateTimePicker in the ToolBarDockExample from bug #72499.
22205
22206 2006-10-11  Chris Toshok  <toshok@ximian.com>
22207
22208         * TextBoxBase.cs: reorder things a bit when it comes to
22209         resizing-causing-recalculation.  we were recalculating the
22210         document when our position was changed, which shouldn't happen.
22211         We only care about size changes.  Clear up some more redundant
22212         recalculation calls while I'm at it.  This makes the toolbar dock
22213         example snappy when you're just dragging toolbars around (since it
22214         causes a relayout whenever you move one.)
22215
22216 2006-10-11  Chris Toshok  <toshok@ximian.com>
22217
22218         * ToolBarButton.cs (get_Rectangle): this only returns
22219         Rectangle.Empty if Visible == false, or Parent == null.
22220         Parent.Visible doesn't matter.
22221
22222 2006-10-10  Chris Toshok  <toshok@ximian.com>
22223
22224         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
22225         by .net 1.1, so switch to an internal method instead.
22226
22227 2006-10-10  Chris Toshok  <toshok@ximian.com>
22228
22229         * Control.cs (WM_PAINT): when a control is double buffered we draw
22230         initially to the ImageBuffer and then copy from there.  But when a
22231         parent control which has child controls is double buffered, the
22232         initial drawing doesn't encompass the entire ClientRectangle of
22233         the parent control, so we end up with uninitialized bits (this is
22234         easily seen by dragging the top toolbar in
22235         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
22236         manually set the ClipRectangle of the paint_event (only the one we
22237         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
22238         of the nastiness in bug #72499.
22239
22240         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
22241         which we use in Control.cs's WM_PAINT handling.
22242
22243 2006-10-10  Jackson Harper  <jackson@ximian.com>
22244
22245         * TextBoxBase.cs: Finish off the autoscrolling stuff.
22246
22247 2006-10-10  Chris Toshok  <toshok@ximian.com>
22248
22249         * Cursor.cs: Apply a slightly different patch to the one suggested
22250         in #79609.
22251
22252 2006-10-10  Jackson Harper  <jackson@ximian.com>
22253
22254         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
22255         not the parent form.
22256         * TextControl.cs: use difference in old line count vs new count to
22257         calculate how many lines were added, this takes into account soft
22258         line breaks properly.
22259
22260 2006-10-10  Chris Toshok  <toshok@ximian.com>
22261
22262         * LinkLabel.cs: don't call MeasureCharacterRanges against a
22263         rectangle located at 0,0 and the size of the text.  Use
22264         ClientRectangle instead.  This fixes rendering of non-left aligned
22265         link labels.
22266
22267 2006-10-10  Jackson Harper  <jackson@ximian.com>
22268
22269         * TextBoxBase.cs: When we set the selection start position the
22270         caret.
22271         * TextControl.cs: Need to update the caret when we decrement it to
22272         zero.
22273         - Make sure that the selection_visible flag gets reset to false if
22274         the selection isn't visible.  Before this you could get it set to
22275         visible by changing the selection start, then changing the end to
22276         equal the start.
22277
22278 2006-10-09  Jackson Harper  <jackson@ximian.com>
22279
22280         * TreeView.cs: Don't update scrollbars when we aren't visible.
22281         * TreeNodeCollection.cs: Only need to update scrollbars if being
22282         added to an expanded visible node or the root node.
22283
22284 2006-10-09  Chris Toshok  <toshok@ximian.com>
22285
22286         * XplatUIX11.cs (SendMessage): fix NRE.
22287
22288 2006-10-09  Jackson Harper  <jackson@ximian.com>
22289
22290         * TextBoxBase.cs: Implement horizontal autoscrolling.
22291         * TextControl.cs: Add a movement types that allows moving forward
22292         and backwards without wrapping.
22293
22294 2006-10-09  Mike Kestner  <mkestner@novell.com>
22295
22296         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
22297         with focus "expansion" of labels.  Fixes #79532 and then some.
22298         * ThemeWin32Classic.cs : add LineLimit to ListView label format
22299         when wrapping.
22300
22301 2006-10-09  Jackson Harper  <jackson@ximian.com>
22302
22303         * TextBoxBase.cs: Set the default max values to MaxValue since
22304         we use the scrollbar for autoscrolling and the default value is
22305         100.  If we don't do this the caret won't keep up with typing
22306         after about 18 characters.
22307         * TextControl.cs: Make sure the selection is offset by the
22308         viewport x.  This fixes selection when using auto scrolling.
22309
22310 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
22311         
22312         * Form.cs: The active control should be selected after the 
22313         OnLoad so that any child control initialization that affects
22314         the selection is done. Fixes #79406
22315
22316 2006-10-06  Chris Toshok  <toshok@ximian.com>
22317
22318         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
22319         to have no evil effects.
22320
22321         - Stop selecting StructureNotifyMask on non-toplevel windows.
22322
22323           The only way children should be resized is by using the SWF api,
22324           and we already send WM_WINDOWPOSCHANGED messages in those cases.
22325           Toplevel windows can be interacted with via the window manager,
22326           and so we keep the input mask there.
22327
22328           The other event StructureNotifyMask gives us (that we care
22329           about) is DestroyNotify.  The code is already structured such
22330           that it assumes we won't be getting a DestroyNotify event for
22331           the window we pass to XDestroyWindow (which is what
22332           StructureNotifyMask is supposed to guarantee.)  So, that code
22333           shouldn't be affected by this either.
22334
22335         - Stop selecting VisibilityChangeMask altogether.
22336
22337           We weren't doing anything with the resulting events anyway.
22338         
22339         This vastly reduces the number of X requests and events we see
22340         when resizing/laying out a large ui.
22341
22342 2006-10-06  Chris Toshok  <toshok@ximian.com>
22343
22344         * ScrollableControl.cs (DisplayRectangle): we need to take into
22345         account the DockPadding regardless of whether or not auto_scroll
22346         == true.  rework this slightly to this effect, and fix bug #79606,
22347         and part of #72499 (you can now see the drag handles and drag
22348         toolbars around).
22349
22350 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
22351
22352         * ListViewItem.cs: Collections of selected and checked items are now
22353         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
22354         we mark the collection "dirty".
22355         * ListView.cs: Marked collections readonly. Modified UpdateSelection
22356         to only clear SelectedItems when a new item is selected and MultiSelect
22357         is enabled. CheckedItems and SelectedItems now subscribe to Changed
22358         event of ListViewItemCollection, and mark its list dirty whenever
22359         that event is fire. This allows us to return selected/checked items 
22360         in the same order as they are in the Items collection. This matches
22361         the MS behavior.
22362
22363 2006-10-06  Chris Toshok  <toshok@ximian.com>
22364
22365         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
22366         right mouse clicks.  Fixes bug #79593.
22367
22368 2006-10-06  Chris Toshok  <toshok@ximian.com>
22369
22370         * Splitter.cs: doh, fix splitters that don't want to cancel the
22371         movement when you drag them.  Also, impose the limits on the
22372         values we send to the SplitterMovingEvent.  Fixes #79598.
22373
22374 2006-10-06  Jackson Harper  <jackson@ximian.com>
22375
22376         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
22377         since we use this for auto scrolling also.
22378
22379 2006-10-05  Chris Toshok  <toshok@ximian.com>
22380
22381         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
22382         beginning to think that most datagrid column types don't need this
22383         method.  Fixes bug #79392.
22384
22385 2006-10-05  Chris Toshok  <toshok@ximian.com>
22386
22387         * DataGrid.cs: move back to a more lazy scheme for creating the
22388         CurrencyManager, so we aren't updating it every time you set
22389         either DataSource or DataMember.  Also, don't call
22390         RecreateDataGridRows if the currency manager hasn't changed.
22391
22392 2006-10-05  Chris Toshok  <toshok@ximian.com>
22393
22394         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
22395         emitted, SelectedIndex should already be updated.  Fixes bug
22396         #78929.
22397
22398 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
22399
22400         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
22401           ToolStripTextBox.cs: Initial commit.
22402         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
22403
22404 2006-10-05  Jackson Harper  <jackson@ximian.com>
22405
22406         * TabControl.cs: We need to invalidate the tab control area when
22407         new ones are added (duh).
22408
22409 2006-10-03  Chris Toshok  <toshok@ximian.com>
22410
22411         * Form.cs (ProcessDialogKey): if the focused control is in this
22412         form and is a button, call its PerformClick method here.  Fixes
22413         #79534.
22414
22415 2006-10-04  Jackson Harper  <jackson@ximian.com>
22416
22417         * TabPage.cs: Ignore setting of Visible, and add an internal
22418         method for setting the controls visibility.  TabPage's Visible
22419         property is a little strange on MS, this seems to make us
22420         compatible, and fixes cases where people set all the tab pages to
22421         visible.
22422         * TabControl.cs: Use the new internal setting on tab pages
22423         visibility.
22424
22425 2006-10-03  Mike Kestner  <mkestner@novell.com>
22426
22427         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
22428
22429 2006-10-03  Mike Kestner  <mkestner@novell.com>
22430
22431         * ListView.cs : use is_visible instead of Visible to check if 
22432         scrollbars should be placed/sized.  Also some max_wrap_width
22433         love for LargeIcon view.  [Fixes #79533]
22434
22435 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
22436
22437         * TextControl.cs :
22438           Make set_TextAlign() do actually update the align. Fixed #78403.
22439
22440 2006-10-03  Chris Toshok  <toshok@ximian.com>
22441
22442         * DataGrid.cs: fix a crash when switching datasources if the
22443         vertical scrollbar is at someplace other than Value = 0.  Also,
22444         reduce the number of recalculation passes we do in SetDataSource
22445         from 2 to 1.
22446
22447 2006-10-03  Jackson Harper  <jackson@ximian.com>
22448
22449         * TextBoxBase.cs: Move the if value the same bail check up, we
22450         don't want to empty the document if it is already empty, this
22451         seems to severly mess up the caret.  TODO: I should probably fix
22452         the empty statement to update teh caret somehow.
22453
22454 2006-10-03  Chris Toshok  <toshok@ximian.com>
22455
22456         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
22457         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
22458         reflection, an internal row type, properties on said type, etc.)
22459         will work with our datagrid.  Fixes #79531.
22460
22461 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22462
22463         * FileDialog.cs: Don't crash if a path is not accessible
22464           (System.UnauthorizedAccessException). Fixes #79569.
22465         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
22466           a ':' too. Return unknown icon for those paths/files.
22467
22468 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
22469
22470         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
22471         GetContainerControl returns null.
22472
22473 2006-10-02  Chris Toshok  <toshok@ximian.com>
22474
22475         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
22476         call to XGetWindowAttributes instead of "handle".  fixes an X
22477         error using notifyicon after the NotifyIconWindow to Form base
22478         class switch.
22479
22480 2006-10-02  Chris Toshok  <toshok@ximian.com>
22481
22482         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
22483         server grab and looping we need to do to get down to the most
22484         deeply nested child window.
22485         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
22486         QueryPointer again after the WarpPointer so we can generate a
22487         proper (fake) MotionNotify event to be enqueued in the destination
22488         window's queue.
22489         (GetCursorPos): call QueryPointer.
22490
22491         Fixes #79556.
22492
22493 2006-10-02  Jackson Harper  <jackson@ximian.com>
22494
22495         * NotifyIcon.cs: Derive the notify icon from a form, so things
22496         like FindForm work on it.
22497         - Swallow the WM_CONTEXTMENU message, since that is generated on
22498         mouse down, and context menu is a mouse up kinda guy.  I believe
22499         the correct fix here is probably to make the notify icon entirely
22500         NC area, but this seems to work fine for anyone not manipulating
22501         WndProc.
22502
22503 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
22504
22505         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
22506           ToolStripItemCollection.cs, ToolStripLabel.cs,
22507           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
22508           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
22509           Initial implementation.
22510         * TextRenderer.cs: Provide padding to MeasureText.
22511
22512 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
22513
22514         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
22515         of ButtonBaseAccessibleObject. Fix bug #79552.
22516
22517 2006-10-02  Jackson Harper  <jackson@ximian.com>
22518
22519         * MdiWindowManager.cs: When maximizing use the containers client
22520         rect, not it's bounds, so nc area is accounted correctly.
22521         - Use the parent form's size for the menu position, since the
22522         client isn't always the full form size.
22523
22524 2006-10-01  Chris Toshok  <toshok@ximian.com>
22525
22526         * ScrollableControl.cs: make sure neither right_edge or
22527         bottom_edge are < 0, since they're used as LargeChange for the
22528         horiz/vert scrollbars respectively.  Fixes #79539.
22529
22530 2006-10-01  Chris Toshok  <toshok@ximian.com>
22531
22532         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
22533         the xplatuix11 code can cause us to destroy/recreate our handle.
22534
22535         * XplatUIX11.cs
22536         (SystrayAdd):
22537         - this code can be invoked many times for the same Hwnd.  Make
22538           sure we only destroy the client window once (the first time this
22539           method is called).  This fixes bug #79544.
22540         - Remove the call to the improperly bound XSync.  why we had two
22541           bindings to this, I will never know, but this call resulted in
22542           events being discarded from the queue(!).
22543         - correct a misunderstanding of _XEMBED_INFO - the second atom is
22544           not our current state but the state we wish to be in.  So, 0 if
22545           we don't want to be mapped.  Change it to 1.
22546         (SystrayRemove): The XEMBED spec makes mention of the fact that
22547         gtk doesn't support the reparent of client windows away from the
22548         embedder.  Looking at gtksocket-x11.c seems to agree with this.
22549         The only avenue we have for removing systray icons is to destroy
22550         them.  We don't want the handle to go away for good, though, so
22551         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
22552         #79545.
22553         
22554 2006-10-01  Chris Toshok  <toshok@ximian.com>
22555
22556         * Form.cs (WndProc): inline the native_enabled variable usage into
22557         the cases in which it's used.  Fixes #79536.
22558
22559 2006-09-29  Mike Kestner  <mkestner@novell.com>
22560
22561         * ListView.cs : toggle the selection state for ctrl clicks in 
22562         multiselect mode. [Fixes #79417]
22563
22564 2006-09-29  Mike Kestner  <mkestner@novell.com>
22565
22566         * ListView.cs : kill CanMultiSelect and refactor the selection
22567         code to support multiselection in the absence of mod keys. Steal
22568         arrow/home/end keys by overriding InternalPreProcessMessage to
22569         restore regressed keynav behavior.
22570         [Fixes #79416]
22571
22572 2006-09-29  Jackson Harper  <jackson@ximian.com>
22573
22574         * MdiClient.cs: Repaint the titlebars when the active window is
22575         changed.
22576
22577 2006-09-29  Chris Toshok  <toshok@ximian.com>
22578
22579         * Application.cs: when entering a runloop with a modal, make sure
22580         the hwnd is enabled.  Fixes #79480.
22581
22582 2006-09-29  Chris Toshok  <toshok@ximian.com>
22583
22584         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
22585         when ListManager.CanAddRows == false, bump us back one.
22586
22587         * DataGridColumnStyle.cs (ParentReadOnly): remove the
22588         listmanager.CanAddRows check.  This makes ArrayLists uneditable
22589         using a datagrid, which is not right.
22590         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
22591         is an IEditable, but call property_descriptor.SetValue regardless.
22592         fixes #79435.
22593
22594 2006-09-29  Chris Toshok  <toshok@ximian.com>
22595
22596         * DataGridBoolColumn.cs: we need to test equality in the face of
22597         possible null values (as is the case with the default NullValue).
22598         This patch keeps us from crashing in that case.
22599
22600 2006-09-29  Jackson Harper  <jackson@ximian.com>
22601
22602         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
22603         here, since it will get called for every node collection in the
22604         tree. This is now done in the treeview once the sorting is
22605         finished.
22606         * TreeView.cs: Recalculate the visible order, and update the
22607         scrollbars after sorting, set the top nope to the root so that the
22608         recalc actually works.
22609
22610 2006-09-29  Chris Toshok  <toshok@ximian.com>
22611
22612         * LinkLabel.cs: more handling of the default link collection in
22613         the face of LinkArea manipulation.  The default link collection
22614         contains 1 element (start=0,length=-1).  If the user sets LinkArea
22615         to anything and the links collection is the default, clear it.
22616         Then only add the link if its nonempty.  Fixes #79518.
22617
22618 2006-09-29  Chris Toshok  <toshok@ximian.com>
22619
22620         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
22621         piece correctly when we hit a '\n'.  Fixes #79517.
22622
22623 2006-09-29  Chris Toshok  <toshok@ximian.com>
22624
22625         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
22626         change the binding of gdk_init_check to take two IntPtr's, and
22627         pass IntPtr.Zero for both of them.  Fixes #79520.
22628
22629 2006-09-29  Mike Kestner  <mkestner@novell.com>
22630
22631         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
22632         [Fixes #78779]
22633
22634 2006-09-28  Jackson Harper  <jackson@ximian.com>
22635
22636         * XplatUIX11.cs: When translating NC messages make sure we go from
22637         whole window to screen, not client window to screen.
22638         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
22639         method doesn't exist
22640         - Skip over controls that aren't forms when arranging.
22641
22642 2006-09-28  Jackson Harper  <jackson@ximian.com>
22643
22644         * XplatUIWin32.cs: Clip the rect to the parent window.
22645         * XplatUIStructs.cs: Add clipping modes struct.
22646         * InternalWindowManager.cs: New private method that factors title
22647         bar heights in when calculating the pos of an NC mouse message.
22648         - Use SendMessage to force a paint when the form's size is changed
22649         instead of painting the decorations immediately.
22650         - Don't let the NC button click messages get to DefWndProc,
22651         because they will attempt to handle windowing themself, and this
22652         messes up z-order (it will put them in front of the scrollbars).
22653         * XplatUIX11.cs: Make sure that we don't reset window managers if
22654         we already have one (ie the window is an MDI window).
22655
22656 2006-09-28  Chris Toshok  <toshok@ximian.com>
22657
22658         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
22659         menu code really needs going over.
22660
22661 2006-09-27  Chris Toshok  <toshok@ximian.com>
22662
22663         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
22664         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
22665         window is maximizable.  So, we need to make sure that even if we
22666         clear the border/wm frame of those functions, they're still
22667         available (basically, we remove the decoration without removing
22668         the function).  Half the fix for #79338.
22669
22670 2006-09-27  Chris Toshok  <toshok@ximian.com>
22671
22672         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
22673         Fixes bug #79515.
22674
22675 2006-09-27  Chris Toshok  <toshok@ximian.com>
22676
22677         * Splitter.cs: reorder things a bit so that we don't actually
22678         draw/move the splitter until after calling OnSplitterMoving.  This
22679         lets users cancel/disallow the movement by explicitly setting
22680         event.SplitX/SplitY.  Fixes #79372.
22681
22682 2006-09-27  Jackson Harper  <jackson@ximian.com>
22683
22684         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
22685         because it is most likely on a window being destroyed, and that
22686         will give us an X11 error.
22687
22688 2006-09-27  Chris Toshok  <toshok@ximian.com>
22689
22690         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
22691         the dropdown button now toggles between showing and hiding the
22692         dropdown.  Also, get rid of dropdown_form_showing and just use
22693         dropdown_form.Visible.  We still don't do a grab, but I'll leave
22694         that part to someone who has handled Capture-fu before.
22695
22696 2006-09-27  Chris Toshok  <toshok@ximian.com>
22697
22698         * DataGrid.cs: return false if alt isn't pressed when '0' is
22699         pressed.  this keeps the '0' key from being swallowed, and fixes
22700         bug #79350.
22701
22702 2006-09-27  Chris Toshok  <toshok@ximian.com>
22703
22704         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
22705         Calling Refresh (in response to a scrollbar event) screws up the
22706         scrollbar painting.  Fixes bug #78923.
22707
22708 2006-09-27  Chris Toshok  <toshok@ximian.com>
22709
22710         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
22711         then insert into hashtable" blocks threadsafe.
22712
22713 2006-09-27  Chris Toshok  <toshok@ximian.com>
22714
22715         * MessageBox.cs (CreateParams): the styles should be |'ed with our
22716         baseclass's, since otherwise the
22717         ControlBox/MinimizeBox/MaximizeBox assignments above have no
22718         effect.  This gets the close button back in messageboxes.
22719
22720 2006-09-27  Chris Toshok  <toshok@ximian.com>
22721
22722         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
22723         flag, not just != 0.  this makes flags that are actually multiple
22724         bits (like WS_CAPTION) work.  fixes bug #79508.
22725
22726 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
22727
22728         * PageSetupDialog.cs: add support for getting and settings the 
22729         paper size, source and orientation.
22730
22731 2006-09-26  Chris Toshok  <toshok@ximian.com>
22732
22733         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
22734         and caption == "", we need to remove the resize handles as well as
22735         the title bar.
22736
22737         * Control.cs (set_Text): turns out that setting Text on a form
22738         should change the WM styles on the window, since if ControlBox ==
22739         false, the only way to get a window border is to have a non-""
22740         Text property.  check winforms/forms/text.cs for an example.  so,
22741         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
22742         update both window styles and title.  This fixes a lot of dialogs
22743         (including the preferences dialog in MonoCalendar.)
22744
22745 2006-09-26  Chris Toshok  <toshok@ximian.com>
22746
22747         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
22748         control isn't a Form), call Win32ShowWindow to hide the window,
22749         but don't update the control Visible property.  When we reparent
22750         back to a parent control, call SetVisible in order for the
22751         window's visibility to be reinstated.
22752
22753         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
22754         the FosterParent.
22755
22756         * Control.cs (ControlCollection.Remove): remove that value.Hide()
22757         call for good, since it breaks MonoCalendar (and other things I'm
22758         sure.) Also, set all_controls to null *after* the owner calls,
22759         which end up regenerating it.
22760         (ChangeParent): allow new_parent to be == null, passing
22761         IntPtr.Zero down to XplatUI.
22762
22763         this fixes #79294 the right way.
22764
22765 2006-09-26  Mike Kestner  <mkestner@novell.com>
22766
22767         * GridEntry.cs : internal SetParent method.
22768         * PropertyGrid.cs : attach to property changed on the proper
22769         target if we have a hierarchical grid with subobjects. Setup
22770         GridItem.Parent for hierarchical items.
22771         * PropertyGridView.cs : Set value on the correct target for
22772         hierarchical grids. [Fixes #78903]
22773
22774 2006-09-26  Chris Toshok  <toshok@ximian.com>
22775
22776         * Control.cs (ChildNeedsRecreating): this should return true if
22777         either we're being recreated and the child is in our list, or our
22778         parent is waiting for our recreation.
22779
22780 2006-09-26  Chris Toshok  <toshok@ximian.com>
22781
22782         * Control.cs (ControlCollection.Remove): reinstate the
22783         value.Hide() call as suggested in bug #79294.
22784
22785 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
22786
22787         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
22788         coordinates (versus a relative move).
22789
22790 2006-09-26  Chris Toshok  <toshok@ximian.com>
22791
22792         * Control.cs: rework child recreation a little bit.  It turns out
22793         that we race between the DestroyNotify the WM_DESTROY message.  If
22794         the parent gets its DestroyNotify before the child gets the
22795         WM_DESTROY message, the child ends up not recreating (since the
22796         parent finishes its recreation on DestroyNotify, and the child
22797         checks ParentIsRecreating.)
22798
22799         So, instead we store off a list of all the child controls which
22800         need to be recreated when the parent control starts to recreate
22801         itself.  Then, when child controls get their WM_DESTROY message we
22802         check to see if they're in the parent's pending recreation list,
22803         and if so, we recreate.  This removes all dependency on ordering
22804         from the code and fixes the initial MonoCalendar upgrade dialog.
22805         
22806 2006-09-26  Jackson Harper  <jackson@ximian.com>
22807
22808         * TextControl.cs: Use the Line to get the length of the line,
22809         since soft line breaks can change the end line.
22810
22811 2006-09-26  Chris Toshok  <toshok@ximian.com>
22812
22813         * Control.cs (ControlCollection.AddImplicit): don't add the
22814         control again if it's already in one of our lists.  This keeps us
22815         from adding controls over and over again for comboboxes when their
22816         handle gets recreated (as the combobox adds implicit controls in
22817         OnHandleCreated).  Fixes the X11 errors in bug #79480.
22818
22819 2006-09-26  Jackson Harper  <jackson@ximian.com>
22820
22821         * TextControl.cs: When deleting characters make sure that any
22822         orphaned zero lengthed tags get deleted.
22823         - Fix ToString for zero lengthed tags.
22824
22825 2006-09-25  Jackson Harper  <jackson@ximian.com>
22826
22827         * TextControl.cs: When getting a tag at the location there can be
22828         multiple tags at the same spot, these are 0-lengthed tags that
22829         appear when extra formatting has been stuck in a location.  We
22830         need to pull out the last of these 0 lengthed tags.
22831
22832 2006-09-25  Jackson Harper  <jackson@ximian.com>
22833
22834         * TextControl.cs: Fix print out in debug method.
22835         * TextBoxBase.cs: When text is set bail if we are setting to the
22836         previous value.
22837         
22838 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
22839
22840         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
22841           It is now possible to change the selected index in a FontXXXListBox
22842           with the up and down arrow keys from the FontXXXTextBoxes.
22843           Also, send the FontXXXTextBox mouse wheel event to the corresponding
22844           FontXXXListBoxes to match ms.
22845
22846 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
22847
22848         * SystemInformation.cs: Return a clone of the theme's MenuFont because
22849         anyone can dispose it, anytime. All other properties returns enums, 
22850         structs or basic types so they don't need such tricks.
22851
22852 2006-09-22  Jackson Harper  <jackson@ximian.com>
22853
22854         * XplatUI.cs:
22855         * XplatUIWin32.cs:
22856         * Clipboard.cs:
22857         * DataFormats.cs:
22858         * XplatUIOSX.cs:
22859         * XplatUIDriver.cs: Update interface to add a primary selection
22860         flag, so the driver can use the primary selection buffer if
22861         needed.
22862         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
22863
22864         * RichTextBox.cs: We need to supply the data object to paste now
22865         (so we can choose to supply CLIPBOARD or PRIMARY).
22866         * TextBoxBase.cs: Supply data object to paste (see above).
22867         - Middle click uses the primary selection data object.
22868         
22869 2006-09-21  Chris Toshok  <toshok@ximian.com>
22870
22871         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
22872         of SetWMStyles.  It's still a rat's nest and is largely
22873         order-dependent which I dislike immensely.  This also fixes the X
22874         button disappearing from toplevel forms.
22875
22876 2006-09-21  Mike Kestner <mkestner@novell.com>
22877
22878         * ListBox.cs: move Jordi's click/dblclick raising code to the
22879         mouse up handler.
22880
22881 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
22882
22883         * ListBox.cs: Fixes 79450
22884
22885 2006-09-21  Mike Kestner <mkestner@novell.com>
22886
22887         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
22888         to deal with people updating the TreeNodeCollection after the tree
22889         is disposed.  "Fixes" 79330.
22890
22891 2006-09-20  Jackson Harper <jackson@ximian.com>
22892
22893         * TextControl.cs: Push the cursor record onto the undo stack
22894         before the delete action. This fixes 78651.
22895
22896 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
22897
22898         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
22899         CreateParams. Fixes 79329.
22900
22901 2006-09-19  Chris Toshok  <toshok@ximian.com>
22902
22903         * XplatUIX11.cs: a couple of blanket code massage passes to clean
22904         things up a bit.  First, get rid of the NetAtoms array (and the NA
22905         enum), and just embed the atoms as static fields.  Also, add a
22906         couple of functions (StyleSet and ExStyleSet) to clean up all the
22907         bitmask testing of styles.
22908
22909         * X11Structs.cs: remove the NA enum, not needed anymore.
22910         
22911 2006-09-19  Chris Toshok  <toshok@ximian.com>
22912
22913         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
22914         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
22915         added cleanup to get MessageBox titles appearing again, which were
22916         broken by my earlier fix for caption-less/ControlBox-less windows.
22917
22918 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
22919
22920         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
22921           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
22922           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
22923           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
22924           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
22925           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
22926           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
22927           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
22928           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
22929           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
22930           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
22931             Inital import.
22932         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
22933           ToolStripButton.cs: Stubs needed for above.
22934         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
22935
22936 2006-09-15  Chris Toshok  <toshok@ximian.com>
22937
22938         * XplatUIX11.cs:
22939         - make the MessageQueues hashtable Synchronized.
22940         
22941         - SendMessage: if the Hwnd is owned by a different thread, use the
22942         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
22943         thread.  Fixes bug #79201.
22944
22945 2006-09-15  Chris Toshok  <toshok@ximian.com>
22946
22947         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
22948         ControlBox == false, we disallow maximize/minimize/close.  If the
22949         form Caption is "" we also disallow move (and get rid of the Title
22950         decoration).  Unfortunately, regardless of how things are set,
22951         we're stuck with the Title and WM menu.
22952
22953 2006-09-15  Chris Toshok  <toshok@ximian.com>
22954
22955         * Application.cs: add locking around the static message_filters
22956         ArrayList, part of #79196.
22957
22958 2006-09-15  Chris Toshok  <toshok@ximian.com>
22959
22960         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
22961         Form.ControlBox == false, the window has no titlebar nor resize
22962         handles.  fixes bug #79368.
22963
22964 2006-09-15  Chris Toshok  <toshok@ximian.com>
22965
22966         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
22967         >= 0.  Fixes bug #79370.
22968
22969 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
22970         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
22971         * Control.cs:
22972             Add properties: LayoutEngine, Margin, DefaultMargin.
22973             Add method: GetPreferredSize.
22974             Move layout logic from PerformLayout to layout engines. 
22975
22976 2006-09-13  Chris Toshok  <toshok@ximian.com>
22977
22978         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
22979         fix for #79326 broke #78718, so this change addresses that.
22980
22981         - in SendWMDestroyMessages remove the call to
22982         CleanupCachedWindows, since we might be recreating the control and
22983         need to maintain the references to right Hwnd handles.  Also, set
22984         the zombie flag to true for each of the children in the hierarchy
22985         instead of calling hwnd.Dispose.  This will cause GetMessage to
22986         ignore all events for the window except for DestroyNotify.
22987
22988         - In GetMessage, ignore messages except for DestroyNotify for
22989         zombie hwnds.
22990         
22991         * Control.cs: revert the is_recreating fix from the last
22992         ChangeLog.  It's definitely "right", but it breaks switching from
22993         an MDI form to a non-MDI form.  Will need to revisit that.
22994
22995         * Hwnd.cs: add a zombie flag, which means "the
22996         client_window/whole_window handles are invalid, but we're waiting
22997         for the DestroyNotify event to come in for them".  Set the flag to
22998         false explicitly if setting WholeWindow/ClientWindow, and also
22999         when Disposing.
23000         
23001 2006-09-13  Chris Toshok  <toshok@ximian.com>
23002
23003         * XplatUIX11.cs: rework window destruction slightly.
23004
23005         - when destroying the windows associated with a control, we don't
23006         need 2 separate XDestroyWindow calls.  Just the one for the
23007         whole_window (or for client_window if whole_window is somehow
23008         IntPtr.Zero -- can this happen?) is enough.
23009
23010         - reworked SendWMDestroyMessages slightly, so we always dispose
23011         the child control hwnd's after sending the messages.
23012         
23013         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
23014         the two places it was used (one was even using hwnd.Handle and the
23015         other hwnd.client_window.  ugh), adding another call in
23016         SendWMDestroyMessages.  We need this new call because now the
23017         DestroyNotify events in the queue will be ignored for the child
23018         controls (as their hwnd's were disposed, and the window id's
23019         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
23020
23021         - this fixes bug #79326.
23022
23023 2006-09-13  Chris Toshok  <toshok@ximian.com>
23024
23025         * Control.cs: don't always set is_recreating to false at the end
23026         of RecreateHandle, since sometimes we're not done (and won't be
23027         until WndProc handles the WM_DESTROY message).  Also, set
23028         is_recreating to false in the WM_DESTROY handling code.  Part of
23029         the fix for bug #79326.
23030
23031 2006-09-13  Miguel de Icaza  <miguel@novell.com>
23032
23033         * X11DesktopColors.cs: Start the droppage of debugging messages.
23034
23035         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
23036
23037 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
23038
23039         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
23040
23041 2006-09-12  Chris Toshok  <toshok@ximian.com>
23042
23043         * DataGrid.cs (get_ListManager): if the list_manager is null, try
23044         to create it using SetDataSource.  Fixes bug #79151.
23045
23046 2006-09-11  Chris Toshok  <toshok@ximian.com>
23047
23048         * XEventQueue.cs: add a DispatchIdle property.
23049
23050         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
23051         either the queue is null, or the queue has DispatchIdle set to
23052         true.
23053         (DoEvents): set queue.DispatchIdle to false around the
23054         peek/translate/dispatch message loop in this method.  This keeps
23055         Application.Doevents from emitting idle events.  Part of the fix
23056         for #78823.
23057
23058 2006-09-11  Chris Toshok  <toshok@ximian.com>
23059
23060         * DataGrid.cs (set_DataSource): make this work for both the
23061         winforms/datagrid test and ReportBuilder.  It seems as though when
23062         we've created a ListManager (or maybe it's if we have a
23063         BindingContext?), when we set the DataSource it clears the
23064         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
23065         #79333.
23066
23067 2006-09-11  Chris Toshok  <toshok@ximian.com>
23068
23069         * XplatUIX11.cs: deal with queue being null, which happens in all
23070         the Clipboard functions.  Fixes one of the two problems mentioned
23071         in #78612.
23072
23073 2006-09-11  Chris Toshok  <toshok@ximian.com>
23074
23075         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
23076         button on various spots (including outside the menu) works closer
23077         to MS, and doesn't crash.  Fixes #79343.
23078
23079 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
23080
23081         * ListView.cs: Do not initialize item_sorter in init. To match MS,
23082         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
23083         and the internal comparer is set. When a new ListViewItemSorter is set,
23084         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
23085         was specified. No further processing is necessary if SortOrder is set
23086         to it's current value. If Sorting is modified to None, and View is
23087         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
23088         (either custom or our internal ItemComparer) to null, on 1.0 profile
23089         only set item_sorter to null if its our internal IComparer. If Sorting
23090         is modified to Ascending or Descending, then use our internal IComparer
23091         if none is set, and if the current IComparer is our internal one then:
23092         on 2.0 profile always replace it with one for new Sorting, and on 1.0
23093         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
23094         Enum.IsDefined to verify whether a valid View value is specified in
23095         its setter. Automatically sort listview items when listview is
23096         created. In Sort, do nothing if ListView is not yet created, or if
23097         no item_sorter is set (no Sorting was set, Sorting was explicitly set
23098         to None or ListViewItemSorter was set to null). Added Sort overload
23099         taking a bool to indicate whether the ListView should be redrawn when
23100         items are sorted (we use this in ListViewItemCollection to avoid double
23101         redraws). Modified our internal IComparer to take the sort order into
23102         account. In Add and AddRange methods of ListViewItemCollection, also
23103         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
23104         view), but use overload with noredraw option to avoid double redraw.
23105         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
23106         true when View is Tile, and do the same when attempting to set View to
23107         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
23108         for selected/checked indices, as it involves overhead when sorting is
23109         done while these collections are not used all that often. Instead
23110         we'll build the indices on demand. Modified IList implementation of
23111         CheckedIndexCollection to use public methods if object is int.
23112         Modified CheckedListViewItemCollection to hide checked items if
23113         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
23114         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
23115         IList implementation in SelectedIndexCollection to use public methods
23116         if object is int. Modified SelectedListViewItemCollection to hide
23117         selected items if listview is not yet created.
23118         * ListViewItem.cs: CheckedIndices list no longer needs to be
23119         maintained separately (see ListView changes). Also clone font, fixes
23120         test failure.
23121
23122 2006-09-11  Mike Kestner  <mkestner@novell.com>
23123
23124         * ComboBox.cs: if we are updating the contents of the currently
23125         selected index, refresh the control or the textbox selection.
23126         [Fixes #79066]
23127
23128 2006-09-11  Mike Kestner  <mkestner@novell.com>
23129
23130         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
23131         the 'specified' logic has been moved there.  This seems like a bug 
23132         in Control.cs, since our current SetBoundsCore completely ignores 
23133         the specified parameter.  Peter's commit seems to indicate that is 
23134         the way the MS control implementation works.  [Fixes #79325]
23135
23136 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
23137
23138         * XplatUI.cs: Set default_class_name to be composed
23139         of current domain id. This allows MWF to be loaded in multiple
23140         domains on Win32.
23141
23142 2006-09-09  Miguel de Icaza  <miguel@novell.com>
23143
23144         * X11Keyboard.cs: If we are unable to obtain the input method, do
23145         not call CreateXic to create the input context.   Should fix
23146         #78944/79276.
23147
23148 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
23149
23150         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
23151           Simplified gnome support by adding more pinvokes to get the
23152           icon for a file or mime type.
23153
23154 2006-09-08  Jackson Harper  <jackson@ximian.com>
23155
23156         * MenuAPI.cs: Deslect popup context menu items before closing the
23157         window, so that you don't see the previously selected item
23158         selected when you reopen the menu.
23159         * TextControl.cs: Update the cursor position even if we don't have
23160         focus.  This fixes typing in things like the ComboBox.  I'm not
23161         totally sure we should always set the visibility if we don't have
23162         focus, but couldn't find any corner cases where the cursor showed
23163         up when it shouldn't.
23164
23165 2006-09-08  Chris Toshok  <toshok@ximian.com>
23166
23167         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
23168         our arrays are length 256.  & 0xff before indexing.  Fixes the
23169         crash in bug #78077.
23170         
23171 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23172
23173         * ThemeWin32Classic.cs: 
23174         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
23175         is true. Handle that check box too.
23176
23177 2006-09-07  Chris Toshok  <toshok@ximian.com>
23178
23179         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
23180         79244.
23181
23182 2006-09-07  Chris Toshok  <toshok@ximian.com>
23183
23184         * Control.cs: in set_BackColor only do the work if
23185         background_color != value.
23186
23187         * XplatUIX11.cs: move the clearing of invalid areas (both client
23188         and nc) to the same block of code where we set (nc_)expose_pending
23189         to false.  That is, move it from PaintEventEnd to PaintEventStart,
23190         so things that cause invalidates from within OnPaint will trigger
23191         another call to OnPaint.  Fixes bug #79262.
23192
23193 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
23194
23195         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
23196         * FileDialog.cs: Fix typo
23197
23198 2006-09-07  Jackson Harper  <jackson@ximian.com>
23199
23200         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
23201         for tab pages if they have any.
23202
23203 2006-09-06  Mike Kestner  <mkestner@novell.com>
23204
23205         * Splitter.cs: use the "current" rect when finishing drag handle
23206         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
23207
23208 2006-09-06  Mike Kestner  <mkestner@novell.com>
23209
23210         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
23211         support offset splitters. [Fixes #79298]
23212
23213 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
23214
23215         * Mime.cs: Fixed a bug that could override the global mime type
23216           result.
23217
23218 2006-09-05  Jackson Harper  <jackson@ximian.com>
23219
23220         * TabControl.cs: Better calculation method for setting the slider
23221         pos. Prevents crashes on really wide tabs.
23222         - Draw Image on tab pages if an image list is used.
23223
23224 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23225
23226         * MonthCalendar.cs: When Font changes, the Size should be
23227         updated to fit the new font's space requirements.
23228
23229 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
23230
23231         * ListBox.cs: If the items are cleared with Items.Clear set
23232           top_index to 0.
23233
23234 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23235
23236         * MonthCalendar.cs: Handle arrow keys as input keys. Also
23237         fire DateChanged event instead of DateSelected event when
23238         the date was changed by keyboard interaction.
23239
23240 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23241
23242         * DateTimePicker.cs: Handle DateChanged for the associated
23243         month_calendar control, and set month_calendar.Font from 
23244         OnFontChanged method, as well as resize the height of the
23245         control when needed. Make PreferredHeight proportional.
23246
23247 2006-09-01  Chris Toshok  <toshok@ximian.com>
23248
23249         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
23250         properties.
23251
23252         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
23253
23254 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
23255
23256         * FileDialog.cs: Set ClientSize instead of window size, to allow space
23257           for decorations (Fixes #79219)
23258
23259 2006-09-01  Mike Kestner  <mkestner@novell.com>
23260
23261         * ComboBox.cs: first stab at sorting plus some selection handling
23262         fixes to bring us more in line with MS behavior.  Also switches back
23263         to index based selection.  Alternative patches for index-based 
23264         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
23265         and latency@gmx.de on bug 78848.  I assume they were similar to this
23266         code I've had simmering in my tree forever.
23267         [Fixes #78848]
23268
23269 2006-09-01  Chris Toshok  <toshok@ximian.com>
23270
23271         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
23272         when setting list position guard against ending up with a -1 index
23273         (the other part of the fix for #78812).  Should probably make sure
23274         we don't need the analogous fix in the ItemDeleted case.
23275
23276         * DataGrid.cs:
23277         - in SetDataSource, work around the fact that the way
23278         OnBindingContextChanged is invoked will cause us to re-enter this
23279         method.  I'll remove the hack once I investigate
23280         OnBindingContextChanged.
23281
23282         - fix the logic in set_DataSource and set_DataMember (basically
23283         what to do if the other of the two is null.)
23284         
23285         - in OnListManagerItemChanged, we need to take into account the
23286         edit row when deciding whether or not to call RecreateDataGridRows
23287         (part of the fix for #78812).
23288
23289 2006-09-01  Jackson Harper  <jackson@ximian.com>
23290
23291         * Splitter.cs: Don't do anything if there is no control to affect
23292         (prevents us from crashing in weird tet cases).
23293         * TreeView.cs: Bounding box for the mouse movement reverting
23294         focus/selection back to previously selected node.  This matches
23295         MS, and makes the tree a lot more useable.
23296         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
23297         use clipping so they are not drawn.  This fixes when the control
23298         is set to have a transparent background, or if it was over an
23299         image.
23300
23301 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
23302
23303         * MimeIcon.cs: Improved handling for reading default icons when
23304           using gnome (2.16 made it necessary). Check and read svg icons
23305           first, then 48x48 and then 32x32 icons.
23306
23307 2006-08-31  Chris Toshok  <toshok@ximian.com>
23308
23309         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
23310         visible.
23311
23312         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
23313         ProcessKeyPreview.  Fixes part of #77806.
23314
23315         * DataGrid.cs: big patch.
23316
23317         - revert the queueing up of DataSource/DataMember if inside
23318         BeginInit/EndInit calls.  That's not the way the datagrid achieves
23319         its delayed databinding.  Instead, call SetDataSource in
23320         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
23321         #78811.
23322
23323         - Also, it wasn't mentioned in #78811, but the test case exhibits
23324         behavior that was lacking in our datagrid implementation - Columns
23325         that have mapping names that don't exist in the datasource's
23326         properties aren't shown.  Yuck.  To fix this I added the bound
23327         field to the column style, and basically any calculation to figure
23328         out anything about columns uses a loop to find the bound columns.
23329         still need to investigate if I can cache an array of the bound
23330         columns or if the indices must be the same.
23331
23332         - When setting CurrentCell, we no longer abort if the cell being
23333         edited was in the add row.  This fixes the other part of #77806.
23334
23335         - The new code also fixes #78807.
23336         
23337         * ThemeWin32Classic.cs: perpetrate the same disgusting
23338         column.bound field hack, and only render bound fields.
23339
23340 2006-08-31  Chris Toshok  <toshok@ximian.com>
23341
23342         * DataGridColumnStyle.cs: add bound field.  this field is true if
23343         the datasource has a property corresponding to the mapping name.
23344
23345         * DataGridTableStyle.cs: set the bound field on the column styles
23346         depending on whether or not we have a column for that property.
23347
23348 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
23349
23350         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
23351           splitter control (fixes #79228)
23352
23353 2006-08-31  Chris Toshok  <toshok@ximian.com>
23354
23355         * DataGridColumnStyle.cs: we need to delay the assignment of
23356         property descriptor until the last possible moment due to the lazy
23357         databinding stuff in the datagrid.  Also, fix the exceptions
23358         thrown by CheckValidDataSource to match MS.
23359
23360 2006-08-31  Jackson Harper  <jackson@ximian.com>
23361
23362         * Form.cs: When activated select the active control, if there is
23363         no active control, we select the first control.
23364         * XplatUIX11.cs: If there is no focus control when we get a
23365         FocusIn event, find the toplevel form and activate it.  This
23366         occurs when you popup a window, it becomes the focus window, then
23367         you close that window, giving focus back to the main window.
23368
23369 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23370
23371         * MonthCalendar.cs: 
23372         * ThemeWin32Classic.cs: Cache Font in bold style, as well
23373         as StringFormat with Center alignments in MonthCalendar,
23374         instead of creating new ones when drawing the control. 
23375         Also, draw the month name in bold style.
23376
23377 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
23378
23379         * Control.cs:
23380           - PerformLayout(): It would seem MS performs the fill even if the 
23381             control is not visible (part of #79218 fix)
23382           - ResetBackColor(): Use the setter to reset the color, to allow
23383             overriders to catch the change.
23384         * Form.cs:
23385           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
23386           - CreateHandle(): dito (part of $79218 fix)
23387           - Don't set an icon if we have a dialog
23388         * ScrollableControl.cs:
23389           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
23390           - ScrollIntoView(): No need to scroll if control is already visible
23391             (resolves fixme and fixes #79218)
23392
23393 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23394
23395         * MonthCalendar.cs: Change proportions in SingleMonthSize
23396         to match the aspect of the original control.
23397
23398 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
23399
23400         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
23401           get updated when they get maximized.
23402
23403 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
23404
23405         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
23406
23407 2006-08-29  Chris Toshok  <toshok@ximian.com>
23408
23409         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
23410
23411 2006-08-29  Jackson Harper  <jackson@ximian.com>
23412
23413         * TreeView.cs: Need to track selected node and highlighted node,
23414         they aren't always the same thing, when the mouse is down on a
23415         node it is hilighted, but not selected yet.
23416         - Do the HideSelection stuff right
23417         - Need to focus on rbutton mouse down. And redraw selection when
23418         right click is mouse upped.
23419
23420 2006-08-29  Mike Kestner  <mkestner@novell.com>
23421
23422         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
23423         when SubItems.Count < Columns.Count.  [Fixes #79167]
23424
23425 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
23426
23427         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
23428
23429 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
23430
23431         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
23432           from X. Only send based on ConfigureNotify if we don't have the
23433           correct location in hwnd (if the window manager moved us)
23434
23435 2006-08-28  Mike Kestner  <mkestner@novell.com>
23436
23437         * ListView.cs: remove a TODO. 
23438         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
23439         [Fixes ListView part of #79166]
23440
23441 2006-08-28  Mike Kestner  <mkestner@novell.com>
23442
23443         * ListView.cs: move wheel handler to parent since it is focused
23444         instead of the item_control now.  [Fixes #79177]
23445
23446 2006-08-28  Mike Kestner  <mkestner@novell.com>
23447
23448         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
23449         when the control is focused. [Fixes #79171]
23450
23451 2006-08-28  Mike Kestner  <mkestner@novell.com>
23452
23453         * ListView.cs: size the item and header controls for empty and
23454         unscrollable views.
23455         * ThemeWin32Classic.cs: draw disabled backgrounds.
23456         [Fixes #79187]
23457
23458 2006-08-28  Chris Toshok  <toshok@ximian.com>
23459
23460         * Form.cs: remove unused "active_form" static field.
23461
23462         * Hwnd.cs: lock around accesses to static windows collection.
23463
23464         * Application.cs: lock threads in Exit ().
23465
23466 2006-08-28  Chris Toshok  <toshok@ximian.com>
23467
23468         * NativeWindow.cs: lock around accesses to window_collection.
23469         
23470 2006-08-28  Chris Toshok  <toshok@ximian.com>
23471
23472         * Control.cs: err, fix this the right way, by locking on controls
23473         when using it.  not by making it synchronized.
23474
23475 2006-08-28  Chris Toshok  <toshok@ximian.com>
23476
23477         * Control.cs: make the static "controls" field synchronized, as it
23478         gets updated from multiple threads.
23479
23480 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23481
23482         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
23483           Prevent other threads from exiting when calling thread sets quit state.
23484         * XEventQueue.cs: Added PostQuitState property
23485
23486 2006-08-27  Chris Toshok  <toshok@ximian.com>
23487
23488         * AsyncMethodData.cs: add a slot for the window handle.
23489
23490         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
23491         window (the destination control's window, not the foster window).
23492
23493         * Control.cs (BeginInvokeInternal): store the window's handle in
23494         the AsyncMethodData.
23495         
23496
23497 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23498
23499         * XplatUIX11.cs:
23500           - PostQuitMessage: Removed resetting S.D display handle, we might have
23501             another loop started after calling PostQuitMessage (Fixes #79119)
23502           - Created destructor to reset S.D handle
23503
23504 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
23505
23506         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
23507
23508 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23509
23510         * TextControl.cs (Insert): Update the caret position even if we don't
23511           have a handle yet, just don't call the driver in that case.
23512         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
23513           to the end of the new selection text (Fixes #79184)
23514
23515 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23516
23517         * Form.cs (Activate): Only activate if the handle is created)
23518         * Control.c:
23519           - Mark window as invisible when it's disposed
23520           - Check if window handle is created when setting window visible, 
23521             instead of relying just on the is_created variable
23522           - Check if object is disposed when creating the control (Fixes #79155)
23523
23524 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23525
23526         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
23527           when allowing layout again. Otherwise we re-generate the anchoring 
23528           distance to the border again and actually alter what the user wanted
23529           This is ugly, it'd be better if we used DisplayRectangle instead of
23530           ClientRectangle for Control.UpdateDistances, but that causes us to
23531           have other problems (initial anchoring positons would be wrong)
23532           (Fixes #78835)
23533
23534 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23535
23536         * Control.cs:
23537           - The size and location setters shouldn't go directly to 
23538             SetBoundsCore, but to SetBounds, which triggers layout on the
23539             parent, then calls SetBoundsCore. (Related to fix for #78835)
23540           - SetBounds: Moved actual location update code into this function
23541             from SetBoundsCore, to match MS. Added call to PerformLayout if
23542             we have a parent (to trigger resizing of anchored parents if the 
23543             child size has changed (see testcase for #78835) 
23544         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
23545           new control code
23546         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
23547
23548 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23549
23550         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
23551           System.Drawing when a toplevel window gets closed; there might
23552           be other toplevel windows belonging to the same app (Fixes #78052)
23553
23554 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
23555
23556         * FileDialog.cs: After reading FileDialog settings from mwf_config
23557           use Desktop prefix only if a real folder doesn't exist anymore.
23558         * FontDialog.cs: Added char sets.
23559           It is now possible to select the font, size or style with the
23560           textboxes.
23561
23562 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
23563
23564         * PrintPreviewDialog.cs: Use assembly name constants.
23565
23566 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23567
23568         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
23569           scrollbar from whacking it's buttons)
23570
23571 2006-08-24  Chris Toshok  <toshok@ximian.com>
23572
23573         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
23574         in this patch (aggregating setting Left/Top/Width/Height to
23575         setting Bounds on the scrollbars), but the crux of the fix is in
23576         Recalculate, where we scroll by the remaining scroll_position if
23577         we're hiding a scrollbar.  The 2*$5 reward in the comment is
23578         serious.
23579
23580 2006-08-24  Jackson Harper  <jackson@ximian.com>
23581
23582         * MdiClient.cs:
23583         * MdiWindowManager.cs: If the form is made a non-mdi window we
23584         need to remove the form closed event so that closing forms works
23585         correctly.
23586
23587 2006-08-24  Jackson Harper  <jackson@ximian.com>
23588
23589         * Control.cs: Make IsRecreating internal so that the driver can
23590         check it
23591         - Temporarily remove the Hide when controls are removed, its
23592         making a whole bunch of things not work because visibility isn't
23593         getting reset elsewhere correctly
23594         * Form.cs: Need to do a full handle recreation when the mdi parent
23595         is set.
23596         * XplatUIX11.cs: If we are recreating handles don't dispose the
23597         HWNDs.  What was happening is the handles were being recreated in
23598         SendWMDestroyMessages, but then flow continued on in that method
23599         and destroyed the new handles.
23600
23601 2006-08-23  Jackson Harper  <jackson@ximian.com>
23602
23603         * Form.cs: MdiClient is always at the back of the bus
23604         * Control.cs: When the order of items in the collection is changed
23605         we need to reset the all_controls array
23606         - do the same sorta setup thats done when adding a control when a
23607         control is set on the collection.
23608
23609 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23610
23611         * TextBoxBase.cs (get_Text): Return an empty array if our document
23612           is empty (fixes #79052)
23613
23614 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23615
23616         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
23617           on WM_SYSCHAR messages (fixes #79053)
23618
23619 2006-08-23  Chris Toshok  <toshok@ximian.com>
23620
23621         * DataGrid.cs: fix flickering when scrolling vertically.
23622
23623 2006-08-23  Chris Toshok  <toshok@ximian.com>
23624
23625         * DataGrid.cs (EndEdit): only invalidate the row header when we
23626         need to.
23627
23628 2006-08-23  Chris Toshok  <toshok@ximian.com>
23629
23630         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
23631         methods.  fixes the flicker when scrolling around.
23632
23633 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23634
23635         * FileDialog.cs: Making sure the control is created before we get a 
23636           chance to use it with BeginInvoke (Fixes #79096)
23637
23638 2006-08-23  Chris Toshok  <toshok@ximian.com>
23639
23640         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
23641         width to use when painting the rows.
23642
23643 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23644
23645         * TextBoxBase.cs:
23646           - Throw ArgumentException if a negative value is passed to SelectionLength
23647           - Update the selection end if start is moved. end needs to be always
23648             after start. (Fixes #79095)
23649           - Track selection length; MS keeps the selection length even if start
23650             is changed; reset on all other operations affection selection
23651
23652 2006-08-22  Jackson Harper  <jackson@ximian.com>
23653
23654         * TreeView.cs: Make sure both scrollbars get displayed and sized
23655         correctly when the other bar is visible.
23656         - Use the original clip rectangle for checking if the area between
23657         the two scrollbars is visible, not the viewport adjusted clipping
23658         rectangle.
23659
23660 2006-08-22  Jackson Harper  <jackson@ximian.com>
23661
23662         * Binding.cs: We don't use IsBinding because it requires the
23663         control to be created, which really shouldn't be necessary just to
23664         set a property on the control.
23665
23666 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23667
23668         * ComboBox.cs: Some CB.ObjectCollection methods must throw
23669         ArgumentNullReferenceException when the argument is null.
23670
23671 2006-08-21  Jackson Harper  <jackson@ximian.com>
23672
23673         * Timer.cs: Track the thread that the timer is started in (NOT
23674         CREATED), this way messages for it will only be triggered on its
23675         queue.
23676         * XEventQueue.cs: Track the timers here, this makes timers per
23677         thread, like MS.
23678         * XplatUIX11.cs: The timers are moved to the XEventQueue.
23679
23680 2006-08-19  Chris Toshok  <toshok@ximian.com>
23681
23682         * XplatUIX11.cs: after further communication with pdb, we get the
23683         best of both worlds.  SetZOrder working for un-Mapped windows, and
23684         no X errors for un-mapped windows.
23685
23686 2006-08-19  Chris Toshok  <toshok@ximian.com>
23687
23688         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
23689         as it was causing pdn toolbars to not have the correct stacking.
23690
23691 2006-08-18  Mike Kestner  <mkestner@novell.com> 
23692
23693         * ListView.cs : guard against negative ClientArea.Width in scrollbar
23694         calculation.  Not sure why control should ever be setting a negative
23695         width though.  Fixes #78931.
23696
23697 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23698
23699         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
23700         null items in ObjectCollection class.
23701         * ListBox.cs.: Likewise.
23702
23703 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
23704
23705         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
23706           as the base method in ThemeWin32Classic should work fine.
23707           Fixed bug #78607.
23708
23709 2006-08-18  Jackson Harper  <jackson@ximian.com>
23710
23711         * Binding.cs: When validating if the value entered doesn't convert
23712         properly reset to the old value.
23713         * RadioButton.cs: Don't fire click when we get focus.
23714
23715 2006-08-18  Jackson Harper  <jackson@ximian.com>
23716
23717         * FileDialog.cs: Paint the selection on the directory combobox the
23718         same way as on MS. 
23719
23720 2006-08-17  Jackson Harper  <jackson@ximian.com>
23721
23722         * ErrorProvider.cs: Don't allow the error control to be selected.
23723         * Control.cs: Don't send the SetFocus messages, the control
23724         activation will do this, and if we do it blindly here validation
23725         does not work.
23726
23727 2006-08-17  Jackson Harper  <jackson@ximian.com>
23728
23729         * Control.cs:
23730         * ContainerControl.cs: Make validation events fire in the correct
23731         order.  TODO: For some reason the first validation event is not
23732         getting fired.
23733
23734 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23735
23736         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
23737
23738 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23739
23740         * ComboBox.cs : implement scroll wheel support for popped-down
23741         state. Fixes #78945. 
23742
23743 2006-08-17  Jackson Harper  <jackson@ximian.com>
23744
23745         * TreeView.cs: Specify treeview actions (old patch that didn't get
23746         committed for some reason).
23747         - Don't let the mouse wheel scroll us too far.  Just want to make
23748         the bottom node visible, not scroll it all the ways to the top.
23749
23750 2006-08-17  Jackson Harper  <jackson@ximian.com>
23751
23752         * XplatUIX11.cs: Mouse wheel events go to the focused window.
23753
23754 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23755
23756         * ComboBox.cs : don't do mouseover selection in simple mode.
23757
23758 2006-08-16  Jackson Harper  <jackson@ximian.com>
23759
23760         * Form.cs: Fire the closing events for all the mdi child windows
23761         when a window is closed.  If the cancel args are set to true, the
23762         main window still gets the event fired, but it doesn't not close.
23763         * MdiWindowManager.cs: Do this closing cleanup in a Closed
23764         handler, instead of when the button is clicked, so cancelling the
23765         close works correctly.
23766         * ComboBox.cs: Send the mouse down to the scrollbar.
23767
23768 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23769
23770         * ListBox.cs: When passing 'null' to SelectedItem,
23771         set SelectedIndex to -1, to unselect items. This is the
23772         observed behaviour in .Net.
23773
23774 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
23775
23776         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
23777           MS flags saying there won't be any. (fixes #78800)
23778         * Control.cs (HandleClick): Made virtual
23779
23780 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
23781
23782         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
23783           cultures. Fixed bug #78399.
23784
23785 2006-08-16  Jackson Harper  <jackson@ximian.com>
23786
23787         * Form.cs: Use the MdiClients MdiChildren property to access
23788         MdiChildren instead of creating the array from the child controls.
23789         * MdiClient.cs: Maintain a separate array of the mdi children, so
23790         that insertion order is maintained when the Z-order is changed.
23791
23792 2006-08-16  Mike Kestner  <mkestner@novell.com> 
23793
23794         * ListView.cs : add an ItemComparer and default to it for sorting.
23795         Fixes #79076, but sorting needs a complete overhaul to be compat with
23796         MS.
23797
23798 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
23799
23800         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
23801
23802 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23803
23804         * Hwnd.cs (Mapped): Properly traverse the tree
23805
23806 2006-08-15  Chris Toshok  <toshok@ximian.com>
23807
23808         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
23809         pass manager.Current.GetType() to ParseData.  It has to be the
23810         property type.  So, hold off doing the ParseData until we're in
23811         SetPropertyValue where we know the type.  This fixes the crash in
23812         #78821 but the textbox is still empty.
23813
23814 2006-08-15  Chris Toshok  <toshok@ximian.com>
23815
23816         * DataGrid.cs:
23817         - when we're scrolling, only call Edit() again if the
23818         current cell is still unobscured. Fixes bug #78927.
23819         - when handling mousedown on a cell, ensure the cell is visible
23820         before calling Edit.
23821         - remove the properties from DataGridRow, and remove the
23822         DataGridParentRow class altogether.
23823         
23824
23825 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23826
23827         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
23828           fire OnTextChanged by ourselves. There's no point calling base,
23829           we don't set the base value anywhere else. Fixes #78773.
23830
23831 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23832
23833         * ListBox.cs: Call CollectionChanged when modifying
23834         an item from Items indexer, to update the actual items
23835         in the list box.
23836
23837 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23838
23839         * PrintDialog.cs: Small fixes for focus and a pair of checks,
23840         to match .Net behaviour.
23841
23842 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23843
23844         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
23845
23846 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
23847
23848         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
23849
23850 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
23851
23852         * MessageBox.cs: Prevent potential NRE exception.
23853         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
23854
23855 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
23856
23857         * MessageBox.cs: Calculate the owner of a messagebox, also make
23858           it topmost. Fixes #78753
23859
23860 2006-08-14  Chris Toshok  <toshok@ximian.com>
23861
23862         * XplatUIX11.cs: A couple of fixes so that metacity will let us
23863         programmatically move windows.  first, set the PPosition hint as
23864         well as the USPosition hint.  Second include some code from pdb
23865         that sets the window type to NORMAL when we set the transient for
23866         hint.  This is because, in the absence of a window type, metacity
23867         thinks any window with TransientFor set is a dialog, and refuses
23868         to let us move it programmatically.  fascists.
23869
23870 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
23871
23872         * XplatUIX11.cs: When setting normal hints, take into consideration
23873           an different hints previously set so we don't delete them (fixes #78866)
23874
23875 2006-08-12  Chris Toshok  <toshok@ximian.com>
23876
23877         * ToolBarButton.cs: make Layout return a boolean, if something to
23878         do with the button's layout changed.
23879
23880         * ToolBar.cs:
23881         - add another parameter to Redraw, @force, which all existing
23882           calls set to true.
23883         - make the Layout function return a boolean which is true if the
23884           layout has actually changed.  Redraw now uses this (and @force)
23885           to determine when to invalidate.  At present the only place
23886           where @force can be false is the call from OnResize, when
23887           background_image == null.  So, resizing a toolbar when the
23888           layout doesn't change results in no drawing.
23889
23890 2006-08-12  Chris Toshok  <toshok@ximian.com>
23891
23892         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
23893         the VScrollBar and HScrollbar reversed.  oops.
23894
23895         * DataGrid.cs: fix the logic that assigns sizes to the implicit
23896         scrollbars.  we were assigning them twice (once in
23897         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
23898         therefore causing two scrollbar resizes (and redraws?) to happen
23899         per grid resize.
23900
23901 2006-08-12  Chris Toshok  <toshok@ximian.com>
23902
23903         * ToolBarButton.cs: redraw the entire button if the theme tells us
23904         to.
23905
23906         * Theme.cs: add ToolBarInvalidateEntireButton.
23907
23908         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
23909         buttons, just the border.
23910
23911         * ThemeNice.cs: redraw the entire toolbar button since we need to
23912         draw the highlight image.
23913
23914         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
23915         we need to redraw the entire button (not just the border).
23916
23917 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
23918
23919         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
23920           for vertical bars. Fixes the mismatches shown by #78513
23921
23922 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
23923
23924         * FileDialog.cs: If a saved/remembered path doesn't exist
23925           anymore, fall back to "Desktop".
23926
23927 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
23928
23929         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
23930           parent. It's apparently legal to not have one
23931         * XplatUIX11.cs:
23932           - SetZOrder: Don't try to set Z-Order on an unmapped window
23933           - CreateWindow: 0,0 are legal coordinates for a window. don't move
23934             it unless the coordinates are negative
23935
23936 2006-08-10  Mike Kestner  <mkestner@novell.com>
23937
23938         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
23939         when setting to null per msdn docs.  Fixes #78854.
23940
23941 2006-08-10  Chris Toshok  <toshok@ximian.com>
23942
23943         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
23944         flickering by setting a clip rectangle on the Graphics when we
23945         need to redraw just a particular menuitem.  Also, rename "OnClick"
23946         to "OnMouseDown" to reflect what it actually is.
23947         
23948         * Form.cs: track the OnMouseDown change.
23949
23950 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
23951
23952         * CommonDialog.cs: Properly inherit the CreateParams from the form
23953           and only change what we need. Fixes #78865
23954
23955 2006-08-10  Chris Toshok  <toshok@ximian.com>
23956
23957         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
23958         flickering in flat mode (and most of the flickering in general) by
23959         only invalidating the button border (and not the entire rectangle)
23960         when the state changes.  A couple of cases still flicker:
23961         ToggleButtons, and the dropdown arrow case when the user mouse
23962         ups.
23963
23964 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
23965
23966         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
23967           for german keyboards. Numlock state shouldn't affect the behaviour
23968           of the Del key. Fixes bug #78291.
23969
23970 2006-08-10  Chris Toshok  <toshok@ximian.com>
23971
23972         * ListControl.cs: remove the items.Clear line from BindDataItems,
23973         as this is the first thing done by both subclasses in their
23974         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
23975         passed -1, refresh the list.  This gets databinding working when
23976         the datasource is set on the list before the datasource is
23977         populated (as in wf-apps/ReportBuilder.)
23978
23979         * ComboBox.cs: remove the argument to BindDataItems.  This call
23980         should really go away, and be initiated by the ListControl code.
23981
23982         * ListBox.cs: same.
23983
23984 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
23985
23986         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
23987           if no data is in the document when the control is displayed
23988
23989 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
23990
23991         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
23992           yes (fixes #78806)
23993         * TextControl.cs: 
23994           - PositionCaret: Allow positioning of caret but don't call methods 
23995             requiring a handle if the window isn't created yet
23996           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
23997           - owner_HandleCreated: Don't position the caret, just update it's 
23998             location. User might have already set a different position
23999
24000 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24001
24002         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
24003           windows. Screws up the returned coordinates for child windows. 
24004           Fixes #78825. I'm hoping this doesn't break something, since the
24005           code was explicitly put in 8 months ago, but no bug was attached.
24006           Menus still seem to work properly.
24007
24008 2006-08-08  Chris Toshok  <toshok@ximian.com>
24009
24010         * DataGrid.cs: make BeginInit/EndInit actually do what they're
24011         supposed to do - delay data binding until the EndInit call.  Also,
24012         make the table style collection's CollectionChangeAction.Refresh
24013         work properly.
24014
24015         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
24016         (with action = Refresh) when a consituent table's MappingName is
24017         changed.
24018
24019 2006-08-08  Chris Toshok  <toshok@ximian.com>
24020
24021         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
24022         Invalidate, since changing the text can change the size of the all
24023         toolbar buttons.
24024
24025 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24026
24027         * Form.cs (AddOwnedForm): Still need to add the form to our listif
24028           we don't have it yet
24029
24030 2006-08-08  Chris Toshok  <toshok@ximian.com>
24031
24032         * PrintControllerWithStatusDialog.cs: don't .Close() the status
24033         dialog, as this causes X errors later on, since we actually
24034         destroy the window.  Instead, .Hide() it.
24035
24036 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24037
24038         * ComboBox.cs: Added focus reflection for popup window
24039         * XplatUIX11.cs: 
24040           - Removed transient setting for non-app windows for now, not sure it
24041             was needed
24042           - Fixed logic checking if we have captions when deciding 
24043             override_redirect, WS_CAPTION is two bits and a 0 check was not
24044             sufficient
24045           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
24046             complicated
24047         * Form.cs: 
24048           - AddOwnedForm: Don't just add the form to the list, call the property
24049             to ensure the driver is informed about the ownership as well
24050           - CreateHandle: Set the TopMost status in the driver if we have an owner
24051         * XplatUI.cs: Fixed debug statement
24052
24053 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
24054         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24055           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
24056           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
24057           TrackBarRenderer.cs: Make constructor private.
24058         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
24059         * ProfessionalColorTable.cs: Make properties virtual.
24060
24061 2006-08-06  Duncan Mak  <duncan@novell.com>
24062
24063         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
24064         is not changing.
24065
24066 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24067         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24068           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
24069           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
24070           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
24071           Initial import of new 2.0 classes.
24072
24073 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24074         * Application.cs: Add 2.0 VisualStyles properties.
24075
24076 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24077         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24078           XplatUIX11.cs: Create property to allow access to existing private
24079           variable "themes_enabled"
24080
24081 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24082
24083         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
24084         file size, as otherwise our class libraries fail using windows. Fixes
24085         bug #78759.
24086
24087 2006-08-04  Jackson Harper  <jackson@ximian.com>
24088
24089         * Form.cs:
24090         * XplatUIX11.cs: Move the toolwindow window manager creation into
24091         the X11 driver, this way on win32 we can let windows create/handle
24092         the toolwindows.
24093
24094 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24095
24096         * PrintDialog.cs: Remove some redundant checks, add some others,
24097         clean some code, and move the focus to the text boxes when the
24098         values are incorrect.
24099
24100 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
24101
24102         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
24103
24104 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24105
24106         * NumericUpDown.cs: Setting the Minimum and Maximum is now
24107           handled correctly. Fixes bug #79001.
24108
24109 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24110
24111         * PrintDialog.cs: The "Copies" numeric up down must have
24112         set the Minimum property to 1; only if the value is bigger
24113         than 1, activate "Collate" check box. This is the behaviour of .Net.
24114         Also modify the Document elements only if it is not null.
24115
24116 2006-08-03  Jackson Harper  <jackson@ximian.com>
24117
24118         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
24119         length. (We have a larger array then actual node count).
24120                 
24121 2006-08-03  Jackson Harper  <jackson@ximian.com>
24122
24123         * ComboBox.cs: Don't show selection by default.
24124         - The SelectAll isn't needed here, since the focus code should do
24125         that
24126         - DDL style lists to manual selection drawing, so when they
24127         get/lose focus they have to invalidate.
24128
24129 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
24130
24131         * TextBoxBase.cs: Don't always show all selections by default.
24132
24133 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
24134         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
24135           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
24136           Fixed various typos.
24137
24138 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24139
24140         * Control.cs: Removing the controls in a ControlCollection with
24141           Clear now hides the controls as expected. Fixes bug #78804. 
24142
24143 2006-08-03  Jackson Harper  <jackson@ximian.com>
24144
24145         * Control.cs: Revert previous focus patch, it breaks reflector.
24146
24147 2006-08-03  Jackson Harper  <jackson@ximian.com>
24148
24149         * ComboBox.cs: Cleanup selection and focus with the combobox.
24150         This also eliminates some duplicated keyboard code, since now
24151         everything is handled by the main class.
24152         - Make list selection work on mouse up instead of down, to match
24153         MS.
24154
24155 2006-08-02  Jackson Harper  <jackson@ximian.com>
24156
24157         * Control.cs: Setting focus needs to go through the whole
24158         selection mechanism.
24159
24160 2006-08-02  Chris Toshok  <toshok@ximian.com>
24161
24162         * PrintPreviewDialog.cs: change MinimumSize to use
24163         base.MinimumSize so it works.
24164
24165 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
24166
24167         * TextControl.cs:
24168           - UpdateCaret: Added sanity check in case caret isn't defined yet
24169           - Line.Delete: Now updating selection and caret markers if we're
24170             transfering a node (Properly fixes #78323)
24171           - SetSelectionEnd: Added sanity check
24172         * TextBoxBase.cs: Removed broken attempt to fix #78323
24173
24174 2006-08-01  Chris Toshok  <toshok@ximian.com>
24175
24176         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
24177         Close() call is handled in Form, not here.
24178
24179 2006-08-01  Chris Toshok  <toshok@ximian.com>
24180
24181         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
24182         layout/rendering.
24183
24184         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
24185         for sizes < 100% zoom.  The code now aggressively attempts to keep
24186         from calling document.Print (), and tries not to use the scaling
24187         g.DrawImage whenever possible (it still does if you scale to >
24188         100%, since usually that involves huge images).
24189
24190         * PrintPreviewControl.cs: hook up the close button.
24191
24192 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
24193         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
24194           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
24195           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
24196           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
24197           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
24198           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
24199           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
24200           Removed [Serializable] for 2.0 Event Handlers.
24201
24202 2006-07-31  Jackson Harper  <jackson@ximian.com>
24203
24204         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
24205         * TextControl.cs: Uncomment out the body of this method.
24206
24207 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
24208
24209         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
24210           standard cursors.
24211
24212 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24213
24214         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
24215           that embed TextBox and need selections visible even if textbox is not
24216           focused to enforce that behaviour.
24217         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
24218           selection drawing
24219
24220 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24221
24222         * TextControl.cs:
24223           - Added new SetSelectionStart/SetSelectionEnd overloads
24224           - Fixed viewport width assignment to be accurate
24225           - Adjusted alignment line shift calculations to allow cursor on right
24226             aligned lines to be always visible at the right border (like MS)
24227         * TextBoxBase.cs:
24228           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
24229           - TextBoxBase_SizeChanged: recalculating canvas on size changes
24230           - CalculateScrollBars: Use ViewPort size instead of window size, to
24231             properly consider space occupied by the border and scrollbars 
24232             (Fixes #78661)
24233           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
24234             calculations; no longer leaves artifacts
24235           - CaretMoved: Adjusted window scrolling to match MS and fixed several
24236             calculation bugs (Still missing right/center align calculations)
24237
24238 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
24239
24240         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
24241           use of both scroll rect and clip rect, as they do the same.
24242
24243 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24244
24245         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
24246           in the event handler (fixes #78912)
24247
24248 2006-07-31  Chris Toshok  <toshok@ximian.com>
24249
24250         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
24251         grid.ListManager.Count, since grid.ListManager might be null.
24252         This of course begs the question "why are we drawing rows for a
24253         grid with no list manager (and therefor no rows)?"  Fixes the
24254         crash in bug #78929.
24255
24256 2006-07-31  Chris Toshok  <toshok@ximian.com>
24257
24258         * RelatedPropertyManager.cs: Don't always chain up to the parent
24259         ctor.  instead, call SetDataSource if the parent's position is !=
24260         -1.  Fixes the crash in #78822.
24261
24262 2006-07-31  Chris Toshok  <toshok@ximian.com>
24263
24264         * DataGrid.cs (get_ListManager): use field instead of property
24265         accessors for datasource and datamember.
24266         (RowsCount): make internal again.
24267         (OnMouseDown): end edits before resizing columns/rows.
24268         (OnMouseUp): restart edits after resizing columns/rows.
24269
24270 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
24271
24272         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
24273           This fixes the situation where the last set cursor is displayed
24274           whenever the mouse is over scrollbars.
24275
24276 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24277
24278         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
24279         Document properties, as well as initial values.
24280
24281 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
24282
24283         * XplatUIWin32.cs (SetBorderStyle): Setting both border
24284           and ClientEdge results in a 3-pixel border, which is
24285           wrong.
24286
24287 2006-07-28  Jackson Harper  <jackson@ximian.com>
24288
24289         * TreeNodeCollection.cs: Fix the clear method.
24290         - Fix the Shrink also
24291
24292 2006-07-27  Jackson Harper  <jackson@ximian.com>
24293
24294         * TreeView.cs: Make sure the visible order is computed when we
24295         attempt to size the scrollbars (for trees that mess with the
24296         scrolling when they shouldn't.
24297         - Make sure to give the scrollbars valid values.
24298
24299 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24300
24301         * XplatUIX11.cs: Move motion compression code to where it
24302           has less performance impact
24303
24304 2006-07-26  Jackson Harper  <jackson@ximian.com>
24305
24306         * UpDownBase.cs: When the control is selected make the child
24307         controls non selectable, so that a click on them won't do a
24308         focus/unfocus cycle.
24309         - Don't give focus to the text box when the spinner is selected.
24310         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
24311
24312 2006-07-26  Chris Toshok  <toshok@ximian.com>
24313
24314         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
24315         satisfied with this solution.  If the bitmaps are small, we should
24316         just cache them in the PrintPreviewDialog and draw them here.
24317         Also, the layout is broken for the 2-up and 3-up cases.
24318
24319         * Theme.cs: add PrintPReviewControlPaint.
24320
24321         * PrintPreviewDialog.cs: first pass implementation.
24322
24323         * PrintPreviewControl.cs: first pass implementation.  No
24324         scrollbars yet.
24325
24326         * PrintDialog.cs: only validate fields if that particular portion
24327         of the UI is enabled.  Also, set the document's controller to a
24328         PrintControllerWithStatusDialog wrapping the document's print
24329         controller.
24330
24331         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
24332         bring up a SaveFileDialog (i hope we don't want to match the
24333         behavior of the crappy windows file entry) and set the
24334         PrinterSettings.PrintFileName accordingly.
24335
24336 2006-07-26  Jackson Harper  <jackson@ximian.com>
24337
24338         * ContainerControl.cs: Add a field that disables auto selecting
24339         the next control in a container when the container is activated.
24340         * UpDownBase.cs: Don't select the text box when the up down is
24341         selected.
24342
24343 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24344
24345         * XEventQueue.cs: Added methods for peeking (used for compression
24346           of successive events)
24347         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
24348           mouse move events (fixes #78732)
24349
24350 2006-07-25  Jackson Harper  <jackson@ximian.com>
24351
24352         * UpDownBase.cs: Use an internal class for the textbox so that we
24353         can control focus.  the updown control should always have focus,
24354         if either the text area or the buttons are clicked.
24355         - Send the key messages to the textbox, since it never actually
24356         has focus
24357         - Activate and decativate the textbox caret.
24358
24359 2006-07-24  Jackson Harper  <jackson@ximian.com>
24360
24361         * Control.cs: Use the directed select when selecting a control,
24362         this way the container controls override will get called and the
24363         whole ActiveControl chain will get triggered.  TODO: probably need
24364         to make sure this gets done everywhere instead of the old
24365         Select(Control).
24366         * ContainerControl.cs: Implement the directed Select method to
24367         find and activate the correct child control.    
24368         
24369 2006-07-22  Mike Kestner  <mkestner@novell.com>
24370
24371         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
24372         menu handling code so that clicks without a grab work too.
24373         [Fixes #78914]
24374
24375 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
24376
24377         * FileDialog.cs: Enable the BackButton when dirstack has one element.
24378           Added some small optimizations.
24379
24380 2006-07-21  Matt Hargett  <matt@use.net>
24381
24382         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
24383
24384 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
24385
24386         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
24387           tests pass and match MS in some strange border cases.
24388
24389 2006-07-21  Chris Toshok  <toshok@ximian.com>
24390
24391         * ThemeWin32Classic.cs: handle drawing of the relation links and
24392         parent row buttons.
24393
24394         * Theme.cs: change args to DataGridPaintParentRow.
24395
24396         * DataGrid.cs: Don't use controls for the relation links and
24397         parent buttons, so we have to handle all their interactions in
24398         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
24399         when we're navigating through child tables, so we can reinstate
24400         selection, expanded state, current cell, etc.
24401
24402 2006-07-20  Chris Toshok  <toshok@ximian.com>
24403
24404         * ToolBar.cs: When we redraw a button, for whatever reason,
24405         there's no reason to redraw the entire toolbar.  Also, don't call
24406         Control.Refresh from within Redraw, as it's much heavier than
24407         Invalidate (which is really what we want).
24408
24409 2006-07-20  Chris Toshok  <toshok@ximian.com>
24410
24411         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
24412         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
24413         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
24414         traces from within a debug IBindingList datasource
24415         (in mono/winforms/datagrid) for *days*, I've finally gotten things
24416         to work in a similar fashion.
24417
24418 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24419
24420         * ListBox.cs: Don't call Sort () when setting 
24421         the Sorted property to false (avoid an unnecessary sort).
24422
24423 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24424
24425         * ListControl.cs: DataSource should throw an ArgumentException
24426         instead of a normal exception when the argument is not of the 
24427         correct type.
24428
24429 2006-07-20  Mike Kestner  <mkestner@novell.com>
24430
24431         * Control.cs: add InternalPreProcessMessage to allow us to steal
24432         key events before MWF gets its paws on them.  Adapted from a
24433         suggestion by eno.
24434         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
24435         up/down/left/right navigation. Override the new internal control
24436         method to steal the events since they never make it to WndProc.
24437         * ToolBarButton.cs: don't worry about pushed when setting hilight
24438         since the drawing code prefers pushed to hilight. Invalidate on 
24439         Hilight changes. Fixes #78547 and #78525.
24440
24441 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24442
24443         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
24444           the canvas size. Fixes #78868
24445
24446 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
24447
24448         * Splitter.cs: Track requested split position until first layout
24449           is performed. Fixes #78871
24450
24451 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24452
24453         * Application.cs: Removed code that forces 1.x for the version
24454           number if the version started with 0. Not sure why that code was
24455           there and I couldn't find any bugs that indicated we needed it.
24456           Fixes #78869
24457
24458 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
24459
24460         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
24461           ResetDefaults(), just write some output to the console until it's
24462           implemented. Fixes bug #78907 for now. Eliminated two warnings.
24463
24464 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
24465
24466         * PropertyGridView.cs: set StartPosition of drop down forms
24467         so they appear in correct initial spot.  Fixes #78190.
24468
24469 2006-07-19  Mike Kestner  <mkestner@novell.com>
24470
24471         * ThemeWin32Classic.cs: use parent background color when drawing
24472         flat toolbars.  Restructure the conditionals to make sure non-flat
24473         non-Divider toolbars are filled too.  Fixes #78837.
24474
24475 2006-07-19  Mike Kestner  <mkestner@novell.com>
24476
24477         * ListBox.cs: Sort on collection changes even if the handle
24478         isn't created yet.  Fixes #78813.
24479
24480 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24481
24482         * ListControl.cs: DisplayMember should never be null,
24483         and now we assign String.Empty when null is passed to it (this
24484         is the .Net way).
24485
24486 2006-07-17  Mike Kestner  <mkestner@novell.com>
24487
24488         * ListViewItem.cs: restructure Font and subitem Font handling 
24489         to hold a specific font and refer back to owner on null.
24490         Fixes #78761.
24491
24492 2006-07-17  Mike Kestner  <mkestner@novell.com>
24493
24494         * ToolBar.cs: bandaid for side-effect of previous patch which was
24495         discarding explicit heights for non-AutoSize toolbars.  Need to
24496         extend my format tester to deal with AutoSize=false. Fixes #78864.
24497
24498 2006-07-15  Jackson Harper  <jackson@ximian.com>
24499
24500         * LabelEditTextBox.cs:
24501         * TreeView.cs: Use a new LabelEdit class for node editing, this
24502         class automatically 'closes' itself when it gets the enter key or
24503         loses focus.
24504         - Use the client rectangle when setting the trees scrollbars, so
24505         border style is taken into account.
24506         
24507 2006-07-14  Jackson Harper  <jackson@ximian.com>
24508
24509         * TreeNode.cs:
24510         * TreeView.cs: Make the editing work similar to MSs, firing the
24511         events correctly and ending edits correctly.
24512
24513 2006-07-14  Mike Kestner  <mkestner@novell.com>
24514
24515         * ToolBarButton.cs:
24516         * ToolBar.cs: layout restructuring and redraw enhancements to support
24517         formatting changes gracefully, like setting TextAlign, ImageList, 
24518         ButtonSize, and Appearance.  Handles explicit button sizing quirks
24519         of the MS controls.  Things like flat toolbars ignoring button size
24520         but becoming constant sized at the largest button's size.  Normal
24521         toolbars with an image set cannot be shrunk smaller than the image,
24522         but text can be clipped/ignored.
24523         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
24524         is zero.  Seems like DrawString should be smart enough to not put
24525         anything on screen though. Also trim labels and ellipsize at the char
24526         boundary, not word.
24527         Fixes #78711 and #78483.
24528
24529 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24530
24531         * FolderBrowserDialog.cs: Disable "New Folder" button and
24532           "New Folder" contextmenu menuitem if a folder like "My Computer"
24533           is selected.
24534
24535 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24536
24537         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
24538         * FolderBrowserDialog.cs:
24539           - Use MWFConfig to store and read size and position settings
24540           - Added code to create a new folder (button or context menu).
24541             Use TreeView labeledit to change the name of the new folder.
24542
24543 2006-07-14  Jackson Harper  <jackson@ximian.com>
24544
24545         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
24546         when the tree is scrolled we end editing.
24547
24548 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24549
24550         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
24551           Down arrows
24552
24553 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
24554
24555         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
24556         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
24557         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
24558         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
24559         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
24560         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
24561         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
24562         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
24563         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
24564         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
24565         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
24566         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
24567         ListViewItemSelectionChangedEventHandler.cs,
24568         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
24569         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
24570         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
24571         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
24572         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
24573         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
24574         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
24575         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
24576         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
24577         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
24578         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
24579         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
24580         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
24581         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
24582         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
24583         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
24584         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
24585         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
24586         WebBrowserNavigatingEventHandler.cs, 
24587         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
24588
24589 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
24590
24591         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
24592         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
24593         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
24594         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
24595         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
24596         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
24597         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
24598         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
24599         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
24600         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
24601         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
24602         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
24603         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
24604         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
24605         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
24606         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
24607         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
24608         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
24609         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
24610         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
24611         ListViewItemStates.cs, MaskFormat.cs: Added
24612
24613 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
24614
24615         * PropertyGridView.cs: Fix keyboard navigation of drop down.
24616         Patch from eno for bug 78558.
24617         
24618 2006-07-13  Jackson Harper  <jackson@ximian.com>
24619
24620         * TreeView.cs: When an edit is finished make sure that the
24621         selected node is visible.
24622         - When setting the top/bottom use the scrollbars is_visible, so
24623         everything will be set correctly even if the tree isn't visible
24624         yet.
24625
24626 2006-07-13  Jackson Harper  <jackson@ximian.com>
24627
24628         * ComboBox.cs: Revert the item->index part of my previous patch.
24629         * TreeView.cs: Use LostFocus instead of Leave for detecting when
24630         the edit box has lost focus (duh).
24631         - Just make the edit box not visible when we get return, that will
24632         take the focus, which will call EndEdit
24633         * TreeNode.cs When we start editing, notify the treeview.
24634
24635 2006-07-12  Jackson Harper  <jackson@ximian.com>
24636
24637         * ComboBox.cs: Clear out old items before setting the item list.
24638         This prevents databound controls from having their items added
24639         twice.
24640         - Switch the combobox to use indices whereever possible instead of
24641         using Item's.  This allows usto navigate through lists that have
24642         more then one item with the same string value (ie a, b, b, a).
24643         - Scroll the listboxes scrollbar when a non visible item is
24644         highlighted
24645         - Allow keypress to cycle through all the possible values. For
24646         example if you have b1, b2, b3 and hold down the B key all the
24647         values will be cycled through.
24648         
24649 2006-07-12  Jackson Harper  <jackson@ximian.com>
24650
24651         * TextBoxBase.cs:
24652         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
24653         this using the internal methods.
24654         * Control.cs: Add OnGotFocusInternal.  A new method that allows
24655         controls to "override" OnGotFocus and change focus behavior if
24656         needed.
24657         - Same thing for LostFocus
24658         * ComboBox.cs: Pass off focus to the text control properly.
24659
24660 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
24661
24662         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
24663         * FolderBrowserDialog.cs: Almost a complete rewrite.
24664           - Better support for Environment.Specialfolders
24665           - Added support for MWFVFS
24666           - Made setting SelectedPath work
24667
24668 2006-07-12  Jackson Harper  <jackson@ximian.com>
24669
24670         * Control.cs: Optimze getting all the controls.
24671
24672 2006-07-11  Jackson Harper  <jackson@ximian.com>
24673
24674         * ContainerControl.cs: Override SETFOCUS in the container control,
24675         so that it is not selected on mouse click.
24676
24677 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
24678
24679         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
24680           Hopefully we will have a better way once all of focus is complete.
24681
24682 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
24683
24684         * ThemeWin32Classic.cs: Commented out some debug code and fixed
24685           a compile error with csc.
24686
24687 2006-07-11  Jackson Harper  <jackson@ximian.com>
24688
24689         * Control.cs: When hiding a control only select the next control
24690         if the current control was focused.
24691         - Don't handle enter/leave when setting/killing focus, this is
24692         done by the container control.
24693         - Remove is_selected, it's not needed anymore.
24694         - Add utility methods for selecting a child control, and for
24695         firing the Enter/Leave events.
24696         * ContainerControl.cs: When a control is activated fire the
24697         enter/leave events.
24698         - Don't wrap when processing the tab key, so that focus can be
24699         moved outside of the container.
24700         - Use the correct active control
24701
24702 2006-07-11  Jackson Harper  <jackson@ximian.com>
24703
24704         * ComboBox.cs: Remove some debug code that was blinding me.
24705         * UpDownBase.cs: These controls actually aren't implicit, they are
24706         visible to the user.
24707
24708 2006-07-10  Chris Toshok  <toshok@ximian.com>
24709
24710         * DataGrid.cs: move back to the is_adding boolean field.  god i
24711         hate this is_editing/is_adding/is_changing stuff.
24712
24713 2006-07-10  Chris Toshok  <toshok@ximian.com>
24714
24715         * DataGridTableStyle.cs: just check if the property type is bool.
24716         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
24717         Don't use CanRenderType.
24718
24719         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
24720         if our text == NullText.  Remove CanRenderType.
24721
24722         * DataGridBoolColumn.cs: nuke CanRenderType.
24723
24724         * DataGrid.cs: reenable some code to end the current edit inside
24725         of set_CurrentCell.  This fixes the other 1.1.16 regression.
24726         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
24727         Also, remove the visible_row_count arg from CalcRowHeaders, since
24728         we don't need to worry about the actual height of the area.
24729
24730 2006-07-10  Chris Toshok  <toshok@ximian.com>
24731
24732         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
24733         mode, just return.
24734
24735         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
24736         the real sense of the IsInEditOrNavigateMode property (true =
24737         navigate, false = edit).  Also, update OnKeyPress to reflect this.
24738
24739         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
24740         column style exists, we still need to set its property descriptor
24741         to match up with our list manager.
24742
24743 2006-07-10  Chris Toshok  <toshok@ximian.com>
24744
24745         * ThemeWin32Classic.cs: implement the new row/header painting
24746         approach.  The parent row painting will likely go away and
24747         replaced with label controls, but the rest seems to work ok (and
24748         efficiently).
24749
24750         * Theme.cs: change the way we draw datagrid rows.  we don't draw
24751         the row headers as a block now.  Instead we draw them in the
24752         normal draw-row loop.  Add some calls for drawing parent rows and
24753         relation rows.
24754
24755         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
24756         a default table style.  Set the defaults from ThemeEngine.Current,
24757         not SystemColors.  Fix lots of misc issues with property setters.
24758
24759         * DataGrid.cs: move loads of style information out of this class
24760         as it's being duplicated with DataGridTableStyle.  keep track of a
24761         special DataGridTableStyle for the properties we used to mirror
24762         here.  Switch all the style properties to access this table style
24763         instead of instance fields of this class.  Also add a internal
24764         class to represent parent rows (more needs to be stored here, like
24765         the selection state from the parent table, as well as the
24766         expansion state.)  Also, for datasources with relations, do the
24767         right thing for collapse/expand, and add support for the
24768         navigation/parent row buttons.
24769
24770         Lastly, fix the crash in the 1.1.16 build.
24771
24772         * GridTableStylesCollection.cs: make the explicit interface
24773         implementations call the class's methods as opposed to duplicating
24774         them.
24775
24776         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
24777         0 so the text doesn't jump around when we move the cursor.
24778
24779 2006-07-10  Jackson Harper  <jackson@ximian.com>
24780
24781         * TextBoxBase.cs:
24782         * ListBox.cs: Match MS's ToString (this makes debugging focus
24783         stuff infinitely easier).
24784
24785 2006-07-10  Jackson Harper  <jackson@ximian.com>
24786
24787         * Control.cs (SelectNextControl): When checking the control's
24788         parent use this instead of ctrl.parent so that null can be passed
24789         to SelectNextControl. (I have unit tests for this).
24790         - Remove unused var.
24791
24792 2006-07-10  Chris Toshok  <toshok@ximian.com>
24793
24794         * CurrencyManager.cs: correct one regression, the removal of the
24795         finalType field.  Also, add a MonoTODO on CanAddRows, implement
24796         Refresh() correctly, and fix some event emission in
24797         ListChangedHandler.
24798
24799 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
24800
24801         * FileDialog.cs: Don't use brackets for new folders if they exist
24802           under *nix. Instead use -(number of existing folders +1).
24803
24804 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
24805
24806         * FileDialog.cs:
24807           - Fixed really nasty bug #78771
24808           - Don't block the whole GUI when reading directories with a lot of
24809             entries. Use an other thread instead and call BeginInvoke to
24810             update the ListView in MWFFileView
24811
24812 2006-07-07  Chris Toshok  <toshok@ximian.com>
24813
24814         * Control.cs (Dispose): release any Capture when disposing.
24815
24816 2006-07-07  Chris Toshok  <toshok@ximian.com>
24817
24818         * LinkLabel.cs (Select): if we chain up to the parent, set
24819         focused_index to -1 so we'll search for the first available link
24820         the next time the user tabs into us.  Also, if the direction is
24821         backward and focused_index == -1, start the search from the last
24822         element.
24823
24824 2006-07-07  Chris Toshok  <toshok@ximian.com>
24825
24826         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
24827         is beyond the end of the text, don't do anything.
24828         (CreateLinkPieces): set our ControlStyles.Selectable based on
24829         whether or not we have any links.
24830         (Link.Invalidate): use a loop instead of foreach.
24831         (Link.set_Start): null out owner.sorted_links so it'll be
24832         recreated by CreateLinkPieces.
24833
24834 2006-07-06  Chris Toshok  <toshok@ximian.com>
24835
24836         * LinkLabel.cs: revert the SetStyle change.
24837
24838 2006-07-06  Chris Toshok  <toshok@ximian.com>
24839
24840         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
24841         (OnEnableChanged): s/Refresh/Invalidate
24842         (OnGotFocus): if we have a focused index already, refocus it (so
24843         if we mouse out/in to the window it'll focus the right link).
24844         (OnKeyDown): move the tab handling out of here.
24845         (OnLostFocus): don't set focused_index to -1, so we can refocus it
24846         when we lose focus.
24847         (OnMouseDown): don't Capture here - Control handles it.  Also,
24848         focus the active link.
24849         (OnMouseUp): don't deal with Capture.
24850         (OnPaintBackgroundInternal): remove.
24851         (OnTextAlignChanged): CreateLinkPieces before calling the
24852         superclass's method.
24853         (OnTextChanged): call CreateLinkPieces before calling superclass's
24854         method.
24855         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
24856         move around.
24857         (Select): implement this, moving the selection between different
24858         links, and call parent.SelectNextControl if we don't have another
24859         link to focus in the given direction.
24860         (CreateLinkPieces): call Invalidate instead of Refresh.
24861         
24862 2006-07-06  Chris Toshok  <toshok@ximian.com>
24863
24864         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
24865         new LinkLabel internals.
24866
24867         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
24868         over pieces looking for active/focused/etc links.  also, deal with
24869         runs of text (and links) with embedded \n's in them, and use
24870         MeasureCharacterRanges instead of MeasureString to figure out the
24871         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
24872         two-step.
24873
24874 2006-07-04  Jackson Harper  <jackson@ximian.com>
24875
24876         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
24877         XKB or key auto repeat, do it manually.  Without key auto repeat,
24878         when a key is held down we get key press, key release, key press,
24879         key release, ... with auto repeat we get key press, key press, key
24880         press ..., and then a release when the key is actually released.
24881
24882 2006-07-03  Jackson Harper  <jackson@ximian.com>
24883
24884         * TabControl.cs:
24885         * ThemeWin32Classic.cs: Tabs do not obey normal background color
24886         rules, they are always control color regardless of the background
24887         color.
24888
24889 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
24890
24891         * FileDialog.cs: Added internal class MWFConfig.
24892           Removed Registry support and replaced it with support for the new
24893           MWFConfig class. See MWFConfig comments for more information.
24894
24895 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
24896
24897         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
24898           rectangle. Added some patches from eno from bug #78490 and fixed
24899           the arrow position for small up and down CPDrawScrollButtons.
24900
24901 2006-06-30  Jackson Harper  <jackson@ximian.com>
24902
24903         * InternalWindowManager.cs: Remove some debug code.
24904         * Form.cs: When an MdiParent is set to null, the window is
24905         "detatched" and becomes a normal window.
24906         * MdiClient.cs: Don't bring the new child form to the front until
24907         it is activated (setting it as active does this), this makes the
24908         previously active forms titlebar get redrawn as inactive.
24909
24910 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
24911
24912         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
24913           with later controls
24914
24915 2006-06-29  Mike Kestner  <mkestner@novell.com>
24916
24917         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
24918         arrow in keynav state.  Fixes #78682.
24919
24920 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
24921
24922         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
24923           order (fixes #78393)
24924
24925 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
24926
24927         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
24928           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
24929           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
24930           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
24931           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
24932           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
24933           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
24934           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
24935           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
24936           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
24937           enumerations (FlagsAttribute, SerializableAttribute, added/removed
24938           values)
24939
24940 2006-06-28  Mike Kestner  <mkestner@novell.com>
24941
24942         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
24943
24944 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
24945
24946         * PropertyGrid.cs,
24947           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
24948           item lines from other area (It also makes BackColor consistent and
24949           compatible with .NET). Fixed bug #78564.
24950
24951 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
24952
24953         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
24954         Patch from Eno for #78555.
24955
24956 2006-06-27  Chris Toshok  <toshok@ximian.com>
24957
24958         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
24959
24960         * DataGridColumnStyle.cs: same.
24961
24962         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
24963         
24964         * DataGridDrawingLogic.cs: nuke.
24965
24966 2006-06-27  Chris Toshok  <toshok@ximian.com>
24967
24968         * DataGridTableStyle.cs: clean up the constructors, and build the
24969         list of child relations for this table.  I have no idea if this is
24970         where we should be doing it (it probably isn't), but since we're
24971         already iterating over the properties..
24972
24973         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
24974         struct and array for keeping track of row information, similar to
24975         what's shown in a hack on
24976         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
24977
24978         * Theme.cs: be consistent about the naming of DataGrid methods,
24979         prefering ColumnWidths and RowHeights over columnsWidths and
24980         RowsHeights.
24981
24982         * ThemeWin32Classic.cs: same, and also add support for variable
24983         sized rows (and the +/- expansion icons for related rows).
24984
24985 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
24986
24987         * TextBoxBase.cs: Applied Eno's patch from #78660
24988
24989 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
24990
24991         * Form.cs (ScaleCore): We don't want to scale our form if it's
24992           state is minimized or maximized, but we still need to scale our
24993           child windows. Also, added try/finally block to ensure layout
24994           gets reset (Fixes #78697)
24995
24996 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
24997
24998         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
24999
25000 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25001
25002         * Form.cs: Fixed c+p error and added check to resize form if minimum
25003           size is bigger than current size (Fixes #78709)
25004
25005 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
25006
25007         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
25008
25009 2006-06-26  Mike Kestner  <mkestner@novell.com>
25010
25011         * ComboBox.cs: only do Keypress handling in the combo when there  
25012         are items in the collection. Fixes #78710.
25013
25014 2006-06-26  Chris Toshok  <toshok@ximian.com>
25015
25016         * Binding.cs: make this work bi-directionally.  also, clear up
25017         other mixups between Push/Pull Data (e.g. we're supposed to pull
25018         data when validating).
25019
25020         * BindingManagerBase.cs: trim some fully qualified collection
25021         types.
25022
25023         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
25024
25025 2006-06-23  Chris Toshok  <toshok@ximian.com>
25026
25027         * PropertyManager.cs: It appears (according to the unit tests)
25028         that PropertyManager doesn't use
25029         PropertyDescriptor.AddValueChanged to track propery value changes
25030         in its datasource, but uses the same scheme as Binding, where it
25031         looks for a <Property>Changed event and binds to it.
25032
25033         Also, according to the docs, IsSuspended always returns false for
25034         a property manager with a non-null datasource.
25035
25036 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
25037
25038         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
25039           need to update the actual DialogResult. (Fixes #78613)
25040
25041 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
25042
25043         * Form.cs (ShowDialog): Release any captures before running the
25044           new message pump (fixes #78680)
25045
25046 2006-06-22  Mike Kestner  <mkestner@novell.com>
25047
25048         * ListView.cs: Layout column widths properly in details mode even 
25049         if HeaderStyle.None is set.  Fixes #78691.
25050
25051 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
25052
25053         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
25054
25055 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
25056
25057         * Control.cs (ContainsFocus): Using new driver method to get focused
25058           window, instead of trying to use internal tracking var, which can
25059           recursion issues (Fixes #78685)
25060         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
25061           XplatUIWin32.cs: Added GetFocus method to return focused window
25062
25063 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25064
25065         * ColorDialog.cs: when the mouse button is pressed inside the color
25066         matrix, don't let the cursor move out of it until the button is
25067         released, which is the behavior on windows. Changed 'colours' by
25068         'colors' to use the same word consistently.
25069
25070 2006-06-21  Chris Toshok  <toshok@ximian.com>
25071
25072         * DataGrid.cs: add in some basic navigation stuff (navigating to a
25073         child relation and back, using a stack).  Also, remove
25074         GetDataSource and the code that calls it - it's not needed.  Also,
25075         track CurrencyManager.ListName's removal.
25076
25077 2006-06-21  Chris Toshok  <toshok@ximian.com>
25078
25079         * CurrencyManager.cs: push some of the original type checking from
25080         BindingContext.CreateBindingManager to here, and remove some of
25081         the finalType stuff.  Need more tests to make sure I've got the
25082         ListName part right, and we might need more in SetDataSource.
25083
25084         * PropertyManager.cs: add a ctor that takes just the datasource,
25085         and no property name.  Make SetDataSource work with a null
25086         property_name, and make Current return the data_source if the
25087         property descriptor is null.  this makes 'string foo = "hi";
25088         BindingContext[foo].Current' return "hi" as it should.
25089
25090         * RelatedCurrencyManager.cs: make this code more generic - there's
25091         no reason the parent manager has to be CurrencyManager, and
25092         there's no reason to pass the DataRelation.  It suffices to use a
25093         BindingManagerBase and PropetyDescriptor.
25094
25095         * RelatedPropertyManager.cs: make a similar change here.
25096         
25097         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
25098         flower I knew it could be.
25099
25100 2006-06-20  Chris Toshok  <toshok@ximian.com>
25101
25102         * PropertyManager.cs: the PropertyChangedHandler is invoked when
25103         data in the source has changed and we need to update the control,
25104         so s/PullData/PushData.
25105
25106         * CurrencyManager.cs: Refresh is meant to update the control from
25107         data in the datasource.  So, s/PullData/PushData.
25108
25109         * BindingContext.cs: add more ugliness (we weren't handling the
25110         case where data_source = DataTable and data_member = column_name).
25111
25112         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
25113         from the perspective of the datasource.  PullData pulls from the
25114         control, PushData pushes to the control.
25115
25116 2006-06-20  Chris Toshok  <toshok@ximian.com>
25117
25118         * BindingContext.cs: rewrite the CreateBindingManager code to
25119         handle navigation paths more or less properly.  This could
25120         definitely stand some more work, in particular to push the
25121         recursion up to the toplevel.  But that relies on fixes in other
25122         places (System.Data comes to mind).
25123
25124         Also, move to a flat hashtable (and encode the twolevel nature of
25125         the dictionary into the hash key).  This lets us implement the
25126         IEnumerable.GetEnumerator method.
25127
25128         * RelatedCurrencyManager.cs: new class.  Update our view based on
25129         our relation and our parent CurrencyManager's position.
25130
25131         * CurrencyManager.cs: split out some logic from the ctor into
25132         SetView, so it can be called from the new RelatedCurrencyManager
25133         subclass.
25134
25135         * RelatedPropertyManager.cs: new class.  Update our datasource
25136         based on the position of our parent CurrencyManager.
25137
25138         * PropertyManager.cs: split out some logic from the ctor into
25139         SetDataSource, so it can be called from the new RelatedDataSource
25140         subclass.  Also, make the Current getter return the value
25141         of the PropertyDescriptor, not the data_source.
25142
25143         * Binding.cs: no need to duplicate the string splitting code here.
25144
25145 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25146
25147         * Control.cs:
25148           - set_Enabled: OnEnabledChanged is not called if the inherited state 
25149             of the control is not altered, even though  we might be changing the
25150             internal state of the control (#78458)
25151           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
25152             OnEnabledChanged, to allow easy altering of any child window state
25153           - OnEnabledChanged: Added code to enable/disable driver window state
25154           - OnParentEnabledChanged: Instead of firing the event, call 
25155             OnEnabledChanged, which will fire the event and also a) set driver
25156             window state and pass the enabled state to any grandchildren (#78458)
25157
25158 2006-06-19  Jackson Harper  <jackson@ximian.com>
25159
25160         * InternalWindowManager.cs: We don't set the cursor explicitly
25161         thats done via the response to NCHITTESTs.
25162         - Don't need to adjust for titlebar heights anymore, the
25163         coordinates are coming in the correct coordinates now (see peters
25164         last patch).
25165
25166
25167 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25168
25169         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
25170           being translated relative to whole window, instead of client window.
25171           That caused broken offsets on mouseclick (and caused gas for our
25172           InternalWindowManager)
25173
25174 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25175
25176         * TextControl.cs:
25177           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
25178           - Undo(): Added replay of cursor move on DeleteChars action; added
25179             calling Undo() again if a recorded cursor move is invalid (to
25180             ensure that some action is performed on Undo)
25181         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
25182
25183 2006-06-16  Jackson Harper  <jackson@ximian.com>
25184
25185         * MdiClient.cs: Instead of just sizing maximized windows when
25186         there is a resize we also have to adjust the Y of minimized
25187         windows, so they stay pinned to the bottom of the mdi container.
25188         - Eliminate separate tracking of the active control, we can just
25189         get this from the controls collection.
25190         - Paint the decorations for the newly activated titlebar so we get
25191         a pretty blue bar.
25192         * InternalWindowManager.cs:
25193         * ThemeWin32Classic.cs: Minimized windows get all three buttons
25194         even if they are a tool window.
25195         
25196 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25197
25198         * TextControl.cs (Undo): Handle non-existent cursor locations in the
25199           undo buffer, these can happen when text was deleted and the cursor
25200           was recorded first. Since we will also have a recorded cursor
25201           after the delete this is not an issue. (Fixes #78651)
25202
25203 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
25204
25205         * AccessibleObject.cs: Remove dependence on Control.is_selected;
25206           instead properly track control states internally (allows us to
25207           remove is_selected from Control)
25208
25209 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25210
25211         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
25212         whose width is not a multiple of 8.
25213
25214 2006-06-13  Jackson Harper  <jackson@ximian.com>
25215
25216         * MdiClient.cs:  Only maximize the next child if the current one
25217         is maximized.
25218
25219 2006-06-13  Chris Toshok  <toshok@ximian.com>
25220
25221         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
25222         modified.  Also, guard against grid or grid_drawing being null in
25223         Invalidate.
25224
25225         * DataGrid.cs: Reformat tons of getters/setters.  In the
25226         DataMember setter, just call SetNewDataSource instead of
25227         duplicating some of its functionality.  In SetNewDataSource, don't
25228         check ListManager for null, since the property getter creates the
25229         object if needed.
25230
25231         * DataGridTableStyle.cs: don't set TableStyle or call
25232         SetDataGridInternal on the column here, it's done in
25233         GridColumnStylesCollection.Add.
25234
25235         * GridColumnStylesCollection.cs: fix all the explicit interface
25236         implementations to just call our methods.  Nuke AddInternal() and
25237         move the body of it to Add().  Also, add a call to
25238         column.SetDataGridInternal to Add().
25239
25240         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
25241         base()+duplicate code.  Also, use the Format property instead of
25242         format to generate an Invalidate ala MS.  Lastly, create the
25243         textbox here, unconditionally.
25244         (set_Format): call Invalidate.
25245         (get_TextBox): no need to call EnsureTextBox.
25246         (Commit): remove the message box.
25247         (Edit) remove the call to EnsureTextBox.
25248         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
25249         (EnterNullValue): no need to check textbox for null.
25250         (HideEditBox): no need to check textbox for null.
25251         (SetDataGridInColumn): add the textbox to the grid's controls.
25252         (EnsureTextBox): nuke.
25253         
25254 2006-06-13  Jackson Harper  <jackson@ximian.com>
25255
25256         * MdiWindowManager.cs: Hook up to the maximized menus paint event
25257         and redraw the buttons when needed. Unhook when the window is
25258         unmaximized.
25259         * MainMenu.cs: Add an internal Paint event, the mdi window manager
25260         needs this so that it can redraw its buttons when the menu is
25261         repainted.
25262         * InternalWindowManager.cs:
25263         * Form.cs: The method order has changed for DrawMaximizedButtons,
25264         so that it can be a PaintEventHandler.
25265         
25266 2006-06-13  Jackson Harper  <jackson@ximian.com>
25267
25268         * MdiClient.cs: When we close a maximized mdi window, the next mdi
25269         window is activated and maximized, even if it wasn't before.
25270         - When  a new window is activated repaint the decorations of the
25271         old one, so that it no longer has the Active "look" (the blue
25272         titlebar).
25273         * InternalWindowManager.cs: Open up CreateButtons to base classes
25274         so they can recreate the buttons on state changes.
25275         - If a window is maximized give it all three buttons
25276         * MdiWindowManager.cs: Create the titlebar buttons when the state
25277         is changed, this is needed because a toolwindow will not have all
25278         three buttons until it is maximized.
25279
25280 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
25281
25282         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
25283           Fixed bug #78609.
25284
25285 2006-06-12  Jackson Harper  <jackson@ximian.com>
25286
25287         * KeysConverter.cs: Make sure we handle the Ctrl special case
25288         if its the only key.
25289         
25290 2006-06-12  Jackson Harper  <jackson@ximian.com>
25291
25292         * Theme.cs: Add a method to get the size of a managed window
25293         toolbar button.
25294         * InternalWindowManager.cs: Remove the ButtonSize property, this
25295         should be retrieved from the theme.
25296         * MdiWindowManager.cs: Get the button size from the theme
25297         * ThemeWin32Classic.cs: Make the method to get the managed window
25298         titlebar button size public.
25299         - Handle the different button sizes of maximized toolwindows
25300         (should match any maximized window).
25301         - Get the titlebar height from the theme, not the WM (which gets
25302         it from the theme).
25303
25304 2006-06-12  Jackson Harper  <jackson@ximian.com>
25305
25306         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
25307         event down to the mdi window manager.
25308         - Expose some extra stuff to base classes
25309         - Make sure to end the Capture on an NC Mouse up, so that we can
25310         get double clicks properly, and the sizing doens't stick.
25311         - When doing PointToClient contain it in the workable desktop
25312         area, this prevents windows from changing size when the cursor is
25313         pulled outside of the working area while sizing.
25314         * MdiWindowManager.cs: When we get a double click maximize the
25315         window.
25316         - Reset the cursor after handling mode changes.
25317
25318 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
25319
25320         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
25321           current desktop, instead of just assuming a 0, 0 origin. This
25322           is needed for our internal window manager, to know the top
25323           margin of the desktop
25324
25325 2006-06-12  Chris Toshok  <toshok@ximian.com>
25326
25327         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
25328         we need this to get rid of the selected background in the bool
25329         column.
25330         (CancelEditing): move the ConcedeFocus call to above the Abort
25331         call.  Also, set is_changing to false and invalidate the row
25332         header if we were changing before.
25333         (ProcessKeyPreviewInternal): remove, since noone outside this
25334         class calls it anymore.  Roll the code into ProcessKeyPreview.
25335         (EndEdit): remove the internal version.
25336         (InvalidateCurrentRowHeader): make private.
25337
25338         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
25339         Keys.Escape handling (and with it the last call to
25340         DataGrid.EndEdit from outside the class.)
25341
25342
25343 2006-06-12  Chris Toshok  <toshok@ximian.com>
25344
25345         * DataGridTextBox.cs (.ctor): isedit defaults to false.
25346         (OnKeyPress): set isedit to true.
25347         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
25348         already handled by the grid.
25349
25350         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
25351         right.  ugh.
25352         (set_DataSource): SetDataSource always returns true, so stop
25353         putting it in an if statement.
25354         (EndEdit): get rid of some {}'s
25355         (ProcessGridKey): return true in case Keys.Escape.
25356         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
25357         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
25358         PositionChanged, stopped connecting to CurrentChanged.
25359         (GetDataSource): simplify this a bunch.
25360         (SetDataSource): change return type from bool to void.
25361         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
25362         to this, and make sure we don't set ListManager.Position inside
25363         set_CurrentCell.
25364         (OnListManagerItemChanged): if we're passed an actual index,
25365         redraw that row.
25366
25367         * CurrencyManager.cs (set_Position): don't call PullData here.
25368
25369 2006-06-09  Jackson Harper  <jackson@ximian.com>
25370
25371         * TreeNode.cs:  Recalculate the visible order before doing the
25372         Expand/Collapse Below calls, because those calls generate an
25373         expose.
25374         - Reduce calls to the TreeView property, which is mildly expensive
25375         by using a local var.
25376         * Form.cs: Layout the MDI child windows when creating the parent
25377         form.
25378         - Don't use the internal constructor anymore
25379         * MdiClient.cs: use the parent form width/height (if available)
25380         when laying out the child windows, we do this because the
25381         mdiclient isn't docked yet when the initial layout is done.
25382         - Don't need an internal constructor anymore.
25383
25384 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25385
25386         * FileDialog.cs: handle access errors when trying to create a folder
25387         or changing to a directory. No need to initialize out parameters.
25388
25389 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25390
25391         * FileDialog.cs: Append a number when creating a new folder if the
25392           folder already exists (use parenthesis instead of square brackets)
25393
25394 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25395
25396         * FileDialog.cs:
25397           - Disabled registry support for windows and added better registry
25398             error checking for other systems (need to investigate why it
25399             works perfectly on my system)
25400           - If a folder already exist show an error MessageBox instead of
25401             trying to create an indexed name.
25402           - Fixed a non intentional typo.
25403
25404 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25405
25406         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
25407
25408 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25409
25410         * FileDialog.cs: When creating a new folder don't crash if the
25411           folder already exists.
25412
25413 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25414
25415         * FileDialog.cs: Allmost a complete rewrite.
25416           - added a "virtual" file system that handles the differences
25417             between unix and windows file systems (especially the directory
25418             structure). Moved most of the directory and file handling code
25419             into the vfs.
25420             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
25421             UnixFileSystem and FSEntry.
25422           - Recently used folder/directory, size, location and used file names
25423             (file name ComboBox) are now stored in the registry and get read
25424             before the dialog shows up (fixes part 6 of bug #78446).
25425           - Creation of new folders/directories is now possible (context menu
25426             or ToolBar). Added TextEntryDialog for this that fills in the gap
25427             until ListView.LabelEdit works.
25428           - Fixed cursor handling (bug #78527) and focus handling for
25429             PopupButtonPanel
25430           - Various "Search in" ComboBox enhancements. The content of the
25431             dropdown listbox now almost matches ms.
25432           - Changed the behaviour when the user switches to SpecialFolder
25433             Recent to show the ListView in View.Details.
25434           - Beside using the ToolBar to change the View property of the
25435             file ListView it is now possible to use the context menu too.
25436
25437 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25438
25439         * ComboBox.cs: Don't create a new ObjectCollection when an item
25440           gets inserted. Just insert the item in the existing object_items
25441           ArrayList.
25442
25443 2006-06-08  Jackson Harper  <jackson@ximian.com>
25444
25445         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
25446         that the treeview and root node checks are done also, this fixes a
25447         regression i caused in the unit tests.
25448
25449 2006-06-07  Wade Berrier <wberrier@novell.com> 
25450
25451         * RichTextBox.cs: More ISO8859-1 -> unicode
25452
25453 2006-06-07  Mike Kestner  <mkestner@novell.com>
25454
25455         * ComboBox.cs : use items to hold highlight/selection so that
25456         collection insertions don't require synchronization.
25457
25458 2006-06-07  Jackson Harper  <jackson@ximian.com>
25459
25460         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
25461         routine.  We now always keep the sized edge at the cursor instead
25462         of computing movement and adjusting rects.  There is one buglet
25463         with this method though when the cursor is moved over area that
25464         the window can not expand too (such as the toolbars on the desktop).
25465
25466 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25467
25468         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
25469         here. Fixes crash on startup in AlbumSurfer.
25470
25471 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
25472
25473         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
25474           values
25475
25476 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25477
25478         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
25479         statement to avoid calling XNextEvent which will block if another thread
25480         took the event that we were expecting. Fixes bug #78605.
25481
25482 2006-06-07  Mike Kestner  <mkestner@novell.com>
25483
25484         * ListView.cs : isolated checkbox clicking from the selection logic.
25485         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
25486
25487 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25488
25489         * Form.cs: Check that the value passed to Form.DialogResult
25490         is a valid enum value.
25491
25492 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25493
25494         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
25495         Computer'. Clicking it in the network view goes to 'My Computer'.
25496         Added CIFS filesystem type. Display the mount point of filesystems.
25497         Avoid duplicate mount points (happens for me with CIFS);
25498
25499 2006-06-06  Jackson Harper  <jackson@ximian.com>
25500
25501         * InternalWindowManager.cs: Draw the maximized windows buttons
25502         when resizing.
25503
25504 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25505
25506         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
25507         all other dialogs. Fixes bug #78585.
25508
25509 2006-06-06  Mike Kestner  <mkestner@novell.com>
25510
25511         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
25512         Only invalidate checkbox on checkstate changes to avoid flicker.
25513         * ListBox.cs : avoid unselect/select when clicking selected item.
25514         avoid reselection flicker for already multiselected items.
25515         Fixes #78382.
25516
25517 2006-06-06  Jackson Harper  <jackson@ximian.com>
25518
25519         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
25520         the parent form so that the menu is removed if needed.
25521
25522 2006-06-06  Mike Kestner  <mkestner@novell.com>
25523
25524         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
25525         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
25526
25527 2006-06-06  Mike Kestner  <mkestner@novell.com>
25528
25529         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
25530
25531
25532 2006-06-06  Jackson Harper  <jackson@ximian.com>
25533
25534         * Control.cs: Use the property (instead of the field) to get the
25535         default cursor so it is instantiated correctly.
25536         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
25537         resizes so we need to manually repaint the window decorations here.
25538         - Set the titlebar button locations as soon as they are created,
25539         otherwise they are not set correctly on win32.
25540         
25541 2006-06-06  Chris Toshok  <toshok@ximian.com>
25542
25543         * CurrencyManager.cs (set_Position): call PullData before
25544         OnCurrentChanged.
25545         (AddNew): after calling IBindingList.AddNew, update our
25546         listposition, and call OnCurrentChanged/OnPositionChanged (without
25547         calling PullData).
25548         (OnCurrentChanged): remove the call to PullData from here.
25549         (OnItemChanged): remove the call to PushData from here.
25550         (OnPositionChanged): change the test from == null to != null to
25551         match the other methods.
25552         (ListChangedHandler): the grossest part of the patch.  Implement
25553         this such that it passes the unit tests in CurrencyManagerTest and
25554         the output more or less matches that of MS's implementation.
25555  
25556 2006-06-06  Mike Kestner  <mkestner@novell.com>
25557
25558         * ListView.cs : only update check state on single click.
25559         * ThemeWin32Classic.cs : fix focus drawing for details view without
25560         fullrowselect.  Fixes #78454.
25561         * XplatUIX11.cs : fix for double click emission.
25562
25563 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
25564
25565         * PropertyGridView.cs : Applied Atsushi's patch to fix
25566         font dialog bug  (#78197).
25567
25568 2006-06-05  Jackson Harper  <jackson@ximian.com>
25569
25570         * TreeNode.cs: Compute the next node for expanding/collapsing
25571         correctly. We now factor in nodes without a NextNode
25572         correctly. (Fixes somes cases in nunit-gui).
25573         * InternalWindowManager.cs: Set the bounds when updating the
25574         virtual position of a tool window.
25575         
25576 2006-06-05  Chris Toshok  <toshok@ximian.com>
25577
25578         * DataGrid.cs: rename cached_currencymgr to list_manager.
25579         (set_CurrentCell): move SetCurrentCell code here, and clean it up
25580         some.
25581         (CurrentRow, CurrentColumn): single accessors so we can make the
25582         cursor movement code a lot easier to understand.
25583         (CurrentRowIndex): implement this in terms of CurrentRow.
25584         (BeginEdit): clean this up a bit.
25585         (CancelEditing): sort out the is_editing/is_changing/is_adding
25586         stuff a little.
25587         (EndEdit): minor changes.
25588         (OnKeyDown): add a comment about a (most likely) unnecessary
25589         check.
25590         (OnMouseDown): cancel editing when we click on a row header.  And
25591         use the CurrentRow setter, not CurrentCell.
25592         (ProcessDialogKey): directly call ProcessGridKey.
25593         (UpdateSelectionAfterCursorMove): factor out this common block of
25594         code (it's used everywhere that we move the cursor by updating row
25595         or column).
25596         (ProcessGridKey): pretty substantial overhaul.  Use the
25597         CurrentRow/CurrentColumn properties to make the code a lot more
25598         readable.  Only use the CurrentCell property when we have to
25599         modify both row and column at once.  Tab behavior is still broken,
25600         and Delete is untested.
25601         (Select): if we have no selected rows, set selection_start to
25602         @row.
25603         (EditCurrentCell): rename EditCell this.  It was only ever invoked
25604         with CurrentCell as the arg, so drop the arg and rename it.
25605
25606         * DataGridColumnStyle.cs: clean up the constructors a little, and
25607         drop CommonConstructor().
25608
25609         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
25610         actually get notified when the user hits it.
25611         (ProcessKeyMessage): *substantially* simplify this method.
25612         There's no reason (that I can see) for the textbox to be making
25613         calls into the datagrid at all.  Remove all of them but the ones
25614         for Enter handling.  those will take some more work.
25615
25616         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
25617         calling HideEditBox.
25618         (HideEditBox): if we have an active textbox, render it invisible
25619         without causing a re-layout of the datagrid.
25620
25621 2006-06-05  Mike Kestner  <mkestner@novell.com>
25622
25623         * ListView.cs : fix NRE crasher when focuseditem is cleared by
25624         collection changes by resetting it to Items[0].  Fixes #78587.
25625
25626 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25627
25628         * MessageBox.cs: if the height of the text is larger than the icon_size,
25629         use that. Fixes bug #78575.
25630
25631 2006-06-05  Jackson Harper  <jackson@ximian.com>
25632
25633         * TreeView.cs: Fix line drawing when scrolling.  To do this each
25634         node is basically responsible for drawing its entire horizontal
25635         area.  When drawing a node it draws its parent node lines if
25636         needed.
25637         - Adjust the clip area to the viewport rectangle
25638         - Fix Left/Right key handling to match MS. (It expand/collapses
25639         and moves to parents/first child but does not move selection to
25640         sibling nodes).
25641         - Fix SetTop to work with new bound calculation code
25642         - When scrollbars are no longer needed we need to reset scrolling
25643         vars and recalculate the visible order so the redraw is correct
25644         * TreeNode.cs: We can't expand/collapse nodes with no children.
25645
25646 2006-06-03  John Luke  <john.luke@gmail.com> 
25647
25648         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
25649         so the colors work without dev packages
25650         
25651 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
25652
25653         * Control.cs 
25654           - Select: Implemented to just use activate. Seems to match MS 
25655             behaviour closest. Documented to only do actual control walking 
25656             based on it's parameters if in a container control so I moved 
25657             the code there.
25658           - Removed selection check logic from our internal Select() method
25659         * ContainerControl.cs:
25660           - Select: Moved selection logic from Control here, since MS documents
25661             that containers obey the bool arguments. No longer calling base
25662
25663 2006-06-02  Jackson Harper  <jackson@ximian.com>
25664
25665         * TreeView.cs: If the selected node isn't changed when we get
25666         focus update the previously selected node so that we see the
25667         selection box.
25668
25669 2006-06-02  Mike Kestner  <mkestner@novell.com>
25670
25671         * ComboBox.cs: restructure grab and general mouse event handling.
25672         Make the composite control raise mouse events like it was a single
25673         control for leaves/enters/motion/up/down events.  fix dropdown list
25674         coordinate mangling and refactor it into the scrollbar subclass to
25675         reduce code duplication.  Fixes #78282 #78361 and #78457.
25676
25677 2006-06-02  Mike Kestner  <mkestner@novell.com>
25678
25679         * ScrollBar.cs: remove Capture setting/clearing, as it happens
25680         automatically in the Control.WndProc.
25681
25682 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25683
25684         * FileDialog.cs: fix crash when running SharpChess, which sets the
25685         FilterIndex to 2 with only one Filter.
25686
25687 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25688
25689         * ToolBar.cs: add SizeSpecified property.
25690         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
25691         try to figure out our real size, otherwise fallback to what the
25692         container says.
25693
25694 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25695
25696         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
25697         * Control.cs (WndProc): MS always calls the DefWndProc to pass
25698           up the event
25699
25700 2006-06-01  Mike Kestner  <mkestner@novell.com>
25701
25702         * ListView.cs: revamp the focus management in ListView.  It still
25703         causes churn of LostFocus/GotFocus emissions on clicks, but it's
25704         better than not handling focus at all.  Will revisit when pdb feels
25705         the general focus handling is solid.  Fixes #78526.
25706
25707 2006-06-01  Jackson Harper  <jackson@ximian.com>
25708
25709         * TreeView.cs: Set the default border style in the constructor.
25710         - Move painting to use OnPaintInternal instead of capturing
25711         WM_PAINT, this is the correct way of doing things
25712         - UpdateBelow shouldn't invalidate the scrollbar area
25713         - Cap the top on update below in case the node was above the top
25714         of the viewport rectangle.
25715         - ExpandBelow and Collapse below need to obey Begin/End Update.
25716         * TreeNode.cs: Make is_expanded internal so the treenode
25717         collection can change it without firing the whole event chain.
25718         * TreeNodeCollection.cs: When clearing all the child nodes make
25719         sure to recalc the visible order.
25720         - Improve algo for remove the top node
25721
25722 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25723
25724         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
25725           SendMessage directly calling window procedures, which in turn might
25726           call SetFocus()
25727
25728 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
25729
25730         * Control.cs: Don't handle WM_SETFOCUS if the same window already
25731           has focus (works around X11 sending a FocusIn after our SetFocus)
25732         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
25733
25734 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
25735
25736         * Mime.cs: Fix for the NET_2_0 build.
25737           NameValueCollection needs StringComparer now.
25738
25739 2006-05-31  Chris Toshok  <toshok@ximian.com>
25740
25741         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
25742         return (via an out parameter) the starting X of the column.
25743         (UpdateVisibleColumn): track change to FromPixelToColumn.
25744         (HitTest): add a ColumnResize case here.
25745         (DrawResizeLine): new function, probably poorly named.
25746
25747         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
25748         only need to keep one reference.
25749         (set_ListManager): same.
25750         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
25751         Also, add support for HitTestType.ColumnResize.
25752         (OnMouseMove): add column resize behavior here, and change the
25753         cursor to the correct one as we move around the datagrid.
25754         (OnMouseUp): terminate the column resize if we're resizing.
25755         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
25756         for the current cell.
25757         (ConnectListManagerEvents): use cached_currencymgr.
25758         (DisconnectListManagerEvents): fill this in, using
25759         cached_currencymgr.
25760         (SetCurrentCell): remove cached_currencymgr_events handling.
25761         (SetDataMember): only call DisconnectListManagerEvents if
25762         cached_currencymgr is != null.
25763         (SetDataSource): same.
25764         (OnListManagerCurrentChanged): cached_currencymgr_events ->
25765         cached_currencymgr.
25766
25767 2006-05-31  Jackson Harper  <jackson@ximian.com>
25768
25769         * BindingManagerBase.cs: Remove somedebug code that creeped into
25770         SVN.
25771         * TreeNode.cs: We get the indent level dynamically right now, so
25772         don't track it as a member.
25773         * TreeNodeCollection.cs: Make sure all nodes added to the list
25774         have parents, treeviews/topnodes setup properly.
25775         - Don't attempt to track indent level.
25776
25777 2006-05-30  Jackson Harper  <jackson@ximian.com>
25778
25779         * BindingContext.cs: Create the currency manager tables here.
25780         This allows us to more easily create null tables (when bad data
25781         members are used), and more easily create related currency
25782         managers.
25783         * CurrencyManager.cs: All the table creation stuff is done by the
25784         binding context now.
25785         - Current should throw an exception if listposition is -1.
25786         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
25787         been bound yet.
25788
25789 2006-05-30  Mike Kestner  <mkestner@novell.com>
25790
25791         * ListView.cs: allow reexpansion of zero-width column headers.
25792         Fixes #78528.
25793
25794 2006-05-28  Chris Toshok  <toshok@ximian.com>
25795
25796         * CurrencyManager.cs (get_Current): after the late binding
25797         listposition = -1 fix, we need to guard against it here and return
25798         null, otherwise we raise an exception (which is swallowed
25799         elsewhere, and breaks datagrid databinding.)
25800
25801 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
25802
25803         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
25804           than WM_SYSKEY, don't throw if get something unexpected (#78507)
25805
25806 2006-05-26  Jackson Harper  <jackson@ximian.com>
25807
25808         * ControlPaint.cs:
25809         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
25810         values, it's faster and it's all we care about (we don't care if
25811         the names aren't equal).
25812         * KeyboardLayouts.cs: Eliminate some dead code.
25813         - Lazy init things
25814         * X11Keyboard.cs: Lazy init keyboard detection.
25815         - Cleanup access modifiers a little.
25816
25817 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
25818
25819         * XplatUIX11.cs: Once again, attempting to get layout just right.
25820
25821 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
25822
25823         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
25824           the sizes of each link section, that will result in sizes that
25825           match DrawString's layout (Fixes #78391)
25826
25827 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
25828
25829         * FileDialog.cs: If AddExtension property is true autocomplete the
25830           extensions in SaveFileDialog correctly. Fixes bug #78453.
25831           Set MyNetwork and MyComputer to "C:\" for windows. This should
25832           fix part 8 of bug #78446 for now.
25833
25834 2006-05-26  Chris Toshok  <toshok@ximian.com>
25835
25836         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
25837         invalidate the current row header if we need to, but presumably
25838         we'll invalidate the row corrsponding to the bounds or
25839         editingControl.
25840         (GridHScrolled): switch back to this method, as it's part of the
25841         public api.  *sigh*.
25842         (GridVScrolled): same.
25843         (OnMouseWheel): hack up something that more or less works.  Call
25844         GridHScrolled/GridVScrolled directly, instead of duplicating much
25845         of their code here.
25846         (EnsureCellVisibility): reinstate a bunch of this code, since we
25847         can't just set the scrollbar Value and expect to do all the work
25848         in the ValueChanged handler.  Also, Call Update() after scrolling
25849         in one direction so the other XplatX11.ScrollWindow call has the
25850         proper stuff in the proper places.
25851         (EditCell): set is_editing to true before calling .Edit.
25852
25853         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
25854         don't bother comparing first.
25855         (OnKeyPress): call grid.ColumnStartedEditing before calling
25856         base.OnKeyPress.  this will set is_changing and invalidate the row
25857         header if necessary.
25858         (ProcessKeyMessage): for WM_CHAR messages, call
25859         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
25860         and WM_KEYDOWN.
25861         
25862         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
25863         it's done in the DataGrid.
25864         (NextState): call grid.ColumnStartedEditing, which takes care of
25865         invalidating the row header (and setting is_changing).
25866
25867         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
25868         here.  it's done in the DataGrid.
25869
25870 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25871
25872         * Control.cs: allow changing the cursor when the mouse position is
25873         out of bounds but Capture is set.
25874         * LinkLabel.cs: handle the case when the mouse button is pressed on the
25875         linklabel but released somewhere else.
25876
25877 2006-05-25  Jackson Harper  <jackson@ximian.com>
25878
25879         * TreeView.cs: When we get focus if there is no selected node make
25880         it the top node
25881         - Remove some uneeded setup code from Draw.
25882         * TreeNodeCollection.cs: If the tree doesn't have a top node when
25883         a new node is inserted make the new node the top.
25884         * XplatUIX11.cs:
25885         * Timer.cs: Use Utc time so that no local time zone stuff needs to
25886         be used (should be faster).
25887         
25888 2006-05-25  Chris Toshok  <toshok@ximian.com>
25889
25890         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
25891         problem with the last commit.
25892
25893 2006-05-25  Chris Toshok  <toshok@ximian.com>
25894
25895         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
25896         need the invalidate call here, while scrolling right-to-left via
25897         the left arrow key (i.e. moving the editing cell while scrolling).
25898
25899         * DataGrid.cs (.ctor): remove the initialization of
25900         ctrl_pressed/shift_pressed.  We no longer track them using key
25901         up/down handlers, but by using Control.ModifierKeys.  Also, switch
25902         to using ValueChanged handlers on the scrollbars instead of
25903         Scrolled event handlers.  This simplifies a bunch of the scrolling
25904         code.
25905         (GridHValueChanged): rename from GridHScrolled, and change it to
25906         work with the new event args.
25907         (GridVValueChanged): same.
25908         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
25909         (OnMouseWheel): actually scroll the datagrid.  Don't change the
25910         selected cell.
25911         (ProcessGridKey): correct all the keyboard navigation stuff I
25912         could find.  Ctrl up/down/left/right/home/end work now.
25913         (EnsureCellVisibility): correct method name spelling.  Also,
25914         simplify this a touch by not explicitly calling the
25915         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
25916         scrollbar value.
25917         (OnKeyUpDG): no need for this method now.
25918         
25919 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25920
25921         * LinkLabel.cs: display the OverrideCursor when hovering the label.
25922         Fixes bug #78392.
25923
25924 2006-05-25  Chris Toshok  <toshok@ximian.com>
25925
25926         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
25927         r61019.
25928
25929 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
25930
25931         * Application.cs: Moved setting of is_modal and closing to before
25932           we create the control, to allow the event handlers called as a
25933           result of creation affect closing. Also removed Gonzalo's previous
25934           change to setting DialogResult, the behaviour has been moved to 
25935           Form.ShowDialog()
25936         * Form.cs: 
25937           - ShowDialog(): Removed explicit creation of the form, let RunLoop
25938             handle it instead
25939           - ShowDialog(): If no dialog result is set, we need to return Cancel
25940           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
25941             the close is cancelled
25942
25943 2006-05-25  Jackson Harper  <jackson@ximian.com>
25944
25945         * StatusBar.cs: We only need to update the sizes of the other
25946         panels when we have auto size contents.  Also we are only updating
25947         the contents of the panel, not the borders, so compensate for the
25948         border width (TODO: get this width from the theme somehow).
25949         * TreeView.cs: Scrollable is true by default
25950         - Use invalidate instead of refresh where needed
25951         - Factor the scrollable value into scrollbar updating
25952         - Update the scrollbars if the Scrollable property is altered
25953         - Update the selected node if its ImageIndex is changed
25954         - Handle null nodes in UpdateNode (mainly so we don't have to
25955         check if selected is null when updating it
25956         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
25957         are factored into the visible count
25958         - Use VisibleCount for clarity in the code
25959         - When the font is changed we need to recurse through all the
25960         nodes and invalidate their sizes
25961         
25962 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25963
25964         * Application.cs: set the DialogResult to fixed when the main form is
25965         hidden or destroyed while being modal.
25966
25967 2006-05-25  Miguel de Icaza  <miguel@novell.com>
25968
25969         * Theme.cs: Use Tangoified messagebox icons. 
25970
25971         (GetSizedResourceImage): Also cope with width = 0 and do not
25972         trigger a warning in that case (0 means "give me your icon from
25973         the resouce, no special size needed).
25974
25975 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
25976
25977         * Application.cs: Leave runloop if the the main modal form is 
25978           hidden (fixes #78484)
25979
25980 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
25981
25982         * BindingContext.cs : reject null datasource in Contains() and
25983           Item[].
25984         * CurrencyManager.cs : check data_member validity when data_source
25985           is dataset. When it is late binding, the initial position is -1.
25986
25987 2006-05-24  Jackson Harper  <jackson@ximian.com>
25988
25989         * TreeNodeCollection.cs: Dont't recalculate the visible order on
25990         inserted nodes that aren't visible.  This changes the
25991         max_visible_order which confuses scrollbar settings.
25992         - Use the enumerator to get the prev node instead of duplicating
25993         code.
25994         * TreeView.cs: Use new method for setting scrollbar values
25995         - Don't set the bounds every time the scrollbar is updated
25996         - When updating below the root node use an invalidate instead of a
25997         refresh to prevent the child controls (scrollbars) from being
25998         refreshed. (UpdateBelow still needs to be reworked anyways).
25999         - Reenable SetBottom now that visible orders are set correctly,
26000         added some debug code incase we ever get bad values there again.
26001         - Set the scrollbar max to 2 less then the max value, this
26002         compensates for the max value being one above the node count, and
26003         for scrollbars adding one extra "notch".
26004         - When drawing image nodes if there is an imagelist we draw the
26005         first image in the list if the supplied image index is out of the
26006         image list's bounds.
26007         
26008 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26009
26010         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
26011           we receive a size change from the WM (Fixes #78503)
26012
26013 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
26014
26015         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
26016           rectangle (Fixes #78501)
26017
26018 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26019
26020         * ButtonBase.cs: 
26021           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
26022             as a bitfield.
26023           - Fixed MouseMove to no longer switch pressed state unless the left
26024             mouse button is pressed. Atsushi provided the original patch (#78485)
26025           
26026 2006-05-24  Jackson Harper  <jackson@ximian.com>
26027
26028         * ScrollBar.cs: New internal methods that allow us to change a
26029         couple values on the scrollbar (the most common case is maximum
26030         and large change) without getting multiple invalidates.
26031
26032 2006-05-24  Chris Toshok  <toshok@ximian.com>
26033
26034         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
26035         (Edit): save off the original state in oldState, and set
26036         grid.is_editing to true.
26037         (OnKeyDown): abort editing if escape is pressed.  also, call
26038         NextState if space is pressed.
26039         (OnMouseDown): call NextState.
26040         (NextState): factor out shared code from OnKeyDown and OnMouseDown
26041         here.  Also, only invalidate the row header once (on the initial
26042         is_changing switch) to save on redraws.
26043
26044 2006-05-24  Chris Toshok  <toshok@ximian.com>
26045
26046         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
26047         if the value in the cell is different than it was before.  This
26048         keeps us from triggering a layout when we move around a datarid
26049         with a highlighted cell.
26050         (Edit): suspend layout when creating/positining the text box, and
26051         resume passing false so we don't ever actually re-layout.
26052         (ReleaseHostedControl): same.
26053         (EnsureTextBox): reformat slightly, and set WordWrap to false.
26054
26055         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
26056         control-key sequences should go to the datagrid - remove that
26057         lock.  Also, modify the conditions under which we move between
26058         cells when moving the cursor within a cell, and remove the "this"
26059         and "base" from field accesses.  We weren't even consistent, given
26060         they all were in the base class.
26061
26062 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
26063
26064         * Binding.cs : (.ctor)
26065           An obvious NRE fix for BindingTest.CtorNullTest().
26066
26067 2006-05-23  Chris Toshok  <toshok@ximian.com>
26068
26069         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
26070         them between lines.  This fixes some quirks editing cells in the
26071         datagrid.
26072
26073 2006-05-23  Jackson Harper  <jackson@ximian.com>
26074
26075         * TreeView.cs: Use begin/end update when doing expand/collapse all
26076         so that we don't get flicker on the scrollbar.
26077
26078 2006-05-23  Jackson Harper  <jackson@ximian.com>
26079
26080         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
26081         treenode calculations to be independant of the painting code. To
26082         do this nodes track a visible order which is calculated by the
26083         treeview.
26084         - Call new methods for expanding/collapsing nodes.  These methods
26085         use scrollwindow so we don't have to update everything below the
26086         node.
26087         * TreeView.cs: Refactored drawing and scrolling code.  We don't
26088         need to update nodes when drawing anymore or calculate scrollbar
26089         stuff.
26090         - Added new methods for expanding/collapsing nodes. These methods
26091         use ScrollWindow so as to not have to redraw all the nodes below.
26092         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
26093         we add/remove nodes or sort.
26094         - Handle removing the selected and the top node properly.
26095
26096 2006-05-23  Chris Toshok  <toshok@ximian.com>
26097
26098         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
26099         maybe this should actually happen in the datagrid code?
26100         (EndEdit): no need to invalidate anything, given that
26101         ReleaseHostedControl causes the datagrid to relayout, which
26102         invalidates everything anyway.
26103
26104         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
26105         in SetCurrentCell).
26106         (set_SelectionBackColor): call InvalidateSelection instead of
26107         Refresh.
26108         (set_SelectionForeColor): same.
26109         (BeginEdit): Flesh this out a bit.
26110         (CancelEditing): only do any of this if we're editing/adding.
26111         (EndEdit): same.
26112         (OnMouseDown): there's no need to cancel editing here, it's done
26113         in SetCurrentCell.
26114         (SetCurrentCell): only invalidate the current row header if it's a
26115         different row than the new one.
26116         (ShiftSelection): fix this to work like MS does.
26117         (ResetSelection): factor out the invalidation of selected_rows to
26118         InvalidateSelection.
26119         (SetDataSource): cancel any editing that's going on.
26120
26121         * DataGridColumnStyle.cs
26122         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
26123         call the non-interface version.
26124
26125         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
26126         header rectangle with the clip rectangle so we don't redraw the
26127         entire header for just a small area.  Gets rid of the last flicker
26128         when horizontally scrolling.
26129         (DataGridPaintRow): same.
26130
26131 2006-05-23  Mike Kestner  <mkestner@novell.com>
26132
26133         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
26134         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
26135         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
26136         Critical bug report.
26137
26138 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26139
26140         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
26141           and this fixes #78493
26142
26143 2006-05-23  Miguel de Icaza  <miguel@novell.com>
26144
26145         * Theme.cs (GetSizedResourceImage): Scale images if the proper
26146         size is not found.  
26147         
26148         * FileDialog.cs: Do not change the background for the side bar as
26149         it wont work nicely with the theme, and also reduces the artifacts
26150         in rendering the icons (which I want to fix too).
26151
26152         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
26153         resources, not resgen resources. 
26154
26155         (PlatformDefaultHandler): Pull images using the new API.
26156
26157 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26158
26159         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
26160           a reference to the hwnd and will not remove it unless there are
26161           no pending exposures (fixes #78341)
26162         * XplatUI.cs: Improved debug
26163
26164 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
26165
26166         * MenuAPI.cs : don't handle OnClick event when it was not the left
26167           button. Fixed bug #78487.
26168
26169 2006-05-23  Mike Kestner  <mkestner@novell.com>
26170
26171         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
26172         prefer submenus to the top menu for item lookup, to avoid popping down
26173         top-row items.
26174
26175 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
26176
26177         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
26178           Graphics.FillRectangle as the visual results are really bad (even
26179           on win). We now draw perfect arrows (and perfect shadows when the
26180           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
26181           Pen.DashPattern to draw the dots of each line.
26182
26183 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
26184
26185         * FileDialog.cs: Update the filename combobox when navigating through
26186           the ListView with the cursor keys. Fixes part 7 of bug #78446.
26187
26188 2006-05-22  Mike Kestner  <mkestner@novell.com>
26189
26190         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
26191         Fixes #78463.
26192
26193 2006-05-22  Mike Kestner  <mkestner@novell.com>
26194
26195         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
26196         requests. Fix a misspelled parameter and a copy paste exception error
26197         in Select.
26198
26199 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
26200
26201         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
26202           to get the same width/height (5/13) on X11 as the default font has on
26203           win32. This means that our DefaultFont emSize is smaller than the 
26204           the MS SWF equivalent (even thought the width/height stays the same)
26205
26206 2006-05-20  Jackson Harper  <jackson@ximian.com>
26207
26208         * MdiClient.cs:
26209         * MdiWindowManager.cs:
26210         * InternalWindowManager.cs: Make sure to use the border width from
26211         the theme.
26212
26213 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
26214
26215         * PrintDialog.cs: Implements printer details
26216
26217 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
26218
26219         * FileDialog.cs: Added focus handling for PopupButtonPanel.
26220           Fixes part 1 and 2 of bug #78446
26221
26222 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
26223
26224         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
26225           instead of sticking to the first ever calculated value
26226
26227 2006-05-19  Mike Kestner  <mkestner@novell.com>
26228
26229         * ComboBox.cs: fix mouse motion selection to use MousePosition and
26230         PointToClient, since Capture is set. Fixes #78344.
26231
26232 2006-05-19  Mike Kestner  <mkestner@novell.com>
26233
26234         * ListView.cs: match MS behavior in Details view where items are not
26235         drawn if Columns.Count == 0. 
26236         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
26237         Use a separate pen to draw the check, since changing the width affects
26238         the box as well.  Fixes #78454.
26239
26240 2006-05-18  Miguel de Icaza  <miguel@novell.com>
26241
26242         * ListView.cs: ArgumentOutOfRangeException, single versions of the
26243         exception should throw the name of the invalid argument.
26244
26245         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
26246         there are no files listed. 
26247
26248 2006-05-18  Jackson Harper  <jackson@ximian.com>
26249
26250         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
26251         up.
26252
26253 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26254
26255         * Control.cs: Brought back our old UpdateZOrder method as a private
26256           function and switched our calls from UpdateZOrder to the new one.
26257           This fixes the Paint.Net canvas disappearing bug.
26258
26259 2006-05-18  Jackson Harper  <jackson@ximian.com>
26260
26261         * Theme.cs:
26262         * ThemeWin32Classic.cs:
26263         * InternalWindowManager.cs: Move the drawing into the theme,
26264         expose everything the theme should need from the window manager.
26265
26266 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26267
26268         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
26269           from the call to NativeWindow to avoid walking up the parent chain
26270           further than needed (speeds up setting cursors and avoids setting
26271           the wrong cursor if a parent has another cursor defined)
26272         * Cursor.cs: When loading an icon as cursor, MS uses the center of
26273           the icon as hotspot, not what's contained as hotspot in the icon
26274           file. This fixes the perceived drawing offset seen with Paint.Net
26275         
26276 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26277
26278         * XplatUIX11.cs: 
26279           - Store the calculated rectangle in Hwnd object and use it when 
26280             setting the client size
26281           - Force Toolwindows to always be type Dock, to ensure they're on top
26282
26283 2006-05-18  Mike Kestner  <mkestner@novell.com>
26284
26285         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
26286         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
26287         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
26288         Substantial refactoring to remove confusing nested classes. Coding
26289         standard and Get+Set->property refactorings.  Shift to index based
26290         highlighting in ComboListBox instead of constantly using IndexOf and
26291         Items[]. Add invalidations on resize for DropDownList to fix ugliness
26292         in FileDialog growth.  Draw borders manually since Simple mode needs
26293         to look like two independent controls.  Make listbox border
26294         conditional to DropDownStyle.  Improved OwnerDraw support.
26295
26296 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
26297
26298         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
26299         Don't set the disposed graphics to null, so we can throw the "right"
26300         exception if the graphics is reused later (added a flag to avoid 
26301         double disposing). Some behaviours are different under 2.0 and are
26302         filled under bug #78448.
26303
26304 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26305
26306         * Control.cs: When double-buffering is enabled, we need to reset
26307           our graphics context between paint calls. Otherwise, any 
26308           transformations and other alterations on the context will 
26309           become cumulative (#77734)
26310
26311 2006-05-18  Mike Kestner  <mkestner@novell.com>
26312
26313         * ListView.cs: do focused item selection like MS on clicks. 
26314         Rework focus handling for ItemControl so LostFocus invalidates as
26315         well.
26316         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
26317         the ListView ItemControl has focus.
26318
26319 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
26320
26321         * XplatUIX11.cs: If client_window ends up being width or height zero
26322           due to border settings, move it off window inside whole_window (#78433)
26323
26324 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
26325
26326         * Mime.cs: Shrink the mime file cache correctly.
26327
26328 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
26329
26330         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
26331
26332 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26333
26334         * XplatUIX11.cs (AddExpose): More sanity checks
26335
26336 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26337
26338         * XplatUIX11.cs:
26339           - AddExpose: Don't add expose ranges outside the size of our
26340             window
26341           - Cast opacity values to Int32 to avoid crashes with certain
26342             values
26343           - Added disabled code paths that protect against illegal cross-
26344             thread painting (Developers.exe)
26345
26346 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26347
26348         * ProgressBar.cs: Invalidate the control when it's resized
26349           since block size is based on control size. (#78388)
26350
26351 2006-05-16  Miguel de Icaza  <miguel@novell.com>
26352
26353         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
26354         of setting the incoming argument to the "reset" value, we set the
26355         this.datamember to string.empty (before we were invalidating the
26356         incoming data).   
26357
26358         Fixes 78420
26359
26360 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26361
26362         * Form.cs: Only apply transparency settings after the form
26363           is created. (Fixes #77800)
26364
26365 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26366
26367         * ApplicationContext.cs: Grab the HandleDestroyed event so
26368           we know when to fire OnMainFormClosed 
26369
26370 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26371
26372         * Application.cs: Introduced sub-class to allow tracking of
26373           threads and centralized triggering of the event mess for
26374           ThreadExit, AppExit, etc..  (#76156)
26375
26376 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
26377
26378         * MimeIcon.cs:
26379           - Do not return a null icon index value for a mime subclass.
26380             Instead try the main mime type class too.
26381           - Seems that some newer distributions don't have a link to some
26382             gnome default icons anymore. So check the default gnome dir too.
26383           
26384
26385 2006-05-16  Jackson Harper  <jackson@ximian.com>
26386
26387         * MdiClient.cs: Don't paint the parent background image if we have
26388         our own background image.
26389
26390 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26391
26392         * Control.cs:
26393           - PerformLayout: Do not shrink space filled by DockStyle.Fill
26394             controls, all filled controls are supposed to overlap (#78080)
26395           - UpdateZOrder is supposed to update the control's z-order in the
26396             parent's z-order chain. Fixed to behave like that
26397           - BringToFront: Removed obsolete code
26398           - SendToBack: Simplyfied
26399           - SetChildIndex: Trigger layout calculations when Z-order changes
26400             since layout is done by z-order
26401
26402 2006-05-16  Chris Toshok  <toshok@ximian.com>
26403
26404         [ fixes bug #78410 ]
26405         * DataGrid.cs (set_AlternatingBackColor): use
26406         grid_drawing.InvalidateCells instead of Refresh().
26407         (set_BackColor): call grid_drawing.InvalidateCells.
26408         (set_BackgroundColor): use Invalidate instead of Refresh.
26409
26410         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
26411         invalidate the cell area.
26412
26413 2006-05-15  Chris Toshok  <toshok@ximian.com>
26414
26415         [ fixes bug #78011 ]
26416         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
26417         on to DataGridPaintRow.
26418         (DataGridPaintRow): take a clip argument, and only draw the cells
26419         which intersect it.  same with the not_usedarea.
26420
26421         * Theme.cs (DataGridPaintRow) add @clip parameter.
26422
26423         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
26424         XplatUI.ScrollWindow.
26425         (ScrollToRow): same.
26426
26427         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
26428         with last column which was causing a gray swath to appear with the
26429         XplatUI.ScrollWindow code.
26430
26431 2006-05-15  Chris Toshok  <toshok@ximian.com>
26432
26433         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
26434         use XplatUI.ScrollWindow.
26435         (VerticalScrollEvent): use XplatUI.ScrollWindow.
26436
26437 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
26438
26439         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
26440
26441 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26442
26443         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
26444           file since there are no equivalent X11 cursors
26445
26446 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26447
26448         * MonthCalendar.cs : DateTimePicker should reflect selected date
26449           on mouse*up*, not mouse*down*. Fixed originally reported part of
26450           bug #76474.
26451
26452 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26453
26454         * TabControl.cs : When argument index is equal or more than tab
26455           count, just ignore. Fixed bug #78395.
26456
26457 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26458
26459         * Control.cs: Dispose all child controls when control is diposed (#78394)
26460
26461 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26462
26463         * ColorDialog.cs: Finally it is possible to select the color with
26464           the text boxes
26465
26466 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26467
26468         * PrintDialog.cs: Fix typo
26469
26470 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26471
26472         * PrintDialog.cs: PrintDialog is not resizable
26473         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
26474           color. Made some ToolBar drawing methods protected virtual.
26475
26476 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
26477
26478         * PrintDialog.cs: Implementation of the PrintDialog
26479
26480 2006-05-12  Chris Toshok  <toshok@ximian.com>
26481
26482         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
26483         thumb, instead use MoveThumb.  This has the side effect of making
26484         most of the other thumb moving machinery use MoveThumb as well.
26485         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
26486         need to actually invalidate the rectangle where the new thumb will
26487         go.
26488         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
26489         We force an Update() after, so it's not as fast as it could be,
26490         but at least there's zero flicker and no droppings.
26491         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
26492         (UpdateThumbPos): add another argument (dirty), which says whether
26493         or not to calculate/add dirty regions which we later invalidate.
26494         For cases where we know we're going to use MoveThumb, we pass
26495         false for this.  Otherwise, pass true.
26496
26497 2006-05-12  Jackson Harper  <jackson@ximian.com>
26498
26499         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
26500         the status bar.
26501         
26502 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
26503
26504         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
26505           and GetClipRegion methods and UserClipWontExposeParent property.
26506         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
26507           overriding UserClipWontExposeParent property, setting to false, since
26508           Win32 handles the required expose messages to draw our clipped parent
26509           areas internally
26510         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
26511           PaintEventStart to set the user clip region if set.
26512         * Control.cs: 
26513           - Now internally tracking the Region for the control since we need to
26514             store it if the handle is not yet created and only set it when it
26515             becomes created. Before setting the region forced handle creation
26516           - Added code to draw the parents underneath a user-clipped region
26517         * Hwnd.cs: Added UserClip property
26518
26519 2006-05-12  Chris Toshok  <toshok@ximian.com>
26520
26521         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
26522         (set_Maximum): same.
26523         (set_Minimum): same.
26524         (set_SmallChange): same.
26525         (OnMouseUpSB): remove the call to refresh when releasing the
26526         thumb.  We shouldn't need it.
26527         
26528 2006-05-12  Miguel de Icaza  <miguel@novell.com>
26529
26530         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
26531         AutoSize set to None, we do not need to relayout everything, we
26532         just need to invalidate the current region.
26533
26534         (Draw): Do not draw the entire ClientArea, just redraw the
26535         clip area being passed.
26536
26537         * MdiClient.cs: Make MdiClient constructor with the Form argument
26538         internal. 
26539
26540 2006-05-12  Jackson Harper  <jackson@ximian.com>
26541
26542         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
26543         parents background image,  but strangely not their own.
26544         - (DrawStatusBarPanel): Take into account horizontal alignment
26545         when drawing the strings and icons.
26546
26547 2006-05-12  Mike Kestner  <mkestner@novell.com>
26548
26549         * ListBox.cs: avoid invalidations for focus when the collection is
26550         empty. 
26551
26552 2006-05-12  Chris Toshok  <toshok@ximian.com>
26553
26554         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
26555         invalidate the entire thumb area.  Call InvalidateDirty which
26556         limits the redraw to the thumb itself and surrounding pixels.
26557
26558         * XplatUIX11.cs (ScrollWindow): optimize copying.
26559         
26560 2006-05-12  Chris Toshok  <toshok@ximian.com>
26561
26562         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
26563         Figure out the positioning/layout in a single pass instead of
26564         multiple recursive invocations.  Speeds up the initial display of
26565         the data grid.  Also, make many things private that were
26566         originally public but unused outside this class.
26567
26568 2006-05-11  Jackson Harper  <jackson@ximian.com>
26569
26570         * MdiClient.cs: Improved layout code.
26571
26572 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
26573
26574         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
26575           not SelectedObject.
26576
26577 2006-05-11  Chris Toshok  <toshok@ximian.com>
26578
26579         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
26580         union of that will always be {0,0,width,height}.
26581
26582 2006-05-11  Jackson Harper  <jackson@ximian.com>
26583
26584         * Form.cs: Match MS's DefaultSize for forms (they must have
26585         changed the size in sp2).
26586
26587 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26588
26589         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
26590
26591 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26592
26593         * TextControl.cs : Fixed bug #78109. This incorrect position
26594           comparison caused crash on automatic line split.
26595         * TextBoxBase.cs : reduce duplicate code.
26596
26597 2006-05-10  Jackson Harper  <jackson@ximian.com>
26598
26599         * MdiClient.cs: Active form is only sent to the back when using
26600         the Next form functionality, when a form is clicked the current
26601         active shouldn't be sent to the back.
26602         - Layout the mdi windows when the container is first made visible.
26603         * Form.cs: Give the MdiClient a ref to the containing form when we
26604         create it.
26605         
26606 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26607
26608         * LinkLabel.cs : link_font could be uninitialized, so populate one
26609           before actual use. Fixed bug #78340.
26610
26611 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26612
26613         * XplatUIX11.cs : clipboard format native value is IntPtr.
26614           Fixed bug #78283.
26615
26616 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26617
26618         * Control.cs: 
26619           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
26620             which is passed up the parent chain by DefWndProc
26621           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
26622             to DefWndProc (#77956)
26623         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
26624
26625 2006-05-10  Jackson Harper  <jackson@ximian.com>
26626
26627         * MdiClient.cs: We need to remove the controls from the mdi
26628         collection, when we close the window.
26629         * MdiWindowManager.cs: Special handling of closing mdi windows.
26630         * InternalWindowManager.cs: Make the close method virtual so the
26631         mdi window manager can handle it specially.
26632
26633 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
26634
26635         * DataGrid.cs:
26636           - Recalculate grid when the data source has changed
26637           - Matches styles provided by user from all data sources types
26638         * DataGridTableStyle.cs: For columns that provided by the user set the
26639         with the preferred value is there was unassigned.
26640         * CurrencyManager.cs: throw OnItemChanged event
26641
26642 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
26643
26644         * PictureBox.cs: Don't animate until handle is created. Start animation
26645           when handle is created.
26646
26647 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26648
26649         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
26650           current codebase.
26651         * XEventQueue.cs: We don't need to provide the extra info
26652
26653 2006-05-10  Jackson Harper  <jackson@ximian.com>
26654
26655         * MdiClient.cs: If the mdi clients parent form has a background
26656         image set, we draw that background image for the mdi area's
26657         background.
26658
26659 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26660
26661         * TextBoxBase.cs: Set IBeam cursor (#78347)
26662
26663 2006-05-10  Mike Kestner  <mkestner@novell.com>
26664
26665         * ToolBar.cs: fix some text padding issues with ButtonSize
26666         calculation. Update the default size to match MS documentation.
26667         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
26668         button size. Fixes #78296.
26669
26670 2006-05-10  Mike Kestner  <mkestner@novell.com>
26671
26672         * ListBox.cs: use is_visible for scrollbar positioning in case the
26673         control isn't on screen yet.  Fix off by one with Right vs Width
26674         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
26675         
26676 2006-05-10  Jackson Harper  <jackson@ximian.com>
26677
26678         * X11Dnd.cs: Drop to a control with another control on top of it.
26679         * ToolBar.cs: Work on a copy of the buttons list, so that it can
26680         be modified in click handlers. TODO: Look for similar problems in
26681         other controls.
26682
26683 2006-05-09  Jackson Harper  <jackson@ximian.com>
26684
26685         * Form.cs: Window managers need the old window state when setting
26686         window state now.
26687         * InternalWindowManager.cs: Allow the base mdi window manager to
26688         handle more of the MDI only stuff (like maximize buttons).
26689         * MdiWindowManager.cs: Fix some snafus in changing the window
26690         state.  Add all the menu functionality, for both popup and
26691         maximized menus.
26692         * MdiClient.cs: When a new form is selected the currently
26693         activated form is sent to the back, this matches MS.
26694         - Implement a new method to activate the next mdi child window.
26695
26696 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
26697
26698         * Control.cs: 
26699           - Added new InternalCapture method to allow controls to prevent
26700             the capture behaviour on the click handlers
26701           - Switched to use InternalCapture
26702         * ComboBox.cs:
26703           - Using InternalCapture to prevent mouse captures from being released
26704             on mouse button release (Fixes #78100)
26705         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
26706           returns Form borders if a caption is present. (Fixes #78310)
26707
26708 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
26709
26710         * TreeNode.cs: Changed serialization .ctor to not require every field
26711           to be present. (#78265)
26712         * OwnerDrawPropertyBag.cs: Added serialization .ctor
26713
26714 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
26715
26716         * MimeIcon.cs: for is faster than foreach for strings.
26717
26718 2006-05-05  Mike Kestner  <mkestner@novell.com>
26719
26720         * CheckedListBox.cs: update check handling code to not use selected.
26721         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
26722         behavior for visual feedback, motion response, shift/ctrl handling,
26723         and properly deal with all 4 selection modes. Updates to bounds
26724         handling logic.  Add scroll wheel support. [Fixes #77842]
26725
26726 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26727
26728         * ListView.cs:
26729           - Moved adding of Implicit controls into .ctor. That way, subsequent
26730             creation of the controls will not cause them to think they are 
26731             toplevel windows (fixes #78200 header problem)
26732           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
26733           - Switched visibility setting of header control to use internal field
26734             to avoid triggering handle creation
26735           - Now checking if handle is created before causing a refresh when items
26736             are added (This makes us now match handle creation time with MS)
26737         * Splitter.cs: Removed loading of private splitter cursor, switched to
26738           Cursors version now that that is loading the right ones
26739         * Cursors.cs: Load proper splitter cursors from resources
26740         * Cursor.cs: Added second method of loading resource cursors for the 
26741           VS.Net users amongst us
26742
26743 2006-05-05  Mike Kestner  <mkestner@novell.com>
26744
26745         * ListView.cs: give header_control a minimum size based on the
26746         ListView size.
26747
26748 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26749
26750         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
26751           window seems to do that with metacity, so set that type. (#78120)
26752
26753 2006-05-05  Mike Kestner  <mkestner@novell.com>
26754
26755         * ListViewItem.cs: fix Details mode checkbox layout bug.
26756         * ThemeWin32Classic.cs: draw a ListView column header for unused space
26757         at the end of the header, if it exists. [Fixes for #78200]
26758
26759 2006-05-04  Jackson Harper  <jackson@ximian.com>
26760
26761         * MdiClient.cs: Add a helper property to get the container form.
26762         * MdiWindowManager.cs: We have to make sure to use the menu origin
26763         when drawing the icons and buttons, this fixes maximized window
26764         icons/buttons on win32.
26765         * InternalWindowManager.cs: Reset the restore captions when a
26766         window goes from Maximized to Minimized and vice versa. Move the
26767         DrawMaximizedButtons into the MdiWindowManager source, tool
26768         windows can't be maximized. NOTE: This could use a little
26769         refactoring if time ever permits.
26770         
26771 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
26772
26773         * TextBox.cs: Add MWFCategoryAttributes
26774         * TextBoxBase.cs: Add MWFCategoryAttributes
26775         * Form.cs: Add MWFCategoryAttributes
26776
26777 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
26778
26779         * Control.cs: Add MWFCategoryAttributes
26780         * ScrollableControl.cs: Add MWFCategoryAttributes
26781
26782 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
26783
26784         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
26785           Divider is true. Fix a little glitch in PropertyToolBar
26786           drawing code
26787
26788 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
26789
26790         * Control.cs:
26791           - Dispose: Call base.Dispose, this causes the disposed event
26792             to be fired (and probably other, more important stuff)
26793           - SetVisibleCore: Set is_visible to true after creating the
26794             window so that the window still gets created invisible (if
26795             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
26796             to generate a WM_ACTIVE message
26797         * Form.cs: Call Dispose when we want to destroy the window, instead of
26798           just destroying the handle (Dispose will do that for us)
26799         * XplatUIX11.cs:
26800           - RootWindow also needs a queue, so we can properly process the
26801             property change events from RootWindow (like Activate)
26802           - Generatic synthetic WM_ACTIVE message when the active window is
26803             being destroyed
26804
26805 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
26806
26807         * LinkLabel.cs: Trigger a recalc of our label dimensions when
26808           bounds are changed
26809
26810 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
26811
26812         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
26813           for determining width and height (image might not be assigned if
26814           we're drawing an imagelist)
26815
26816 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
26817
26818         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
26819         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
26820           height from system
26821         * Theme.cs: No longer returns hardcoded menu height, instead calls
26822           new driver method
26823         * Form.cs (OnLoad): Scaling happens before triggering Load events 
26824           on MS (# 78257)
26825
26826 2006-05-01  Mike Kestner  <mkestner@novell.com>
26827
26828         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
26829
26830 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
26831
26832         * TextBoxBase.cs: Removed Fixme
26833         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
26834
26835 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
26836
26837         * XplatUIX11.cs:
26838           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
26839             the rectangle relative to the parent, considering borders. We
26840             don't really want that.
26841           - ScrollWindow: Fixed warning to be more understandable
26842         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
26843           scrollbars and scroll only the visible area
26844         * RichTextBox.cs: Removed debug output
26845
26846 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26847
26848         * NumericUpDown.cs (Text): Just use base
26849         * UpDownBase.cs: Ensure txtView is created before using it
26850
26851 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
26852
26853         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
26854           casting to IntPtr to avoid 64bit overflow errors
26855
26856 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26857
26858         * Control.cs:
26859           - AllowDrop: Don't force handle creation.
26860           - CreateHandle: Added call to tell driver if we're allowed to drop
26861
26862 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26863
26864         * FileDialog.cs: Remember the last directory not only for the
26865           current instance but also for new FileDialog instances.
26866
26867 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
26868         
26869         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
26870           broke sending async messages
26871
26872 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
26873
26874         * XplatUIX11.cs:
26875           - ScrollWindow: Fixed method. We finally generate expose events again
26876             for scrolled areas. This was causing 'garbage' when scrolling
26877             textbox and other controls that used ScrollWindow
26878           - Switched from using the regular queue for paint events to the MS 
26879             model of 'generating' paint events when the queue is empty.
26880             We use the new XQueueEvent.Paint subclass to store which windows
26881             need painting.
26882           - AddExpose now takes the x/y/width/height of the exposed area
26883             and inserts the window into the paint queue if not already there
26884           - InvalidateWholeWindow: Switched to use new AddExpose method
26885           - UpdateMessageQueue: Added which queue to monitor for paint events
26886           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
26887             the unlikely case nothing above handles it. We reset the expose
26888             pending states to get them off the queue.
26889           - GetMessage: Now pulls a paint event if no other events are in the
26890             queue
26891           - Invalidate: Switched to new AddExpose method
26892           - PeekMessage: Updated to understand pending paint events
26893           - UpdateWindow: Fixed logic bug. We were only updating if the window
26894             didn't need updating. Also switched to sending WM_PAINT directly,
26895             like MS does.
26896         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
26897           and random access Remove(). The random access is needed to handle
26898           UpdateWindow() where a WM_PAINT is sent directly without accessing
26899           the queue.
26900         * ScrollBar.cs: Added Update() calls to cause immediate updates to
26901           allow for better feedback when scrolling. Scrollbars are small and
26902           the immediate update should make it 'feel' more responsive without
26903           slowing things down. ScrollBar still needs it's invaliate logic
26904           updated to not always invalidate the whole bar on certain changes.
26905
26906 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26907
26908         * Control.cs:
26909         (BackColor): if the control does not support a transparent background,
26910         return the default backcolor when the parent backcolor is transparent.
26911
26912 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
26913
26914         * Application.cs: Updated to new StartLoop/GetMessage API
26915         * RichTextBox.cs: Provide some output on RTF parsing errors
26916         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
26917           new queue_id argument to GetMessage and PeekMessage to allow faster
26918           handling of per-thread queues in drivers.
26919         * Hwnd.cs: Added Queue tracking and property
26920         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
26921         * XEventQueue.cs: Added thread trackingA
26922         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
26923         * XplatUIX11.cs:
26924           - Implemented new per-thread queue
26925           - GetMessage: Fixed return/break behaviour on several cases. We were
26926             returning stale messages in some cases, instead of just processing
26927             the next message
26928
26929 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
26930
26931         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
26932
26933 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
26934
26935         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
26936           fixed off-by-one comparisons between Width/Height and Right/Bottom.
26937
26938 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
26939
26940         * PropertyGridView.cs: Fix drop down width.
26941
26942 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26943
26944         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
26945           a mess in DrawToolBar, so I removed one of them.
26946
26947 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
26948
26949         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
26950           needed (clip). Otherwise we get artifacts.
26951
26952 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
26953
26954         * FixedSizeTextBox.cs: Added constructor to allow specifying which
26955           dimension is fixed
26956         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
26957           and switched FixedSizeTextBox to only be fixed vertical (#78116)
26958         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
26959           if it matches the scale base font (avoids unneeded scaling)
26960
26961 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
26962
26963         * X11DesktopColors.cs: One gtk_init_check should be enough
26964
26965 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
26966
26967         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
26968           match MS behaviour
26969
26970 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
26971
26972         * TextBoxBase.cs: 
26973           - Generate OnTextChanged for Backspace even if we're only deleting
26974             the current selection
26975           - When setting the Text property, only select all text if the
26976             control does not have focus when it is being set. Otherwise
26977             just place the cursor at the beginning of the control
26978
26979 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
26980
26981         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
26982           Added a little helper to draw PropertyGrid ToolBar with a different
26983           border and a different BackColor.
26984         * PropertyGrid.cs: Some background parts didn't get painted with the
26985           correct background color. Added a class that helps us to draw the
26986           correct border for PropertyGridView and a class that helps us to
26987           draw ToolBars with a different backcolor
26988         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
26989
26990 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
26991
26992         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
26993         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
26994
26995 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
26996
26997         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
26998           into the palette entries. Also, since we're working on a copy
26999           we needed to copy the palette back onto the bitmap.
27000         * Cursor.cs: Same fix as XplatUIWin32.cs.
27001
27002 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
27003
27004         * ImageListStreamer.cs: Need to read the var (or we're off)
27005
27006 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27007
27008         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
27009           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
27010           TextBoxBase.cs: Unused var fixes
27011         * AxHost.cs: Small 2.0 fix
27012         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
27013           as it seems that is what at least Metacity expects. This will make
27014           icons show up on 64bit platforms. We still have some 64bit size
27015           issues, though, since the startup app window size still won't match.
27016
27017 2006-04-25  Mike Kestner  <mkestner@novell.com>
27018
27019         * *.cs: cleanup newly reported exception var unused warnings.
27020
27021 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27022
27023         * ThemeWin32Classic.cs: Button image alignment now matches exactly
27024           ms
27025
27026 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27027
27028         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
27029           image. The image position is always the same, no matter if the
27030           button is pressed or not.
27031
27032 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27033
27034         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
27035           selection and set the correct filename for SaveFileDialog.
27036           Patch by Emery Conrad.
27037
27038 2006-04-24  Mike Kestner  <mkestner@novell.com>
27039
27040         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
27041         check for item.X outside the ClientRect instead of item.Y. Fixes
27042         #78151.
27043
27044 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27045
27046         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
27047         trust that value blindly and do some sanity check. Fixes bug #77814.
27048
27049 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27050
27051         * ImageListStreamer.cs: save the mask as a 1bpp image.
27052
27053 2006-04-21  Mike Kestner  <mkestner@novell.com>
27054
27055         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
27056         pass Checked and Indeterminate to the Theme Engine. Improve
27057         encapsulation with ListBox.
27058         * ListBox.cs: Keep a StringFormat instead of calculating it every item
27059         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
27060         nested types.  Move all CheckState functionality to CheckedListBox.
27061         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
27062         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
27063         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
27064         single base list. Fix scrollbar sizing and placement to mirror MS.
27065         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
27066         used.
27067         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
27068         for CheckedListBox by using new DrawItemState info.  Center the
27069         checkboxes on the items. Use new StringFormat property.
27070
27071 2006-04-18  Jackson Harper  <jackson@ximian.com>
27072
27073         * Form.cs: MdiChildren don't do default locations the same way as
27074         regular forms.  This prevents a crash when trying to position the
27075         mdi windows.
27076
27077 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
27078
27079         * PropertyGridTextBox.cs: Formatting, copyright
27080         * PropertiesTab.cs: Formatting
27081         * PropertyGrid.cs: Formatting
27082         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
27083           click toggling of values
27084           
27085 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
27086
27087         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
27088         * Control.cs (.ctor): verify_thread_handle is static, don't reset
27089           every time a control is created
27090         * Application.cs: Removed obsolete EnableRTLMirroring method
27091
27092 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
27093
27094         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
27095         SelectedIndex to -1. Fixes bug #78121.
27096
27097 2006-04-17  Jackson Harper  <jackson@ximian.com>
27098
27099         * Binding.cs: Handle null values for Current and BindingContext.
27100         This occurs when binding is a little delayed.
27101         * CurrencyManager.cs: return null for Current when there are no
27102         items in the list.
27103         - Hookup to the listchanged event on the DataView and update
27104         bindings when the list is changed.  This fixes late binding of
27105         controls.
27106
27107 2006-04-17  Jackson Harper  <jackson@ximian.com>
27108
27109         * X11Dnd.cs:
27110         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
27111         Ringenbach.
27112
27113 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
27114
27115         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
27116           place
27117         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
27118           with the correct ButtonState
27119
27120 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
27121
27122         * XplatUIX11.cs: Improved distinguishing between window types to
27123           tell the WM a type closer to what the app wants (Fixes #78107)
27124
27125 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27126
27127         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
27128           GrabHandle
27129
27130 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27131
27132         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
27133           drawing code to reflect the size grip changes
27134
27135 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27136
27137         * ImageListStreamer.cs: fix handling of the mask that follows the main
27138         bitmap when deserializing and serialize it properly. The generated mask
27139         should better be a 1bpp image, but I'll do that later.
27140
27141 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27142
27143         * FileDialog.cs: Show something in the DirComboBox on *nix if the
27144           path doesn't fit into some of our Current.Places
27145
27146 2006-04-13  Jackson Harper  <jackson@ximian.com>
27147
27148         * ComboBox.cs: Use borders instead of drawing our own decorations,
27149         try to obey correct rules for heights.
27150         * Theme.cs:
27151         * ThemeNice.cs:
27152         * ThemeClearLooks.cs:
27153         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
27154         this is now handled by borders.
27155         - Remove unused DrawListBoxDecorationSize method.
27156         
27157 2006-04-13  Mike Kestner  <mkestner@novell.com>
27158
27159         * MenuAPI.cs: null guarding for the disbled click check fixes crash
27160         reported by Alex.
27161
27162 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27163
27164         * ThemeWin32Classic.cs: 
27165           - Fixed CPDrawStringDisabled
27166           - Corrected drawing of disabled menu items
27167           - Fixed drawing of disabled radio buttons (bug #78095)
27168           - Draw check in a disabled CheckBox with color ControlDark 
27169
27170 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27171
27172         * Form.cs: Use the provided width when calculating the menu size;
27173           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
27174           and ClientSize.Width won't be updated yet
27175         * Application.cs: Use Visible instead of Show() to make form visible,
27176           this way we create the handle later and menusize is considered
27177
27178 2006-04-12  Mike Kestner  <mkestner@novell.com>
27179
27180         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
27181         reporting.
27182
27183 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27184
27185         * TextBox.cs: Implemented context menu
27186
27187 2006-04-12  Mike Kestner  <mkestner@novell.com>
27188
27189         * ListView.cs: implement box selection. fixes #77838.
27190         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
27191
27192 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27193
27194         * XplatUIX11.cs: Added setting of window type when transient window
27195           is created (metacity would move it otherwise)
27196         * X11Structs.cs: Added WINDOW_TYPE atoms
27197         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
27198           background (the control is Opaque but still wants transparent
27199           backgrounds)
27200
27201 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27202
27203         * Control.cs: Added OnPaintBackgroundInternal to allow controls
27204           that set Opaque but don't mean it (like all ButtonBase-derived
27205           controls) to still draw their background
27206         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
27207           the background
27208
27209 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27210
27211         * Control.cs (PaintControlBackground): Set the graphics object
27212           on our PaintEvent to null to prevent it from being disposed
27213           when the PaintEvent gets disposed
27214
27215 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
27216
27217         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
27218         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
27219
27220 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27221
27222         * Control.cs: 
27223           - Added transparency check to BackColor property. Transparent
27224             backgrounds are only allowed if the control styles permit it
27225           - Added recursive painting of parent control background and
27226             foreground if a control with a transparent backcolor is drawn
27227             (Thanks to Tim Ringenback for providing his 'hack' as a base
27228              for this patch) Fixes #77985 and #78026.
27229           - Added Opaque style check before calling OnPaintBackground, no
27230             need to draw the background if the control is opaque
27231           - Removed ControlAccessibleObject owner variable (inherited from
27232             base, no need to define again)
27233           - Added some documentation links explaining the drawing events
27234             and styles
27235
27236 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27237
27238         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
27239           that the affected control is the located at the left border of our
27240           parent (Fixes #77936)
27241
27242 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27243
27244         * TextBoxBase.cs: When rendering disabled or readonly controls,
27245           draw the background with 'Control' instead of 'Window' color as
27246           long as the user hasn't specifically set a color
27247
27248 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27249
27250         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
27251           since that won't be updated if the user types text (only if it's
27252           programatically set)
27253
27254 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27255
27256         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
27257           layout changes do to app-triggered resizes will have the proper
27258           display rectangle for layout
27259
27260 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
27261
27262         * ThemeWin32Classic.cs:
27263           - Make use of the SystemBrushes and SystemPens wherever possible
27264           - Corrected some highlight colors
27265           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
27266             drawing
27267         * Theme.cs: Added Empty field to CPColor struct
27268
27269 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27270
27271         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
27272           is displayed when calculating the display rectangle. Thanks to Mike
27273           for teaching me the err of my ways.
27274
27275 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
27276
27277         * ScrollableControl.cs:
27278           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
27279             (instead of 0,0) and we now return the real width/height instead of
27280             just the clientrectangle, adjusted for padding. The rectangle is
27281             now cached and created by the new CalculateDisplayRectangle method.
27282           - Created new CalculateDisplayRectange method, which basically does
27283             what get_DisplayRectangle() did originally, but now using the 
27284             right edge instead of DisplayRectangle to determine the size of
27285             our scrollbars
27286           - get_Canvas(): Fixed it to properly calculate canvas for 
27287             right/bottom controls which seem to be placed to the right/bottom
27288             of any controls that have a fixed location
27289           - Removed TODO that's taken care of
27290           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
27291             and SetDisplayRectLocation according to new MSDN2 docs
27292           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
27293             event when that is called, this is added for compatibility
27294           - ScrollControlIntoView(): Implemented.
27295           - Switched scrollbars to be implicit, they shouldn't be selectable
27296         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
27297           call it when the active control is set/changed
27298         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
27299         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
27300           implicit_control variable (used for native Win32 message generation)
27301         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
27302           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
27303         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
27304         * XplatUIStructs.cs: Added ScrollBarCommands enum
27305
27306 2006-04-10  Jackson Harper  <jackson@ximian.com>
27307
27308         * ButtonBase.cs:
27309         * CheckedListBox.cs:
27310         * ComboBox.cs:
27311         * DataGrid.cs:
27312         * DataGridView.cs:
27313         * Form.cs:
27314         * GroupBox.cs:
27315         * ListBox.cs:
27316         * PrintPreviewControl.cs:
27317         * ProgressBar.cs:
27318         * PropertyGrid.cs:
27319         * Splitter.cs:
27320         * StatusBar.cs:
27321         * TrackBar.cs:
27322         * UpDownBase.cs: Fixup base event overrides.
27323         
27324 2006-04-06  Mike Kestner  <mkestner@novell.com>
27325
27326         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
27327         all user-initiated value changes to min <= value <= max-thumbsz+1.
27328         (set_Value): check for vert/horiz when calculating new thumb position.
27329         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
27330         like MS does.
27331         (OnMouseMoveSB): refactor the thumb dragging code and refine
27332         invalidation logic to reduce flicker.
27333         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
27334         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
27335         (UpdateThumbPosition): small code readability cleanup
27336
27337 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
27338
27339         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
27340           different
27341
27342 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
27343
27344         * ThemeNice.cs: Use a better graphics effect when a button is pressed
27345
27346 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
27347
27348         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
27349         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
27350           This dramatically reduces the number of Pen.Dispose calls. 
27351           Where possible call ResPool methods only once instead of calling it
27352           over and over again (for example for the same color).
27353
27354 2006-04-06  Mike Kestner  <mkestner@novell.com>
27355
27356         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
27357         Also remove an unused private field on the collection. Fixes #77972.
27358
27359 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
27360
27361         * ThemeNice.cs: Added ToolBar drawing code
27362
27363 2006-04-06  Mike Kestner  <mkestner@novell.com>
27364
27365         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
27366         I'm assuming that means we need to look up the toplevel for the
27367         provided control. Fixes the crash trace in #77911 but exposes another
27368         crash in some strange reflection usage in NDocGui.
27369
27370 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
27371
27372         * ThemeNice.cs: Gave it a little silver touch and added Images
27373           method
27374         * FontDialog.cs: FontDialog is not resizable
27375         * FileDialg.cs: Added SizeGripStyle.Show
27376
27377 2006-04-05  Jackson Harper  <jackson@ximian.com>
27378
27379         * KeyboardLayouts.cs: Remove warning.
27380
27381 2006-04-05  Jackson Harper  <jackson@ximian.com>
27382
27383         * Control.cs: Enable OnPaintInternal so we can use it for drawing
27384         all of our controls instead of Paint +=.
27385         * ListBox.cs:
27386         * ListView.cs:
27387         * MenuAPI.cs:
27388         * MessageBox.cs:
27389         * NotifyIcon.cs:
27390         * ProgressBar.cs:
27391         * ScrollBar.cs:
27392         * Splitter.cs:
27393         * StatusBar.cs:
27394         * TabControl.cs:
27395         * TextBoxBase.cs:
27396         * ToolBar.cs:
27397         * TrackBar.cs:
27398         * UpDownBase.cs:
27399         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
27400         use OnPaintInternal. Remove Width/Height and Visible checks in
27401         paint handler, this is done at a higher level now.
27402         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
27403         * PaintEventArgs.cs: Add a handled flag so controls that don't
27404         want anymore painting after OnPaintInternal can make sure OnPaint
27405         isn't called.
27406
27407 2006-04-05  Mike Kestner  <mkestner@novell.com>
27408
27409         * Form.cs: fix the menu WndProc hacks to respect the native enabled
27410         state of the form, so that we don't process events when Modal dialogs
27411         are up. Fixes #77922.
27412
27413 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
27414
27415         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
27416           checking is done.
27417
27418 2006-04-05  Mike Kestner  <mkestner@novell.com>
27419
27420         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
27421
27422 2006-04-05  Mike Kestner  <mkestner@novell.com>
27423
27424         * ListView.cs (HeaderMouseMove): null guarding for the over column
27425         when setting up the drag_to_index.  Fixes #78015.
27426
27427 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
27428
27429         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
27430           in the taskbar. Transient windows seem to accomplish that.
27431
27432 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
27433
27434         * Form.cs:
27435           - Re-enabled CreateParams.X/Y code for FormStartPosition
27436           - Added code for manual placement when creating the Control
27437           - Incomplete patch to treat MDI forms differently when
27438             setting the ClientSizeCore. (Still need to figure out handling
27439             x/y coords there)
27440         * XplatUIX11.cs:
27441           - When we're explicitly setting the X/Y position of a non-Child
27442             window, let the WM know. Metacity really wants this.
27443
27444 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27445
27446         * ThemeNice.cs: Added CPDrawButton
27447
27448 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27449
27450         * ThemeNice.cs: Changed the color for focused buttons and activated
27451           the arrows for small scroll buttons.
27452
27453 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27454
27455         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
27456           anymore. Changed some method modifiers to protected (virtual)
27457         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
27458           changes
27459         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
27460           Updated drawing of menus, buttons and progressbars; added
27461           CPDrawBorder3D 
27462
27463 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27464
27465         * ImageListStreamer.cs: implemented serialization/deserialization
27466         of the images.
27467
27468 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
27469
27470         * ThemeWin32Classic.cs:
27471           - Removed all the DrawFrameControl stuff; CPDrawButton,
27472             CPDrawCheckBox and CPDrawRadioButton are now handled directly
27473             inside the methods
27474           - Updated and corrected the drawing code of CPDrawButton,
27475             CPDrawCheckBox and CPDrawRadioButton to better match ms
27476           - Updated theme checkbox and radiobutton code to use the CP*
27477             methods
27478
27479 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27480
27481         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
27482           bug is fixed
27483
27484 2006-03-31  Jackson Harper  <jackson@ximian.com>
27485
27486         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
27487         sometimes.
27488         * UpDownBase.cs: Don't CreateGraphics manually, use a
27489         Refresh. Ideally we would invalidate the correct areas here.
27490
27491 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27492
27493         * XplatUIX11.cs: 
27494           - We now track the mapping state of windows. If a window (or 
27495             one of it's parents) is not mapped we no longer permit
27496             WM_PAINT messages to be generated since we'd otherwise get 
27497             lots of BadMatch X errors. Jackson did all the work figuring
27498             out the problem.
27499           - Destroying the caret if the window it's contained in is 
27500             destroyed. Can't use regular DestroyCaret method since it
27501             might fall into a drawing function (trying to remove the
27502             caret) and with that generate new BadMatch errors. Again,
27503             Jackson tracked this down.
27504           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
27505             make sure we send the messages to all windows. (The old code
27506             would send the WM_DESTROY to the window, and then all child
27507             windows would be 'gone' because the WM_DESTROY handle lookup
27508             would no longer find the destroyed window)
27509         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
27510         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
27511
27512 2006-03-31  Jackson Harper  <jackson@ximian.com>
27513
27514         * ScrollableControl.cs: Dont recalc if we are not visible.
27515
27516 2006-03-31  Mike Kestner  <mkestner@novell.com>
27517
27518         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
27519         the visibility branch.
27520
27521 2006-03-31  Jackson Harper  <jackson@ximian.com>
27522
27523         * ScrollBar.cs: Cap values when incrementing/decrementing.
27524
27525 2006-03-31  Mike Kestner  <mkestner@novell.com>
27526
27527         * MenuAPI.cs: setup menu.tracker for popup/context menus.
27528         * ToolTip.cs: guard against timer expirations with no active control.
27529         Not sure why it happened.
27530
27531 2006-03-31  Mike Kestner  <mkestner@novell.com>
27532
27533         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
27534         text.
27535         * ToolTip.cs: Position the tooltip based on where the cursor is at
27536         popup time, not at MouseEnter time.  Add a Down state so that we don't
27537         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
27538         positioning offset. Lookup DisplaySize at positioning time, since it
27539         can theoretically change during invocation.
27540         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
27541         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
27542
27543 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27544
27545         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
27546           Fixes behaviour when the Text property of the box is String.Empty
27547
27548 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
27549
27550         * XplatUIX11.cs: Only send mouseleave for our client windows, not
27551           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
27552           a window)
27553
27554 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27555
27556         * FileDialog.cs: Visual enhancement for the popup buttons in 
27557           PopupButtonPanel
27558
27559 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27560
27561         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
27562           code
27563
27564 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
27565
27566         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
27567           highlighted menu items to match ms
27568
27569 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
27570
27571         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
27572
27573 2006-03-30  Mike Kestner  <mkestner@novell.com>
27574
27575         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
27576         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
27577         go active to account for HotLight to Selected transition.
27578         * MenuItem.cs: add internal Selected prop. Fill out the Status
27579         property by calculating it from item info. Add HotLight,
27580         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
27581
27582 2006-03-30  Mike Kestner  <mkestner@novell.com>
27583
27584         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
27585
27586 2006-03-29  Jackson Harper  <jackson@ximian.com>
27587
27588         * Form.cs: Implement TODO.
27589
27590 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
27591
27592         * PrintPreviewDialog.cs: Implemented missing methods and events; still
27593           missing proper dialog setup in the constructor
27594
27595 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
27596
27597         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
27598         * Control.cs:
27599           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
27600           - Fixed ResetBindings and removed TODO
27601           - Added check for cross-thread calls to get_Handle()
27602           - Added Marshaller attribute for set_Font to satisfy class status
27603         * FontDialog.cs: Removed TODOs that seemed implemented
27604         * UpDownBase.cs: Removed unneeded TODO and Fixme
27605         * MessageBox.cs: Implemented support for Default button and removed TODO
27606         * FileDialog.cs: Removed obsolete TODO
27607         * DomainUpDown.cs: Removed obsolete TODO
27608         * ButtonBase.cs: Removed obsolete TODO
27609         * XplatUIWin32.cs: Removed obsolete TODO
27610         * Form.cs:
27611           - Removed obsolete TODO
27612           - Calling CheckAcceptButton when the acceptbutton is changed to allow
27613             internal status updates
27614           - Making sure the active control is selected when the control is created
27615         * CurrencyManager.cs: Removed obsolete TODO
27616
27617 2006-03-29  Mike Kestner  <mkestner@novell.com>
27618
27619         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
27620         of PrintPreviewDialog and RichTextBox.
27621
27622 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27623
27624         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
27625           DarkDark, Light and LightLight colors for a specific color
27626         * ThemeWin32Classic.cs:
27627           - Use Button drawing code to draw RadioButtons and CheckBoxes with
27628             Appearance = Button 
27629           - Make use of the new ResPool helper CPColor
27630           - Draw ProgressBar and StatusBar with correct 3D borders
27631
27632 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27633
27634         * ColorDialog.cs: Return selected color. Fixes bug #77940.
27635
27636 2006-03-28  Mike Kestner  <mkestner@novell.com>
27637
27638         * ListView.cs: fix Icon layout to plan for scrollbar widths when
27639         calculating col/row counts.
27640
27641 2006-03-28  Mike Kestner  <mkestner@novell.com>
27642
27643         * ColumnHeader.cs:
27644         * ListView.cs:
27645         * ListViewItem.cs:
27646         * Menu.cs: 
27647         switch to explicit interface method implementation for some methods
27648         corcompare identifies as inconsistent with MS.
27649
27650 2006-03-28  Mike Kestner  <mkestner@novell.com>
27651
27652         * MainMenu.cs: 
27653         * Menu.cs:
27654         add a few missing methods from the class status output.
27655
27656 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
27657
27658         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
27659           correct.
27660
27661 2006-03-28  Mike Kestner  <mkestner@novell.com>
27662
27663         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
27664
27665 2006-03-27  Mike Kestner  <mkestner@novell.com>
27666
27667         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
27668         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
27669
27670 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
27671
27672         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
27673
27674 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27675
27676         * ThemeWin32Classic.cs:
27677           - GroupBox: Inserted a little gap between the text and the lines
27678             on the right side
27679           - Made the code in CPDrawBorder3D more readable
27680           - Corrected the drawing location of the up and down arrows in 
27681             CPDrawScrollButton
27682
27683 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27684
27685         * ControlPaint.cs: Corrected line widths in DrawBorder for
27686           ButtonBorderStyle Inset and Outset
27687
27688 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27689
27690         * ThemeWin32Classic.cs:
27691           - Rewrote the totally broken CPDrawBorder3D method. That was
27692             one of the main problems for the terrific ThemeWin32Classic
27693             look
27694           - Updated and corrected Button drawing
27695           - Correct the dimensions of the SizeGrip to match ms ones
27696           - Removed a small drawing glitch in DrawComboBoxEditDecorations
27697         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
27698           Border3DStyle.Sunken to match ms.
27699
27700 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27701
27702         * ThemeWin32Classic.cs: First small part of the "de-uglify
27703           ThemeWin32Classic" effort, SizeGrip
27704
27705 2006-03-24  Jackson Harper  <jackson@ximian.com>
27706
27707         * XplatUIX11.cs: Give a max idle time of one second, this matches
27708         MS and forces an Idle event every second when there are no other
27709         events in the queue.
27710
27711 2006-03-24  Mike Kestner  <mkestner@novell.com>
27712
27713         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
27714         * ListView.Item.cs: fix layout issues with null image lists and images
27715         smaller than checkbox size.
27716         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
27717         mode like MS does.  It's weird, but consistent.  ;-)
27718         Fixes #77890.
27719
27720 2006-03-24  Mike Kestner  <mkestner@novell.com>
27721
27722         * ListView.cs: Scroll wheel support for the item control.  Fixes
27723         #77839.
27724
27725 2006-03-23  Jackson Harper  <jackson@ximian.com>
27726
27727         * ScrollableControl.cs: Special case negative sized areas, not
27728         zero.
27729         * MonthCalendar.cs: Save the rect of the clicked date so we can
27730         use it for invalidation.
27731         - Try to cut down on the number of invalidates
27732         - Invalidate the rect the mouse is over and was over when moving
27733         the mouse, so we get the focus box following the cursor.
27734
27735 2006-03-23  Mike Kestner  <mkestner@novell.com>
27736
27737         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
27738         focus rectangle drawing. Fixes #77835.
27739
27740 2006-03-23  Mike Kestner  <mkestner@novell.com>
27741
27742         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
27743         the if and else if and reverting back to the original == check on the
27744         None conditional.
27745
27746 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
27747
27748         * FontDialog.cs: Update the example panel if the selected index of
27749           the fontListBox changes.
27750
27751 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
27752
27753         * FileDialog.cs: Make FileDialog remember which directory it was in
27754           last in the same execution.
27755
27756 2006-03-22  Mike Kestner  <mkestner@novell.com>
27757
27758         * FileDialog.cs: make the DropDownMenu on the toolbar display
27759         RadioChecks since they are mutually exclusive and that's what MS does.
27760
27761 2006-03-22  Mike Kestner  <mkestner@novell.com>
27762
27763         * Theme.cs: add Color param to CPDrawMenuGlyph.
27764         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
27765         checks and radio marks and arrows are visible on highlighted items.
27766         * ControlPaint.cs: update to use new Theme signature.
27767
27768 2006-03-22  Mike Kestner  <mkestner@novell.com>
27769
27770         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
27771         is active. Fixes #77870.
27772
27773 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
27774
27775         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
27776           to be focused/selected after startup
27777
27778 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
27779
27780         * ColorDialog.cs: 
27781           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
27782             CustomColors and ShowHelp properties
27783           - Some internal rewrites to get better results when using the
27784             ColorMatrix
27785
27786 2006-03-22  Mike Kestner  <mkestner@novell.com>
27787
27788         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
27789         HoverSelection.  Fixes #77836.
27790
27791 2006-03-22  Mike Kestner  <mkestner@novell.com>
27792
27793         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
27794         ToggleButtons.  (De)Sensitize the Back button around a stack count of
27795         1, not 0.  Update ButtonSize based on a pixel count of the win32
27796         control.  Adjust the toolbar size/location for new button size.
27797
27798 2006-03-22  Jackson Harper  <jackson@ximian.com>
27799
27800         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
27801         true.
27802         * ScrollBar.cs: When doing increments and decrements we need to
27803         set the Value property so that ValueChanged gets raised. A
27804         possible optimization here would be to make an internal SetValue
27805         that doesn't invalidate immediately.
27806         * ToolTip.cs: Tooltips get added to their container (when
27807         supplied) so they get disposed when the container is disposed.
27808         - Don't create tooltips for String.Empty. This prevents all these
27809         little 2-3 pixel windows from showing up when running nunit-gui
27810         and driving me mad.
27811         * Form.cs: Don't set topmost when setting the owner if the handles
27812         haven't been created yet.  The topmost set will happen when the
27813         handles are created.
27814
27815 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
27816
27817         * XplatUIX11.cs:
27818           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
27819           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
27820             visible (to allow them to recalculate their sizes)
27821
27822 2006-03-21  Mike Kestner  <mkestner@novell.com>
27823
27824         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
27825         methods. Removed a ton of redundant code.  Still not really happy with
27826         the border rendering, but I think that's mainly because of the
27827         ControlDarkDark being black instead of a dark grey. Depending on how 
27828         close we want to be, we might want to revisit those color choices.
27829         Among the new features added during the refactor were DropDownArrow
27830         pressed rendering, Disabled image rendering.  Proper flat appearance
27831         boundary rendering.  Removed the Divider and Wrapping dividers since I
27832         can't figure out any combination of themes and conditions to make the
27833         MS control draw a horizontal line on a toolbar despite what the
27834         Divider property docs indicate.
27835         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
27836         conditions and incorrect layout.  Updated to coding standard.
27837         * ToolBarButton.cs: refactored layout and positioning code from
27838         ToolBar to here.  Invalidate wherever possible instead of forcing
27839         redraws of the whole toolbar. 
27840         (Known remaining issues: explicit ButtonSize smaller than provided
27841         images.)
27842
27843 2006-03-21  Mike Kestner  <mkestner@novell.com>
27844
27845         * ContextMenu.cs (Show): use the position parameter instead of just
27846         showing at the MousePosition.
27847
27848 2006-03-21  Jackson Harper  <jackson@ximian.com>
27849
27850         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
27851         control handle this.
27852         * TreeNodeCollection.cs: If we are clearing the root node we need
27853         to reset top_node so calcs can still happen.
27854         * ThemeWin32Classic.cs: This is a Flags so we need to check
27855         properly.
27856         
27857 2006-03-21  Jackson Harper  <jackson@ximian.com>
27858
27859         * DataGrid.cs: Create columns when the binding context has been
27860         changed.
27861         * X11Structs.cs: Keysyms are uints.
27862         - Add size to fix build.
27863
27864 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
27865
27866         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
27867           XplatUIOSX.cs: 
27868           - Added ResetMouseHover method to allow controls to retrigger
27869             hovering if they need it more than once
27870           - Implemented MouseHoverTime and MouseHoverSize properties
27871         * Timer.cs: Start() must reset the interval
27872         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
27873           properties
27874
27875 2006-03-21  Jackson Harper  <jackson@ximian.com>
27876
27877         * X11Keyboard.cs: improved layout detection. Move the nonchar
27878         tables into this file.
27879         * KeyboardLayouts.cs: Move the tables into resource files.
27880
27881 2006-03-21  Mike Kestner  <mkestner@novell.com>
27882
27883         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
27884
27885 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
27886
27887         * Mime.cs: Various speed optimizations. Looking up mime types
27888           is now 2 times faster than before
27889
27890 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
27891
27892         * CreateParams.cs: Added internal menu field
27893         * Control.cs: 
27894           - Switched call order for UpdateBounds; now we always call
27895             the one that also takes ClientSize, and we're calculating the 
27896             client size via driver method in the others. The previous
27897             method of tracking client size by difference wasn't working
27898             for forms where even the starting client size wouldn't match
27899             the overall form size (due to borders) (Part of fix for #77729)
27900           - CreateParams(): Do not use parent.Handle unless the handle is
27901             already created. Causes havoc with Nexxia and throws off our
27902             creation of controls
27903         * XplatUIX11.cs:
27904           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
27905           - Switched handling of ConfigureNotify over to new PerformNCCalc 
27906             method (consolidates code)
27907           - Changed RequestNCRecalc to use new PerformNCCalc method
27908           - Added calls to RequestNCRecalc when menus and borders are changed
27909             to allow app to set NC size. (Part of fix for #77729) This matches
27910             when MS send a WM_NCRECALC on Win32 windows.
27911           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
27912             (Part of fix for #77729). This matches what MS does, they also
27913             send that message when the form is made visible.
27914           - XException.GetMessage: Improved usability of X errors by including
27915             a translation of the window into Hwnd and Control class
27916           - Improved debug info for window creation, reparenting and destruction
27917           - Created helper method WindowIsMapped() [Currently not used]
27918         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
27919         * Form.cs:
27920           - CreateParams: Now setting our menu on the new internal menu field
27921           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
27922             avoid calculating the same property twice
27923         * Hwnd.cs:
27924           - Improved usability of ToString() for debugging purposes
27925           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
27926             determine the height of the menu, instead of just the font. This
27927             required to also create a graphics context and to keep a bmp 
27928             around (for performance reasons)
27929
27930 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
27931
27932         * MenuAPI.cs: Added OnMouseUp method
27933         * Form.cs:
27934           - Now remembering the requested client size, avoids size errors
27935           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
27936             instead of base if the menu is active. This is required due to
27937             control now capturing and releasing on down/up and it would
27938             prematurely release our menu capture
27939
27940 2006-03-17  Jackson Harper  <jackson@ximian.com>
27941
27942         * KeyboardLayouts.cs: Add the czech layouts.
27943
27944 2006-03-16  Jackson Harper  <jackson@ximian.com>
27945
27946         * Control.cs: Use the viewport space when sizing not the controls
27947         client size, so things like ScrollableControl that effect the
27948         viewport size (when scrollbars are added) are computed correctly.
27949         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
27950         of ManagerEntrys.
27951         - Handle creating BindingManagers for null data sources.
27952         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
27953         source, otherwise when rows are added they are added to the 'fake'
27954         datasource and we will crash when trying to set the position in
27955         those rows.
27956         - Use Implicit scrollbars on the datagrid so they arent
27957         selectable.
27958         
27959 2006-03-16  Jackson Harper  <jackson@ximian.com>
27960
27961         * Binding.cs:
27962         * InternalWindowManager.cs:
27963         * MdiWindowManager.cs:
27964         * X11Keyboard.cs: I really want Mike to love me again (fix
27965         compiler warnings).
27966
27967 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
27968
27969         * DataGrid.cs:
27970           - OnMouseDown: Switch to editing mode when clicking on the cell
27971                          even if we're clicking on the cell that's currently 
27972                          selected
27973           - ProcessGridKey: Left/Right now wrap like MS.Net does
27974           - ProcessGridKey: Tab now knows to add a new row when tab is
27975                             pressed in the cell of the last column of the 
27976                             last row
27977           - ProcessGridKey: Enter now adds another row  if pressed in the last
27978                             row and selectes the new row, same column cell
27979           - ProcessGridKey: Home/End navigate columns, not rows, like 
27980                             originally implemented
27981           - Broke ProcessKeyPreview code out into an extra Internal method
27982             so it can be called from the edit code
27983         * DataGridTextBox.cs (ProcessKeyMessage):
27984           - Switched to accept Tab keypresses
27985           - Added F2 handling to allow jumping to the end of the edited cell
27986           - Added logic to allow moving caret left/right inside edited cell
27987             and making the edited cell jump when the caret hits cell borders
27988           - Tab and Enter are now passed to the datagrid after being handled
27989         * TextBoxBase.cs:
27990           - Removed capture code now that Control handles it
27991           - set_SelectionStart now ensures caret is visible
27992
27993 2006-03-16  Jackson Harper  <jackson@ximian.com>
27994
27995         * TrackBar.cs: Debackwards the increment/decrement for handling
27996         mouse clicks on the bar with vertical trackbars.
27997         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
27998         bottom to match MS.
27999
28000 2006-03-16  Mike Kestner  <mkestner@novell.com>
28001
28002         * ListView.cs: make shift/ctrl keyboard and mouse selection 
28003         consistent with the MS control. Fix a bug in
28004         SelectedListViewItemCollection.Clear that was pissing me off for the
28005         better part of a day because the collection was being altered
28006         underneath us as we walked the list.
28007
28008 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
28009
28010         * Control.cs: Not sure how we could miss this so long, but it seems
28011           that MS.Net has Capture set all the way from before calling 
28012           OnMouseDown through sending the mouse events until after
28013           OnMouseUp. This will fix DataGrid's selection being set to end
28014           at the location of the MouseUp.
28015
28016 2006-03-15  Jackson Harper  <jackson@ximian.com>
28017
28018         * BindingContext.cs: Check the binding after its added so that it
28019           can initialize the binding managers and hookup to events.
28020         * Binding.cs: Data members seem to sometimes include rows/cols in
28021           the format Row.Column we now take this into account.
28022           - Hookup to the position changed event so we can update the
28023           control when the position has changed in the data set.
28024         * CurrencyManager.cs: Take into account the row/col naming
28025           convention when creating dataset tables.
28026         * BindingContext.cs: Using a newer better way of storing
28027           datasource/datamember pairs.  Hopefully this better matches MS for
28028           looking up binding managers.
28029
28030
28031 2006-03-15  Jackson Harper  <jackson@ximian.com>
28032
28033         * BindingContext.cs: The currency manager needs the data member
28034         name, if the member is a data set we use the name to find the
28035         correct table.
28036         * CurrencyManager.cs: When creating the list prefer an IList over
28037         an IListSource.
28038         - Attempt to create a DataTable from a DataSet (TODO: might need
28039         some better error checking here, although MS doesn't seem to have much)
28040         - If we have a DataTable create a view and use it as our list.
28041
28042 2006-03-15  Mike Kestner  <mkestner@novell.com>
28043
28044         * ListView.cs: keep a matrix of the icon mode layout to facilitate
28045         keyboard navigation. Support Up/Down/Left/Right selection correctly
28046         for all 4 View modes.
28047         * ListViewItem.cs: add internal row/col fields for icon layouts.
28048
28049 2006-03-15  Jackson Harper  <jackson@ximian.com>
28050
28051         * TabControl.cs: Redraw the tabs when we resize so their newly
28052         calculated sizes are drawn on screen.
28053         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
28054         composite characters.
28055         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
28056         - filter events so that composite characters can be created
28057         patches by peter
28058         * X11Structs.cs: Add XIMProperties enum.
28059
28060 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28061
28062         * Control.cs (BringToFront, SendToBack): Don't use window or handle
28063           unless it's created
28064
28065 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28066
28067         * Control.cs (PerformLayout): We don't need to consider visiblity
28068           for anchoring, only for docking. This fixes 'whacky' alignment
28069           in listbox and other controls that use implicit scrollbars after
28070           the previous PerformLayout patch
28071         * ListBox.cs: Switched to use implicit scrollbars
28072           
28073 2006-03-14  Mike Kestner  <mkestner@novell.com>
28074
28075         * ToolBar.cs: 
28076         * VScrollBar.cs:
28077         - chain up the "new event" overrides to base and use
28078         OnEvent to raise them.  Part of fix for bug #76509.
28079
28080 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
28081
28082         * FileDialog.cs: Do not select an item in the parent directory
28083           on backspace
28084
28085 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28086
28087         * Control.cs (PerformLayout): It would seem that we considered
28088           invisible windows for our layout. Not quite the right thing
28089           to do. Now we don't any longer, thereby fixing bug #76889.
28090
28091 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28092
28093         * Control.cs (CanFocus): I goofed. A control can have focus 
28094           even though it's not selectable. Made it match MS docs.
28095
28096 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28097
28098         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
28099           center by default (fixes #76895)
28100         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
28101           all uses of Border3DSides.All with the explicit ORd together
28102           Left|Right|Top|Bottom because I assume that nobody was aware 
28103           that All also implies a center fill. Most places I checked had
28104           a fill right above.
28105         * ProgressBarStyle.cs: Added
28106
28107 2006-03-13  Mike Kestner  <mkestner@novell.com>
28108
28109         * ListView.cs: fix breakage in drag shadow header positioning 
28110         from Peter's csc compilation fix.
28111
28112 2006-03-13  Mike Kestner  <mkestner@novell.com>
28113
28114         * ListView.cs: fix NRE produced by backspacing twice in a focused
28115         FileDialog.
28116
28117 2006-03-13  Mike Kestner  <mkestner@novell.com>
28118
28119         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
28120
28121 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28122
28123         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
28124           be changed
28125         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
28126           the allowed size before making programmatic size changes
28127
28128 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
28129
28130         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
28131           set, metacity is broken and will still use the emty sizes in 
28132           the struct. (Fix for #77089)
28133
28134 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28135
28136         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
28137           WindowExStyles and marked both enums as Flags
28138         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
28139           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
28140           to match WindowStyles split
28141         * XplatUIX11.cs:
28142           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
28143           - Updated to match WindowStyles split
28144         * XplatUIWin32.cs:
28145           - Fixed FosterParent creation, was using ExStyle on the Style field
28146             (This should help with Popup focus issues)
28147           - Updated to match WindowStyles split
28148
28149 2006-03-13  Jackson Harper  <jackson@ximian.com>
28150
28151         * MdiWindowManager.cs: Use the system menu height. Fixes some
28152         strange sizing issues.
28153
28154 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28155
28156         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
28157         * TextBoxBase.cs:
28158           - Scroll to caret after inserting text (#77672)
28159           - Make scroll range one pixel higher, fixes off-by-one error (and
28160             makes underlines visible on the last line)
28161
28162 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
28163
28164         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
28165           the keyboard state from being stuck with keys in 'pressed' state when
28166           focus is switched away via keyboard
28167         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
28168           reset the keyboard if no X11 KeyUp events are expected to come
28169         * X11Structs.cs: Switched type of Visible to bool to match driver
28170
28171 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28172
28173         * TextControl.cs:
28174           - Switched caret to be just 1 pixel wide, matches MS and looks less
28175             clunky
28176           - Moved caret display 1 pixel down from the top of the control
28177             to improve view
28178           - InsertCharAtCharet: Update the selection start if moving the caret
28179             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
28180           - No longer always creating the caret when the caret methods are
28181             called. Only the actual ShowCaret/HideCaret will do that now
28182           - Only setting caret visible if the owner control has focus
28183           - UpdateView: Added invalidation-shortcut logic for center and right 
28184             aligned text. Previously we'd update all according to the left
28185             logic which caused drawing errors. Also fixed height of invalidated
28186             areas, now properly invalidating the whole area (was off-by-one)
28187           - owner_HandleCreated: Always generate the document when the
28188             handle is created; this ensures that 
28189         * TextBoxBase.cs:
28190           - Fixed situation where caret would disappear under the right
28191             window border, also improved scrolling behaviour on left-
28192             aligned textboxes
28193           - Fixed right-aligned textboxes to have a border to the
28194             right instead of the caret being under the right border
28195         * XplatUIX11.cs:
28196           - Switched from 'nested' to simple visible/not visible tracking 
28197             for caret (part of fix for #77671)
28198           - No longer passing through translated FocusIn/FocusOut messages
28199             since we were notifying too often and the wrong windows. Instead
28200             we just notify our focussed window of receiving or loosing focus
28201         * XplatUIWin32.cs: Switched from 'nested' show/hide 
28202           counting for caret to simple visible yes/no behaviour (part of 
28203           fix for #77671)
28204
28205 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28206
28207         * Mime.cs: Remove debug code...
28208
28209 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28210
28211         * MimeGenerated.cs: Removed
28212         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
28213           and subclasses) from /usr/(local/)share/mime and
28214           $HOME/.local/share/mime.
28215
28216 2006-03-10  Jackson Harper  <jackson@ximian.com>
28217
28218         * MdiWindowManager.cs: Recalc the NC area when a window is
28219         maximized/restored so that the menu area is drawn on forms that
28220         don't have a menu.
28221
28222 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28223
28224         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
28225           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
28226           us to force a WM_NCCALCRESIZE message being sent. This is needed
28227           for MDI maximizing.
28228
28229 2006-03-10  Jackson Harper  <jackson@ximian.com>
28230
28231         * Form.cs: We need to use the ActiveMenu when calculating menu
28232         height.
28233         - Fix nullref when the window manager hasn't been created yet.
28234         * Control.cs: Fix nullref when we try to bring a control to the
28235         front that has no parent.
28236         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
28237         height.
28238         - Add a dummy item to the maximized menu so it always has the
28239         correct height. Otherwise when there are no menus we don't get our
28240         icon and buttons.
28241         
28242
28243 2006-03-10  Jackson Harper  <jackson@ximian.com>
28244
28245         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
28246         stuff.
28247         * Form.cs: Make the window_state internal so the window managers
28248         can track it.
28249         - When an MDI child is maximized let its window manager create the
28250         main menu (so it can add its icon).
28251         - Notify the window managers of state changes
28252         - Let the window manager paint its buttons and handle button
28253         clicks on the menu when it is maximized.
28254         * InternalWindowManager.cs: Move the prev_bounds into the mdi
28255         window manager, since tool windows don't use it, only mdi windows.
28256         - Tell the main form that we don't want it to handle NCPAINT
28257         itself to avoid extra painting.
28258         - Handle clicks on a maximized windows menu.
28259         - Handle window state changes
28260         - Handle minimize/maximize clicks correctly by setting the window state.
28261         * MdiWindowManager.cs: Add an icon menu that (the menu you get
28262         when clicking on the forms icon).
28263         - New method to create a forms maximized menu. This is its normal
28264         menu + an icon.
28265         - Handle window state changes.
28266         - Handle sizing of maximized windows.  Maximized windows are just
28267         drawn bigger then the parent visible area. All controls are still
28268         there, they are just outside the visible area (this matches windows).
28269         * MdiClient.cs: No scrollbars when a child window is maximized.
28270         - Let the children windows figure out how big they should be when
28271         sizing maximized windows.
28272         - Implement a version of ArrangeIconicWindows somewhat similar to
28273         Windows version.  There are some little differences, but I don't
28274         think any app will rely on the layout of minimized mdi windows.
28275
28276 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28277
28278         * Padding.cs: Several fixes to allow compiling with csc 2.0
28279
28280 2006-03-09  Jackson Harper  <jackson@ximian.com>
28281
28282         * Menu.cs:
28283         * MenuItem.cs: Cheap hack so we can add items to the list without
28284         the events being raised.  This allows adding mdi items during
28285         drawing. TODO: Should probably find a better time to add the items.
28286
28287 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28288
28289         * ThemeWin32Classic.cs:
28290           - CheckBox_DrawText: Added logic to not wrap if not enough space
28291             is available (Fix for bug #77727)
28292           - RadioButton_DrawText: Added logic not to wrap if not enough
28293             space is available (Fix for bug #77727). Also removed some
28294             duplicate code, DrawString always drawing the regular text
28295             before hitting the if statement.
28296
28297 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
28298
28299         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
28300
28301 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28302
28303         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
28304         * ContainerControl.cs: Partial implementation of some 2.0 scaling
28305           methods. Moved the new 2.0 properties into alphabetical order with
28306           other properties and added MonoTODO tags
28307
28308 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28309
28310         * AutoScaleMode.cs: Added. Fix build.
28311
28312 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28313
28314         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
28315           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
28316           and was requiring premature handle creation for calls from above
28317         * Form.cs, Control.cs: Removed handle arguments from calls to
28318           CalculateClientRect()
28319
28320 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28321
28322         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
28323           drag_column.column_rect is MarshalByRef and can't be used that way
28324
28325 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28326
28327         * AxHost.cs: Added deserialization constructor for 
28328           AxHost+State (fixes 77743)
28329
28330 2006-03-09  Mike Kestner  <mkestner@novell.com>
28331
28332         * ListView.cs: 
28333         - Added column drag reordering for details view.
28334         - fixed behavior when mouse is dragged off column and
28335         AllowColumnReorder is false.
28336         * ColumnHeader.cs: clone the format too in Clone.
28337         * Theme.cs: add DrawListViewHeaderDragDetails method.
28338         * ThemeWin32Classic.cs:
28339         - impl new method for drawing drag column shadows and targets.
28340         - support column offset for details mode in DrawListViewItem.
28341
28342 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28343
28344         * TextControl.cs: Reset the char_count when the document is cleared
28345           (Fixes bug reported on mono-winforms mailing list)
28346
28347 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28348
28349         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
28350           of calling base we simply process the key ourselves, since both
28351           DefWindowProc and the handled method would set m.Result. 
28352           (Fixes #77732)
28353
28354 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28355
28356         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
28357           method also moves the window; instead implemented a copy of
28358           Control.ScaleCore (Part of fix for #77456)
28359         * TextBoxBase.cs: 
28360           - Created new CreateGraphicsInternal method to allow providing
28361             a graphics context when no handle is created without triggering
28362             handle creation. (Part of fix for #77456)
28363           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28364         * TextControl.cs: 
28365           - Switched Constructor to require TextBoxBase instead of Control (to
28366             allow uncast access to CreateGraphicsInternal)
28367           - Safeguarded use of owner.Handle property. No longer accessing it
28368             unless the handle is already created.
28369           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28370           - Now triggering a recalc when owning control becomes visible
28371         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
28372           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
28373           premature handle creation (Part of fix for #77456)
28374         * Control.cs:
28375           - We now only destroy our double-buffering buffers when the
28376             control is resized or disposed, but not when visibility
28377             changes. (The code even re-created them twice every time)
28378           - Now requiring a redraw of the buffer on visibility changes
28379             (fixes bug 77654 part 2)
28380           - Not passing OnParentVisibleChanged up unless the control
28381             is visible
28382           - CanFocus: Fixed to match MS documentation
28383           - Focus: Fixed to return actual focus state and to check if
28384             setting focus is legal before setting it
28385
28386 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
28387
28388         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
28389           when to draw focus rectangle by looking at parent focus and
28390           selected state instead. This fixes TabPages on Linux sometimes
28391           having none or multiple focus rectangles.
28392         * XplatUIX11.cs (SetFocus): 
28393           - Don't set the focus if the same window already has focus
28394           - Use SendMessage instead of PostMessage (like it's Win32
28395             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
28396             to match MS behaviour
28397         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
28398           are not selectable.
28399
28400 2006-03-07  Jackson Harper  <jackson@ximian.com>
28401
28402         * PictureBox.cs: Revert line I accidently committed last week.
28403
28404 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
28405
28406         * Control.cs: 
28407           - Added new IsRecreating and ParentIsRecreating properties to
28408             allow testing if RecreateHandle has been called on ourselves
28409             or one of our parents
28410           - WndProc(WM_DESTROY): If our control handle is being recreated
28411             we immediately need to create the handle when receiving the
28412             destroy, that way our child windows find a valid parent handle
28413             when they themselves are being recreated upon WM_DESTROY receipt
28414             (fix for bug #77654 part 1)
28415         * XplatUIX11.cs:
28416           - DestroyWindow: WM_DESTROY must be sent to our own window before
28417             notifying any child windows. MS documents that child windows
28418             are still valid when WM_DESTROY is received. (Control now relies on
28419             this behaviour)
28420           - Added some fine-grain debug options
28421
28422 2006-03-06  Jackson Harper  <jackson@ximian.com>
28423
28424         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
28425         box and base calculations off this.
28426         * MdiChildContext.cs:
28427         * MdiWindowManager.cs: Don't need to ensure scrollbars here
28428         anymore.
28429         
28430 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
28431
28432         * Splitter.cs: In situations where the affected control is added
28433           to the parent's control list after the splitter, we would not
28434           populate affected. Now we try populating it on mousedown, if
28435           it's not already set, and force it to be re-set whenever our
28436           parent changes.
28437
28438 2006-03-03  Matt Hargett  <matt@use.net>
28439
28440         * Control.cs: implement Control.Padding
28441         * Padding.cs: -Padding.All returns -1 when constructing with the
28442         implicit default ctor
28443         -Padding.ToString() matches MS.NET
28444         * ContainerControl.cs: implement
28445         ContainerControl.AutoScaleDimensions
28446         * ListControl.cs: implement ListControl.FormattingEnabled
28447         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
28448         * ButtonBase.cs:
28449         * TabPage.cs: Implement UseVisualStyleBackColor.
28450         * PictureBox.cs: Implement PictureBox.InitialImage.
28451
28452 2006-03-03  Mike Kestner  <mkestner@novell.com>
28453
28454         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
28455         event declarations to proxy to base event.
28456         * ListViewItem.cs: update to use ItemControl.
28457         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
28458         * ThemeWin32Classic.cs: update to new ListView theme API and fix
28459         column header label rendering for 0 width columns.
28460
28461 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
28462
28463         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
28464           that causes the control to be created. Fixes #77476.
28465
28466 2006-03-02  Jackson Harper  <jackson@ximian.com>
28467
28468         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
28469         expose_pending.
28470
28471 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
28472
28473         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
28474           passed in for the EventArgs (fixes #77690)
28475
28476 2006-03-01  Jackson Harper  <jackson@ximian.com>
28477
28478         * ScrollBar.cs: Refresh afterbeing resized.
28479
28480 2006-02-28  Mike Kestner  <mkestner@novell.com>
28481
28482         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
28483         Clean up a tracker compile warning.
28484         * MenuItem.cs: add internal PerformPopup method.
28485         [Fixes #77457]
28486
28487 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28488
28489         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
28490           implicit expose) when the text is set to null
28491
28492 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
28493
28494         * RichTextBox.cs (FlushText): When newline is true, we always
28495           need to split the line, even if no text is on it and we may
28496           never eat newlines. (Fixes #77669)
28497
28498 2006-02-28  Mike Kestner  <mkestner@novell.com>
28499
28500         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
28501         and set Selected instead.
28502         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
28503         collections.
28504
28505 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28506
28507         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
28508
28509 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
28510
28511         * FontDialog.cs:
28512           - Got rid of the panel. All controls are now directly added to
28513             the dialog form
28514           - It is now possible to set a font with the Font property
28515           - MinSize and MaxSize property do now what they should
28516           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
28517           - Searching and selecting a font with the font textbox works now,
28518             the same applies to the style and size textbox
28519           - Draw the correct 3D border in the example panel
28520           - Fixed a little mem leak (unused fonts didn't get disposed)
28521           - Many other internal updates/rewrites...
28522           - Fix typo
28523
28524 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28525
28526         * TextControl.cs: 
28527           - InsertRTFFromStream: Added 'number of characters inserted' argument
28528           - set_SelectedRTF: Now using the number of characters to calculate
28529             the new location for the selection and cursor (x/y cannot be used
28530             due to potentially already wrapped text)
28531
28532 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
28533
28534         * TextControl.cs: Added property and implemented means to allow 
28535           disabling recalculation of a document (can be used to speed up
28536           multiple inserts and is needed to make RTF inserts predictable, see
28537           bug #77659)
28538         * RichTextBox.cs: Using the new NoRecalc property of Document to
28539           keep x/y insert locations predictable. Also makes it faster inserting
28540           large chunks of RTF
28541
28542 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28543
28544         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
28545           it's easier for a child control to handle the other messages without
28546           having to duplicate the special functionality
28547         * TextBoxBase.cs
28548           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
28549             code to handle processing the key ourselves, in order to get 
28550             access to the result of KeyEventArgs.Handled. We now only call 
28551             ProcessKey if they key hasn't been handled already. Fixes #77526.
28552           - set_Text: If null or empty string is given, just clear the 
28553             document. Fixes part of #77526
28554
28555 2006-02-27  Jackson Harper  <jackson@ximian.com>
28556
28557         * SizeGrip.cs: Paint the background color before painting the grip
28558         so things look right.
28559         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
28560
28561 2006-02-27  Mike Kestner  <mkestner@novell.com>
28562
28563         * ListView.cs:
28564           - Restructure layout and invalidation model to remove a ton of
28565           flicker from the control and speed up performance in general.
28566           - Add manual column resize, flickers like crazy, but I already have
28567           some ideas on how I'll fix that. (#76822)
28568           - Merge the three Icon-based views into a single layout method.
28569           - Move item selection interaction logic from the item since 
28570           interaction with the collections is more appropriate to the view.
28571           - Deselection on non-item clicks.
28572         * ListViewItem.cs:
28573           - Encapsulate most of the layout. Add some internal props to trigger
28574           layout.  Move to a model where Items invalidate themselves instead
28575           of just invalidating the whole control every time something changes.
28576           - Invalidate on Text/Caption changes.
28577           - switch to an offset based layout model to avoid having to absolute
28578           position every element on item moves.
28579           - correct checkbox layout to conform to MS layout.
28580         * ThemeWin32Classic.cs:
28581           - refactor some column header drawing code.
28582           - fix string justification for column headers (#76821)
28583           - make SmallIcon labels top justified for compat with MS impl.
28584         * ThemeClearlooks.cs:
28585           - adjust to new ListViewItem internal checkbox bounds api.
28586
28587 2006-02-27  Jackson Harper  <jackson@ximian.com>
28588
28589         * Control.cs:  Change where implicit controls fall in the zorder.
28590         They are now on top of all children.
28591         - Synced AddImplicit code with Add
28592         - Removed unused enumerator.
28593         * SizeGrip.cs: Remove the TODO as its been TODONE.
28594
28595 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
28596
28597         * TextControl.cs(Insert): Combine the last lines unless the insertion
28598           string ends with \n\n, otherwise we leave one line too many (Fixes
28599           something I noticed with the testapp for #77526; the bug itself was
28600           already fixed in the previous checkin)
28601
28602 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
28603
28604         * RichTextBox.cs:
28605           - SelectionColor and SelectionFont methods no longer set absolute
28606             styles. Instead, the keep font or color respectively (This 
28607             resolves a long-standing FIXME in the code)
28608           - When flushing RTF text, the insert code now considers text trailing
28609             behind the insertion point (Fixes the bug where when replacing
28610             the selected text via SelectedRTF the remainder of the line behind 
28611             the selection would stay on the first insertion line)
28612         * TextBoxBase.cs:
28613           - AppendText now updates the selection points after inserting text
28614           - AppendText now ensures that the last tag (sometimes 0-length) of
28615             the document is used for the style information (Fixes part of 
28616             bug #77220)
28617         * TextControl.cs:
28618           - Created new FontDefiniton class to allow describing partial style
28619             changes
28620           - StreamLine() now takes a lines argument, to allow it to decide
28621             whether an encountered zero-length tag is the last in the document
28622             (which must be kept to not loose the font/color contained in it,
28623             for later appends)
28624           - Created Combine() and Split() methods for Marker structs, to 
28625             support marker updates due to reformatted documents (soft line
28626             wraps)
28627           - Implemented Document.CaretTag setter
28628           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
28629             of the last line (Not the cause, but also exposed by bug #77220)
28630           - Added LineTag argument to InsertString method, to allow callers
28631             to force a certain tag to be used (required to force use of the
28632             trailing zero-length tag of a document)
28633           - Now updating markers in Combine(), to avoid stale tag markers
28634           - Added some method descriptions to aid maintenance
28635           - Implemented new FormatText concept, allowing additive/subtractive
28636             formatting by only specifying the components that are to be 
28637             changed. This was needed for resolving the RTB.SelectedColor/
28638             RTB.SelectedFont fixmes
28639           - Added Break() support method to allow breaking up linetags (used
28640             for partial formatting)
28641           - Added GenerateTextFormat() method. It is used for partial 
28642             formatting and allows to generate a full font/color from given
28643             attributes and an existing tag.
28644
28645 2006-02-26  Jackson Harper  <jackson@ximian.com>
28646
28647         * XplatUIX11.cs:  Use the correct caption height.
28648         - Translate hittest coordinates to screen coords to match MS.
28649         * XplatUIWin32.cs: When we create MDI windows we need to reset
28650         some of the style flags, so we get a nice blank window, and can
28651         draw all the decorations ourselves.
28652         - Set a clipping rectangle on the non client paint event, the
28653         window manager drawing code needs one.
28654         * Form.cs: The window manager needs to know when the window state
28655         has been updated.
28656         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
28657         don't need to factor in border and title sizes in these
28658         methods. TODO: Remove the args and fix the call points.
28659         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
28660         properly.
28661         - Let the driver set the cursors.
28662         - Improve active window handling
28663         - Correct sizes for title bars and buttons.
28664         - Match MS drawing better
28665         * MdiWindowManager.cs: We don't need to handle border style
28666         updates specially anymore.
28667         - Check for scrollbars when windows are done moving
28668         - Handle Active properly.
28669         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
28670         correctly. I am spewing the exception though, so we don't hide the
28671         bugs.
28672         
28673 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
28674
28675         * DataGridViewRowPostPaintEventArgs.cs,
28676           DataGridViewCellPaintingEventArgs.cs,
28677           DataGridViewRowCollection.cs,
28678           DataGridViewRowPrePaintEventArgs.cs,
28679           DataGridViewCell.cs: Clear a few warnings and implement a few
28680           exceptions that should be thrown.
28681
28682 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28683
28684         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
28685           'inheriting' our parent's (non-default) cursor. (Part of
28686            the fix for #77479)
28687
28688 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
28689
28690         * XplatUIX11.cs: Fixed cast to make csc happy
28691
28692 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28693
28694         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
28695           it's for the client area (part of fix for #77479 and needed
28696           for MDI window cursor handling)
28697         * XplatUIX11.cs
28698           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
28699             the appropriate default cursors and also passing the message
28700             up the parent chain 
28701           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
28702             for non-client areas
28703
28704 2006-02-15  Jackson Harper  <jackson@ximian.com>
28705
28706         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
28707         is a real MDI window
28708
28709 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
28710
28711         * X11DesktopColors.cs: Instead of checking the desktop session
28712           string for "KDE" check if it starts with "KDE"
28713
28714 2006-02-10  Jackson Harper  <jackson@ximian.com>
28715
28716         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
28717         systems).
28718
28719 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28720
28721         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
28722           errors
28723         * ColorDialog.cs:
28724           - Got rid of the panel. All controls are now directly added to
28725             the dialog form
28726           - Changed to mono coding style
28727
28728 2006-02-10  Jackson Harper  <jackson@ximian.com>
28729
28730         * InternalWindowManager.cs: We don't need the set visibility to
28731         false hack anymore now that peter has written beautiful shutdown
28732         code.
28733
28734 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
28735
28736         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
28737           where already explicitly destroyed
28738
28739 2006-02-10  Jackson Harper  <jackson@ximian.com>
28740
28741         * MdiClient.cs: Handle the case where windows are too high or to
28742         the left and we need scrollbars.
28743
28744 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28745
28746         * MimeIcon.cs: Added some icons
28747         * FileDialog.cs:
28748           - Fixed bug #77477
28749           - Got rid of the panel. All controls are now directly added to
28750             the dialog form
28751           - Changed to mono coding style
28752           - On Linux "My Computer" and "My Network" will now show some
28753             more usefull information. A new class, MasterMount, gathers
28754             this information from /proc/mount. Updated MWFFileView to make
28755             use of this information
28756           - Fixed a bug that caused FileDialog to crash when
28757             ".recently_used" file had a zero size
28758           - FilterIndex does now what it should
28759           - Some Refactoring
28760         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
28761             FileDialog changes
28762
28763 2006-02-09  Jackson Harper  <jackson@ximian.com>
28764
28765         * ComboBox.cs: Don't touch if null.
28766
28767 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
28768
28769         * Cursor.cs: 64bit safeness fix
28770         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
28771
28772 2006-02-09  Jackson Harper  <jackson@ximian.com>
28773
28774         * Form.cs: If a form is made into an MDI form update the styles so
28775         all the props can get set correctly.
28776         - Kill the mdi_container when we dont need it anymore.
28777         * InternalWindowManager.cs: Add missing NOT
28778
28779 2006-02-08  Jackson Harper  <jackson@ximian.com>
28780
28781         * InternalWindowManager.cs: Respek clipping when drawing MDi
28782         decorations.
28783
28784 2006-02-08  Jackson Harper  <jackson@ximian.com>
28785
28786         * Hwnd.cs: Add bits to track non client expose events.
28787         * XplatUIX11.cs: Track non client expose events on the hwnd. This
28788         gives us a proper invalid rect and will allow for some nice
28789         optimizations with NC client drawing
28790         - MDI windows are children windows, so move their style handling
28791         into the child window block.
28792         * InternalWindowManager.cs: Remove a state reset that was
28793         getting invoked at the wrong time. Fixes managed windows getting
28794         into a 'stuck' captured state.
28795
28796 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
28797
28798         * TextControl.cs (Document.ctor): Now initializing 
28799           selection_anchor. Fixes #77493
28800
28801 2006-02-07  Jackson Harper  <jackson@ximian.com>
28802
28803         * TrackBar.cs: The increment/decrements were backwards.
28804
28805 2006-02-07  Mike Kestner  <mkestner@novell.com>
28806
28807         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
28808         to the instance itself.
28809
28810 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
28811
28812         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
28813           on ulongs and pointers, the size differs between 32bit and 64bit
28814           systems. 
28815
28816 2006-02-07  Mike Kestner  <mkestner@novell.com>
28817
28818         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
28819         for 64 bit platforms to work around a metacity bug. 
28820
28821 2006-02-07  Jackson Harper  <jackson@ximian.com>
28822
28823         * TrackBar.cs: Process the input keys we need, and hookup to
28824         KeyDown instead of using WndProc, so we get key messages.
28825
28826 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
28827
28828         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
28829           machine we're on. 
28830         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
28831           we need to translate the XdndVersion atoms array before sending it
28832
28833 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
28834
28835         * XplatUIX11.cs: 
28836           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
28837             number of bits for the property, not the number of bytes. The
28838             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
28839             but would not crash since it specified 8 bits instead of 4 bits)
28840           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
28841             defined as XID -> long in the C headers)
28842           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
28843             references since those are now IntPtr to begin with
28844           - Switched all Atom.XXX 'int' casts to IntPtr casts
28845           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
28846           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
28847           - Added XChangeActivePointerGrab DllImport (for X11DnD)
28848         * X11Structs.cs:
28849           - Changed 'int' type for Atoms in XEvent structures to IntPtr
28850           - Changed atom in HoverStruct to be IntPtr
28851         * X11DnD.cs:
28852           - Removed local DllImports, switched code to use those from XplatUIX11
28853           - Removed/fixed casts related to the switch of Atom to be a IntPtr
28854
28855 2006-02-06  Mike Kestner  <mkestner@novell.com>
28856
28857         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
28858         method signatures in the import region.  There may still be some
28859         lingering struct marshaling issues, as I didn't drill down into those.
28860         Yet.
28861
28862 2006-02-06  Jackson Harper  <jackson@ximian.com>
28863
28864         * ComboBox.cs: Dont manually set the top_item, this is computed
28865         when the scrollbar position is set.
28866
28867 2006-02-06  Mike Kestner  <mkestner@novell.com>
28868
28869         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
28870         startup crashes on amd64.  There's other fixes needed.  All pinvoke
28871         usage of Atom needs to be mapped to IntPtr for example.  And there are
28872         likely other int/long issues to be addressed.
28873
28874 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
28875
28876         * FileDialog.cs: One more...
28877
28878 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
28879
28880         * FileDialog.cs: Next try
28881
28882 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
28883
28884         * FileDialog.cs: First part of fix for #77464
28885
28886 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
28887
28888         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
28889           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
28890           AcceptButton border drawing.
28891
28892 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
28893
28894         * Form.cs: Moved positioning of form after auto scaling is applied,
28895           otherwise it would possibly use wrong form size.
28896
28897 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
28898
28899         * Control.cs (RecreateHandle): No need to re-create any child
28900           controls, the child windows will get destroyed automatically by
28901           the windowing system or driver, and re-created when the handle
28902           is being accessed the first time. Fixes #77456
28903         * Form.cs: No longer setting the form to closing if the handle is 
28904           being recreated. This seems like the right thing to do, don't
28905           have a bug or testcase for this, though.
28906
28907 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
28908
28909         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
28910           controls to avoid unwanted side effects
28911
28912 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
28913
28914         * Control.cs: 
28915           - ScaleCore needs to scale the bounds, not the ClientSize of the 
28916             control. Fixes #77416.
28917           - DefaultSize is 0,0 for control
28918         * TextBoxBase.cs: 
28919           - DefaultSize is 100, 20
28920           - SetBoundsCore: Now enforcing the height, no matter if the provided
28921             height is more or less than the preferred one, as long as AutoSize
28922             is on
28923         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
28924
28925 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
28926
28927         * Control.cs:
28928           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
28929             call unless both performLayout is true *and* we have a pending
28930             layout change
28931           - ResumeLayout: MS does not completely nest Suspend and Resume,
28932             they bottom out at 0, fixed our code to match that.
28933           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
28934             SetBoundsCore, we were updating even when we shouldn't. This fixes
28935             swf-anchors mis-anchoring when resizing the app fast and lots.
28936           - UpdateDistances: Now only setting the left and top distance if 
28937             we have a parent and are not suspended, this is based on
28938             a suggestion by Don Edvaldson in bug #77355.
28939           - OnVisibleChanged: Fixed logic when to create the control. We may
28940             not create the control if we have no parent or if it's not visible;
28941             switched to using Visible property instead of is_visible field 
28942             since the property also considers parent states. This fixes a bug
28943             when starting Paint.Net
28944
28945 2006-02-02  Jackson Harper  <jackson@ximian.com>
28946
28947         * Form.cs: If the forms handle hasn't been created yet don't call
28948         into xplatui to make it top most, just set the topmost flag on the
28949         form in CreateParams
28950         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
28951
28952 2006-02-01  Jackson Harper  <jackson@ximian.com>
28953
28954         * ScrollableControl.cs: Refactored the Recalculate method a
28955         little, this wasn't handling all the variants of bottom and right
28956         bars needed to be added and added/removed based on their
28957         counterparts being added/removed (which changes the drawable
28958         size). Also we special case client widths and heights of 0 and
28959         don't add the scrollbar for those.
28960
28961 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
28962
28963         * XplatUIX11.cs: 
28964           - Added method to get AbsoluteGeometry(); currently unused, but might
28965             be used in the future, if we try again to figure out toplevel
28966             coordinates with some more crappy window managers
28967           - Added FrameExtents() method to retrieve the WM set decoration size
28968           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
28969             to deal with at least KDE, FVWM and metacity (Fixes #77092)
28970         * Hwnd.cs: 
28971           - Added whacky_wm tracking var for metacity
28972           - Added logic to have default menu height if the actual menu height
28973             has not yet been calculated (part of fix for #77426)
28974         * Form.cs: Keep track whether client size has been set and re-set 
28975           it if a menu is added/removed afterwards (Fixes #77426)
28976
28977 2006-01-31  Jackson Harper  <jackson@ximian.com>
28978
28979         * Control.cs: When a new Site is set on the component attempt to
28980         pull the AmbientProperties from it.
28981
28982 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
28983
28984         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
28985           in the background of the owning form. Fixes #77332
28986
28987 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
28988
28989         * MimeIcon.cs: Fix for #77409
28990
28991 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
28992
28993         * XplatUIX11GTK.cs: Initial import
28994
28995 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
28996
28997         * FixedSizeTextBox: fixes class signature
28998
28999 2006-01-30  Jackson Harper  <jackson@ximian.com>
29000
29001         * FixedSizeTextBox.cs: New internal class that represents a
29002         textBox that will not be scaled.
29003         * TreeView.cs:
29004         * ComboBox.cs:
29005         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
29006         standard TextBox.
29007                 
29008 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
29009
29010         * XplatUIX11.cs: Retrieve default screen number instead of
29011           assuming 0. Attempted fix for #77318
29012
29013 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
29014
29015         * XplatUIWin32.cs: 
29016           - GetWindowPos: When a window is parented by FosterParent, use 
29017             the desktop instead of FosterParent as the base to get coordinates
29018           - CreateWindow: Don't make FosterParent the parent window for Popups
29019             if we don't want a taskbar entry, Popups automatically don't get one
29020         * Hwnd.cs: Need to call remove to actually remove the key from the
29021           hash table
29022
29023 2006-01-30  Mike Kestner  <mkestner@novell.com>
29024
29025         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
29026
29027 2006-01-30  Jackson Harper  <jackson@ximian.com>
29028
29029         * TreeView.cs:
29030         * TreeNode.cs: Raise events no matter how the treenode is
29031         checked. Patch by Don Edvalson.
29032
29033 2006-01-30  Jackson Harper  <jackson@ximian.com>
29034
29035         * TreeNode.cs: Signature fix.
29036
29037 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
29038
29039         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
29040
29041 2006-01-20  Mike Kestner  <mkestner@novell.com>
29042
29043         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
29044         event forwarding when menus are active.
29045         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
29046         Most of the patch is pdb's with a little rework.
29047
29048 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29049
29050         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
29051           Removed GetMenuDC and ReleaseMenuDC methods; replaced
29052           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
29053         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
29054         * InternalWindowManager.cs: Added use of PaintEventStart/End to
29055           handling of WM_NCPAINT message, now passing the PaintEventArgs to
29056           the PaintWindowDecorations method
29057         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
29058         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
29059         * MenuAPI.cs: Made tracker window invisible
29060         * XplatUIWin32.cs:
29061           - Removed GetMenuDC and ReleaseMenuDC methods
29062           - Implemented the client=false path for PaintEventStart and
29063             PaintEventEnd
29064
29065 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29066
29067         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
29068         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
29069           styles
29070         * Form.cs: 
29071           - MaximizeBox, MinimizeBox: Recreate the handle when setting
29072             the style
29073           - CreateParams: Reworked the styles to match MS look'n'feel,
29074             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
29075             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
29076
29077 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29078
29079         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
29080           window is not mapped, since otherwise every form that's being 
29081           created is considered minimized, which is wrong.
29082         * Form.cs: Catching the exception and returning our internal value
29083           instead
29084
29085 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29086
29087         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
29088           SetWindowMinMax() to have means to tell the driver about the minimum,
29089           maximum and maximized state window sizes. (Part of the fix for #76485)
29090         * Form.cs:
29091           - Implemented tracking of minimum and maximum window size, now calling
29092             new SetWindowMinMax() driver method to tell the driver (Part of the
29093             fix for #76485)
29094           - Finished handling of WM_GETMINMAXINFO method, now setting all values
29095             (Completes fix for #76485)
29096           - Calling new SetWindowMinMax driver method when the handle for a 
29097             form is created, to make sure the driver knows about it even if
29098             the values have been set before the window was created
29099           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
29100             to avoid messing up our anchoring calculations (partial fix
29101             for #77355)
29102         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
29103         * XplatUIX11.cs:
29104           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
29105           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
29106             (and presumably other freedesktop.org compliant WMs). Left the
29107             assumption unmapped=minimized, needed for SetVisible to work.
29108           - Now setting the window state when creating windows
29109           - Fixed SetVisible to consider/set the window state when mapping
29110             a Form. We cannot set the state before it's mapped, and we cannot
29111             use Form.WindowState once it's mapped (since it would ask the
29112             driver and get 'normal'. Therefore, we grab the state before
29113             mapping, map, and then set state.
29114           - Implmemented SetWindowMinMax method; Metacity does not seem to
29115             honor the ZoomHints, though.
29116         * XplatUIWin32.cs:
29117           - Removed MINMAXINFO (moved to XplatUIStructs)
29118           - Added SetWindowMinMax stub (on Win32 the only way to set that
29119             information is in response to the WM_GETMINMAXINFO message, which
29120             is handled in Form.cs)
29121           - Added logic to SetVisible to set the proper window state when a 
29122             form is made visible (fixes #75720)
29123
29124 2006-01-26  Jackson Harper  <jackson@ximian.com>
29125
29126         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
29127         same way we handle them with Invoke.
29128
29129 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
29130
29131         * Form.cs:
29132           - Added tracking of window state so CreateParams can return
29133             the appropriate style
29134           - Moved setting of WS_CAPTION style in CreateParams to allow
29135             styles without caption
29136         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
29137           control if the TextBox property is accessed. Fixes #77345
29138         * Control.cs:
29139           - get_Created: now uses is_disposed and is_created to determine
29140             return value (suggested by Jackson)
29141           - CreateHandle: No longer exits if the handle is being recreated
29142           - RecreateHandle: If the handle is not yet created call the 
29143             appropriate method to create either control or handle. If the
29144             control is already created CreateHandle will simply exit instead
29145             of just creating the handle
29146         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
29147           now SendMessage WM_DESTROY directly to the control when DestroyWindow
29148           is called.
29149         * XplatUIX11.cs: 
29150           - When DestroyWindow is called, instead of waiting for the 
29151             DestroyNotification from X11, we directly post it to the WndProc
29152             and immediately dispose the hwnd object.
29153             Same applies to DestroyChildWindows, and this obsoletes the
29154             expose_pending tracking. Contrary to Win32 behaviour we destroy our
29155             child windows before our own, to avoid X11 errors.
29156           - Removed the direct sending of WM_PAINT on UpdateWindow
29157         * XplatUIWin32.cs:
29158           - Reworked DoEvents and GetMessage to allow access to internal queue
29159             even when trying non-blocking access to the queue.  Fixes #77335. 
29160             Based on a patch suggestion by Don Edvalson. The new private
29161             GetMessage can now also be used as a backend for a PeekMessage
29162             frontend version.
29163         * XplatUI.cs: Improved debug output for CreateWindow
29164
29165 2006-01-25  Jackson Harper  <jackson@ximian.com>
29166
29167         * Help.cs: Allow param to be null. Patch by Don Edvalson.
29168
29169 2006-01-24  Jackson Harper  <jackson@ximian.com>
29170
29171         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
29172         when we have a MaxDropItems lower then the selected index.
29173
29174 2006-01-24  Jackson Harper  <jackson@ximian.com>
29175
29176         * Control.cs: Don't allow selection of non visible controls, allow
29177         selection of controls without parents.
29178
29179 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29180
29181         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
29182         * DataGridDrawingLogic.cs: Add editing row only when is necessary
29183
29184 2006-01-23  Jackson Harper  <jackson@ximian.com>
29185
29186         * UpDownBase.cs: Make the textbox handle all the selection and
29187         tabbing. This fixes tabing to updown controls.
29188
29189 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29190
29191         * TextBoxBase.cs: fixes exception thown the object was null
29192
29193 2006-01-23  Jackson Harper  <jackson@ximian.com>
29194
29195         * ButtonBase.cs: Just use the base CreateParams. They set
29196         visibility and enabled correctly.
29197         * ComboBox.cs:
29198         * TrackBar.cs:
29199         * MonthCalendar.cs: Lets let the base set as much of the
29200         createparams as possible so we don't have duplicate code all over
29201         the place.
29202
29203 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
29204
29205         * ThemeGtk.cs: Added TrackBar and some experimental code to
29206           get double buffering back
29207
29208 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
29209
29210         * DataGrid.cs: Allows row number set internally higher than the last
29211         when creating a new row. Restores the editing functionality.
29212
29213 2006-01-20  Mike Kestner  <mkestner@novell.com>
29214
29215         * MimeIcon.cs: delay Image creation until the icons are accessed
29216         instead of creating 190 scaled images on GnomeHandler startup.
29217
29218 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
29219
29220         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
29221           first call base before processing the event. Fixes #77279
29222
29223 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
29224
29225         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
29226           that the stride for the GDI bitmap would match the stride of
29227           a DIB or a Cursor.
29228
29229 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
29230
29231         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
29232
29233 2006-01-19  Jackson Harper  <jackson@ximian.com>
29234
29235         * ComboBox.cs: Hookup the text controls keydown event so we get
29236         those when the text control has the focus.
29237
29238 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29239
29240         * Label.cs: Now using the base events instead of defining new ones;
29241           this allows us to just call the base properties without having to
29242           duplicate all base property logic 
29243
29244 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29245
29246         * Label.cs: A label by default is not a tabstop (Fixes one of our
29247           failing nunit tests)
29248
29249 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29250
29251         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
29252         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
29253
29254 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29255
29256         * Cursor.cs: Reimplemented creating cursor bitmaps without using
29257           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
29258           This fixes #77218
29259         * XplatUIWin32.cs: 
29260           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
29261             constructor creates images that can't be saved. Part of the fix
29262             for #76103
29263           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
29264           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
29265             bug fix for handling window state in forms properly)
29266
29267 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29268
29269         * ThemeGtk.cs: Simplify ScrollBar drawing
29270
29271 2006-01-18  Jackson Harper  <jackson@ximian.com>
29272
29273         * Splitter.cs: Set the default dock style for the splitter control
29274         in the constructor.
29275
29276 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29277
29278         * ThemeGtk.cs: Corrected StateType and ShadowType for
29279           gtk_paint_box
29280
29281 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29282
29283         * Control.cs: Make use of Theme.DoubleBufferingSupported
29284         * ThemeGtk.cs:
29285           - Added drawing for flat style buttons
29286           - Added ScrollBar drawing
29287
29288 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29289
29290         * ThemeClearlooks.cs: Removed some unneeded code.
29291         * ThemeGtk.cs: First part of ThemeGtk enhancements.
29292
29293 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29294
29295         * LinkLabel.cs: We need to update the hover drawing when
29296           leaving the control as well.
29297
29298 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
29299
29300         * DataGrid.cs: Clicking on non empty areas in the columns
29301            area was giving an exception
29302
29303 2006-01-17  Jackson Harper  <jackson@ximian.com>
29304
29305         * ThemeWin32Classic.cs:
29306         * ListView.cs: Do not draw/clip the headers when the header style
29307         is None.
29308
29309 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29310
29311         * DataGrid.cs: Fixes 77260
29312         
29313 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29314
29315         * DataGrid.cs: Clicking on a column on a empty grid was giving
29316           an exception
29317
29318 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29319
29320         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
29321           or any keypress will crash the grid.
29322
29323 2006-01-17  Mike Kestner  <mkestner@novell.com>
29324
29325         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
29326         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
29327         invisible/previously-visible items.
29328         [Fixes #76909]
29329
29330 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
29331
29332         * ThemeClearlooks.cs:
29333         - Added CL_Draw_Button method; now other theme controls that are 
29334           not derived from button or do not have a button can draw buttons
29335           too
29336         - Updated ComboBox drawing
29337         - Beautified RadioButton drawing
29338         - Corrected drawing of bottom and left tabs
29339         - Beautified DateTimePicker and MonthCalendar
29340         - Added CPDrawButton and CPDrawRadioButton
29341
29342 2006-01-16  Jackson Harper  <jackson@ximian.com>
29343
29344         * ComboBox.cs: Set the initial value of the scrollbar to the
29345         current index. Reduce the numbers of refreshs and IndexOfs called.
29346
29347 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
29348
29349         * FileDialog.cs: When the file listview is focused hitting the
29350           backspace key moves the fileview to the parent directory
29351
29352 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
29353
29354         * Form.cs: 
29355           - Added RecreateHandle call when changing taskbar visibility to 
29356             trigger reparenting in Win32 driver (Fixes #75719)
29357           - If a window has minimize or maximize buttons, it cannot have
29358             a help button
29359         * XplatUIWin32.cs:
29360           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
29361             the toplevel form with FosterParent (A toolwindow not on the
29362             taskbar) (Fixes #75719)
29363           - Made FosterParent a toolwindow
29364
29365 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29366
29367         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
29368
29369 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29370
29371         * ToolTip.cs: If SetToolTip is called from a control and the mouse
29372           is currently over that control, make sure that tooltip_window.Text
29373           gets updated
29374
29375 2006-01-13  Mike Kestner  <mkestner@novell.com>
29376
29377         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
29378
29379 2006-01-13  Jackson Harper  <jackson@ximian.com>
29380
29381         * TreeView.cs: On MS GetNodeAt never actually factors in the X
29382         value passed.  Also redraw the selected node when we recieve
29383         focus, so tabbing between trees works correctly.
29384
29385 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29386
29387         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
29388           ~/.gconf/%gconf-tree.xml, so use
29389           .gconf/desktop/gnome/interface/%gconf.xml
29390
29391 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
29392
29393         * TextControl.cs: Draw text in gray if control is disabled
29394
29395 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
29396
29397         * TreeView.cs: Draw the focus rectangle outside the highlight, to
29398           make sure it's always visible. Fixes #76680.
29399
29400 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
29401
29402         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
29403
29404 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
29405
29406         * PageSetupDialog.cs: Added.
29407         * PrintDialog.cs: Attributes.
29408         * PrintPreviewControl.cs: Updates.
29409         * PrintPreviewDialog.cs: Updates.
29410         
29411 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29412
29413         * Control.cs: Undid my selection check fix, since it's not needed
29414         * TextBoxBase.cs:
29415           - Now considering the presence of hscroll/vscroll when sizing
29416             vscroll/hscroll respectively. Fixed bug #77077
29417           - Added Left/Up/Down/Right to IsInputKey list to prevent
29418             ContainerControl from stealing them. This fixes what I broke
29419             with my last checkin.
29420
29421 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
29422
29423         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
29424           I finally understand how the property can be set without a setter :-)
29425
29426 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29427
29428         * Application.cs:
29429           - Switched RunLoop to use static Message.Create to create a 
29430             Message object
29431           - Added PreProcessMessage call in runloop for keyboard events; this
29432             is part of the fix for #77219, I overlooked this originally in the
29433             MSDN doc for PreProcessMessage
29434         * Control.cs:
29435           - Removed call to PreProcessMessage from handling of keyboard 
29436             messages; it's supposed to be done in the message pump
29437           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
29438             per MSDN documentation.
29439           - IsInputChar: All chars are input chars by default; removed the 
29440             parent calling chain, MS does not document that
29441           - PreProcessMessage: If IsInputChar is true, we want to return false
29442             to allow dispatching of the message
29443           - When selecting the next control, now also check that we're not
29444             selecting ourselves again and therefore return a false positive.
29445         * TextBoxBase.cs:
29446           - Tried to match return values for IsInputKey and ProcessDialogKey
29447             to what MS returns; moved processing of our special keys outside
29448             ProcessDialogKey since MS does not seem to return true on those.
29449           - Moved code that previously was in ProcessDialogKey into new private
29450             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
29451           - Reworked handling of WM_CHAR to not have to duplicate code from
29452             Control.cs anymore, instead we simply call down to base.
29453            
29454 2006-01-12  Jackson Harper  <jackson@ximian.com>
29455
29456         * ComboBox.cs: We always need to refresh the text area when
29457         EndUpdate is called. Fixes the combobox in the file dialog.
29458         * Control.cs: Don't create the creator_thread until the controls
29459         handle is created.  Also in InvokeRequired we check if the
29460         creator_thread is null. This gives the effect of InvokeRequired
29461         returning true if the controls handle is not created yet, and
29462         matches MS.
29463
29464 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29465
29466         * XplatUI.cs:
29467           - Added StartLoop() driver method. This is used to allow drivers to
29468             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
29469             loop for a particular thread
29470           - Added EndLoop() driver method. This is called once the message
29471             pump for the thread is shut down
29472           - Added SupportsTransparency method to allow the driver to indicate
29473             opacity support for windows
29474         * Form.cs:
29475           - Removed TODO attribute, completed AllowTransparency property
29476           - Added documented logic to Opacity
29477         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
29478           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
29479           versions of CompatibleTextRendering
29480         * X11Structs.cs: Added opacity atom to our atom enumeration
29481         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
29482           of a form might be set before it's reparented by the WM, and we need
29483           the opacity value without calling up to Form)
29484         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
29485           SupportsTransparency() driver methods
29486         * Application.cs: Now calling StartLoop and EndLoop driver methods
29487         * XplatUIX11.cs:
29488           - Added opacity atom registration
29489           - Added StartLoop()/EndLoop() methods. They're empty right now but
29490             will need to get implemented when we switch to a per-thread queue
29491           - Implemented SupportsTransparency() method
29492           - Implemented SetWindowTransparency() method
29493           - Added support for setting the opacity value when a window is
29494             reparented (since the opacity needs to be set on the WM frame)
29495         * XplatUIOSX.cs, XplatUIWin32.cs:
29496           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
29497
29498 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29499
29500         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
29501
29502 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29503
29504         * FileDialog.cs: Added ToolTip for MWFFileView
29505         * MimeIcon.cs: Rewrote GnomeHandler.
29506           - Get currently used gnome icon theme from
29507             ($HOME)/.gconf/%gconf-tree.xml
29508           - Make use of inherited icon themes
29509           - Support SVG icon themes like Tango via librsvg
29510
29511 2006-01-12  Miguel de Icaza  <miguel@novell.com>
29512
29513         Revert's Jackson's revert which broke 2.0 builds.   Fix both
29514         builds. 
29515         
29516         * Application.cs: Move the use_compatible_text_rendering outside
29517         the NET_2_0 define.  If we ever need to use the
29518         use_compatible_text_rendering on the individual controls they will
29519         access the variable from the common shared code paths.
29520
29521 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29522
29523         * XplatUI.cs:
29524           - Added more granular debug options
29525           - Added method to print both window text and id
29526           - Switched debug output to use new Window() debug method
29527           - Added IsEnabled() driver method
29528           - Added EnableWindow() driver method
29529         * Form.cs:
29530           - Removed end_modal; no longer needed, new loop handles termination
29531             via 'closing' variable
29532           - If form is modal, setting DialogResult will now initiate loop
29533             termination via 'closing' variable
29534           - Added support for is_enabled/WS_DISABLED to CreateParams
29535           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
29536             does all the work
29537           - Removed code that's now in RunLoop from ShowDialog()
29538           - Added various documented sanity checks to ShowDialog()
29539           - Added handling of WM_DESTROY message; we set 'closing' on getting
29540             the message to indicate the message pump to terminate
29541           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
29542             send by the Application.ExitThread method. (We send the message
29543             to destroy the window after all other events have been
29544             processed through the queue, instead of destroying the handle 
29545             directly)
29546           - Moved code from Close() method to WM_CLOSE handler; added logic
29547             to only send close-related events if the form is not displayed
29548             modal
29549         * Splitter.cs (..ctor): Fixed typo in resource name
29550         * Control.cs:
29551           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
29552             brush now
29553           - set_Cursor: Now only setting calling into XplatUI if the handle for
29554             the control is already created; this avoids implict handle creation
29555             or crashes if it's not created
29556           - set_Enabled: Now setting the enabled state via the new driver method
29557             instead of just tracking it
29558           - CreateParams: Added logic to set WS_DISABLED based on enabled state
29559           - CreateControl: Reordered event firing and method calls to more
29560             closely fire events in the order MS does. Now setting the
29561             enabled state in the driver when creating the control.
29562           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
29563             match MS order
29564         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
29565           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
29566         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
29567         * Hwnd.cs:
29568           - Added tracking of window enabled state (get_Enabled/set_Enabled)
29569           - Added EnabledHwnd property to easily allow a driver to find the
29570             handle of the first enabled window in the parent chain (this is
29571             used by drivers to pass up input events of disabled windows)
29572         * XplatUIDriver.cs: Added IsEnabled() method
29573         * Application.cs:
29574           - Removed crude and obsolete exiting tracking variable
29575           - Removed internal ModalRun(); replaced by RunLoop()
29576           - Implemented private CloseForms() method to allow closing all 
29577             windows owned by a particular (or all) threads
29578           - Exit() now properly closes all windows without forcing the message
29579             pump to quit
29580           - Removed obsolete InternalExit() method
29581           - Changed Run() methods to use new RunLoop() message pump
29582           - Implemented new RunLoop() method for both modal and non-modal forms
29583         * CommonDialog.cs:
29584           - get_CreateParams: Added setting of WS_DISABLED
29585           - Simplified ShowDialog(); now all the work is done in RunLoop(),
29586             invoked via Form.ShowDialog()
29587         * NativeWindow.cs: We don't remove the window from the collection when
29588           the handle is destroyed; there might still be messages for it in the
29589           queue (mainly the resulting WM_DESTROY); instead it will be removed
29590           when Control calls InvalidateHandle in the WM_DESTROY handler
29591         * XplatUIX11.cs:
29592           - CreateWindow: Added logic to handle the WS_DISABLED window style
29593           - EnableWindow: Implemented based on Hwnd.Enabled
29594           - GetMessage: Reset PostQuitState so the method can be called again
29595           - Implemented support for disabled windows (passing messages to the
29596             first enabled parent) in handling all input messages
29597           - Added optimizations for handling Expose events
29598           - Implemeted new driver method IsEnabled()
29599           - Now always resetting paint pending tracking vars when we start paint
29600           - Re-implemented UpdateWindow via just sending a WM_PAINT message
29601         * XplatUIOSX.cs: Added IsEnabled method stub
29602         * XplatUIWin32.cs: Implemented new IsEnabled() method
29603
29604 2006-01-11  Jackson Harper  <jackson@ximian.com>
29605
29606         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29607         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
29608         variables a little.
29609         * ColorDialog.cs: Clear out the old form before adding the new
29610         panel.  
29611
29612 2006-01-11  Jackson Harper  <jackson@ximian.com>
29613
29614         * X11Dnd.cs: Make sure to add all the text formats when adding
29615         strings to the data object.
29616         * TreeNodeCollection.cs: When adding to a sorted tree we need to
29617         do some redrawing too.  Also change the UpdateNode to an
29618         UpdateBelow so the newly added node gets painted.
29619         
29620 2006-01-11  Miguel de Icaza  <miguel@novell.com>
29621
29622         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29623         LinkLabel.cs, PropertyGrid.cs: Implement the
29624         UseCompatibleTextRendering property for 2.x
29625
29626         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
29627
29628 2006-01-11  Jackson Harper  <jackson@ximian.com>
29629
29630         * TreeView.cs: Use the property for setting the selected node so
29631         the correct events get raised.
29632         * TreeNode.cs: Update the tree when the fore/back colours of a
29633         node are set.
29634
29635 2006-01-10  Jackson Harper  <jackson@ximian.com>
29636
29637         * TreeView.cs: Allow setting SelectedNode to null.
29638
29639 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29640
29641         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
29642
29643 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29644
29645         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
29646
29647 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29648
29649         * PrintDialog.cs: Added attributes and set default property values.
29650
29651 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29652
29653         * PrintControllerWithStatusDialog.cs: 
29654         Added PrintControllerWithStatusDialog.
29655
29656 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29657
29658         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
29659         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
29660
29661 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29662
29663         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
29664
29665 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
29666
29667         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
29668         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
29669
29670 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29671
29672         * MimeIcon.cs: Added internal class SVGUtil.
29673
29674 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29675
29676         * FileDialog.cs: Don't crash if there are two files with the
29677           same name but different locations.
29678
29679 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
29680
29681         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
29682         dates across multiple month grids. Used to not highlight entire 
29683         month, but does now.
29684         
29685 2006-01-06  Jackson Harper  <jackson@ximian.com>
29686
29687         * MonthCalendar.cs: Removed DoEvents call to prevent a running
29688         message loop. Change timer intervals to numbers that seem more
29689         natural.
29690
29691 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
29692
29693         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
29694           object for location info since screen object is now implemented.
29695
29696 2006-01-05  Jackson Harper  <jackson@ximian.com>
29697
29698         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
29699         * AsyncMethodResult.cs: We no longer use a WeakReference for the
29700         AsyncMethodResult, this is because we ALWAYS want the
29701         ManualResetEvent to get set.
29702         * Control.cs: When disposing use an async invoke to call shutdown
29703         code, so that thigns don't block on the finalizer thread.  Also
29704         check if we even have a message loop before trying to send
29705         messages, if we don't then don't bother sending messages.
29706         - No more weak references for async methods
29707         * XplatUIDriver.cs: No more weak references for async methods.
29708
29709 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29710
29711         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
29712           returns two FontFamily with the same name
29713
29714 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29715
29716         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
29717           drawing disabled text. Instead using the ColorGrayText color
29718
29719 2006-01-04  Jackson Harper  <jackson@ximian.com>
29720
29721         * TreeNode.cs: redraw the node when its image index is changed.
29722
29723 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29724
29725         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
29726           time I checked there are no others like it.
29727
29728 2006-01-04  Jackson Harper  <jackson@ximian.com>
29729
29730         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
29731         this gives the behavoir I was looking for.
29732         * Control.cs: Special case Invoking EventHandlers, this matches MS
29733         and fixes part of bug #76326.
29734
29735 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29736
29737         * ThemeClearlooks.cs, FileDialog.cs:
29738           - Reflect the latest Theme class changes
29739           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
29740             with DateTime
29741             
29742 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29743
29744         * Theme.cs: Cache UI resource images and resize them if needed
29745
29746 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
29747
29748         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
29749           is called. This fixes the crash in Nexxia when setting the font
29750           attributes in the chat. [However, RTF needs a look-over to make sure
29751           that all SelectionXXX methods handle the special case that selection
29752           is empty and therefore the change must be applied to all text starting
29753           at the cursor/selection start]
29754
29755 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
29756
29757         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
29758           XplatUIOSX.cs: Added SendMessage and PostMessage methods
29759         * X11Keyboard.cs: Switched to new way of calling PostMessage
29760
29761 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
29762
29763         * Theme.cs: Added theme interface for images to allow the theme to
29764           control what images are used for things like FileDialog, MessageBox
29765           icons, etc.
29766         * MessageBox.cs: Now uses the new Theme icon/image interfaces
29767
29768 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
29769
29770         * FileDialog.cs:
29771           - Removed some dead code
29772           - Opening a recently used file does work now
29773           - Small UI enhancements
29774           - Refactoring
29775
29776 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
29777
29778         * FileDialog.cs: Forgot too add __MonoCS__
29779
29780 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
29781
29782         * FileDialog.cs: We are able to read recently used files now let's
29783           go on and write them.
29784
29785 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
29786
29787         * FileDialog.cs: Breathe some life into "last open"/"recently used"
29788           button
29789         * MimeIcon.cs: Do a check for the top level media type also
29790
29791 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
29792
29793         * ThemeClearlooks.cs:
29794           - Added CPDrawStringDisabled
29795           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
29796             some chars if the text doesn't fit into text_rect
29797           - DrawListViewItem: If View = View.LargeIcon center the image;
29798             rewrote the drawing of ListViewItem.Text if View = 
29799             View.LargeIcon
29800
29801 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
29802
29803         * MimeIcon.cs: Use default KDE icon theme if there is no
29804           "48x48" directory for the current icon theme, fixes #77114
29805         * Mime.cs: Disable not working and actually not used code. 
29806         * ThemeWin32Classic.cs:
29807           - Replace "new SolidBrush" in GetControlBackBrush and
29808             GetControlForeBrush with ResPool.GetSolidBrush
29809           - Changed DrawListViewItem from private to protected virtual
29810         * FileDialog.cs:
29811           - Added form.MaximizeBox = true
29812           - Don't throw an exception if there is a broken symbolic link
29813
29814 2005-12-23  Jackson Harper  <jackson@ximian.com>
29815
29816         * TabControl.cs: Give the panels focus, keyboard navigation is
29817         fixed so this works correctly now.
29818         - We need these key events also.
29819         * ToolBar.cs: Remove some of the poor mans double buffering.
29820         
29821 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
29822
29823         * ComboBox.cs: The internal TextBox now returns the focus.
29824
29825 2005-12-23  Jackson Harper  <jackson@ximian.com>
29826
29827         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
29828
29829 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
29830
29831         * Control.cs: Removed debug code
29832         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
29833           implicit children
29834
29835 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
29836
29837         * Control.cs: When creating the control, update the Z-order after
29838           all it's children are created, too. (Fixes nexxia not showing
29839           picturebox bug)
29840
29841 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
29842
29843         * Control.cs: Do not update the anchoring distances if layout is
29844           suspended, instead do it once layout is resumed
29845
29846 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
29847
29848         * Control.cs: 
29849           - After many hours of debugging, for both Jackson and
29850             myself, it turns out that it helps to set the parent of a control
29851             if you want to actually see it onscreen. In the spirit of that
29852             discovery, we're now setting the parent of the control and
29853             it's children when the control's handle is created. This fix
29854             will make Lutz Roeder's Reflector run happily. 
29855           - now just creating the handle instead of the whole control when
29856             getting a graphics context for the control.
29857
29858 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
29859
29860         * ScrollableControl.cs: When calculating the canvas, don't consider
29861           the scrollbar widths. Instead, predict if horizontal scrollbar
29862           will affect canvas when deciding on vertical display and vice versa.
29863
29864 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
29865
29866         * RichTextBox.cs: Set default RTF font for documents that don't
29867           have a font table (Fixes #77076)
29868
29869 2005-12-22  Jackson Harper  <jackson@ximian.com>
29870
29871         * TextBoxBase.cs: It's difficult to do, but you can have an empty
29872         clipboard. This prevents a NullRef in that case.
29873         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
29874         clipboard. PRIMARY is for the currently selected text only. (We
29875         should implement PRIMARY at some point.
29876
29877 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
29878
29879         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
29880           a Unicode function with a structure that was defined in Ansi way.
29881           This fixes #76942.
29882
29883 2005-12-21  Jackson Harper  <jackson@ximian.com>
29884
29885         * StatusBar.cs: Statusbar handles its fore/back colours on it's
29886         on. Because thats how it rolls. (and this avoids it using ambient
29887         colours).
29888         * ThemeWin32Classic.cs: Use the proper back color for filling.
29889         * Menu.cs: Use the system menu bar color for drawing menu
29890         bars. Using the window back color will bring ambient colours into
29891         the picture.
29892
29893 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
29894
29895         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
29896           Bitmaps were created and not disposed.
29897
29898 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
29899
29900         * Control.cs (CreateControl): Don't do anything if the control is
29901           already created, otherwise we'd fire the OnCreated event more than
29902           once
29903
29904 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
29905
29906         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
29907           will always match. Instead return -1. Fixes #76464.
29908
29909 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
29910
29911         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
29912           neither the beginning nor the end of the line (Fixes bug #76479)
29913
29914 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
29915
29916         * Control.cs:
29917           - ControlNativeWindow.ControlFromHandle(): Now handling situation
29918             where handle is invalid
29919           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
29920             instead of slower linear search
29921         * NativeWindow.cs: Don't remove the window from the hashtable until
29922           after the driver has destroyed it (since the driver might use
29923           Control.FromHandle to lookup the control object
29924         * Hwnd.cs: Added DestroyPending property to track if a window is 
29925           already destroyed as far as the driver is concerned and only hasn't
29926           yet notified the control
29927         * XplatUIX11.cs:
29928           - Activate(): Check if the window is still valid before using the 
29929             handle
29930           - Implemented DestroyChildWindow() method to mark child windows as
29931             destroyed when a window is destroyed. This prevents situations 
29932             where we might call an X method based on queued events for a
29933             window that already has been destroyed but we haven't yet pulled
29934             the destroy method from the queue.
29935           - Added a call to the new DestroyChildWindow() method to the drivers
29936             DestroyWindow code. Also now marking the destroyed window itself
29937             as pending
29938
29939 2005-12-20  Jackson Harper  <jackson@ximian.com>
29940
29941         * StatusBar.cs:
29942         * StatusBarPanel.cs: Don't calculate panel sizes on draw
29943         anymore. Just do them when needed, also track the rects of panels
29944         so that we can optimize refreshing more in the future.
29945
29946 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
29947
29948         * ColorDialog.cs: Fixed focus drawing in small color controls
29949
29950 2005-12-19  Jackson Harper  <jackson@ximian.com>
29951
29952         * InternalWindowManager.cs:
29953         * MdiWindowManager.cs: Cleanup some coordinate system changes so
29954         moving windows works properly.
29955
29956 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
29957
29958         * Control.cs: 
29959           - Removed call to InitLayout() from SetBoundsCore(); doc says
29960             it's only called when a control is added to a container
29961           - Split InitLayout logic, moved to separate UpdateDistances() method
29962             since we need to perform those calculations more often than just
29963             when adding the control to a container. (Needed to fix #77022)
29964           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
29965           - Reduced the OnBindingContextChanged events count, don't send them
29966             unless the control is created, we still aren't totally matching
29967             MS, but I can't quite figure out some of their rules
29968
29969 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
29970
29971         * ThemeClearlooks.cs: Corrected distance between ProgressBar
29972           stripes
29973
29974 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
29975
29976         * ThemeClearlooks.cs:
29977           - Updated ProgressBar drawing
29978           - Corrected drawing of ScrollBars and scroll buttons
29979           - Some temporary fixes for minor pixel artefacts
29980
29981 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
29982
29983         * Control.cs:
29984           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
29985             cause events to be sent in the same order as MS does.
29986           - Added ChangeParent() method to trigger various OnXXXChanged events
29987             that need to be fired when a parent changes (This is a reworking
29988             of the patch from r54254, with the X11 errors fixed)
29989           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
29990             since on MS we get OnLayoutChanged events when calling Clear()
29991           - Changed Enabled property to consider parent state as well, if a
29992             parent is not enabled, the control will not be either
29993           - Changed Parent property to simply call Controls.Add() since that
29994             now does all the work required, this way we avoid code duplication
29995           - Threw in a few OnBindingsContextChanged calls to try and match
29996             when MS sends them. We seem to send a few too many, though.
29997           - Added call to CreateControl when adding the control to a parent.
29998             We were never calling CreateControl. Still needs some work, in
29999             some places we treat HandleCreated and ControlCreated as equal, 
30000             which is wrong
30001           - Removed obsolete commented out code from UpdateZOrder()
30002
30003 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30004
30005         * ThemeClearlooks.cs: Updated TrackBar drawing.
30006
30007 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30008
30009         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
30010
30011 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30012
30013         * FileDialog.cs: Add the Help button and the open readonly
30014           checkbox only if needed
30015
30016 2005-12-16  Jackson Harper  <jackson@ximian.com>
30017
30018         * Control.cs: Make sure we have an active menu before trying to
30019         process commands on it. Prevents menu-less forms from crashing
30020         when Alt is pressed.
30021         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
30022         Dieter Bremes.
30023         * RichTextBox.cs: Expand statement to help out gmcs and fix the
30024         2.0 build.
30025
30026 2005-12-16  Jackson Harper  <jackson@ximian.com>
30027
30028         * InternalWindowManager.cs: Don't translate tool windows screen
30029         coordinates. This fixes windows 'bouncing' around when being moved.
30030
30031 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30032
30033         * TextBoxBase.cs:
30034           - MaxLength now treats 2^31-1 equal to unlimited length (this is
30035             not quite MS compatible, MS uses that number only for single line
30036             and 2^32-1 for multi-line, but I figure it won't hurt keeping
30037             the limit at 2GB)
30038           - Now enforcing the MaxLength limit when entering characters
30039           - Added argument to internal Paste() method to track if it's called
30040             from programatically or via keyboard, since keyboard driven pastes
30041             need to enforce max-length
30042           - Added logic to Paste to only paste as many chars as MaxLength 
30043             allows
30044         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
30045         * TextControl.cs:
30046           - Added Length property to return number of characters in document
30047           - Added private CharCount property which only tracks actual chars
30048             in the document (no linefeeds) and fires event when CharCount
30049             changes
30050           - Added tracking of character count to all methods that alter it
30051           - Added LengthChanged event to allow applications to subscribe
30052             to any changes to the document
30053
30054 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30055
30056         * TextBox.cs: 
30057           - Removed local password_char field (moved to TextBoxBase)
30058           - Now setting the document's password var when password is
30059             set
30060         * TextBoxBase.cs:
30061           - Added password_char field (needed here so MultiLine can
30062             access it)
30063           - Added logic to MultiLine property setter to set the document's
30064             variable when password display is allowed
30065           - Removed debug code and made some debug code conditional
30066         * TextControl.cs:
30067           - Added RecalculatePasswordLine() method to handle special password
30068             char only lines
30069           - Added PasswordChar property, also added related tracking vars
30070           - Draw() method now uses local text var for grabbing text to draw,
30071             this var is set to line.text unless we're doing password display,
30072             then it is set to the pre-generated all-password-chars line
30073           - Added calling RecalculatePasswordLine() method for password lines
30074
30075 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30076
30077         * Hwnd.cs: 
30078           - Added Reparented property to allow tracking of Window Manager
30079             reparenting actions (which affect X/Y calculations of toplevel 
30080             windows)
30081           - Made ToString() print window handles in hex
30082         * XplatUIX11.cs:
30083           - AddConfigureNotify(): Now uses reparented state off Hwnd to
30084             determine if X/Y needs offsetting
30085           - AddConfigureNotify(): Fixed offset calculations
30086           - Now adds ReparentNotify messages into the queue
30087           - Now processes ReparentNotify messages and causes a 
30088             WM_WINDOWPOSCHANGED message to be sent upstream if a window
30089             is reparented (as most likely it's X/Y coordinates are changed
30090             due to that)
30091
30092 2005-12-14  Jackson Harper  <jackson@ximian.com>
30093
30094         * XplatUIX11.cs: Tool windows still need to respek focus.
30095
30096 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30097
30098         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
30099           have a working release
30100
30101 2005-12-13  Jackson Harper  <jackson@ximian.com>
30102
30103         * Form.cs: Update styles after setting the border style regardless
30104         of whether or not the window is using a window manager.
30105
30106 2005-12-13  Jackson Harper  <jackson@ximian.com>
30107
30108         * Form.cs: We now hook into an internal window manager instead of just an
30109         MDI subsystem, this is so we can have properly behaving tool windows.
30110         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
30111         * InternalWindowManager.cs: New internal class that acts as a
30112         window manager for tool windows and as a base for mdi windows.
30113         * MdiWindowManager.cs: New class that acts as a window manager for
30114         mdi windows.
30115
30116 2005-12-12  Jackson Harper  <jackson@ximian.com>
30117
30118         * Control.cs: Updates so we match behavoir for for implicit
30119         controls. Fixes explosions in MDI.
30120
30121 2005-12-12  Jackson Harper  <jackson@ximian.com>
30122
30123         * Control.cs: Implement Invalidate (Region).
30124
30125 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
30126
30127         * Control.cs: 
30128           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
30129             the same events as MS does. MS fires events for each property 
30130             except, for unknown reasons, Cursor, when the control is reparented. 
30131             I can't seem to totally match add/remove since MS also fires some 
30132             VisibleChanged events, which makes no sense. Consolidated the
30133             parenting code into a separate method so it can be called from
30134             both Add and Remove. set_Parent no longer needs any special logic
30135             as it calls the parent's add method which implicitly fires
30136             all events
30137           - Removed some obsolete code and debug output
30138           - Enabled state is inherited from parents, if this is enabled
30139
30140 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
30141
30142         * Form.cs: Removed commented out code
30143
30144 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
30145
30146         * Control.cs:
30147           - Added internal version of Invoke, with additional argument 
30148             indicating if we're calling it from a Dispose() handler. That
30149             way we can avoid BeginInvoke throwing an exception if we're
30150             calling for an already destroyed window.
30151           - Added a dispose argument to BeginInvokeInternal, and made the
30152             check if a valid window handle chain exists conditional on
30153             it not being a dispose call
30154           - Removed code in DestroyHandle to destroy our children. Since we
30155             now handle the WM_DESTROY message we will catch all our children
30156             being destroyed.
30157           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
30158         * Form.cs:
30159           - Added a field to track the application context of the form.
30160           - No need to set closing variable as response to WM_CLOSE, instead
30161             we destroy the window. We also call PostQuitMessage if the form
30162             has an application context (which makes it the main app form,
30163             which, when closed terminates the app)
30164         * XplatUI.cs:
30165           - Dropped Exit() method, it's naming was confusing
30166           - Added PostQuitMessage() which causes GetMessage to return false
30167             once the message queue is empty
30168         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
30169           PostQuitMessage()
30170         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
30171           no longer a valid XplatUI method, but left it in since it's used
30172           internally. Added empty PostQuitMessage() method.
30173         * MenuAPI.cs: Replaced call to Exit() with call to
30174           PostQuitMessage, even though this is probably no longer needed.
30175         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
30176         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
30177         * Application.cs:
30178           - Replaced call to XplatUI.Exit() with PostQuitMessage()
30179           - Removed old debug code that would call XplatUI for exception
30180             display, enabled standard exception handling (Still not enabled
30181             though, until NativeWindow's ExternalExceptionHandler define
30182             is removed
30183         * NativeWindow.cs:
30184           - Added internal method to allow control to update NativeWindow
30185             after a window has been destroyed
30186           - Added handling of already destroyed windows when calling i
30187             DestroyWindow
30188           - Added removal of handle from list on ReleaseHandle
30189         * XplatUIX11.cs:
30190           - Dropped GetMessageResult var and related code
30191           - Added PostQuitState to field to track if PostQuitMessage has been
30192             called
30193           - Dropped Exit() method
30194           - Added PostQuitMessage() method
30195           - GetMessage now will return false if PostQuitState is set and no
30196             more messages are in the queue.
30197           - Expose handler will no longer generate WM_PAINT messages if we are
30198             in PostQuitState since it's very likely any windows have already
30199             been destroyed, and since Hwnd won't get updated until we have
30200             processed the DestroyNotify we'd be causing X errors.
30201         
30202 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30203
30204         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
30205           Thanks to Mike for pointing out the err of my ways.
30206
30207 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30208
30209         * Control.cs(PreProcessMessage): Moved menu handling back, but
30210           after all other key handling, to match MS (who handles Menu in
30211           DefWndProc)
30212         * Menu.cs (WndProc): Removed my brainfart
30213
30214 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30215
30216         * Control.cs(PreProcessMessage): Removed special menu handling 
30217         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
30218
30219 2005-12-07  Mike Kestner  <mkestner@novell.com>
30220
30221         * Control.cs : special case SYSKEYUP so that we can adjust keynav
30222         state according in tracker.
30223         * Menu.cs : promote tracker field to base class and provide a tracker
30224         lookup capability.  Add/Remove shortcuts dynamically if the top menu
30225         has a tracker. Unparent items that are removed from the collection.
30226         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
30227         * Theme*.cs: add always_show_hotkeys field to support configurability
30228         of mnemonic display.  win32 doesn't show mnemonics until Alt is
30229         pressed.
30230
30231 2005-12-07  Jackson Harper  <jackson@ximian.com>
30232
30233         * MdiChildContext.cs: Use Control.ResetCursor.
30234         * Control.cs: ResetCursor needs to set the property so that the
30235         correct XplatUI call gets made.
30236
30237 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30238
30239         * Control.cs: More fixes to make our key events match MS. We
30240           were not setting the modifier state on KeyData, and we were
30241           not generating any events when Alt was pressed with a key
30242           since handling of WM_SYSxxx was missing for the OnKey methods.
30243
30244 2005-12-07  Jackson Harper  <jackson@ximian.com>
30245
30246         * MdiChildContext.cs: reenable the sizing code.
30247         - When the mouse leaves a window reset its cursor.
30248
30249 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30250
30251         * ThemeClearlooks.cs: Reflect latest Hwnd changes
30252
30253 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30254
30255         * Hwnd.cs: Now using the theme 3d bordersize to calculate
30256           widths of Fixed3D borders
30257
30258 2005-12-07  Jackson Harper  <jackson@ximian.com>
30259
30260         * MdiClient.cs: Fix warnings. Earn Mike's love.
30261
30262 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30263
30264         * ThemeClearlooks.cs:
30265           - Adjusted mouse over button color
30266           - Added first parts of CheckBox drawing
30267           - Added correct color for selected text background
30268           - Fixed ComboBox drawing
30269           - Added CPDrawBorder3D and CPDrawBorder
30270
30271 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30272
30273         * XplatUIX11.cs: Added call to XBell for AudibleAlert
30274
30275 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
30276
30277         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30278           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
30279           alert users via sound. We could add an enum arg with different
30280           types of alerts in the future
30281
30282 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30283
30284         * Control.cs: Fix behaviour problems pointed out by Mike
30285
30286 2005-12-05  Mike Kestner  <mkestner@novell.com>
30287
30288         * StatusBarPanel.cs: add Invalidate method and hook it into all the
30289         prop setters.  Calls parent.Refresh for now, but could be maybe be
30290         optimized with an internal method on StatusBar at some point.
30291         [Fixes #76513]
30292
30293 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
30294
30295         * RichTextBox.cs: Implemented get_SelectionColor
30296
30297 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
30298
30299         * ThemeClearlooks.cs:
30300           - Removed dead code
30301           - Draw black button border only if button is Form.AcceptButton
30302           - Draw correct button color for pressed RadioButton if the mouse 
30303             has entered the button
30304           - Updated ProgressBar drawing!
30305           - Updated CPDrawSizeGrip drawing
30306           - Updated StatusBarPanel drawing
30307
30308 2005-12-05  Mike Kestner  <mkestner@novell.com>
30309
30310         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
30311         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
30312
30313 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
30314
30315         * ThemeClearlooks.cs: Initial check-in, activate with
30316           export MONO_THEME=clearlooks
30317         * ThemeEngine.cs: Added ThemeClearlooks
30318
30319 2005-12-03  Mike Kestner  <mkestner@novell.com>
30320
30321         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
30322         [Fixes #76897]
30323
30324 2005-12-02  Jackson Harper  <jackson@ximian.com>
30325
30326         * Form.cs: If the child form has no menu the default main menu is
30327         used as the active menu.
30328
30329 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
30330
30331         * ListBox.cs: Check if any items exist before trying to resolve 
30332           coordinates into items
30333
30334 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
30335
30336         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
30337           as the second color for the background hatch
30338
30339 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
30340
30341         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
30342         * RichTextBox.cs: FormatText position arguments are 1-based, now making
30343           sure that what we pass to FormatText is always 1-based. Fixes #76885
30344
30345 2005-11-29  Miguel de Icaza  <miguel@novell.com>
30346
30347         * NumericUpDown.cs (EndInit): When we are done initializing,
30348         reflect any updates on the UI.
30349
30350 2005-12-02  Jackson Harper  <jackson@ximian.com>
30351
30352         * ImplicitHScrollBar.cs:
30353         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
30354         their container controls.
30355         * TreeView.cs: Use the new implicit scrollbars.
30356
30357 2005-12-02  Jackson Harper  <jackson@ximian.com>
30358
30359         * TreeView.cs: Make top_node internal so the TreeNodeCollections
30360         can play with it.
30361         * TreeNodeCollection.cs: If we remove the topnode we need to
30362         update topnode to the next node in line.
30363         - When clearing nodes go through the same process as removing
30364         them, so they get depareneted and checked if they are top node.
30365
30366 2005-12-01  Jackson Harper  <jackson@ximian.com>
30367
30368         * TreeView.cs: When imagelists are used the image area is
30369         selectable as well as the text.
30370         - If there are no selected nodes select the first one.
30371         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
30372         so don't do it more then we need to.
30373
30374 2005-12-01  Jackson Harper  <jackson@ximian.com>
30375
30376         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
30377         that arrows can be scaled.
30378
30379 2005-12-01  Jackson Harper  <jackson@ximian.com>
30380
30381         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
30382         fail. Patch by Dieter Bremes
30383
30384 2005-11-30  Jackson Harper  <jackson@ximian.com>
30385
30386         * Form.cs: Property is 2.0 only
30387         * PrintDialog.cs: Signature fix.
30388
30389 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30390
30391         * TextControl.cs: 
30392           - No longer artificially moves text 2 pixels down (now that we have
30393             borders this is no longer needed)
30394           - Added calcs for left, hanging and right indent
30395
30396 2005-11-23  Mike Kestner  <mkestner@novell.com>
30397
30398         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
30399
30400 2005-11-30  Jackson Harper  <jackson@ximian.com>
30401
30402         * MdiChildContext.cs: Set the cloned menus forms, as these don't
30403         get cloned as part of CloneMenu ().
30404         * Menu.cs: Make sure the parent of the items get set correctly
30405         when they are added.  And the owners are notified of the changes.
30406         * Form.cs: Create an ActiveMenu property, so that when MDI is used
30407         we can change the menu being displayed/handled by the form without
30408         changing the menu assosciated with the form.
30409         - Don't let Mdi children draw/handle menus.
30410         
30411 2005-11-30  Jackson Harper  <jackson@ximian.com>
30412
30413         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
30414         a MenuChanged event. Just to make the API a little more
30415         consistent.
30416         * MainMenu.cs:
30417         * MenuItem.cs: Use the new OnMenuChanged
30418         * MdiChildContext.cs: Handle menu merging.
30419         * Form.cs: Implement MergedMenu.
30420         
30421 2005-11-30  Jackson Harper  <jackson@ximian.com>
30422
30423         * Menu.cs: We were misusing Add. Add goes behind the specified
30424         index according to the docs, and does not replace the specified
30425         index. So I added an Insert method.
30426
30427 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30428
30429         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
30430           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
30431           is for Jackson
30432         * RichTextBox.cs: Added calls to base for DnD events
30433
30434 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
30435
30436         * TextControl.cs:
30437           - Fixed drag-selection related crash; style fixes
30438           - Implemented undo class
30439             o Implemented method to capture document state for specified
30440               range in document tree
30441             o Implemented method to restore captured document state
30442             o Implemented cursor tracking
30443             o Implemented basic undo stack
30444           - Added undo cursor tracking to methods altering cursor location
30445           - Added undo tracking to selection deletion (still missing
30446             other text-altering hookups)
30447         * RichTextBox.cs:
30448           - Added SelectionLength property
30449           - Implemented CanPaste()
30450           - Implemented Paste()
30451           - Added missing protected methods
30452           - Fixed RTF->Document conversion; now uses font index 0 and color 
30453             index 0 as the default font for the parsed text
30454           - Fixed RTF<->Document font size translation
30455           - Fixed RTF generation, now properly handles cross-tag boundaries
30456             for single line selection
30457           - No longer always appends blank line to generated RTF
30458           - Removed TODOs
30459           - Added missing attributes
30460           - Hooked up undo-related methods
30461         * TextBoxBase.cs:
30462           - Implemented Copy()
30463           - Implemented Paste()
30464           - Implemented Cut()
30465           - Fixed caret mis-behaviour on backspace across line-boundaries
30466
30467 2005-11-29  Jackson Harper  <jackson@ximian.com>
30468
30469         * MdiClient.cs: Add a method for activating mdi children. Very
30470         basic right now. I imagine someday it might need more girth.
30471         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
30472         children windows names are added to the menu item.
30473         * ThemeWin32Classic.cs: Draw the arrow if the item is an
30474         mdilist. This happens regardless of whether or not there are any
30475         mdi windows to see in the list, and according to my tests happens
30476         before the items are even added. Also happens if there isn't even
30477         an mdi client to get windows from.
30478
30479 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
30480
30481         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
30482         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
30483
30484 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
30485
30486         * DataGridTableStyle.cs:
30487           - Create always the styles for the missing columns even if they are
30488             provided by the user (not default table style)
30489         * DataGrid.cs:
30490           - Fixes bug 76770
30491           - Fixes SetDataBinding (always re-attach source)
30492           - Fixes SetNewDataSource (only clear styles if they are not for 
30493             this source)
30494          -  Expands OnTableStylesCollectionChanged to handle style refresh 
30495             and remove properly
30496
30497 2005-11-29  Jackson Harper  <jackson@ximian.com>
30498
30499         * FileDialog.cs: Implement missing bits, remove some dead
30500         code.
30501         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
30502         creation of the panel so that the options set on the dialog are
30503         seen when the panel is created.
30504         * TreeView.cs: raise a click when items are clicked.
30505         
30506 2005-11-29  Jackson Harper  <jackson@ximian.com>
30507
30508         * MdiClient.cs: Pass some signature methods through to base.
30509
30510 2005-11-28  Jackson Harper  <jackson@ximian.com>
30511
30512         * ListView.cs: Raise the click event when items are clicked.
30513
30514 2005-11-28  Jackson Harper  <jackson@ximian.com>
30515
30516         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
30517         a nullref.
30518
30519 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
30520
30521         * ThemeNice.cs: - Removed 1 pixel bitmaps
30522           - Use SmoothingMode.AntiAlias where it makes sense
30523             (ScrollButton arrow for example)
30524           - Enhanced Button focus drawing
30525           - Fixed ComboBox drawing (no artefacts anymore, focus
30526             rectangle is back again, reduced size of ComboButton, etc.)
30527           - Fixed RadioButton focus drawing for Appearence.Button
30528           - Slight ScrollButton redesign
30529           - Some LinearGradientBrush size fixes
30530           - GroupBoxes have now rounded edges
30531           - Fixed StatusBar drawing
30532
30533 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
30534
30535         * ThemeNice.cs: - Remove dead code
30536           - use correct background colors for menus, etc.
30537           - Fake pixel drawing with 1 pixel bitmaps
30538
30539 2005-11-24  Jackson Harper  <jackson@ximian.com>
30540
30541         * MdiClient.cs: Size the scrollbars when resizing the window.
30542         - Resize the maximized windows when the client is resized
30543         * Form.cs: Make the child context available
30544         
30545 2005-11-23  Jackson Harper  <jackson@ximian.com>
30546
30547         * MdiChildContext.cs: Don't size windows if they are maximized.
30548
30549 2005-11-23  Mike Kestner  <mkestner@novell.com>
30550
30551         * ContextMenu.cs: use MenuTracker.
30552         * Control.cs: remove menu handle usage.
30553         * Form.cs: remove menu handle usage.
30554         * Hwnd.cs: remove menu handle usage.
30555         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
30556         motion and clicks to the new Tracker handlers.
30557         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
30558         and handle usage.
30559         * MenuAPI.cs: refactored to combine popup and menubar event handling.
30560         Killed the MENU and MENUITEM data types and associated collections
30561         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
30562         MenuTracker class that exposes the leftovers from the old MenuAPI
30563         static methods. Restructured Capture handling so that only one grab is
30564         done for the entire menu hierarchy instead of handing off grabs to
30565         submenus. Tracker now has an invisible control to Capture when active.
30566         * MenuItem.cs: add sizing accessors, kill Create
30567         and handle usage.
30568         * Theme.cs: remove menu handle and MENU(ITEM) usage.
30569         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
30570         MENU(ITEM). remove menu handle usage, use Menu directly.
30571         * XplatUIDriver.cs: remove menu handle usage.
30572         * XplatUIOSX.cs: remove menu handle usage.
30573         * XplatUIWin32.cs: remove menu handle usage.
30574         * XplatUIX11.cs: remove menu handle usage.
30575
30576 2005-11-22  Jackson Harper  <jackson@ximian.com>
30577
30578         * Hwnd.cs: Don't compute the menu size for
30579         DefaultClientRectangle.
30580         - Reenable menu sizes being computed for GetClienRectangle.
30581         * Form.cs: Remove comment of trechery
30582         
30583 2005-11-22  Jackson Harper  <jackson@ximian.com>
30584
30585         * Hwnd.cs: The adjustments for the menu bar are made when it is
30586         attached to the form.
30587
30588 2005-11-19  Jackson Harper  <jackson@ximian.com>
30589
30590         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
30591         (just like on windows).
30592
30593 2005-11-19  Jackson Harper  <jackson@ximian.com>
30594
30595         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
30596         use real buttons anymore because they are in non client area. The
30597         one TODO here is that I need to somehow invalidate a section of
30598         the non client area.
30599
30600 2005-11-18  Jackson Harper  <jackson@ximian.com>
30601
30602         * Control.cs: Put the enum check back in now that MDI doesnt have
30603         to use this to set border styles.
30604         * Form.cs: Only set mdi child windows borders if the handle has
30605         been created.
30606         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
30607         this directly on to the driver.
30608         - Get the move start position before adjusting for the titlebar
30609         height, this fixes the windows "skipping" when they are first
30610         moved.
30611
30612 2005-11-18  Jackson Harper  <jackson@ximian.com>
30613
30614         * XplatUIX11.cs: Just compute the mdi borders separately as they
30615         don't totally match up with normal form borders.
30616
30617 2005-11-18  Jackson Harper  <jackson@ximian.com>
30618
30619         * Control.cs: Set WS_ styles for borders, so that the driver does
30620         not have to retrieve the control instance to figure out what kind
30621         of borders it should have.
30622         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
30623         driver can know its an mdi child easily.
30624         * XplatUIX11.cs: Get the border styles and whether the window is
30625         MDI from the Styles and ExStyles params instead of having to get a
30626         control. This prevents a chicken and egg problem.       
30627
30628 2005-11-18  Jackson Harper  <jackson@ximian.com>
30629
30630         * MdiClient.cs: Fix typo so scrollbars show up correctly.
30631
30632 2005-11-18  Jackson Harper  <jackson@ximian.com>
30633
30634         * MdiClient.cs: Calculate when to add and remove scrollbars
30635         correctly.
30636         * MdiChildContext.cs: Adjust the y position to take the titlebar
30637         into account.
30638         - No height for FormBorderStyle.None
30639
30640 2005-11-18  Jackson Harper  <jackson@ximian.com>
30641
30642         * Control.cs: Allow non enum values to be used for
30643         InternalBorderStyle.  MDI does this to set a special border style.
30644         - New utility methods for converting points to/from client coords
30645         - Add the newly created control to the Controls collection before
30646         updating its style. This way UpdateStyle can walk the control
30647         heirarchy to find the control if needed.
30648         so I don't need to create a new Point object all the time.
30649         * Form.cs: Let MDI windows handle their border styles.
30650         - Set styles on MDI windows so the correct title style is derived.
30651         * MdiChildContext.cs: Move all the painting and window handling
30652         into the non client area.
30653         - Use correct sizing and put correct buttons on frames based on
30654         the FormBorderStyle.
30655         - Notify the mdi client about scrolling
30656         - Need to handle the buttons ourselves now, because they are all
30657         in non client areas and we can't add controls there.
30658         * MdiClient.cs: Halfway to scrolling, this implementation is
30659         somewhat broken though, we need to check to make sure other
30660         windows aren't causing scrolling before removing the bars. Also
30661         the bars need to be drawn on top, maybe I can switch implicit
30662         controls to be on top.
30663         * Hwnd.cs: caption_height and tool_caption_height are now
30664         properties of an hwnd, this way they can be set by the driver
30665         based on the type of window they are.  In X11 the window manager
30666         handles the decorations so caption_height is zero unless its an
30667         MDI window.
30668         - Add 3 pixel borders for MDI windows (0xFFFF).
30669         - Get rid of some code duplication, have DefaultClientRectanle
30670         just call GetClientRectangle.
30671         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
30672         Hwnd now.
30673         - Set border styles differently for mdi windows.
30674         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
30675         Hwnd now.
30676         
30677 2005-11-15  Mike Kestner  <mkestner@novell.com>
30678
30679         * Menu.cs: when adding an item to the collection, if item is already 
30680         parented, remove it from the parent.
30681
30682 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
30683
30684         * X11DesktopColors.cs: Added KDE support
30685
30686 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
30687
30688         * XplatUIWin32.cs: 
30689           - Clipboard methods now can translate Rtf format
30690           - No longer removes clipboard contents whenever a new format is added
30691             to allow placing multiple formats on the clipboard
30692         * Clipboard.cs: Clipboard now supports getting a IDataObject and
30693           will place all formats contained in it onto the clipboard. Also
30694           now cleans the clipboard before placing a new object onto it
30695         * RichTextBox.cs:
30696           - Implemented set_Rtf
30697           - Implemented set_SelectedRtf
30698           - Created InsertRTFFromStream() method to allow single code base
30699             for all properties and methods that insert RTF into document
30700           - Removed debug output
30701         * TextControl.cs:
30702           - Fixed Delete(int) to fix up line numbers
30703           - Fixed ReplaceSelection to combine start and end line
30704           - Fixed serious DeleteChars bug that would leave the document tree
30705             broken
30706           - Improved DumpTree with several logic checks to detect broken
30707             document trees
30708           - Removed debug lines
30709           - Fixed Caret.WordForward/WordBack moving code, now always also 
30710             updates caret.tag (fixes crash when word-selecting across tag
30711             boundaries via keyboard)
30712           - Added Insert() method for inserting multiline text into documents
30713           - Fixed DeleteChars() calculation errors that would cause a broken
30714             tag chain with multiple tag lines
30715           - DeleteChars() no longer crashes on multi-tag lines if not all tags
30716           - Split() no longer moves caret if split is at caret location
30717           - ReplaceSelection() now updates the cursor and re-displays it
30718           - ReplaceSelection() now uses new Insert() method to avoid code
30719             duplication
30720           - FormatText() can now handle formatting partial lines
30721         * TextBoxBase.cs:
30722           - Append now uses new TextControl.Insert() method (this avoids 
30723             duplicate code)
30724           - Implemented Ctrl-X (Cut) (
30725           - Implemented Ctrl-C (Copy)
30726           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
30727             regeneration when pasting text; roundtripping Copy&Paste within
30728             edit control still fails due to some calculation bugs in GenerateRTF)
30729           - The Delete key will now remove the current selection if it is visible
30730         * TextBox.cs: Removed debug lines
30731         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
30732           driver to be initialized and can't therefore be done via a static ctor)
30733
30734 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
30735
30736         * TextControl.cs: Added backend code for finding char arrays and strings
30737         * TextBoxBase.cs:
30738           - Added mouse wheel scroll support
30739           - Added support for VScroll and HScroll events
30740         * RichTextBox.cs:
30741           - Implemented all seven Find() variants
30742           - Implemented GetCharFromPosition()
30743           - Implemented GetCharIndexFromPosition()
30744           - Implemented GetLineFromIndex()
30745           - Implemented GetPositionFromCharIndex();
30746           - Implemented SaveFile for PlainText and UnicodeText
30747           - Fixed set_Font, now setting a new font applies that font to
30748             the whole document
30749           - Implemented generic Document to RTF converter
30750           - Implemented SaveFile for RichText format (still missing unicode
30751             conversion for non-ansi chars)
30752           - Implemented get_Rtf
30753           - Implemented get_SelectedRtf
30754
30755 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
30756
30757         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
30758           to allow any captures to be released before triggering OnClick. This
30759           way a click handler may capture the mouse without interference.
30760         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
30761           This way we send them even though X may not allow a grab (if the window
30762           isn't visible, for example)
30763
30764 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
30765
30766         * DataGridViewRowEventArgs.cs: DataGridView implementation
30767         * DataGridViewElement.cs: DataGridView implementation
30768         * DataGridViewComboBoxCell.cs: DataGridView implementation
30769         * DataGridViewDataErrorContexts.cs: DataGridView implementation
30770         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
30771         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
30772         * ImageLayout.cs: DataGridView implementation
30773         * DataGridViewComboBoxColumn.cs: DataGridView implementation
30774         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
30775         * DataGridViewSelectionMode.cs: DataGridView implementation
30776         * IDataGridViewEditingControl.cs: DataGridView implementation
30777         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
30778         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
30779         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
30780         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
30781         * DataGridViewColumnSortMode.cs: DataGridView implementation
30782         * DataGridView.cs: DataGridView implementation
30783         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
30784         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
30785         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
30786         * Padding.cs: DataGridView implementation
30787         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
30788         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
30789         * DataGridViewRowEventHandler.cs: DataGridView implementation
30790         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
30791         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
30792         * DataGridViewButtonCell.cs: DataGridView implementation
30793         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
30794         * DataGridViewEditMode.cs: DataGridView implementation
30795         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
30796         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
30797         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
30798         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
30799         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
30800         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
30801         * DataGridViewCellEventHandler.cs: DataGridView implementation
30802         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
30803         * DataGridViewCellStyleConverter.cs: DataGridView implementation
30804         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
30805         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
30806         * DataGridViewColumnEventArgs.cs: DataGridView implementation
30807         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
30808         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
30809         * QuestionEventArgs.cs: DataGridView implementation
30810         * IDataGridViewEditingCell.cs: DataGridView implementation
30811         * DataGridViewTriState.cs: DataGridView implementation
30812         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
30813         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
30814         * DataGridViewColumnCollection.cs: DataGridView implementation
30815         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
30816         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
30817         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
30818         * DataGridViewColumn.cs: DataGridView implementation
30819         * DataGridViewCellBorderStyle.cs: DataGridView implementation
30820         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
30821         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
30822         * DataGridViewRow.cs: DataGridView implementation
30823         * DataGridViewImageCellLayout.cs: DataGridView implementation
30824         * DataGridViewImageCell.cs: DataGridView implementation
30825         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
30826         * DataGridViewCheckBoxCell.cs: DataGridView implementation
30827         * DataGridViewHeaderCell.cs: DataGridView implementation
30828         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
30829         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
30830         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
30831         * DataGridViewTextBoxColumn.cs: DataGridView implementation
30832         * QuestionEventHandler.cs: DataGridView implementation
30833         * DataGridViewCellStyleScopes.cs: DataGridView implementation
30834         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
30835         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
30836         * DataGridViewCell.cs: DataGridView implementation
30837         * DataGridViewCellEventArgs.cs: DataGridView implementation
30838         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
30839         * DataGridViewCellStyle.cs: DataGridView implementation
30840         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
30841         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
30842         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
30843         * TextFormatFlags.cs: DataGridView implementation
30844         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
30845         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
30846         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
30847         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
30848         * DataGridViewButtonColumn.cs: DataGridView implementation
30849         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
30850         * HandledMouseEventArgs.cs: DataGridView implementation
30851         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
30852         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
30853         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
30854         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
30855         * DataGridViewRowCollection.cs: DataGridView implementation
30856         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
30857         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
30858         * DataGridViewHitTestType.cs: DataGridView implementation
30859         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
30860         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
30861         * DataGridViewColumnEventHandler.cs: DataGridView implementation
30862         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
30863         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
30864         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
30865         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
30866         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
30867         * DataGridViewContentAlignment.cs: DataGridView implementation
30868         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
30869         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
30870         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
30871         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
30872         * DataGridViewPaintParts.cs: DataGridView implementation
30873         * DataGridViewCellCollection.cs: DataGridView implementation
30874         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
30875         * DataGridViewImageColumn.cs: DataGridView implementation
30876         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
30877         * DataGridViewElementStates.cs: DataGridView implementation
30878         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
30879         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
30880         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
30881         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
30882         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
30883         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
30884         * DataGridViewRowHeaderCell.cs: DataGridView implementation
30885         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
30886         * DataGridViewTextBoxCell.cs: DataGridView implementation
30887         * DataGridViewBand.cs: DataGridView implementation
30888         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
30889         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
30890         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
30891         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
30892         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
30893         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
30894         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
30895         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
30896         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
30897         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
30898         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
30899
30900 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
30901
30902         * ThemeWin32Classic.cs: 
30903           - Draw the outside focus rectangle around buttons
30904           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
30905             doesn't use end caps for every dash of a line anymore. This
30906             workaround ignores the forecolor.
30907
30908 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
30909
30910         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
30911           endian safe.
30912
30913 2005-11-07  Jackson Harper  <jackson@ximian.com>
30914
30915         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
30916
30917 2005-11-07  Jackson Harper  <jackson@ximian.com>
30918
30919         * ScrollableControl.cs: Calculate the maximum and change vars
30920         (more) correctly so that scrollbars appear as a sensible size.
30921
30922 2005-11-04  Jackson Harper  <jackson@ximian.com>
30923
30924         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
30925         collection.
30926         * TreeView.cs: When the tree is sorted null out the top_node so
30927         that it is recalculated.
30928         - Use dotted lines instead of dashed lines to match MS better.
30929
30930 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
30931
30932         * ListView.cs: 
30933           - Implements key search for items. Useful when browsing files with FileDialog
30934           - When changing view mode or when clear the items reset scrollbar positions
30935
30936 2005-11-04  Jackson Harper  <jackson@ximian.com>
30937
30938         * CurrencyManager.cs: Implement the MetaDataChanged event, the
30939         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
30940         as to what the method may do as there is no real way of creating a
30941         derived CurrencyManager and calling the method. 
30942
30943 2005-11-03  Jackson Harper  <jackson@ximian.com>
30944
30945         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
30946         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
30947         method which seems to just be used internally to refresh the tabs.
30948
30949 2005-11-03  Jackson Harper  <jackson@ximian.com>
30950
30951         * TabControl.cs: Implement the remove method. Fix some broken
30952         comments.
30953
30954 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
30955
30956         * DateTimePicker.cs:
30957           - Added missing DateTimePickerAccessibleObject class
30958           - Added missing events
30959           - Added OnFontChanged method
30960         * Form.cs: Added missing attributes
30961         * TreeView.cs: Added missing attributes
30962
30963 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
30964
30965         * GridItemCollection.cs: Fix signatures
30966
30967 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
30968
30969         * XplatUI.cs: Updated build rev/date
30970         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
30971           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
30972         * Application.cs: Trigger context-specific ExitThread events
30973
30974 2005-11-03  Jackson Harper  <jackson@ximian.com>
30975
30976         * Menu.cs:
30977         * MainMenu.cs:
30978         * GridTableStylesCollection.cs:
30979         * Timer.cs:
30980         * TabPage.cs:
30981         * HelpProvider.cs:
30982         * StatusBar.cs:
30983         * MonthCalendar.cs: Signature fixes
30984
30985 2005-11-03  Jackson Harper  <jackson@ximian.com>
30986
30987         * TreeNodeCollection.cs: Remove should not be virtual.
30988         * TreeView.cs: Implement the last of the missing methods.
30989
30990 2005-11-03  Jackson Harper  <jackson@ximian.com>
30991
30992         * TreeNodeConverter.cs: Implement to get off my class-status back.
30993
30994 2005-11-03  Jackson Harper  <jackson@ximian.com>
30995
30996         * TreeView.cs: Hookup the bits for drag and drop.
30997         * TreeNode.cs: Don't cache the tree_view or index anymore, now
30998         that nodes can be moved from tree to tree easily this just causes
30999         all sorts of problems.
31000         * TreeNodeCollection: Don't need to give treenodes an index and
31001         treeview anymore when they are added, these are computed on the
31002         fly. Also make sure to remove a node before its added.
31003
31004 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31005
31006         * TextControl.cs:
31007           - Added CaretSelection enum
31008           - Added comparison methods to Marker struct, makes selection code
31009             more readable
31010           - Added SelectionStart and SelectionEnd as 'moveable' location for
31011             the CaretDirection enum and handler
31012           - Added selection_prev variable to track optimized invalidation for
31013             word and line selection
31014           - Added SelectionVisible property (returns true if there is a valid 
31015             selection)
31016           - Switched CaretHasFocus to only display the caret if there is no
31017             visible selection
31018           - Avoiding StringBuilder.ToString to retrieve a single char, instead
31019             using the direct character index; should be much faster
31020           - Added various conditional debug statements
31021           - Fixed invalidation calculation for selection ranges
31022           - Added ExpandSelection() method to support word and line selection
31023           - Switched SetSelectionToCaret to use new Marker compare overloads
31024           - Added central IsWordSeparator() method to determine word 
31025             separators/whitespace and FindWordSeparator() to streamline common
31026             usage of IsWordSeparator()
31027         * TextBoxBase.cs:
31028           - Removed unneeded grabbed variable, it was just mirroring
31029             Control.Capture
31030           - No longer firing OnTextChanged event when Text setter is called,
31031             since the base will fire the event for us
31032           - Added handling of Ctrl-Up/Down selection
31033           - Added handling of Shift-Cursorkey selection
31034           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
31035             words
31036           - Added handling of Shift and Ctrl-Shift-Home/End selection
31037           - Removed some debug output
31038           - Added handling for single/double/tripple-click to place caret/
31039             select word/select line respectively (Fixes bug #76031)
31040           - Added support for drag expansion of word/line selection
31041         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
31042           current selection
31043
31044 2005-11-02  Jackson Harper  <jackson@ximian.com>
31045
31046         * X11Dnd.cs: If the drag is going to and from a MWF window just
31047         copy the data instead of sending it out through the X Selection
31048         mechanism.
31049
31050 2005-11-02  Jackson Harper  <jackson@ximian.com>
31051
31052         * X11Dnd.cs:
31053         * XplatUIX11.cs: When in a drag we don't want motion notify
31054         messages to get passed on to the other controls. This prevents
31055         mouse move messages from showing up in the drag source.
31056
31057 2005-11-02  Jackson Harper  <jackson@ximian.com>
31058
31059         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
31060         the correct button is release to end a drag.
31061         * XplatUIX11.cs: Make the button state internal so the drag system
31062         can access it.  Dragging needs to know about all button releases,
31063         not just left button.
31064
31065 2005-11-02  Miguel de Icaza  <miguel@novell.com>
31066
31067         * Form.cs (Icon): If the icon is null, reset the icon to the
31068         default value. 
31069
31070         * Cursor.cs: When writing the AND-mask bitmap do not include the
31071         number of colors, but hardcode those to two (black and white),
31072         fixes the loading of color cursors (Paint Dot Net).
31073
31074         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
31075         turn off autoscaling.
31076
31077         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
31078
31079 2005-11-02  Jackson Harper  <jackson@ximian.com>
31080
31081         * X11Dnd.cs: Make sure to send a status message if the pointer
31082         enters a control that can not accept a drop, otherwise the cursor
31083         isn't updated correctly. Also tried to compress the lines of code
31084         a bit.
31085
31086 2005-11-02  Jackson Harper  <jackson@ximian.com>
31087
31088         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
31089         set actions correctly.  This isn't perfect as XDND and win32 have
31090         some differences on how you allow actions. I'll clear this up by
31091         adding a path for drag from MWF to MWF windows.
31092         * XplatUIX11.cs: Hook into the dnd system.
31093
31094 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
31095
31096         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
31097         previously shown but they are no longer need it. Very obvious when 
31098         browsing files with FileDialog.
31099
31100 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
31101
31102         * Control.cs: We always need to call OnPaintBackground. We pretty much
31103           ignore AllPaintingInWmPaint and always do the painting there, whether 
31104           it's set or not, since we always ignore the WM_ERASEBKGND message 
31105           (which we don't generate on X11). This fixes #76616.
31106         * Panel.cs: Removed unneeded background painting. This happens properly
31107           in Control.cs already
31108
31109 2005-10-31  Mike Kestner  <mkestner@novell.com>
31110
31111         * Menu.cs: Add items to collection before setting their index.
31112         * MenuItem.cs : add range checking with ArgumentException like MS.
31113         [Fixes #76510]
31114
31115 2005-10-31  Jackson Harper  <jackson@ximian.com>
31116
31117         * ListBox.cs: Invalidate if the area is visible at all not just
31118         contained in the visible rect. Fixes unselection of semi visible
31119         items.
31120
31121 2005-10-31  Jackson Harper  <jackson@ximian.com>
31122
31123         * Control.cs: Consistently name the dnd methods. Make them
31124         internal so we can override them to match some MS behavoir
31125         internally.
31126         * Win32DnD.cs: Use the new consistent names.
31127
31128 2005-10-31  Jackson Harper  <jackson@ximian.com>
31129
31130         * TreeView.cs: Don't draw the selected node when we lose focus.
31131
31132 2005-10-31  Jackson Harper  <jackson@ximian.com>
31133
31134         * X11Dnd.cs: We still need to reset the state even though a full
31135         reset isn't being done, otherwise status's still get sent all over
31136         the place.
31137
31138 2005-10-31  Jackson Harper  <jackson@ximian.com>
31139
31140         * Control.cs: Make the dnd_aware flag internal so the dnd
31141         subsystem can check it. Catch exceptions thrown in dnd handlers to
31142         match MS behavoir.
31143         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
31144         * X11Dnd.cs: Handle null data in the converters. Set the XDND
31145         version when sending a XdndEnter. Use the control/hwnd dnd_aware
31146         flags to reduce the number of dnd enters/status's sent.
31147
31148 2005-10-31  Jackson Harper  <jackson@ximian.com>
31149
31150         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
31151
31152 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
31153
31154         * PictureBox.cs: Fixes 76512
31155
31156 2005-10-28  Jackson Harper  <jackson@ximian.com>
31157
31158         * X11Dnd.cs: Early implementation to support winforms being a drag
31159         source for data on X11. Also restructured the converters so they
31160         can go both ways now.
31161         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
31162         
31163 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
31164
31165         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
31166           clipboard requests
31167
31168 2005-10-27  Jackson Harper  <jackson@ximian.com>
31169
31170         * TreeNode.cs: Implement serialization so my DnD examples will work.
31171
31172 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
31173
31174         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
31175           TreeView.cs: Don't dispose objects that are not owned.
31176           
31177 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
31178
31179         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
31180           should retrieve the current cursor and report that, but XplatUI
31181           doesn't (yet) have an interface for that (and I'm not sure I even
31182           can, on X11)
31183         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
31184           until any message loop processing is done (and the WM_SETCURSOR
31185           replaces the cursor to the proper one)
31186         * XplatUIX11.cs: 
31187           - Fixed override behaviour, we can't set the cursor globally on X11, 
31188             just for our windows.
31189           - Invalidating the System.Drawing X11 display handle when we are
31190             shutting down
31191         * Control.cs: Fix to make csc happy
31192
31193 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
31194
31195         * TextBoxBase.cs: 
31196           - get_Text: Add last line (without trailing newline) to returned
31197             value (Fixes 76212)
31198           - get_TextLength: Count last line in returned length
31199           - ToString: Call Text property instead of duplicating code
31200
31201 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
31202
31203         * ImageList.cs: Dispose ImageAttributes objects.
31204
31205 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
31206
31207         * ImageList.cs: Use attribute constructors with less arguments where
31208           possible.
31209
31210 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
31211
31212         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
31213           Use typeof instead of strings when assembly is referenced. Added
31214           some more comments.
31215
31216 2005-10-21  Jackson Harper  <jackson@ximian.com>
31217
31218         * ListView.cs: Raise a double click event. Also tried to somewhat
31219         fix when the selectedindexchanged event is raised. Its still
31220         broken though.
31221
31222 2005-10-21  Jackson Harper  <jackson@ximian.com>
31223
31224         * TreeView.cs: New method to invalidate the plus minus area of a
31225         node without invalidating the whole node (maybe this can be used
31226         in some more places).
31227         * TreeNodeCollection.cs: When adding to an empty node we need to
31228         invalidate its plus minus area so the little block shows up.
31229         
31230 2005-10-21  Jackson Harper  <jackson@ximian.com>
31231
31232         * TreeView.cs: Make sure that when we invalidate a node the bounds
31233         are big enough to cover the selected box and the focus
31234         rectangle. Use a different colour for the lines connecting nodes
31235         so they show up with all themes.
31236
31237 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31238
31239         * NativeWindow.cs: Don't call anything that could call into the driver,
31240           we might be on a different thread.
31241
31242 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
31243
31244         * Control.cs(Dispose): Since Dispose might run on a different thread,
31245           make sure that we call methods that could call into the driver via
31246           invoke, to avoid thread issues
31247
31248 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31249
31250         * XplatUI.cs: Removed finalizer
31251         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
31252           not allowing to be called on the finalizer thread.
31253
31254 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
31255
31256         * ImageList.cs:
31257           - Reverted r51889 and r51891.
31258           - Added ImageListItem class that stores unmodified image items and image
31259             properties required to create list images until handle is created.
31260           - Added AddItem and moved image creation logic to AddItemInternal.
31261           - Added CreateHandle method that creates images based on unmodified items.
31262           - Added DestroyHandle that changes state to store unmodified items.
31263           - Add and AddStrip methods no more create handle.
31264           - ReduceColorDepth has no return value.
31265           - Dispose destroys handle.
31266           - Modified other methods to reflect the above changes.
31267           - Implemented key support.
31268           - Added profile 2.0 members and attributes.
31269           - Added private Reset and ShouldSerialize methods that provide the same
31270             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
31271             them as they are private.
31272           - Added some more comments about implementation details.
31273
31274 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31275
31276         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
31277
31278 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31279
31280         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
31281
31282 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31283
31284         * DataGridDrawingLogic.cs: Fixes column hit calcultation
31285         * DataGridColumnStyle.cs: Remove debug message
31286
31287 2005-10-20  Jackson Harper  <jackson@ximian.com>
31288
31289         * TreeView.cs: We can always get input keys regardless of whether
31290         or not editing is enabled. They are used for navigation.
31291
31292 2005-10-20  Jackson Harper  <jackson@ximian.com>
31293
31294         * TreeNode.cs: Use the viewport rect for determining if a node
31295         needs to be moved for visibility. Don't use Begin/End edit. This
31296         calls a full refresh when its done.
31297         * TreeView.cs: New SetBottom works correctly.  Make the viewport
31298         rect property internal so the treenodes can see it. When clicking
31299         on a node we need to ensure that its visible because it might just
31300         be partly visible when clicked.
31301
31302 2005-10-20  Jackson Harper  <jackson@ximian.com>
31303
31304         * TreeNodeCollection.cs: Remove debug code.
31305
31306 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31307
31308         * Datagrid.cs: Implements column sorting in Datagrid
31309         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
31310
31311 2005-10-20  Jackson Harper  <jackson@ximian.com>
31312
31313         * TreeNodeCollection.cs: Remove items properly. Update the correct
31314         area after removing them.
31315
31316 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31317
31318         * Datagrid.cs: Should not call base.OnPaintBackground
31319
31320 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
31321
31322         * XplatUIX11.cs (GetMessage):
31323           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
31324             window instead of client window
31325           - Now properly calculates NC_xBUTTONUP message coordinates
31326           - ScreenToMenu now properly calculates it's coordinates of whole 
31327             window, since menus are in the whole window, not in the client
31328             window
31329           - Added WholeToScreen coordinate translation method
31330
31331 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
31332
31333         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
31334           want to return a message, loop back to the beginning of the function
31335           and grab the next real message to process instead.
31336
31337 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
31338
31339         * Splitter.cs: Properly set limits if no filler control is used
31340
31341 2005-10-19  Jackson Harper  <jackson@ximian.com>
31342
31343         * ColorDialog.cs: Don't show the help button if it is not enabled
31344         instead of disabling it (this is what MS does). Don't create the
31345         panel until the dialog is run, otherwise the vars (such as
31346         ShowHelp) are not set yet.
31347
31348 2005-10-19  Jackson Harper  <jackson@ximian.com>
31349
31350         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
31351         are reduced when adding nodes.
31352         * TreeNode.cs:
31353         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
31354         tree.
31355         
31356 2005-10-19  Jackson Harper  <jackson@ximian.com>
31357
31358         * FolderBrowserDialog.cs: End editing our treeview so the window
31359         actually gets refreshed.
31360
31361 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
31362
31363         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
31364           Obsoleted handling of WM_ERASEBKGND, now always draws our background
31365           inside of WM_PAINT
31366
31367 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31368
31369         * MenuAPI.cs: Returns after Hidding window
31370         * XplatUIX11.cs: Added TODO found while debugging menu issues
31371
31372 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
31373
31374         * XplatUIX11.cs: Do not re-map the whole window when it's size
31375           becomes non-zero unless it's supposed to be actually visible
31376
31377 2005-10-18  Jackson Harper  <jackson@ximian.com>
31378
31379         * TreeView.cs: We don't need to keep a count anymore.
31380         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
31381         use the Grow method.
31382
31383 2005-10-18  Jackson Harper  <jackson@ximian.com>
31384
31385         * TreeNodeCollection.cs: Insert is not supported on arrays, so
31386         implement it manually here.
31387
31388 2005-10-18  Jackson Harper  <jackson@ximian.com>
31389
31390         * ImageList.cs: Dont kill the list when the colour depth is
31391         changed, just change the colour depth of all the images.
31392         - Same goes for setting the image size. Just resize them all
31393         instead of killing the list softly.
31394
31395 2005-10-18  Jackson Harper  <jackson@ximian.com>
31396
31397         * Control.cs: Don't invalidate empty rectangles.
31398
31399 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31400
31401         * ListViewItem.cs:
31402           - Adds checked item to the Checked/Item lists (where empty before)
31403           - Do not add items to the Selected lists if they are already present
31404         * ListView.cs:
31405           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
31406           - When deleting items make sure that we delete them for the Selected
31407           and Checked list also.
31408
31409 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31410
31411         * Label.cs: Dispose objects no longer used
31412         * ThemeWin32Classic.cs: Dispose objects no longer used
31413
31414 2005-10-18  Jackson Harper  <jackson@ximian.com>
31415
31416         * TabControl.cs: Don't refresh the whole control when the tabs are
31417         scrolled, we just need to refresh the tab area.
31418
31419 2005-10-17  Jackson Harper  <jackson@ximian.com>
31420
31421         * XplatUIX11.cs: Compress code a little bit. Only calculate the
31422         after handle when we need it.
31423
31424 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31425
31426         * Control.cs: When the parent size changes, recalculate anchor 
31427           positions. Partial fix for #76462
31428
31429 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31430
31431         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
31432           drawn. Fixes #76462
31433
31434 2005-10-17  Jackson Harper  <jackson@ximian.com>
31435
31436         * MonthCalendar.cs: Don't create the numeric up down until our
31437         handle is created. Otherwise our handle is created in the
31438         constructor and we don't know if we are a WS_CHILD or WS_POPUP
31439         yet.
31440
31441 2005-10-17  Jackson Harper  <jackson@ximian.com>
31442
31443         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
31444         correctly.
31445
31446 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31447         * TreeNode.cs : small logical fix (was using local var instead of field)
31448         
31449 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31450
31451         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
31452
31453 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31454
31455         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
31456
31457 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
31458
31459         * Control.cs: 
31460           - Re-implemented anchoring code. My first version was really broken.
31461             This fixes bug #76033. Unlike the previous implementation we will
31462             no longer have round errors since all numbers are calculated from
31463             scratch every time. Removed various anchor-related obsolete vars.
31464           - InitLayout no longer causes layout event firing and layout to be 
31465             performed
31466
31467 2005-10-16  Jackson Harper  <jackson@ximian.com>
31468
31469         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
31470         which was broken).
31471
31472 2005-10-16  Jackson Harper  <jackson@ximian.com>
31473
31474         * TabControl.cs: Remove debug code.
31475
31476 2005-10-16  Jackson Harper  <jackson@ximian.com>
31477
31478         * XEventQueue.cs: Increase the default queue size (very simple
31479         apps needed to grow the queue).
31480         * Hwnd.cs: No finalizer so we don't need to suppress
31481         finalization. Compute the invalid area manually so a new rectangle
31482         does not newto be created.
31483         * ScrollableControl.cs: Don't set any params (otherwise visibility
31484         isn't set correctly).
31485         * MdiChildContext.cs: New constructor takes the mdi parent so it
31486         doesn't have to be computed and avoids a crash on windows. Draw
31487         the window icon properly, and allow the text to be seen.
31488         * Form.cs: Use new MdiChildContext constructor. Make sure the
31489         child context isn't null in wndproc.
31490         * TabControl.cs: Don't set focus, this is muddling keyboard
31491         behavoir. Expand the tab rows when a window size increase will
31492         allow extra tabs to be seen. Don't allow tabs smaller than the
31493         width of a window to be scrolled out of view.
31494         * TreeNode.cs:
31495         * TreeView.cs: Use measure string to calculate a nodes width, the
31496         width is cached and only updated when the text or the font is
31497         changed. Don't check for expand/collapse clicks on the first level
31498         nodes if root lines are disabled.
31499         
31500 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
31501
31502         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
31503
31504 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31505
31506         * DataGridBoolColumn.cs: fixes warning
31507
31508 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31509
31510         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
31511         to match more to match more precisely the MS Net behavior
31512
31513 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31514
31515         * Hwnd.cs: Added field to track if window is mapped
31516         * XplatUIX11.cs: 
31517           - Unmap windows if they become 0-size, re-map when 
31518             they are >0 again; fixes #76035
31519           - Re-set our error handler after initializing X11Desktop
31520             to override any error handlers Gtk or whatever was called
31521             may have set.
31522
31523 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31524
31525         * CheckedListBox.cs: Removed unused vars
31526         * ListView.cs: Fixed signatures
31527         * RichTextBox.cs: Removed unused vars
31528         * TextBoxBase.cs: Removed unused vars
31529         * XplatUIWin32.cs: Removed unused vars
31530         * XplatUIX11.cs: Removed unused vars
31531         * XplatUI.cs: Updated version and date to latest published
31532
31533 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31534
31535         * Cursor.cs: Added private .ctor to work around a bug in
31536           resourceset (Thanks to Geoff Norton for the help on this)
31537         * SplitterEventArgs.cs: Made fields accessible so we don't
31538           waste boatloads of objects and can reuse the same one
31539           in Splitter
31540         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
31541           any captions and borders when generating screen coordinates
31542         * Splitter.cs: Reimplemented control, now fully complete, uses
31543           rubberband drawing, supports and obeys all properties, has
31544           proper cursors
31545
31546 2005-10-13  Miguel de Icaza  <miguel@novell.com>
31547
31548         * Form.cs (Form): Setup default values for autoscale and
31549         autoscale_base_size;  Make these instance variables, not static
31550         variables. 
31551
31552         (OnLoad): on the first load, adjust the size of the form.
31553
31554 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31555
31556         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
31557           width argument to DrawReversibleRectangle()
31558         * XplatUIWin32.cs, XplatUIX11.cs: 
31559           - Implemented width for DrawReversibleRectangle()
31560           - Added logic to DrawReversibleRectangle that recognizes a zero
31561             width or height and only draws a line in that situation
31562         
31563 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
31564
31565         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
31566         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
31567         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
31568           method (it uses our FosterParent window to get a graphics context)
31569
31570 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
31571
31572         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
31573           and SetWindowBackground methods
31574         * Control.cs:
31575           - Setting proper ControlStyles
31576           - We no longer call XplatUI.SetWindowBackground and XplatUI.
31577             EraseWindowBackground, instead we draw the window background
31578             ourselves in PaintControlBackground. This behaviour is
31579             required to match MS, where, when OnPaintBackground is not
31580             called, the background is not drawn.
31581           - Removed unneeded Refresh() in set_Text
31582         * Hwnd.cs: Dropped the ErasePending support. No longer needed
31583         * XplatUIX11.cs:
31584           - Created DeriveStyles method to translate from CreateParams to
31585             FormBorderStyle and TitleStyle, also handles BorderStyle (which
31586             matches FormBorderStyle enum values)
31587           - Consolidated SetHwndStyles and CalculateWindowRect border/title
31588             style calculations into single DeriveStyles method
31589           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
31590             from redrawing the whole window on any resize or expose.
31591           - Fixed CreateWindow usage of SetWindowValuemask. Before not
31592             all styles were applied to our whole/client window appropriately
31593           - Removed EraseWindowBackground() and SetWindowBackground() methods
31594           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
31595             no longer clear/redraw the background through X
31596           - Removed handling of erase_pending bit, we have no use for it (or
31597             so it seems)
31598         * XplatUIOSX.cs:
31599           - Removed generation and handling of WM_ERASEBKGND message
31600           - Removed EraseWindowBackground() and SetWindowBackground() methods
31601           - Removed handling of hwnd.ErasePending flag
31602         * XplatUIWin32.cs:
31603           - Removed EraseWindowBackground() and SetWindowBackground() methods
31604           - We no longer call EraseWindowBackground on PaintEventStart, we 
31605             ignore the fErase flag, erasing is handled in Control in the
31606             background handler
31607         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
31608           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
31609           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
31610           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
31611           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
31612           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
31613           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
31614
31615 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
31616
31617         * PropertyGrids.cs: Get sub properties
31618         * PropertyGridView.cs: Fix drawing code
31619
31620 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31621
31622         * ListBox.cs: Fixes 76383
31623
31624 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31625
31626         * DataGridTextBoxColumn.cs: Sets location and size before attachment
31627         * ThemeWin32Classic.cs: Fixes border drawing and calculations
31628         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
31629
31630
31631 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31632
31633         * ComboBox.cs: Fixes border drawing
31634
31635 2005-10-10  Miguel de Icaza  <miguel@novell.com>
31636
31637         * MimeIcon.cs: Ignore errors if the file can not be read.
31638
31639 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31640
31641         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
31642          - Fixed border calculations
31643          - Fixed horizontal scrolling in single column listboxes
31644          - Fixed drawing issues
31645
31646 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
31647
31648         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
31649           FormBorderStyle enum
31650         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
31651           code to determine FormBorderStyles from CreateParams
31652         * Form.cs:
31653           - Fixed bug where we'd set the wrong window styles if we were
31654             not creating an MDI window
31655           - Added call to XplatUI.SetBorderStyle when form borders are set
31656         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
31657         * Hwnd.cs:
31658           - Removed obsolete edge style
31659           - Switched from BorderStyle to FormBorderStyle
31660         
31661 2005-10-10  Jackson Harper  <jackson@ximian.com>
31662
31663         * Form.cs: Use the property to get the window handle instead of
31664         accessing it directly. Prevents a null reference exception.
31665
31666 2005-10-10  Jackson Harper  <jackson@ximian.com>
31667
31668         * TreeView.cs: Don't adjust the rect given to DrawString now that
31669         our libgdiplus draws correctly.
31670
31671 2005-10-08  Jackson Harper  <jackson@ximian.com>
31672
31673         * TreeView.cs: Don't try to find the clicked on node if there are
31674         no nodes in the tree.
31675
31676 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31677
31678         * RichTextBox.cs:
31679
31680           restore
31681
31682 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31683
31684         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
31685           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
31686           ErrorProvider.cs:
31687           Use ResPool for brushes and dispose System.Drawing objects that
31688           are not used anymore.
31689
31690 2005-10-07  Jackson Harper  <jackson@ximian.com>
31691
31692         * MdiChildContext.cs: Use the new borders instead of drawing them
31693         ourselves.
31694
31695 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31696
31697         * Calling UpdateBounds after changing the window's BorderStyle 
31698         since the style can change the ClientSize
31699
31700 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31701
31702         * Control.cs: Made PaintControlBackground virtual
31703         * Panel.cs: Overriding PaintControlBackground instead of using paint
31704           event; paint event method was interfering with 'real' users of the
31705           event.
31706
31707 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31708
31709         * ThemeWin32Classic.cs: remove border drawing since it is handled
31710         by the base control class now and was causing double border drawing.
31711
31712 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31713
31714         * Panel.cs: Redraw our background on paint. Not a pretty solution,
31715           but it does seem to match MS behaviour. This fixes bug #75324
31716
31717 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31718
31719         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
31720           somewhat hackish looking
31721
31722 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31723
31724         * TextBoxBase.cs:
31725           - We now accept Enter even if AcceptEnter is false, if the containing
31726             form does not have an AcceptButton configured (fixes bug #76355)
31727           - Calculations are now fixed to no longer use Width/Height, but
31728             ClientSize.Width/Height, since we now support borders (this was
31729             a result of fixing borders and therefore bug #76166)
31730           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
31731             true (fixes bug #76354)
31732         
31733 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31734
31735         * Control.cs: 
31736           - Defaulting BorderStyle and setting it in XplatUI when our window 
31737             is created
31738           - Added enum check to InternalBorderStyle setter
31739         * XplatUIX11.cs: 
31740           - Added drawing of window borders
31741           - Now properly calculates WM decorations offset for toplevel 
31742             windows (fixes bug #74763)
31743         * XplatUIWin32.cs: 
31744           - Implemented BorderStyles for windows (we're letting win32 draw 
31745             the border for us)
31746           - Fixed the signature for SetWindowLong
31747         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
31748           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
31749           setting borders
31750         * UpDownBase.cs: Remove drawing of borders, this is handled by
31751           the driver, outside the client area
31752         * ListView.cs: Removed bogus border calculations. The control should
31753           be oblivious to borders, since those are not part of the client
31754           area. 
31755         * X11DesktopColors.cs: Commented out (currently) unneeded variables
31756         * ThemeWin32Classic.cs: Removed border calculations from ListView 
31757           drawing code
31758
31759 2005-10-06  Jackson Harper  <jackson@ximian.com>
31760
31761         * MdiChildContext.cs: Clear out the old virtual position remove
31762         all the unneeded calls to CreateGraphics.
31763
31764 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31765
31766         * TextControl.cs: Use proper color for highlighted text; fixes #76350
31767
31768 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31769
31770         * Form.cs: 
31771           - Added loading and setting of our new default icon
31772           - Only set icon if window is already created
31773
31774 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31775
31776         * Label.cs:
31777           - Do not explicitly set the foreground and background colors, to
31778             allow inheriting from parents (fixes #76302)
31779           - Use Control's InternalBorderStyle property to deal with borders
31780
31781 2005-10-06  Jackson Harper  <jackson@ximian.com>
31782
31783         * MdiChildContext.cs: Use the new xplatui function to draw a
31784         reversible rect.
31785
31786 2005-10-06  Jackson Harper  <jackson@ximian.com>
31787
31788         * Form.cs: Add the parent before creating the child context cause
31789         we need the parent when setting up the child.
31790
31791 2005-10-06  Jackson Harper  <jackson@ximian.com>
31792
31793         * FolderBrowserDialog.cs: redo the tree population code so a
31794         second thread isn't used. Should be a lot faster and more stable
31795         now.
31796
31797 2005-10-05  Jackson Harper  <jackson@ximian.com>
31798
31799         * TreeView.cs: There are no expand/collapse boxes if the node has
31800         no children.
31801
31802 2005-10-05  Jackson Harper  <jackson@ximian.com>
31803
31804         * X11DesktopColors.cs: Get menu colours for the gtk theme.
31805
31806 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
31807
31808         * FileDialog.cs: Fix InitialDirectory
31809
31810 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
31811
31812         * ComboBox.cs:
31813                 - Fixes changing between styles
31814                 - Fixes simple mode
31815                 - Fixes last item crashing when navigating with keyboard
31816
31817 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
31818
31819         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
31820
31821 2005-10-05  Jackson Harper  <jackson@ximian.com>
31822
31823         * TreeView.cs: If updating the root node do a full refresh.
31824         * TreeNode.cs: The root node should be expanded by default. Also
31825         added a utility prop to tell if we are the root node.
31826         * TreeNodeCollection.cs: Only refresh if the node we are being
31827         added to is expanded. Also added a comment on a potential
31828         optimization.
31829         
31830 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
31831
31832         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
31833           in dispose method. Fixes #76330
31834
31835 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
31836
31837         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
31838
31839                 - Implements vertical and horizontal scrolling using XplatUI
31840                 - Fixes keyboard navagation
31841                 - Fixes EnsureVisible
31842                 - Drawing fixes
31843                 - Handles and draws focus properly
31844
31845
31846 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
31847
31848         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
31849           Create handle. NET_2_0: Destroy handle when value is null.
31850
31851 2005-10-03  Jackson Harper  <jackson@ximian.com>
31852
31853         * ScrollBar.cs: My last scrollbar patch was broken. This is a
31854         revert and a new patch to prevent the thumb from refreshing so
31855         much.
31856
31857 2005-10-02  Jackson Harper  <jackson@ximian.com>
31858
31859         * ScrollBar.cs: Don't update position if it hasn't actually
31860         changed. This occurs when you hold down the increment/decrement
31861         buttons and the thumb gets to the max/min.
31862
31863 2005-10-01  Jackson Harper  <jackson@ximian.com>
31864
31865         * Form.cs:
31866         * MdiChildContext.cs:
31867         * MdiClient.cs: Implement ActiveMdiChild in Form.
31868
31869 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
31870
31871         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
31872
31873 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
31874
31875         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
31876           be found
31877
31878 2005-09-30  Jackson Harper  <jackson@ximian.com>
31879
31880         * ListBox.cs: Don't do a full refresh unless some data has
31881         actually changed.
31882
31883 2005-09-30  Jackson Harper  <jackson@ximian.com>
31884
31885         * TreeView.cs: Make sure that the checkboxes size is factored in
31886         even when not visible.
31887
31888 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
31889
31890         * FileDialog.cs: Fix Jordi's build break
31891
31892 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
31893
31894         * FileDialog.cs: 
31895                 - Use standard the Windows colours for the combobox as espected
31896                 - Dispose objects that use resouces when no longer need them
31897
31898 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
31899
31900         * X11DesktopColors.cs: Initial incomplete implementation
31901         * XplatUIX11.cs: Added call to initialize X11DesktopColors
31902
31903 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
31904
31905         * Theme.cs: 
31906           - Switched Theme color names to match the names defined in 
31907             System.Drawing.KnownColors. Life's hard enough, no need to make 
31908             it harder.
31909           - Added setters to all theme color properties so themes can set
31910             their color schemes. The setters also propagate the color changes
31911             to System.Drawing.KnownColors via reflection
31912         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
31913           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
31914           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
31915           use the new, more logical theme color names
31916         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
31917           post-NT colors
31918         * ThemeWin32Classic.cs:
31919           - Removed code to set the old classic Windows colors. Instead it
31920             now relies on the colors returned by System.Drawing.KnownColors
31921             which will be either modern static colors (Unix) or colors
31922             read from the user's configuration (Win32)
31923           - Updated to use the new, more logical theme color names
31924           - Switched DataGrid drawing code to use only Theme colors instead of
31925             a mix of System.Drawing.KnownColors and Theme colors
31926           - DrawFrameControl(): Removed code that fills the button area, the
31927             fill would overwrite any previous fill done by a control. This
31928             fixes bug #75338 
31929           - Added DrawReversibleRectangle() stub
31930         * ScrollableControl.cs: Set visible state to false when scrollbars
31931           are removed (pdn fix)
31932         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
31933           DrawReversibleRectangle() method to allow drawing primitive 
31934           'rubber bands'
31935         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
31936
31937 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31938
31939         * ImageList.cs: Add(Icon): Create handle.
31940
31941 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
31942
31943         * ListView.cs:
31944         * ThemeWin32Classic.cs:
31945                 - Fixes detail mode
31946                 - Sets clippings
31947                 - Issues with drawing
31948
31949 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31950
31951         * ImageList.cs: Moved RecreateHandle back to ImageList as event
31952           source has to be the ImageList.
31953
31954 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31955
31956         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
31957
31958 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31959
31960         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
31961
31962 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31963
31964         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
31965
31966 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
31967         * GridItem.cs: Fixed TODOs
31968         * GridItemCollection.cs: Added ICollection interface
31969
31970 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
31971
31972         * ImageList.cs: Resize icons when needed.
31973
31974 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
31975
31976         * ListViewItem.cs
31977                 - Fixes GetBounds and returns on screen rects
31978         * ListView.cs:
31979                 - Fixes vertical and horzintal scrolling of items
31980         * ThemeWin32Classic.cs:
31981                 - Fixes drawing
31982                 
31983 2005-09-29  Raja R Harinath  <harinath@gmail.com>
31984
31985         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
31986
31987 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
31988
31989         * ImageList.cs: Added comments about handle creation. Moved Handle,
31990           HandleCreated and OnRecreateHandle implementations to ImageCollection.
31991           Handle is created in Add methods.
31992
31993 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
31994          
31995         * DataGridDrawingLogic.cs: 
31996                 - Takes rows into account on Colum calculations
31997                 - Returns the column when clickig
31998         * DataGrid.cs:
31999                 - Fixes default HitTestInfo values
32000                 - Fixes HitTestInfo.ToString
32001                 - Fixes ResetBackColor          
32002         
32003 2005-09-28  Jackson Harper  <jackson@ximian.com>
32004
32005         * MdiChildContext.cs: Obey rules for fixed sized windows (no
32006         sizing or cursor changes). Also added some temp code to draw the
32007         titlebars text (Makes dev a little easier).
32008
32009 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32010
32011         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
32012
32013 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32014          
32015         * ListBox.cs: Fixes bug 76253
32016
32017 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32018
32019         * ImageList.cs: Added comments about the current implementation. Added
32020           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
32021           Format32bppArgb to preserve transparency and can use Graphics.FromImage
32022           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
32023           with Bitmap.LockBits for better performance. Revised the whole file to
32024           match MS.NET behaviour and provide better performance. Non-public
32025           interface members are calling public members even when they throw
32026           NotSupportedException for better maintainability. Moved ColorDepth,
32027           ImageSize, ImageStream and TransparentColor implementations to
32028           ImageCollection for better performance as these properties are not used
32029           by ImageList.
32030         * ImageListStreamer.cs: Added a new internal constructor that takes an
32031           ImageList.ImageCollection and serializes Images based on
32032           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
32033           match ImageList property name.
32034
32035 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
32036
32037         * ListBox.cs: Fixes IndexFromPoint for last item
32038
32039 2005-09-27  Jackson Harper  <jackson@ximian.com>
32040
32041         * Form.cs: Set the position of new mdi children correctly.
32042
32043 2005-09-27  Jackson Harper  <jackson@ximian.com>
32044
32045         * MdiClient.cs: New mdi children need to be added to the back of
32046         the controls collection so the zorder is set correctly. Also add a
32047         count of all the child windows that have been created.
32048
32049 2005-09-27  Jackson Harper  <jackson@ximian.com>
32050
32051         * Form.cs (CreateParams): Setup MDI forms correctly.
32052
32053 2005-09-27  Jackson Harper  <jackson@ximian.com>
32054
32055         * MdiChildContext.cs:
32056         * MonthCalendar.cs:
32057         * UpDownBase.cs:
32058         * ListBox.cs:
32059         * ListView.cs:
32060         * TextBoxBase.cs:
32061         * TreeView.cs:
32062         * ScrollableControl.cs:
32063         * ComboBox.cs: Add implicit controls using the new implict control
32064         functionality in ControlCollection. Also try to block multiple
32065         control add in a suspend/resume layout to save some cycles.
32066         
32067 2005-09-27  Jackson Harper  <jackson@ximian.com>
32068
32069         * Control.cs: Add functionality to the controls collection to add
32070         'implicit controls' these are controls that are created by the
32071         containing control but should not be exposed to the user. Such as
32072         scrollbars in the treeview.
32073         * Form.cs: The list var of the ControlsCollection is no longer
32074         available because of the potential of implicit controls getting
32075         ignored by someone accessing the list directly.
32076
32077 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
32078
32079         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
32080           loose it's parent. (Fixed bug introduced in r49103 when we added
32081           setting the child parent to null on Remove)
32082
32083 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
32084
32085         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
32086         * Splitter.cs: Added missing attributes for BorderStyle property.
32087         * TextBoxBase.cs: Marked Calculate* methods internal.
32088         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
32089         MS.NET.
32090
32091 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
32092          
32093         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
32094
32095 2005-09-25  Jackson Harper  <jackson@ximian.com>
32096
32097         * TreeView.cs: Update the node bounds correctly regardless of
32098         whether the node is visible.
32099
32100 2005-09-25  Jackson Harper  <jackson@ximian.com>
32101
32102         * ImageList.cs: Don't dispose the image after it is added to the
32103         image list. Only reformat images that need to be resized.
32104
32105 2005-09-25  Jackson Harper  <jackson@ximian.com>
32106
32107         * ImageList.cs: Don't set the format when changing the image.
32108
32109 2005-09-25  Jackson Harper  <jackson@ximian.com>
32110
32111         * TreeView.cs: We can't just assume the node has a font. Use the
32112         treeviews font if no node font is available.
32113
32114 2005-09-25  Jackson Harper  <jackson@ximian.com>
32115
32116         * TreeView.cs: Allow the scrollbars to be reset with negative
32117         values.
32118         - Don't add scrollbars to negative sized windows.
32119
32120 2005-09-23  Jackson Harper  <jackson@ximian.com>
32121
32122         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
32123         old Mono.Posix. Also remove some stray code that shouldn't have
32124         been committed.
32125
32126 2005-09-23  Jackson Harper  <jackson@ximian.com>
32127
32128         * TreeView.cs: Attempt at proper sizing of the horizontal
32129         scrollbar. Also don't resize the scrollbars unless they are
32130         visible.
32131
32132 2005-09-23  Jackson Harper  <jackson@ximian.com>
32133
32134         * TreeView.cs: We don't need to expand the invalid area when the
32135         selection changes, as this is all drawn in the node's bounding
32136         box. The area needs to be expanded (previous typo was contracting
32137         it) when the focus rect moves.
32138
32139 2005-09-23  Jackson Harper  <jackson@ximian.com>
32140
32141         * TreeView.cs: Display the selection box under the correct
32142         circumstances. We were rendering white text with no selection box
32143         before.
32144
32145 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
32146
32147         * TextControl.cs(Split): Now updates selection start/end if it points 
32148           into a line that's being split. Fixes a FIXME and bug #75258
32149
32150 2005-09-23  Jackson Harper  <jackson@ximian.com>
32151
32152         * Binding.cs:
32153         * ListControl.cs: Don't use the path when retrieving binding
32154         managers from the binding context. My bat sense tells me that the
32155         path is only used on insertion.
32156
32157 2005-09-22  Jackson Harper  <jackson@ximian.com>
32158
32159         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
32160
32161 2005-09-22  Jackson Harper  <jackson@ximian.com>
32162
32163         * Splitter.cs: There are special cursors used for splitting.
32164         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
32165
32166 2005-09-22  Jackson Harper  <jackson@ximian.com>
32167
32168         * Splitter.cs: Change the cursor appropriately when the splitter
32169         is moused over, so the user actually knows there is a splitter
32170         there.
32171
32172 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32173
32174        * Label.cs : Fix ToString method to give same output as MS.NET
32175
32176 2005-09-22  Jackson Harper  <jackson@ximian.com>
32177
32178         * TreeView.cs: Create the scrollbars when the handle is created
32179         and add them right away, just make them invisble. Also account for
32180         the window being shrunk vertically to the point that the vert
32181         scrollbar needs to be added.
32182         - Remove some 0.5 adjustments to get around anti aliasing issues.
32183         
32184 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
32185          
32186         * MainMenu.cs: Fixes default value
32187         * MenuItem.cs: Fixes default value
32188
32189 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
32190
32191         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
32192
32193 2005-09-21  Jackson Harper  <jackson@ximian.com>
32194
32195         * Control.cs: Don't try to set the border style on the window if
32196         it hasn't been created. When the window is created the border
32197         style will be used.
32198
32199 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32200
32201         * Control.cs (Update): Don't call XplatUI if we don't have a
32202           window handle yet
32203
32204 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32205
32206         * ContainerControl.cs: Instead of throwing an exception, print
32207           a one-time warning about Validate not being implemented
32208         * XplatUIWin32.cs: Removed debug output
32209
32210 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32211
32212         * Control.cs: Only set XplatUI background if we expect the windowing
32213           system to handle the background. This stops controls that draw their
32214           own background from flickering
32215
32216         * XplatUIX11.cs: Support custom visuals and colormaps for window 
32217           creation. This allows, amongst other things, using MWF X11 windows 
32218           with OpenGL.
32219
32220 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32221
32222         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
32223           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
32224           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
32225           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
32226           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
32227           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
32228           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
32229           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
32230           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
32231           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
32232           GridColumnStylesCollection.cs, 
32233           IDataGridColumnStyleEditingNotificationService.cs,
32234           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
32235           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
32236           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
32237           TreeNodeCollection.cs, AmbientProperties.cs, 
32238           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32239           DataObject.cs, ErrorProvider.cs, Splitter.cs,
32240           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
32241           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
32242           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
32243           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
32244           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
32245           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
32246           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
32247           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
32248           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
32249           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
32250           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
32251           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
32252           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
32253           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
32254           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
32255           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
32256           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
32257           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
32258           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
32259           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
32260           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
32261           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
32262           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
32263           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
32264           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
32265           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
32266           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
32267           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
32268           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
32269           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
32270           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
32271           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
32272           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
32273           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
32274           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
32275
32276 2005-09-21  Jackson Harper  <jackson@ximian.com>
32277
32278         * TreeNode.cs: Call Before/After Expand not Collapse when
32279         expanding.
32280
32281 2005-09-20  Jackson Harper  <jackson@ximian.com>
32282         
32283         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
32284
32285 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32286          
32287         * ListViewItem.cs:
32288                 - Fixes bug 76120
32289                 - Fixes proper storing of subitems
32290                 - Fixes not updated items
32291
32292 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
32293
32294         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
32295           things if our window handle isn't created yet. Also disabled 
32296           debug for TextBoxBase
32297
32298 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
32299
32300         * MenuAPI.cs: Remove filtering of events to allow menu usage
32301
32302 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32303
32304         * Cursor.cs: Allow null to be passed to Cursor.Current.
32305
32306 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
32307
32308         * ThemeWin32Classic.cs:
32309           - Change some private methods/fields to protected virtual so that 
32310             they can be accessed and overriden in derived classes
32311           - First refactoring of some methods. Derived themes now don't 
32312             need to duplicate the complete code from ThemeWin32Classic
32313         * ThemeNice.cs:
32314           - Added nice StatusBar
32315           - Derive from ThemeWin32Classic and not Theme
32316           - Removed duplicate ThemeWin32Classic code
32317
32318 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32319
32320         * Control.cs (ControlCollection.Add): If the value null is passed
32321         the control is ignored. 
32322
32323         Optimize this loop.
32324
32325 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
32326
32327         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
32328           PostQuitMessage state.
32329         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
32330
32331 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
32332
32333         * Application.cs: Our constructor will never get called, move 
32334           initialization to fields; fixes bug #75933
32335
32336 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32337
32338         * FileDialog.cs :
32339                 - Allow files to be selected properly using file name
32340                 combo box.
32341                 - Add ability to change diretory (absolute / relative)
32342                 using file name combo box.
32343
32344 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32345          
32346         * ListBox.cs: 
32347                 - Fixes Multicolumn listboxes item wrong calculations
32348                 - Allows to click when only one item is in the listbox
32349                 - Fixes crash when no items using keyboard navigation
32350
32351 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
32352
32353         * ComboBox.cs: Reverted almost everything from the latest patch which
32354           broke ComboBox
32355
32356 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
32357         
32358         * ToolTip.cs:
32359                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
32360         * ComboBox.cs:
32361                 - When DropDownStyle is Simple, it does not show scrollbar 
32362                 to the last item of the list.
32363                 - When DropDownStyle is Simple, it crashed when the list was 
32364                 scrolled down with the down cursor key.
32365                 - Fixed a bug that when DropDownStyle is DropDownList, the 
32366                 selected item was not shown.
32367                 - The position of the selected item was not preserved when 
32368                 the next dropdown happened.
32369         * ThemeWin32Classic.cs:
32370                 - Items were wrapped at the right end.
32371         * CheckedListBox.cs:
32372                 - Fixed Add method
32373         * ListBox.cs:
32374                 - Items should be fully shown.
32375                 - When resizing and vertical scrollbar disappeared, the item 
32376                 of index 0 should be on the top of the list.
32377                 - GetItemRectangle should consider the size of ver. scrollbar
32378         * StatusBar.cs:
32379                 - SizingGrip area should not be allocated when it is not 
32380                 displayed.
32381                 - Now it reflects MinWidth of the containing panel and 
32382                 fixed a crash that happens when its width becomes so small.
32383
32384 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
32385
32386         * CheckedListBox.cs: Fixes bug 76028
32387         * ListBox.cs: Fixes bug 76028
32388
32389 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
32390
32391         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
32392         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
32393
32394 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
32395
32396         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
32397
32398 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
32399
32400         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
32401
32402 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
32403
32404         * IRootGridEntry.cs: Added
32405         * PropertyGridCommands.cs: Added
32406         * PropertiesTab.cs: Added missing methods and property
32407         * PropertyGridView.cs: Made class internal
32408         * PropertyGridTextBox.cs: Made class internal
32409
32410 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32411
32412         * MimeIcon.cs: Try to check some other environment variables
32413           if "DESKTOP_SESSION" returns "default"
32414
32415 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32416
32417         * ThemeNice.cs: Corrected background colors (e.g. menus)
32418         * ColorDialog.cs: Use correct background colors for controls
32419
32420 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32421
32422         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
32423
32424 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
32425
32426         * RichTextBox.cs: Added initial implementation
32427         * lang.cs: Removed. Was accidentally checked in long time ago
32428         * TODO: Removed. Contents were obsolete
32429
32430 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32431                                                                                 
32432         * PropertiesTab.cs : Added
32433
32434 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32435                                                                                 
32436         * PropertyGrid.cs : Update
32437         * PropertyGridView.cs : Update
32438         * System.Windows.Forms.resx : Added images and strings
32439
32440 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
32441
32442         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
32443  
32444 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
32445
32446         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
32447           a busy loop right after the Ungrab the X11 display is otherwise 
32448           blocked
32449
32450 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
32451
32452         * ThemeWin32Classic.cs: Optimise the use of clipping
32453
32454 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
32455
32456         * DataGrid.cs: fixes recursion bug
32457
32458 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
32459
32460         * ThemeNice.cs: 
32461           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
32462           - Cleanup
32463
32464 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
32465
32466         * ThemeNice.cs: Draw nice ProgressBars
32467
32468 2005-09-01  Miguel de Icaza  <miguel@novell.com>
32469
32470         * VScrollBar.cs: Another buglet found by Aaron's tool. 
32471
32472         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
32473         bug finder.
32474
32475 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
32476
32477         * ThemeNice.cs:
32478           - Added nicer menu drawing
32479           - Updated DrawTab
32480           - some refactoring
32481
32482 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32483
32484         * CreateParams.cs (ToString): Made output match MS
32485         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
32486             handle is already created (to avoid forcing window creation)
32487         * XplatUIX11.cs: Set window text to caption after creating window,
32488           in case Text was set before window was created
32489         * Form.cs: Use this.Text instead of a static string as caption
32490
32491 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32492
32493         * NotifyIcon.cs: Don't set the window to visible; this screws
32494           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
32495           OnPaint without a bitmap)
32496         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
32497           happen very often anyway; we could add the check to the WM_PAINT 
32498           event generation code
32499
32500 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32501
32502         * NotifyIcon.cs: Fill the icon area with a background color, to 
32503           avoid 'residue' when transparent icons are drawn
32504         * XplatUIX11.cs:
32505           - Handle whole_window == client_window when destroying windows
32506           - SystrayAdd(): Set client_window to whole_window value to
32507             get mouse and other events passed to NotifyIcon
32508
32509 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32510
32511         * Form.cs: Set proper default for Opacity property
32512         * NotifyIcon.cs:
32513           - ShowSystray(): Don't bother creating telling the OS
32514             about the systray item if no icon is provided
32515           - Now handles WM_NCPAINT message to deal with whole/client window
32516             split
32517           - Create window as visible to not get caught by Expose optimization
32518         * Hwnd.cs: Removed debug message
32519         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
32520           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
32521             PaintEventStart/End to use new client argument
32522         * TextBoxBase.cs:
32523           - Commented out debug messages
32524           - Switched PaintEventStart/End to use new client argument
32525         * XplatUI.cs: Added client window bool to PaintEventStart()/
32526           PaintEventEnd() calls, to support drawing in non-client areas
32527         * XplatUIDriver.cs: 
32528           - Added client window bool to PaintEventStart()/PaintEventEnd() 
32529             calls, to support drawing in non-client areas
32530           - Added conditional compile to allow using MWF BeginInvoke 
32531             on MS runtime
32532         * XplatUIX11.cs:
32533           - Added some conditional debug output
32534           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
32535             whole/client window split
32536           - Implemented handling of client argument to PaintEventStart()/End()
32537         * Control.cs:
32538           - Throw exception if BeginInvoke() is called and the window handle
32539             or one of the window's parent handles is not created
32540           - Added conditional compile to allow using MWF BeginInvoke on
32541             MS runtime
32542           - get_Parent(): Only sets parent if handle is created. This avoids
32543             forcing window handle creation when parent is set.
32544           - Now fires Layout and Parent changed events in proper order
32545           - Switched to use Handle instead of window.Handle for Z-Order setting,
32546             the get_Parent() patch above causes us to possibly get null for 'window'
32547           - Implemented handling of client argument to PaintEventStart()/End()
32548           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
32549             default handling)
32550           - Now sends a Refresh() to all child windows when Refresh() is called
32551
32552 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
32553
32554         * Form.cs: Added (non-functional) Opacity property
32555         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
32556
32557 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
32558         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
32559           use export MONO_THEME=nice to activate it.
32560           Currently supported controls:
32561           - Button
32562           - ComboBox
32563           - ScrollBar
32564           - TabControl (TabAlignment.Top only, other will follow)
32565         * ThemeEngine.cs: Add theme nice
32566         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
32567           if enabled
32568
32569 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
32570
32571         * Splitter.cs: Resize docked control and its neighbor.
32572
32573 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32574         -- Making Windows with Menus layout correctly --
32575         * Form.cs : The first leg of the fix
32576                 Menu setter - adjust Client Size as needed to make space for the menu
32577                 SetClientSizeCore - doesn't call base version to be able to pass the 
32578                         menu handle to XplatUI.CalculateWindowRect
32579         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
32580         * XplatUIX11.cs: The critical second leg of the fix
32581                 GetWindowPos needs to use a recalculated client_rect
32582                 so that resizing the window doesn't break layout of child controls. 
32583                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
32584                 Lots of \t\n killed
32585
32586 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
32587
32588         * Label.cs: Now properly recalculates width and height on Font and Text
32589           changes if AutoSize is set
32590
32591 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32592         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
32593
32594 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
32595
32596         * ImageList.cs: Makes ToString method compatible with MS
32597
32598 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
32599
32600         * MenuAPI.cs: fixes bug 75716
32601
32602 2005-08-11 Umadevi S <sumadevi@novell.com>
32603         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
32604
32605 2005-08-11 Umadevi S <sumadevi@novell.com>
32606         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
32607
32608 2005-08-10  Umadevi S <sumadevi@novell.com>
32609         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
32610
32611 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
32612
32613         * Menu.cs: fixes bug 75700
32614         * MenuAPI.cs: fixes navigation issues
32615
32616 2005-08-09  Umadevi S <sumadevi@novell.com>
32617         * CheckedListBox.cs - simple fix for GetItemChecked.
32618
32619 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
32620
32621         * ComboBox.cs: Serveral fixes
32622         * ListBox.cs: Serveral fixes
32623
32624 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32625
32626         * ComboBox.cs: Fixes FindString methods and GetItemHeight
32627         * ListBox.cs: Fixes FindString methods
32628
32629 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32630
32631         * DataGrid.cs: fixes bugs exposed by new tests
32632
32633 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
32634
32635         * Mime.cs: Compile Mono assembly references only if compiling
32636           with Mono (Allows to build with VS.Net again)
32637
32638 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
32639
32640         * Control.cs (PaintControlBackground): Draw background image
32641         corrrectly.
32642         (CheckForIllegalCrossThreadCalls): Stubbed.
32643         
32644         * Form.cs (OnCreateControl): Center when should be centered.
32645         
32646         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
32647
32648 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
32649
32650         * Binding.cs: Binding to properties should be case unsensitive
32651
32652 2005-07-18 vlindos@nucleusys.com
32653
32654         * DataGrid.cs: fixes setmember order
32655
32656 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
32657
32658         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
32659         * FileDialog.cs: FileDialog is now resizable and uses the new
32660           MimeIconEngine
32661
32662 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
32663
32664         * DataGridTextBoxColumn.cs: default value
32665         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
32666         * GridTableStylesCollection.cs: fixes checking MappingName
32667         * DataGridDrawingLogic.cs: fixes drawing logic issues
32668         * DataSourceHelper.cs: rewritten to make compatible with more data sources
32669         * DataGrid.cs: fixes    
32670
32671 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
32672
32673         * MimeGenerated.cs: Use case sensitive comparer for
32674           NameValueCollections
32675
32676 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
32677
32678         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
32679         * ThemeWin32Classic.cs: bug fixes, code refactoring
32680         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
32681         * DataGrid.cs: bug fixes, code refactoring
32682         * DataGridTextBox.cs: bug fixes, code refactoring
32683         * DataGridColumnStyle.cs:  bug fixes, code refactoring
32684         * Theme.cs:  bug fixes, code refactoring
32685
32686 2005-07-01  Peter Bartok  <pbartok@novell.com> 
32687
32688         * TextControl.cs: Quick fix for the reported crash on ColorDialog
32689           and other text box usage
32690
32691 2005-07-01  Jackson Harper  <jackson@ximian.com>
32692
32693         * TabControl.cs: Make sure the bottom of the tab covers the pages
32694         border.
32695
32696 2005-06-30  Peter Bartok  <pbartok@novell.com> 
32697
32698         * Form.cs (ShowDialog): Assign owner of the dialog
32699         * TextBoxBase.cs: Always refresh caret size when deleting, caret
32700           might have been moved to a tag with different height
32701
32702 2005-06-30  Jackson Harper  <jackson@ximian.com>
32703
32704         * Form.cs: Don't create an infinite loop when setting focus
32705         * MenuItem.cs: Don't dirty the parents if we don't have any
32706
32707 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
32708
32709         * LibSupport.cs: Rename
32710
32711 2005-06-29  Peter Bartok  <pbartok@novell.com>
32712
32713         * TextBoxBase.cs: Re-align caret after deleting a character
32714         * TextControl.cs:
32715           - DeleteChars(): Ensure that tag covers the provided position
32716           - StreamLine(): Drop reference for dropped tag
32717
32718 2005-06-29  Peter Bartok  <pbartok@novell.com> 
32719
32720         * TextControl.cs: 
32721           - Selections now work properly, anchoring at the initial location
32722             and properly extending in either direction (SetSelectionToCaret(),
32723             SetSelectionStart() and SetSelectionEnd())
32724           - No longer redraws the whole control on selection change, now
32725             calculates delta between previous and new selection and only
32726             invalidates/redraws that area
32727           - Fixed FindPos() math off-by-one errors
32728           - Changed DeleteChars() to verify the provided tag covers the
32729             provided position, selections may have a tag that doesn't cover
32730             the position if the selection is at a tag border
32731           - Fixed off-by-one errors in DeleteChars()
32732           - Added missing streamlining check in DeleteChars() to remove
32733             zero-length tags
32734           - Implemented Invalidate() method, now properly calculates exposures
32735             between two given lines/positions
32736           - Implemented SetSelection()
32737           - Obsoleted and removed FixupSelection()
32738           - Improved RecalculateDocument() logic, removing code duplication
32739
32740 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32741
32742         * LibSupport.cs: changes to match different input/output arguments.
32743
32744 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32745
32746         * LibSupport.cs: added libsupport.so init routine.
32747
32748 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
32749         
32750         * ControlBindingsCollection.cs
32751                 - Throws an exception on null datasource when adding
32752                 - Checks for duplicated bindings when adding
32753
32754 2005-06-28  Jackson Harper  <jackson@ximian.com>
32755
32756         * TreeView.cs (OnKeyDown): Support left and right properly
32757         (navigates as well as expanding and collapsing.
32758         - Add support for Multiply, this expands all the selected nodes
32759         children.
32760         - Fix some tabbing.
32761
32762 2005-06-28  Jackson Harper  <jackson@ximian.com>
32763
32764         * TreeView.cs: Implement keyboard navigation, currently supports,
32765         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
32766         support for toggling checkboxes with the space bar.
32767
32768 2005-06-28  Jackson Harper  <jackson@ximian.com>
32769
32770         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
32771         tree.
32772
32773 2005-06-28  Jackson Harper  <jackson@ximian.com>
32774
32775         * TreeView.cs: Add missing event.
32776
32777 2005-06-27  Peter Bartok  <pbartok@novell.com> 
32778
32779         * TextControl.cs:
32780           - Made line ending size configurable (now allows for counting 
32781             lineendings as \n or \r\n)
32782           - Added margin to viewport to keep caret visible on right side
32783           - Fixed translation routines for line/pos to documentpos to consider
32784             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
32785           - Fixed some line-endings to be unix style
32786           - Fixed Document.FormatText to perform it's calculations 1-based
32787           - Added descriptions for a few methods that might otherwise get 
32788             used wrong
32789           - Added NOTE section with some basic conventions to remember at 
32790             the top of the file
32791           - Major fixup for RichTextBox selection drawing:
32792             * Fixed crashes when multiple tags on a single line were selected
32793             * fixed selection box drawing not overlaying text
32794             * fixed bogus offset calculation for tags not starting at index 1
32795             * Switched behaviour from using multiple Substrings of a 
32796               StringBuilder.ToString() to using multiple 
32797               StringBuilder.ToString(start, length) statements, hoping this is
32798               faster (kept original version commented out in the code, in case
32799               original version was faster)
32800         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
32801           alignment != Left
32802         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
32803           call it as well
32804
32805 2005-06-27  Jackson Harper  <jackson@ximian.com>
32806
32807         * TabControl.cs: Move to the left and right with the arrow
32808         keys. These keys don't cycle beyond first and last like
32809         tab. Refresh all the tabs when scrolling them to the left or
32810         right.
32811
32812 2005-06-27  Jackson Harper  <jackson@ximian.com>
32813
32814         * TabControl.cs:
32815           - ToString: Added method
32816           - CreateParams: Remove TODO and comment
32817           - OnKeyDown: Cycle through bounds properly.
32818           - SelectedIndex: Scroll to the right or left if we need to
32819           display the newly selected tab.
32820
32821 2005-06-23  Jackson Harper  <jackson@ximian.com>
32822
32823         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
32824         set.
32825
32826 2005-06-23  Jackson Harper  <jackson@ximian.com>
32827
32828         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
32829         CTRL-SHIFT-TAB, and HOME, END are there any others?
32830
32831 2005-06-23  Jackson Harper  <jackson@ximian.com>
32832
32833         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
32834
32835 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
32836         
32837         * DataGridTextBoxColumn.cs: fixes and enhancements
32838         * ThemeWin32Classic.cs: fixes and enhancements
32839         * DataGridBoolColumn.cs:  fixes and enhancements
32840         * DataGridDrawingLogic.cs:  fixes and enhancements
32841         * CurrencyManager.cs: fixes and enhancements
32842         * DataGrid.cs: fixes and enhancements
32843         * DataGridColumnStyle.cs:  fixes and enhancements
32844
32845 2005-06-22  Jackson Harper  <jackson@ximian.com>
32846
32847         * TabControl.cs: Add some missing methods that just call into the
32848         base. Make the TabPageCollection's IList interface behave in the
32849         same manner as the MS implementation.
32850
32851 2005-06-22  Peter Bartok  <pbartok@novell.com> 
32852
32853         * TextControl.cs: Added sanity check
32854         * TextBoxBase.cs: 
32855           - Fixed wrapping behaviour, don't set wrap on single line controls
32856             (this fixes the breakage of colordialog introduced in an earlier
32857              checkin)
32858           - Added rudimentary support for autoscrolling right-aligned controls
32859             (still needs fixing, also, center alignment scroll is missing)
32860
32861 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
32862         
32863         * ScrollBar.cs: Fixes thumbpos on Maximum values
32864
32865 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
32866         
32867         * PropertyGridView.cs: Pass context information to UITypeEditors 
32868
32869 2005-06-21  Peter Bartok  <pbartok@novell.com> 
32870
32871         * TextBoxBase.cs:
32872           - Now calling PositionCaret with absolute space coordinates
32873           - Enabled vertical scrolling
32874           - Better tracking of scrollbar changes, tied into WidthChange
32875             event
32876           - Improved cursor tracking
32877           - Removed debug output
32878         * TextControl.cs:
32879           - PositionCaret coordinates are now works in absolute space, not 
32880             the canvas
32881           - Improved tracking of document size
32882           - Added events for width and height changes
32883
32884 2005-06-21  Peter Bartok  <pbartok@novell.com>
32885
32886         * Form.cs: Set focus to active control when form is activated
32887         * TextControl.cs: 
32888           - Added word-wrap functionality to RecalculateLine() 
32889           - Added some short function descriptions for VS.Net to aid in
32890             writing dependent controls
32891           - Added Caret property, returning the current coords of the caret
32892           - Added ViewPortWidth and ViewPortHeight properties
32893           - Added Wrap property
32894           - Added CaretMoved event
32895           - Removed some old debug code
32896           - Split() can now create soft splits
32897           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
32898           - Added method to format existing text
32899           - Fixed size/alignment calculations to use viewport
32900           - RecalculateDocument now can handle changing line-numbers while
32901             calculating lines
32902
32903         * TextBox.cs:
32904           - Added some wrap logic, we don't wrap if alignment is not left
32905           - Added casts for scrollbar var, base class switched types to
32906             also support RichTextBoxA
32907           - Implemented handling of scrollbar visibility flags
32908
32909         * TextBoxBase.cs:
32910           - Switched scrollbars type to RichTextBoxScrollBars to support
32911             RichTextBox
32912           - Added tracking of canvas width/height
32913           - Switched scrollbars to be not selectable (to keep focus on text)
32914           - Added central CalculateDocument() method to handle all redraw
32915             requirements
32916           - Added ReadOnly support
32917           - Added WordWrap support
32918           - Fixed handling of Enter key (we now treat it as a DialogKey)
32919           - Fixed caret positioning when h or v scroll is not zero
32920           - Fixed placing/generation of vertical scrollbar
32921           - Added CalculateScrollBars() method to allow updating scrollbar
32922             limits and visibility
32923           - Fixed handling of horizontal scroll
32924           - Added handling of vertical scroll
32925           - Implemented auto-'jump' when caret moves to close to a left or
32926             right border and there is text to be scrolled into view (currently
32927             there's the potential for a stack overflow, until a bug in
32928             scrollbar is fixed)
32929
32930 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
32931         
32932         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
32933
32934 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
32935
32936         * Mime.cs:
32937         - added inodes.
32938         - return application/x-zerosize for files with size zero
32939           (if no extension pattern matches).
32940         - check matches collection for strings too.
32941         - return only the first mime type if the name value
32942           collection has more than one mime type.
32943
32944 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
32945         
32946         * PropertyGrid.cs: Cleaned up some TODOs
32947         * PropertyGridView.cs: Added support for UITypeEditors
32948
32949 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
32950         
32951         * DataGrid.cs: clears cached value
32952
32953 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
32954
32955         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
32956         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
32957         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
32958         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
32959         
32960 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
32961
32962         * ThemeWin32Classic.cs: fixes colour
32963
32964 2005-06-15  Peter Bartok  <pbartok@novell.com>
32965
32966         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
32967         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
32968         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
32969         * Control.cs: Added some MWFCategory and MWFDescription attributes
32970         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
32971
32972 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
32973
32974         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
32975         usage
32976
32977 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
32978
32979         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
32980         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
32981         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
32982         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
32983         * DataGrid.cs: default datagrid settings for Default Styles, fixes
32984         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
32985
32986 2005-06-13  Jackson Harper  <jackson@ximian.com>
32987
32988         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
32989         isn't printed when the user enables dropping. (X11 does accept
32990         drops).
32991         
32992 2005-06-13  Jackson Harper  <jackson@ximian.com>
32993
32994         * TreeView.cs: Remove some TODOS.
32995
32996 2005-06-13  Jackson Harper  <jackson@ximian.com>
32997
32998         * Form.cs: Hook into the mdi framework.
32999         * MdiClient.cs: Use the base control collections add method so
33000         parents get setup correctly. Set the default back colour and dock
33001         style.
33002         * MdiChildContext.cs: New class, this bad actor handles an
33003         instance of an MDI window. Right now there is only basic
33004         support. You can drag, close, and resize windows. Minimize and
33005         Maximize are partially implemented.
33006
33007 2005-06-13  Jackson Harper  <jackson@ximian.com>
33008
33009         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
33010         freaky when both vals are negative. NOTE: There are probably other
33011         places in XplatUIX11 that this needs to be done.
33012
33013 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
33014
33015         * DataGrid.cs: implement missing methods, move KeyboardNavigation
33016         * DataGridColumnStyle.cs: fixes signature
33017
33018 2005-06-12  Jackson Harper  <jackson@ximian.com>
33019
33020         * XplatUIX11.cs: Use sizing cursors similar to the ones on
33021         windows.
33022
33023 2005-06-11  Jackson Harper  <jackson@ximian.com>
33024
33025         * StatusBarPanel.cs: Signature cleanups. Implement
33026         BeginInit/EndInit.
33027
33028 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
33029
33030         * DataGridTextBoxColumn.cs: Honors aligment
33031         * GridColumnStylesCollection.cs: Contains is case unsensitive
33032         * GridTableStylesCollection.cs: several fixes
33033         * DataGridTableStyle.cs: default column creation
33034         * DataGridDrawingLogic.cs: fixes
33035         * CurrencyManager.cs: ListName property
33036         * DataGrid.cs: multiple styles support
33037         * DataGridColumnStyle.cs: fixes
33038         
33039
33040 2005-06-10  Peter Bartok  <pbartok@novell.com>
33041
33042         * Control.cs(Select): Moved SetFocus call to avoid potential
33043           loops if controls change the active control when getting focus
33044         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
33045           the up/down buttons
33046
33047 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
33048
33049         * ImageListConverter.cs: Implemented
33050
33051 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33052
33053         * MonthCalendar.cs: Wired in NumericUpDown control for year
33054
33055 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33056
33057         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
33058           DoubleClick events, since they are not meant to be fired.
33059
33060 2005-06-09  Peter Bartok  <pbartok@novell.com>
33061
33062         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
33063           Jonathan's standalone controls into MWF, implemented missing
33064           events, attributes and methods; added xxxAccessible classes
33065         * AccessibleObject.cs: Made fields internal so other classes
33066           can change them if needed
33067
33068 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
33069
33070         * UpDownBase.cs: Complete implementation
33071         * NumericUpDown.cs: Complete implementation
33072         * DomainUpDown.cs: Complete implementation
33073
33074 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
33075
33076         * DataGridTextBoxColumn.cs: drawing fixes
33077         * DataGridCell.cs: fixes ToString method to match MSNet
33078         * DataGridTableStyle.cs: fixes
33079         * DataGridBoolColumn.cs: fixes, drawing
33080         * DataGridDrawingLogic.cs: fixes, new methods
33081         * DataGridTextBox.cs: Keyboard and fixes
33082         * DataGrid.cs:
33083                 - Keyboard navigation
33084                 - Scrolling fixes
33085                 - Row selection (single, multiple, deletion, etc)
33086                 - Lots of fixes
33087         
33088 2005-06-07  Jackson Harper  <jackson@ximian.com>
33089
33090         * ThemeWin32Classic.cs: Clear the background area when drawing
33091         buttons.
33092
33093 2005-06-06  Peter Bartok  <pbartok@novell.com>
33094
33095         * ImageListStreamer.cs: Fixed signature for GetData
33096         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
33097         * ComboBox.cs:
33098           - Added missing ChildAccessibleObject class
33099           - Added missing OnXXXFocus overrides, switched to using those
33100             instead of the event handler
33101         * Control.cs:
33102           - Added Parent property for ControlAccessibleObject
33103           - Fixed signatures
33104           - Fixed attributes
33105           - Added ResetBindings()
33106         * ListBindingConverter.cs: Implemented some methods
33107         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
33108         * ImageList.cs: Implemented basic handle scheme, removed TODOs
33109         * ContainerControl.cs: Fixed signature, now subscribing to the
33110           ControlRemoved event instead of overriding the handler, LAMESPEC
33111         * CurrencyManager.cs: Added missing attribute
33112         * MonthCalendar.cs: Added missing properties
33113
33114 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33115
33116         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
33117         
33118 2005-06-06  Gaurav Vaish and Ankit Jain
33119
33120         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
33121         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
33122         
33123 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33124
33125         * Control.cs: fixes CreateParams Width / Height.
33126
33127 2005-06-05  Peter Bartok  <pbartok@novell.com>
33128
33129         * Win32DnD.cs: Removed compilation warnings
33130
33131 2005-06-05  Peter Bartok  <pbartok@novell.com>
33132
33133         * Control.cs (CreateParams): Since we don't know if one of the
33134           properties we use is overridden, lets make sure if we fail accessing
33135           we continue with a backup plan
33136
33137 2005-06-05  Peter Bartok  <pbartok@novell.com>
33138
33139         * Win32DnD.cs:
33140           - Removed debug output
33141           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
33142             struct
33143           - Plugged resource leak
33144         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
33145           MS size
33146
33147 2005-06-05  Peter Bartok  <pbartok@novell.com>
33148
33149         * XplatUIWin32.cs: Removed DnD code
33150         * Win32DnD.cs: Implemented drop source and drop target functionality
33151
33152 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33153
33154         * UpDownBase.cs: remove duplicate addition of event, enable some code
33155         that was commented out.
33156         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
33157         Validate input when a key is pressed. It works fine now for every
33158         combination of Hexadecimal. Only missing some drawing love when sharing
33159         space with other controls.
33160
33161 2005-06-04  Peter Bartok  <pbartok@novell.com>
33162
33163         * Control.cs:
33164           - We need to pass a window for DragDrop, so enable callback events
33165           - Added DnD callback events when being a DragSource
33166         * XplatUI.cs (StartDrag): Added window handle argument
33167         * XplatUIDriver.cs (StartDrag): Added window handle argument
33168         * QueryContinueDragEventArgs: Made fields internally accessible so
33169           drivers can set them
33170         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
33171           can set them
33172
33173 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
33174
33175         * DataGridTextBoxColumn.cs: column text editing
33176         * DataGridTableStyle.cs: Respect columns styles created by the user
33177         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
33178         * DataGridBoolColumn.cs: bool column editing
33179         * DataGrid.cs: fixes to scrolling, properties, etc
33180         * DataGridTextBox.cs: handle keyboard
33181         * DataGridColumnStyle.cs: fixes
33182
33183 2005-06-02  Jackson Harper  <jackson@ximian.com>
33184
33185         * ImageListStreamer.cs: Somewhat broken implementation of
33186         GetObjectData. The RLE needs some work to match MS properly.
33187
33188 2005-06-02  Jackson Harper  <jackson@ximian.com>
33189
33190         * X11Dnd.cs: Attempting to keep at least one file in MWF
33191         monostyled.
33192
33193 2005-06-02  Peter Bartok  <pbartok@novell.com>
33194
33195         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
33196           that way
33197
33198 2005-06-02  Peter Bartok  <pbartok@novell.com>
33199
33200         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
33201         * XplatUI.cs: Added DoDragDrop() method
33202         * XplatUIDriver.cs: Added DoDragDrop() method
33203
33204 2005-06-02  Jackson Harper  <jackson@ximian.com>
33205
33206         * Splitter.cs: Implement BorderStyle.
33207
33208 2005-06-02  Jackson Harper  <jackson@ximian.com>
33209
33210         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
33211         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
33212         X11 using XDND.
33213
33214 2005-06-02  Peter Bartok  <pbartok@novell.com>
33215
33216         * DataObject.cs:
33217           - Added Data setter
33218           - Fixed broken insertion code for SetData, now also
33219             overwrites any existing entry of the same format name
33220         * Hwnd.cs: Added list of pointers that automatically gets
33221           freed when the window is disposed
33222         * XplatUI.cs: Call driver initialization method when loading
33223           a driver
33224         * Control.cs:
33225           - OnDragLeave takes EventArgs, not DragEventArgs
33226           - Added setting of WS_EX_ACCEPTFILES style when dropping is
33227             supported
33228           - Forces style update when drop state changes
33229         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
33230           not perfect since we cannot (yet) call the IDataObject.GetData()
33231           method, we keep getting 0x80004005 error, dunno why)
33232
33233 2005-06-02  Peter Bartok  <pbartok@novell.com>
33234
33235         * DragEventArgs.cs: Make fields internal so we can cache the
33236           object and re-set the fields from XplatUI
33237
33238 2005-06-02  Jackson Harper  <jackson@ximian.com>
33239
33240         * Control.cs: Add some internal methods so the DnD subsystem can
33241         raise DnD events. Also call into the driver when AllowDrop is set.
33242         * XplatUI.cs:
33243         * XplatUIDriver.cs: New method for setting whether or not a window
33244         is allowed to accept drag and drop messages.
33245                 
33246 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
33247         
33248         * ScrollBar.cs: Make sure that values sent in Scroll events
33249         are always between Maximum and Minimum.
33250
33251 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
33252
33253         * Menu.cs: Call MenuChanged when menuitem visibility has been
33254         changed.
33255         * MenuItem.cs: Rebuild menu when item is (not) visible.
33256         * MainMenu.cs: MainMenu has special MenuChanged.
33257         * Theme.cs: Caption and FrameBorderSize are not fixed.
33258         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
33259         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
33260         * XplatUIX11.cs,
33261         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
33262         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
33263
33264 2005-05-30  Jackson Harper  <jackson@ximian.com>
33265
33266         * DataFormat.cs: We can't statically initialize this stuff because
33267         it calls into the xplatui and could create a loop. So we lazy init
33268         it.
33269
33270 2005-05-28  Jackson Harper  <jackson@ximian.com>
33271
33272         * Control.cs: Proper implementation of Product(Name/Version).
33273
33274 2005-05-27  Jackson Harper  <jackson@ximian.com>
33275
33276         * DataObject.cs: Dont crash if no data is found.
33277
33278 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
33279         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
33280                 as per status page, guessing it should be set to true
33281
33282 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
33283
33284         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
33285         * DataGridTableStyle.cs: set proper formatting text, def header text
33286         * ThemeWin32Classic.cs: new themable paramaters
33287         * DataGridBoolColumn.cs: paint check box, get data, fixes
33288         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
33289         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
33290         * DataGridColumnStyle.cs: fixes
33291         * Theme.cs: new themable paramaters
33292                 
33293 2005-05-26  Peter Bartok  <pbartok@novell.com>
33294
33295         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
33296
33297 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33298         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
33299
33300 2005-05-24  Peter Bartok  <pbartok@novell.com>
33301
33302         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
33303           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
33304           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
33305           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
33306           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
33307           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
33308           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
33309           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
33310           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
33311           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
33312           missing attributes, etc
33313         * DataGridPreferredColumnWidthTypeConverter.cs: Added
33314
33315 2005-05-24  Peter Bartok  <pbartok@novell.com>
33316
33317         * Help.cs: Added, implemented trivial functions, throws up MessageBox
33318           when user tries to get help
33319         * DataObject.cs, DataFormats.cs, LinkArea.cs,
33320           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
33321           to suppress warnings
33322         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
33323           avoid unreachable code warning
33324
33325 2005-05-20  Peter Bartok  <pbartok@novell.com>
33326
33327         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
33328
33329 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33330
33331         * DataGridTextBoxColumn.cs: Basic painting methods
33332         * DataGridTableStyle.cs: Set table style in the column
33333         * ThemeWin32Classic.cs: Use Theme for colors
33334         * DataGridDrawingLogic.cs: Implement more drawing
33335         * DataGrid.cs: drawing, theming, enhacements, fixes
33336         * DataGridColumnStyle.cs: fixes, drawing
33337         * Theme.cs: theming for Datagrid
33338
33339 2005-05-20  Peter Bartok  <pbartok@novell.com>
33340
33341         * Cursor.cs: Implemented GetObjectData() method
33342
33343 2005-05-20  Peter Bartok  <pbartok@novell.com>
33344
33345         * Cursors.cs: Added setting of cursor name
33346         * Cursor.cs:
33347           - Implemented constructors
33348           - Implemented Draw and DrawStretched
33349           - Implemented Current property
33350           - Implemented == and != operators
33351           - Implemented Dispose()
33352           - Implemented ToString
33353           - Added missing attributes
33354         * XplatUIX11.cs:
33355           - Added missing reset for OverrideCursor when DoEvents is called
33356           - Fixed creation of cursor, logic was wrong
33357         * XplatUIWin32.cs:
33358           - Added missing reset for OverrideCursor when DoEvents is called
33359           - Fixed creation of cursor, bit arrays were swapped
33360         * Clipboard.cs: Removed obsolete MonoTODO attribute
33361
33362 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33363
33364         * ComboBox.cs: fixes OnSelectedItemChanged
33365         * ControlBindingsCollection.cs: fixes item range check
33366
33367 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33368
33369         * UpDownBase.cs:
33370                 - Calc preferred height properly
33371                 - Implement missing properties
33372                 
33373         * NumericUpDown.cs: Implement missing events
33374
33375 2005-05-19  Jackson Harper  <jackson@ximian.com>
33376
33377         * TabControl.cs: New method that resizes the tab pages before
33378         redrawing them. This as needed as the control is double buffered
33379         and sizing will not be recalculated unless ResizeTabPages is
33380         called.
33381         * TabPage.cs: Set base.Text instead of Text in the constructor so
33382         that UpdateOwner does not get called. Use the new Redraw method of
33383         TabControl instead of Refresh so the sizing is recalculated.
33384         * ThemeWin32Classic.cs: Draw the text for button tabs.
33385
33386 2005-05-19  Jackson Harper  <jackson@ximian.com>
33387
33388         * Control.cs: Paint control background images. Fix typo where
33389         PaintControlBackground was not getting called correctly.
33390
33391 2005-05-19  Peter Bartok  <pbartok@novell.com>
33392
33393         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
33394           I can investigate, apparently I broke FileDialog
33395
33396 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
33397
33398         * AxHost.cs: Some simple properties.
33399         * Control.cs: window must be accessible after ctor.
33400         * Form.cs: Added TransparencyKey property.
33401         * TextBoxBase.cs: Implemented Clear. Text property can be null.
33402         * XplatUIWin32.cs: SetBorderStyle implemented.
33403
33404 2005-05-18  Peter Bartok  <pbartok@novell.com>
33405
33406         * DataObject.cs: Entries are not global but particular to the
33407           DataObject, now it behaves that way
33408         * XplatUIWin32.cs: Implemented Clipboard methods
33409         * Clipboard.cs: Implemented
33410         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
33411         * XplatUIOSX.cs: Updated to final clipboard prototypes
33412         * XplatUIX11.cs: Implemented Clipboard methods
33413         * XplatUIDriver.cs: Updated to final clipboard prototypes
33414         * XplatUIStructs.cs:
33415           - Added BITMAPINFOHEADER struct
33416           - Added ClipboardFormats enum
33417         * X11Structs.cs:
33418           - Added ClipboardStruct
33419           - Added Atom enum items for clipboard types
33420           - Fixed atom types for Selection event structures
33421         * DataFormats.cs:
33422           - Added internal properties and methods for drivers to enumerate
33423             all known formats
33424           - Switched initialization method to allow drivers to assign their
33425             own IDs even for the MS predefined clipboard IDs
33426         * XplatUI.cs: Updated to final clipboard interface
33427
33428 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33429         * PropertyGridView.cs: Fixed compiler warnings.
33430
33431 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33432         * PropertyGrid.cs: Added some event calls
33433         * PropertyGridView.cs: Change drawing code to use double buffering
33434         * PropertyGridTextBox.cs: Changed Text property name
33435         * GridItem.cs: Added Bounds property.
33436         * GridEntry.cs: Added Bounds property.
33437
33438 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
33439
33440         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
33441         since GetType() may not return the correct type if the object is
33442         a remoting proxy.
33443
33444 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
33445
33446         * TreeNodeCollection.cs: fixes get/set item ranges
33447         
33448 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33449
33450         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
33451                 
33452 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33453
33454         * ComboBox.cs: Fix item range comparation
33455         * ListView.cs: Fix item range comparation
33456
33457 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33458
33459         * FontDialog.cs:
33460           - Clear example panel when OnPaint is called
33461           - Better solution for displaying the example panel text
33462           - Select default indexes in the ListBoxes
33463
33464 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33465
33466         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
33467
33468 2005-05-11  Peter Bartok  <pbartok@novell.com>
33469
33470         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
33471         * SelectionRangeConverter.cs: Implemented
33472         * PropertyGrid.cs: Fixed attribute value
33473         * Control.cs:
33474           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
33475           - Added Sebastien Pouliot's CAS Stack Propagation fixes
33476         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
33477           that's common to all drivers. First methods to go there are
33478           Sebastien Pouliot's CAS Stack Propagation helper methods
33479         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
33480           Sebastien Pouliot for CAS Stack Propagation
33481
33482 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33483
33484         * OSXStructs.cs:
33485           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
33486
33487 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
33488
33489         * DataGridTextBoxColumn.cs: fixed some members
33490         * GridColumnStylesCollection.cs: indexed column is case insensitive
33491         * DataGridTableStyle.cs: fixes
33492         * ThemeWin32Classic.cs: add new theme parameter
33493         * Theme.cs: add new theme parameter
33494         * DataGridDrawingLogic.cs: Datagrid's drawing logic
33495         * DataGrid.cs: fixes, new internal properties, etc.
33496         * DataGridColumnStyle.cs: allows to set grid value
33497         *
33498
33499 2005-05-10  Peter Bartok  <pbartok@novell.com>
33500
33501         * AccessibleObject.cs:
33502           - Removed MonoTODO attribute on help, method is correct
33503           - Fixed Bounds property
33504         * AxHost.cs: Moved MonoTODO
33505         * ButtonBase.cs: Now setting AccessibleObject properties
33506         * RadioButton.cs: Setting proper AccessibleObject role
33507         * CheckBox.cs: Setting proper AccessibleObject role
33508         * ControlBindingsCollection.cs: Added properties, methods and attributes
33509         * DataFormats.cs: Fixed awkward internal API, and changed to enable
33510           userdefined DataFormats.Format items as well
33511         * ListControl.cs: Removed data_member from the public eye
33512         * OpenFileDialog.cs:
33513           - Made class sealed
33514           - Added missing attributes
33515         * SaveFileDialog.cs: Added missing attributes
33516         * ImageListStreamer.cs: Fixed code that caused warnings
33517         * LinkLabel.cs: Removed unreachable code
33518         * TreeView.cs: Fixed code that caused warnings
33519         * PropertyGridView.cs: Fixed code that caused warnings
33520         * GridColumnStylesCollection.cs: Added missing attributes
33521         * GridTableStylesCollection: Added missing attribute
33522         * PropertyManager: Added .ctor
33523         * SecurityIDType: Added
33524         * DataObject.cs: Implemented class
33525         * LinkArea.cs: Added missing attribute
33526
33527 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
33528
33529         * RadioButton.cs: call base method to allow to fire OnClick event
33530         * UpDownBase.cs: OnMouseUp call base method
33531         * CheckedListBox.cs: call base method before returning
33532         * TrackBar.cs: call base method before returning
33533         
33534
33535 2005-05-10  Peter Bartok  <pbartok@novell.com>
33536
33537         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
33538           for messages
33539
33540 2005-05-10  Peter Bartok  <pbartok@novell.com>
33541
33542         * DataFormats.cs: Implemented
33543         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
33544           XplatUIX11.cs: Added Clipboard APIs
33545         * XplatUIWin32.cs: Implemented Clipboard APIs
33546         * FolderBrowserDialog.cs: Added missing event, attributes
33547
33548 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
33549
33550         * CheckBox.cs: call base method to allow to fire OnClick event
33551
33552 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
33553
33554         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
33555
33556 2005-05-06  Peter Bartok  <pbartok@novell.com>
33557
33558         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
33559         * Screen.cs: Implemented
33560         * HelpNavigator.cs: Added
33561         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
33562           property
33563         * HelpProvider.cs: Implemented all we can do until we have a CHM
33564           help library (which means that "What's This" does work now)
33565
33566 2005-05-06  Jackson Harper  <jackson@ximian.com>
33567
33568         * XplatUIX11.cs: Fix waking up the main loop.
33569                 
33570 2005-05-05  Peter Bartok  <pbartok@novell.com>
33571
33572         * XplatUI.cs: Updated revision
33573         * Form.cs: Removed enless loop
33574         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
33575         * Label.cs (OnPaint): Added call to base.OnPaint()
33576         * ToolTip.cs: Made ToolTipWindow reusable for other controls
33577         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
33578         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
33579         * AxHost.cs: Added
33580         * ButtonBase.cs: Moved base.OnPaint() call to end of method
33581         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
33582           to ToolTip.ToolTipWindow for drawing and size methods; this allows
33583           reuse of ToolTipWindow by other controls
33584         * SizeGrip.cs: Moved base.OnPaint() call to end of method
33585         * XplatUIX11.cs: Now clipping drawing area (experimental)
33586         * PictureBox.cs: Moved base.OnPaint() call to end of method
33587         * Theme.cs: Fixed ToolTip abstracts to match new format
33588         * ErrorProvider.cs: Implemented
33589
33590 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
33591
33592         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
33593         * LinkLabel.cs:
33594                 - Adds cursors
33595                 - Handles focus
33596                 - Implements LinkBehavior
33597                 - Fixes many issues
33598
33599 2005-05-03  Jackson Harper  <jackson@ximian.com>
33600
33601         * ListView.cs: Calculate the scrollbar positioning on resize and
33602         paint, so they get put in the correct place.
33603
33604 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33605
33606         * ColorDialogs.cs: The small color panels are now handled by
33607           SmallColorControl. This fixes drawing of the focus rectangle
33608           and adds a 3D border.
33609
33610 2005-05-03  Peter Bartok  <pbartok@novell.com>
33611
33612         * Control.cs: Modified version of Jonathan Chamber's fix for
33613           double-buffering
33614
33615 2005-05-03  Jackson Harper  <jackson@ximian.com>
33616
33617         * ListView.cs: Remove redraw variable. Control now handles whether
33618         or not a redraw needs to be done, and will only raise the paint
33619         event if redrawing is needed.
33620
33621 2005-05-03  Jackson Harper  <jackson@ximian.com>
33622
33623         * Splitter.cs: No decorations for the splitter form. Cache the
33624         hatch brush.
33625
33626 2005-05-03  Jackson Harper  <jackson@ximian.com>
33627
33628         * TreeView.cs: Use dashed lines to connect nodes. Use the
33629         ControlPaint method for drawing the focus rect instead of doing
33630         that in treeview.
33631
33632 2005-05-02  Peter Bartok  <pbartok@novell.com>
33633
33634         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
33635
33636 2005-04-29  Jackson Harper  <jackson@ximian.com>
33637
33638         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
33639         entire image buffer. Just clear the clipping rectangle.
33640
33641 2005-04-29  Jackson Harper  <jackson@ximian.com>
33642
33643         * ThemeWin32Classic.cs: Don't draw list view items that are
33644         outside the clipping rectangle.
33645
33646 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
33647
33648         * ListBox.cs: added horizontal item scroll
33649
33650 2005-04-29  Jackson Harper  <jackson@ximian.com>
33651
33652         * ThemeWin32Classic.cs: Remove some old debug code that was
33653         causing flicker with the new double buffering code.
33654
33655 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
33656
33657         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
33658         behave like combobox and comboboxlist (still not sure if this is
33659         correct though).
33660
33661 2005-04-28  Jackson Harper  <jackson@ximian.com>
33662
33663         * ThemeWin32Classic.cs: Don't fill the middle of progress
33664         bars. This fills areas outside of the clip bounds that don't need
33665         to be filled.
33666
33667 2005-04-28  Jackson Harper  <jackson@ximian.com>
33668
33669         * Control.cs: Don't expose functionality to touch the image buffers.
33670         * ProgressBar.cs:
33671         * ListView.cs: We do not need to (and no longer can) manipulate
33672         the image buffers directly. All of this is handled by Control.
33673
33674 2005-04-28  Peter Bartok  <pbartok@novell.com>
33675
33676         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33677           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
33678           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
33679
33680 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33681
33682         * Combobox:
33683                 - Adjust control's height for non-simple comboboxes (bug fix)
33684                 - Remove dead code
33685         * MenuAPI.cs: remove unused var
33686         * ScrollBar.cs: remove unsed var
33687                  
33688         * ListBox.cs: unselect items when clearing
33689
33690 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33691
33692         * ListControl.cs: honors OnPositionChanged and default Selected Item
33693         * ListBox.cs: unselect items when clearing
33694
33695 2005-04-27  Jackson Harper  <jackson@ximian.com>
33696
33697         * X11Keyboard.cs: Initialize a default keyboard and give a warning
33698         if a "correct" keyboard is not found. This will make us not crash,
33699         but might give some users bad keyboard layouts...seems to be the
33700         same thing rewind does.
33701
33702 2005-04-27  Jackson Harper  <jackson@ximian.com>
33703
33704         * BindingManagerBase.cs: Attach the current/position changed
33705         handlers to their respective events.
33706
33707 2005-04-27  Jackson Harper  <jackson@ximian.com>
33708
33709         * Control.cs: Make sure that the first WM_PAINT does a full draw,
33710         not just a blit.
33711         * ThemeWin32Classic.cs: Don't fill the background for picture
33712         boxes. This could overright user drawing.
33713         * ComboBox.cs: Just fill the clipping rect not the entire client
33714         rect when drawing the background. This prevents pieces of the
33715         image buffer from getting overwritten and is theoretically faster.
33716
33717 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
33718
33719         * ComboBox.cs: Databinding support fixes, fire missing events
33720         * ListControl.cs: implement missing methods and properties, fixes
33721         * ThemeWin32Classic.cs: Databiding support on Drawing
33722         * CheckedListBox.cs: Databinding support fixes, fire missing events
33723         * ListBox.cs: Databinding support fixes, fire missing events
33724         
33725 2005-04-25  Peter Bartok  <pbartok@novell.com>
33726
33727         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
33728
33729 2005-04-25  Jackson Harper  <jackson@ximian.com>
33730
33731         * TreeView.cs: Use the horizontal scrollbars height not width when
33732         determining how much of the client area is available.
33733
33734 2005-04-25  Jackson Harper  <jackson@ximian.com>
33735
33736         * Control.cs: Double buffering is handled differently now. As per
33737         the spec, the extra buffer is created in the WM_PAINT message and
33738         passed down to the control's drawing code.
33739         * GroupBox.cs:
33740         * Label.cs:
33741         * CheckBox.cs:
33742         * ProgressBar.cs:
33743         * RadioButton.cs:
33744         * ColorDialog.cs:
33745         * ComboBox.cs:
33746         * PropertyGridView.cs:
33747         * UpDownBase.cs:
33748         * MessageBox.cs:
33749         * MenuAPI.cs:
33750         * ListView.cs:
33751         * ButtonBase.cs:
33752         * SizeGrip.cs:
33753         * ScrollBar.cs:
33754         * ListBox.cs:
33755         * TrackBar.cs:
33756         * ToolBar.cs:
33757         * PictureBox.cs:
33758         * DateTimePicker.cs:
33759         * StatusBar.cs:
33760         * TreeView.cs: Update to new double buffering system.
33761         * MonthCalendar.cs: Uncomment block, as Capture is now
33762         working. Update to new double buffering
33763         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
33764         * PaintEventArgs.cs: New internal method allows us to set the
33765         graphics object. This is used for double buffering.
33766         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
33767         rectangle. The internal paint_area var has been removed from
33768         StatusBar. The clipping rect should be used instead.
33769         * Theme.cs: Give the PictureBox drawing method a clipping rect.
33770         * TabPage.cs: The RefreshTabs method was removed, so just call the
33771         tab controls Refresh method now.
33772         * TabControl.cs: Update to new double buffering. Make sure the
33773         handle is created before sizing the tab pages, otherwise we will
33774         get stuck in a loop.
33775
33776 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
33777
33778         * LinkLabel.cs: Fix typo, bug #74719; patch
33779           from Borja Sanchez Zamorano
33780
33781 2005-04-22  Jackson Harper  <jackson@ximian.com>
33782
33783         * TreeNode.cs: Implement Handle stuff.
33784         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
33785
33786 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
33787
33788         * DataGridTextBoxColumn.cs: call base constructors, fixes
33789         * GridColumnStylesCollection.cs: missing events, methods, and functionality
33790         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
33791         * DataGridTableStyle.cs: implements create default column styles
33792         * DataGridBoolColumn.cs: which types can handle
33793         * DataGrid.cs: missing methods, fixes, new functionality
33794         * DataGridColumnStyle.cs: fixes
33795
33796 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
33797         * FolderBrowserDialog.cs:
33798         - Use a thread to fill the TreeView
33799         - Adjusted some sizes
33800
33801 2005-04-19  Peter Bartok  <pbartok@novell.com>
33802
33803         * LinkLabel.cs: (Re-)create the pieces when setting the Text
33804           property. Fixes #74360.
33805
33806 2005-04-19  Jackson Harper  <jackson@ximian.com>
33807
33808         * XEventQueue.cs: Lock when getting the lockqueue size.
33809         * PictureBox.cs: Call base OnPaint
33810         
33811 2005-04-19  Peter Bartok  <pbartok@novell.com>
33812
33813         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
33814           messages were no longer being processed (this broke BeginInvoke)
33815
33816           
33817 2005-04-18  Jackson Harper  <jackson@ximian.com>
33818
33819         * TreeView.cs: buglet that caused node images to get drawn
33820         regardless of whether or not they were in the clipping rectangle.
33821
33822 2005-04-18  Jackson Harper  <jackson@ximian.com>
33823
33824         * CurrencyManager.cs: There are four rules for GetItemProperties:
33825         - If the type is an array use the element type of the array
33826         - If the type is a typed list, use the type
33827         - If the list contains an Item property that is not an object, use
33828         that property
33829         - use the first element of the list if there are any elements in
33830         the list.
33831         
33832 2005-04-17  Jackson Harper  <jackson@ximian.oom>
33833
33834         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
33835         click. This handles offsets for scrolling properly and reduces
33836         memory. Also fixed GetNode to not offset now that TopNode works
33837         properly.
33838         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
33839         
33840 2005-04-17  Jackson Harper  <jackson@ximian.com>
33841
33842         * CursorConverter.cs: Initial implementation.
33843
33844 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
33845
33846         * ListControl.cs: work towards complex data binding support on ListControl
33847         * CurrencyManager.cs: work towards complex data binding support on ListControl
33848         * ListBox.cs: work towards complex data binding support on ListControl
33849
33850
33851 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
33852
33853         * GridTableStylesCollection.cs: fixes name and constructor
33854         * DataGridTableStyle.cs: fixes
33855         * DataGridBoolColumn.cs: fixes names and constructors
33856         * DataGrid.cs: define methods and properties. Some init implementations
33857         * DataGridCell.cs: define methods and properties. Some init implementations
33858         * GridTablesFactory.cs: Define methods and properties
33859
33860 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
33861
33862         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
33863         graphics port changes.  We still want the coordinates in global screen
33864         coordinates.
33865
33866 2005-04-14  Jackson Harper  <jackson@ximian.com>
33867
33868         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
33869         check plus minus or checkbox clicks unless those features are enabled.
33870
33871 2005-04-14  Jackson Harper  <jackson@ximian.com>
33872
33873         * TreeView.cs: Add methods for setting the top and bottom visible
33874         nodes. TreeNode::EnsureVisible uses these methods.
33875         * TreeNode.cs: Implement EnsureVisible
33876
33877 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
33878
33879         * Form.cs: Pospone menu assignation if the window has not been created yet
33880         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
33881         size and position
33882
33883 2005-04-12  Jackson Harper  <jackson@ximian.com>
33884
33885         * TreeView.cs: Set the TopNode properly when scrolling
33886         occurs. This has the added benifit of reducing the amount of
33887         walking that needs to be done when drawing. Also removed an old
33888         misleading TODO.
33889         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
33890         
33891 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
33892
33893         * Timer.cs: fixes interval setting when the timer is already enabled
33894         
33895 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
33896
33897         * FolderBrowserDialog.cs: First approach
33898
33899 2005-04-09  Peter Bartok  <pbartok@novell.com>
33900
33901         * FolderBrowserDialog: Added
33902
33903 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
33904
33905         * LinkLabel.cs: move drawing code into the theme
33906         * ThemeWin32Classic.cs: drawing code and painting background bugfix
33907         * Theme.cs: define DrawLinkLabel method
33908
33909 2005-04-05  Jackson Harper  <jackson@ximian.com>
33910
33911         * BindingContext.cs: Use weak references so these bad actors don't
33912         stay alive longer then they need to.
33913
33914 2005-04-05  Jackson Harper  <jackson@ximian.com>
33915
33916         * ListControl.cs: Basic implementation of complex databinding.
33917         * ComboBox.cs:
33918         * ListBox.cs: Add calls to ListControl databinding methods.
33919
33920 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
33921
33922         * FileDialog.cs:
33923           - Don't change PopupButtonState to Normal when the
33924             PopupButton gets pressed several times.
33925           - Renamed ButtonPanel to PopupButtonPanel
33926
33927 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
33928
33929         * ColorDialog.cs: Use cached objects instead of creating them
33930         * LinkLabel.cs: Use cached objects instead of creating them
33931         * Splitter.cs: Use cached objects instead of creating them
33932         * FontDialog.cs: Use cached objects instead of creating them
33933         * PropertyGridView.cs: Use cached objects instead of creating them
33934         * MessageBox.cs: Use cached objects instead of creating them
33935         * FileDialog.cs: Use cached objects instead of creating them
33936         * ThemeWin32Classic.cs: Use cached objects instead of creating them
33937         * TreeView.cs: Use cached objects instead of creating them
33938         
33939 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
33940
33941         * Control.cs: use Equals to compare the font since no == op
33942         * ScrollBar.cs: use Equals to compare the font since no == op
33943
33944 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
33945
33946         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
33947
33948 2005-04-01  Jackson Harper  <jackson@ximian.com>
33949
33950         * Binding.cs: Implement IsBinding.
33951         * BindingManagerBase.cs:
33952         * PropertyManager.cs:
33953         * CurrencyManager.cs: Add IsSuspended property.
33954
33955 2005-04-01  Jackson Harper  <jackson@ximian.com>
33956
33957         * Binding.cs: Had some IsAssignableFrom calls backwards.
33958
33959 2005-04-01  Jackson Harper  <jackson@ximian.com>
33960
33961         * Binding.cs: Handle null data members when pulling data.
33962         * PropertyManager.cs: Handle the data member being a property that
33963         does not exist.
33964
33965 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
33966
33967         * DataGridTextBoxColumn.cs: fixes signature
33968         * DataGrid.cs: calls right constructor
33969
33970 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
33971
33972         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
33973         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
33974         * GridTableStylesCollection.cs: implements GridTableStylesCollection
33975         * DataGridTableStyle.cs: implements DataGridTableStyle
33976         * DataGridBoolColumn.cs: implements DataGridBoolColumn
33977         * DataGridTextBox.cs: implements DataGridTextBox
33978         * DataGridColumnStyle.cs: implements DataGridColumnStyle
33979
33980 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
33981
33982         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
33983
33984 2005-03-29  Peter Bartok  <pbartok@novell.com>
33985
33986         * Application.cs:
33987           - Properly implemented CompanyName property
33988           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
33989             returns a path that includes CompanyName, ProductName and
33990             Version (fixes bug #70330)
33991
33992 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
33993
33994         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
33995           fixes bug #72588.
33996
33997 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
33998
33999         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
34000         
34001           - Added ReadOnly CheckBox
34002           - Further refactoring: moved some code from Open-/SaveFileDialog
34003             to FileDialog
34004
34005 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34006
34007         * OpenFileDialog.cs: Fixed CheckFileExists
34008         * FileDialog.cs:
34009           Moved FileView and DirComboBox outside FileDialog class.
34010           They can now be used outside FileDialog
34011
34012 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34013
34014         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
34015         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
34016
34017 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34018
34019         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34020           - Added missing CreatePrompt property in SaveDialog
34021           - Overall SaveDialog handling should be better now
34022           - Added non standard ShowHiddenFiles property
34023           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
34024           - Added InitialDirectory and RestoreDirectory support
34025
34026 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
34027
34028         * FileDialog.cs: Made dirComboBox usable
34029
34030 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
34031
34032         * FileDialog.cs: Added Filter support (case sensitiv)
34033
34034 2005-03-24  Jackson Harper  <jackson@ximian.com>
34035
34036         * TabControl.cs: Need a couple more pixels for the lines.
34037
34038 2005-03-23  Jackson Harper  <jackson@ximian.com>
34039
34040         * TabControl.cs: Give the tab page focus when it is selected.
34041
34042 2005-03-23  Jackson Harper  <jackson@ximian.com>
34043
34044         * TabControl.cs: Account for the drawing of tabs borders when
34045         invalidating. If the slider was clicked dont do click detection on
34046         the tabs.
34047
34048 2005-03-23  Jackson Harper  <jackson@ximian.com>
34049
34050         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
34051
34052 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
34053
34054         * CategoryGridEntry.cs: Added
34055         * GridItem.cs: Added helper properties
34056         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
34057         * GridEntry.cs: Updated code for collection
34058         * PropertyGrid.cs: Cleaned up some formatting
34059         * PropertyGridView.cs: Added drop down functionality for enums.
34060         * GridItemCollection.cs: Added enumerator logic
34061         * PropertyGridEntry.cs: Added
34062
34063 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34064
34065         * FileDialog.cs:
34066           - Removed unnecessary commented code
34067           - Fixed handling for entering the filename manually in the combobox
34068
34069 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34070
34071         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
34072
34073 2005-03-18  Peter Bartok  <pbartok@novell.com>
34074
34075         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
34076           them being touching the border
34077
34078 2005-03-18  Peter Bartok  <pbartok@novell.com>
34079
34080         * TextControl.cs: Quick hack to center text better
34081
34082 2005-03-18  Peter Bartok  <pbartok@novell.com>
34083
34084         * ControlPaint.cs:
34085           - Don't throw NotImplemented exceptions, just print a notice once
34086             instead (requested by Miguel). This makes running existing SWF
34087             apps a bit easier
34088         * Control.cs:
34089           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
34090           - Added context menu trigger on right click
34091         * Panel.cs: Trigger invalidate on resize
34092         * StatusBar.cs:
34093           - Removed old double-buffer drawing
34094           - Added ResizeRedraw style to force proper update of statusbar
34095         * ListView.cs:
34096           - Removed debug output
34097         * ThemeWin32Classic.cs:
34098           - Fixed drawing of status bar, now draws Text property if there
34099             are no defined panels
34100
34101 2005-03-18  Jackson Harper  <jackson@ximian.com>
34102
34103         * ImageList.cs: When the image stream is set pull all the images
34104         from it.
34105         * ImageListStreamer.cs: Implement reading image list streams.
34106
34107 2005-03-18  Peter Bartok  <pbartok@novell.com>
34108
34109         * ThemeWin32Classic.cs (DrawPictureBox):
34110           - Fixed calculations for centered drawing
34111           - Fixed drawing for normal mode, not scaling the image on normal
34112
34113 2005-03-18  Peter Bartok  <pbartok@novell.com>
34114
34115         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
34116           textbox
34117         * FileDialog.cs:
34118           - Made Open/Save button the accept button for FileDialog
34119           - Tied the cancel button to the IButtonControl cancel button
34120           - Save/Open now properly builds the pathname
34121           - Now handles user-entered text
34122           - Preventing crash on right-click if no item is selected
34123           - Fixed Text property, now uses contents of textbox
34124           - Fixed SelectedText property, now just returns the text part that
34125             is selected in the text box
34126
34127 2005-03-18  Jackson Harper  <jackson@ximian.com>
34128
34129         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
34130         rect, make sure to de-adjust the interior rect after drawing the
34131         tab text.
34132
34133 2005-03-18  Peter Bartok  <pbartok@novell.com>
34134
34135         * MenuAPI.cs: Remove menu *before* executing selected action to
34136           prevent the menu from 'hanging around'
34137           
34138 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
34139
34140         * XplatUIOSX.cs: Implemented WorkingArea property
34141
34142 2005-03-17  Peter Bartok  <pbartok@novell.com>
34143
34144         * XplatUIX11.cs: Fixed menu coord calculations
34145         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
34146           for calculating offsets
34147
34148 2005-03-17  Peter Bartok  <pbartok@novell.com>
34149
34150         * Hwnd.cs: Do not consider menu presence for default client
34151           rectangle location/size
34152         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
34153           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
34154           translation functions
34155         * FileDialog.cs: Fixed (what I presume is a) typo
34156
34157 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
34158
34159         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
34160           X access (avoids X-Async errors)
34161
34162 2005-03-16  Jackson Harper  <jackson@ximian.com>
34163
34164         * TabControl.cs: Raise the SelectedIndexChanged event.
34165
34166 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
34167
34168         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34169           - Removed vertical ToolBar and replaced it with a custom panel
34170             (desktop and home button already work)
34171           - Added Help button (some controls get resized or relocated then)
34172           - Draw correct text depending on Open or Save.
34173           - Fixed some typos...
34174
34175 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
34176
34177         * ScrollBar.cs:
34178           - Only change Maximum and Minimum when need it (bug fix)
34179
34180 2005-03-15  Peter Bartok  <pbartok@novell.com>
34181
34182         * Form.cs: Use Handle for icon, to trigger creation if
34183           the window does not yet exist
34184         * Control.cs:
34185           - CanSelect: Slight performance improvement
34186           - Focus(): Preventing possible recursion
34187           - Invalidate(): Removed ControlStyle based clear flag setting
34188           - WM_PAINT: fixed logic for calling OnPaintBackground
34189           - WM_ERASEBKGND: Fixed logic, added call to new driver method
34190             EraseWindowBackground if the control doesn't paint background
34191         * XplatUIWin32.cs:
34192           - Moved EraseWindowBackground() method to internal methods
34193           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
34194             is sent via SendMessage on BeginPaint call on Win32
34195         * XplatUIX11.cs:
34196           - Added EraseWindowBackground() method
34197           - No longer sends WM_ERASEBKGND on .Expose, but on call to
34198             PaintEventStart, which more closely matches Win32 behaviour
34199           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
34200           - Fixed SetFocus() to properly deal with client and whole windows
34201         * Hwnd.cs: Added ErasePending property
34202         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
34203         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
34204
34205 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
34206
34207         * XplatUIOSX.cs:
34208           - Fix hard loop when timers exist.
34209           - Fix bugs with middle and right click for 3 button mice.
34210
34211 2005-03-11  Peter Bartok  <pbartok@novell.com>
34212
34213         * XplatUIX11.cs:
34214           - get_WorkingArea: Need to call X directly, GetWindowPos only
34215             returns cached data now
34216           - Added sanity check to GetWindowPos hwnd usage
34217
34218 2005-03-11  Jackson Harper  <jackson@ximian.com>
34219
34220         * BindingManagerBase.cs: This method isn't used anymore as
34221         PullData now updates the data in the control.
34222
34223 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
34224
34225         * Form.cs: fixes menu drawing on X11
34226         * MenuAPI.cs:  fixes menu drawing on X11
34227
34228 2005-03-11  Peter Bartok  <pbartok@novell.com>
34229
34230         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
34231           from Jonathan Gilbert; should fix bug #73606
34232         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
34233           in Screen coordinates. Thanks, Jordi.
34234         * Form.cs: Added missing attribute
34235
34236 2005-03-11  Peter Bartok  <pbartok@novell.com>
34237
34238         * Form.cs:
34239           - Rudimentary Mdi support
34240           - Removed outdated FormParent code
34241           - Implemented lots of missing properties and methods, still missing
34242             transparency support
34243           - Added missing attributes
34244           - Implemented support for MaximumBounds
34245           - Added firing of various events
34246         * XplatUI.cs: Added SetIcon() method
34247         * XplatUIDriver.cs: Added SetIcon() abstract
34248         * XplatUIOSX.cs: Stubbed out SetIcon() method
34249         * XplatUIX11.cs:
34250           - Implemented SetIcon() support
34251           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
34252           - Switched to unix line endings
34253         * XplatUIWin32.cs:
34254           - Made POINT internal so for can access it as part of MINMAX
34255           - Implemented SetIcon() support
34256           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
34257             native Mdi support again, might have to go managed)
34258         * Control.cs: Now fires the StyleChanged event
34259         * MdiClient.cs: Added; still mostly empty
34260
34261 2005-03-10  Peter Bartok  <pbartok@novell.com>
34262
34263         * SaveFileDialog.cs: Added emtpy file
34264
34265 2005-03-08  Peter Bartok  <pbartok@novell.com>
34266
34267         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
34268           in turn triggers OnCreateContro) when creating a handle for the
34269           first time.
34270         * TextControl.cs: Fixed endless loop in certain cases when
34271           replacing the current selection
34272
34273 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
34274
34275         * ScrollBar.cs:
34276           - Honors NewValue changes in Scroll events allowing apps to change it
34277           - Adds First and Last Scroll events
34278           - Fixes Thumb events
34279
34280 2005-03-07  Peter Bartok  <pbartok@novell.com>
34281
34282         * Hwnd.cs: Added DefaultClientRectangle property
34283         * XplatUI.cs: Now using the X11 driver Where() method, which provides
34284           more detailed debug information
34285         * XplatUIX11.cs:
34286           - Fixed size-change feedback loop, where we would pull an old size
34287             off the queue and mistakenly change our window's size to an
34288             earlier value
34289           - Now compressing ConfigureNotify events, to reduce looping and
34290             redraw issues
34291         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
34292           is called
34293
34294 2005-03-07  Jackson Harper  <jackson@ximian.com>
34295
34296         * Binding.cs: Push data pushes from data -> property. Check if the
34297         property is readonly when attempting to set it.
34298
34299 2005-03-07  Jackson Harper  <jackson@ximian.com>
34300
34301         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
34302         instead of IsSubclassOf. Pulling data now sets the value on the
34303         control.
34304         * PropertyManager.cs:
34305         * CurrencyManager.cs: Just need to pull data when updating now,
34306         because PullData will set the value on the control.
34307
34308 2005-03-04  Jackson Harper  <jackson@ximian.com>
34309
34310         * Binding.cs: Implement data type parsing and converting on pulled
34311         data. TODO: Are there more ways the data can be converted?
34312
34313 2005-03-04  Jackson Harper  <jackson@ximian.com>
34314
34315         * Binding.cs: Support <Property>IsNull checks. Also bind to the
34316         controls Validating method so we can repull the data when the
34317         control loses focus.
34318
34319 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
34320
34321         * ColumnHeader.cs:
34322           - Fixes null string format
34323           
34324         * ListView.cs:
34325           - Adds enum type checks
34326           - Fixes redrawing and recalc need after changing some properties
34327           - Fixes on focus_item set after the event
34328           - Fixes adding columns after the control has been created
34329           
34330         * ThemeWin32Classic.cs:
34331           - Fixes CheckBox focus rectangle
34332           - Fixes ColumnHeader drawing
34333
34334
34335 2005-03-03  Jackson Harper  <jackson@ximian.com>
34336
34337         * Binding.cs: Bind to <Property>Changed events so we can detect
34338         when properties are changed and update the data.
34339
34340 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
34341
34342         * ImageList.cs:
34343           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
34344           - Fixes ImageList constructor with ImageList container
34345           - Fixes image scaling (wrong parameters at DrawImage)
34346
34347 2005-02-02  Jackson Harper  <jackson@ximian.com>
34348
34349         * Binding.cs: Make property searches case-insensitive. Eliminate
34350         some duplicated code.
34351
34352 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
34353
34354         * ComboBox.cs:
34355                 - Handle focus event
34356                 - Fix scrollbar events
34357                 - Discard highlighted item if remove it
34358                 - Fixes SelectedItem with strings
34359
34360 2005-03-01  Peter Bartok  <pbartok@novell.com>
34361
34362         * Control.cs:
34363           - Fixed Visible property, now follows (once again) parent chain
34364             to return false if any control in the chain is visible=false
34365           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
34366           - Fixed several places where is_visible instead of Visible was used
34367           - Implemented FIXME related to focus selection when setting focused
34368             control to be invisible
34369
34370         * XplatUIWin32.cs: Now using proper method to find out if window is
34371           visible. Thanks to Jordi for pointing it out
34372
34373 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
34374
34375         * ComboBox.cs: show/hide scrollbar instead of creating it
34376
34377 2005-02-27  Jackson Harper  <jackson@ximian.com>
34378
34379         * CurrencyManager.cs: Add PositionChanged stuff.
34380
34381 2005-02-27  Peter Bartok  <pbartok@novell.com>
34382
34383         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
34384         * XplatUIOSX.cs: Added GetMenuOrigin() stub
34385         * XplatUIWin32.cs: Implemented GetMenuOrigin()
34386         * XplatUIX11.cs:
34387           - Implemented GetMenuDC()
34388           - Implemented GetMenuOrigin()
34389           - Implemented ReleaseMenuDC()
34390           - Implemented generation of WM_NCPAINT message
34391           - Implemented generation and handling of WM_NCCALCSIZE message
34392         * Form.cs: Added debug helper message for Jordi's menu work
34393         * Hwnd.cs:
34394           - Modified ClientRect property; added setter, fixed getter to handle
34395             setting of ClientRect
34396           - Added MenuOrigin property
34397
34398 2005-02-26  Peter Bartok  <pbartok@novell.com>
34399
34400         * XplatUIX11.cs:
34401           - Destroys the caret if a window that's being destroyed contains it
34402           - Ignores expose events coming from the X11 queue for windows that
34403             already are destroyed
34404           - Now uses the proper variable for handling DestroyNotify, before we
34405             marked the wrong window as destroyed
34406           - Improved/added some debug output
34407
34408 2005-02-26  Peter Bartok  <pbartok@novell.com>
34409
34410         * X11Keyboard.cs: Fixes to work on 64bit systems
34411
34412 2005-02-26  Peter Bartok  <pbartok@novell.com>
34413
34414         * Control.cs:
34415           - Now calling OnHandleDestroyed from DestroyHandle()
34416             instead of Dispose()
34417           - Removed bogus call to controls.Remove() from DestroyHandle()
34418
34419 2005-02-26  Peter Bartok  <pbartok@novell.com>
34420
34421         * Control.cs: Properly destroy child windows when our handle is
34422           destroyed
34423
34424 2005-02-25  Peter Bartok  <pbartok@novell.com>
34425
34426         * XplatUI.cs:
34427           - Added 'DriverDebug' define to allow tracing XplatUI API calls
34428           - Alphabetized Static Methods and Subclasses
34429
34430         * XplatUIX11.cs:
34431           - Added XException class to allow custom handling of X11 exceptions
34432           - Created custom X11 error handler, tied into XException class
34433           - Added support for MONO_XEXCEPTIONS env var to allow the user
34434             to either throw an exception on X errors or continue running
34435             after displaying the error
34436           - Added handling of DestroyNotify message
34437           - Added handler for CreateNotify message (still disabled)
34438           - Improved (tried to at least) Where method to provide file and lineno
34439         * X11Structs.cs:
34440           - Added XErrorHandler delegate
34441           - Added XRequest enumeration (to suppor translation of errors)
34442
34443 2005-02-25  Jackson Harper  <jackson@ximian.com>
34444
34445         * PropertyManager.cs: Implement editing features
34446         * CurrencyManager.cs:
34447         * Binding.cs: First attempt at UpdateIsBinding
34448         * BindingManagerBase.cs: Call UpdateIsBinding before
34449         pushing/pulling data.
34450
34451 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
34452
34453         * MenuAPI.cs: Respect disabled items
34454         * ThemeWin32Classic.cs
34455                 - Caches ImageAttributes creation for DrawImageDisabled
34456                 - Fixes vertical menu line drawing
34457                 - Draws disabled arrows in disable menu items
34458
34459 2005-02-24  Peter Bartok  <pbartok@novell.com>
34460
34461         * Hwnd.cs:
34462           - Added UserData property to allow associating arbitrary objects
34463             with the handle
34464           - Fixed leak; now removing Hwnd references from static windows array
34465         * XplatUIWin32.cs:
34466           - Fixed Graphics leak in PaintEventEnd
34467           - Removed usage of HandleData, switched over to Hwnd class
34468         * HandleData.cs: Removed, obsoleted by Hwnd.cs
34469
34470 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34471
34472         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
34473         * ScrollBar.cs: Fixes bug
34474         * TrackBar.cs: removes death code, clipping, mimize refreshes,
34475          keyboard navigation enhancements
34476
34477 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34478
34479         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
34480         * GroupBox.cs: Add control styles
34481         * Label.cs: Add control styles
34482         * UpDownBase.cs: Add control styles
34483         * ListBox.cs: Add control styles
34484         * XplatUIWin32.cs: Fixes wrong parameter order
34485
34486
34487 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
34488
34489         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
34490
34491 2005-02-23  Jackson Harper  <jackson@ximian.com>
34492
34493         * PropertyManager.cs: Implement property binding. This doesn't
34494         seem to work yet though as (I think) there are some bugs in
34495         System.ComponentModel.PropertyDescriptor.
34496         * BindingContext.cs: Use new PropertyManager constructor.
34497
34498 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
34499
34500         * ProgressBar.cs: use clip region in ProgressBar
34501         * ThemeWin32Classic.cs: use clip region in ProgressBar
34502
34503 2004-02-22  Jackson Harper  <jackson@ximian.com>
34504
34505         * BindingsCollection.cs: Remove some debug code.
34506
34507 2005-02-22  Jackson Harper  <jackson@ximian.com>
34508
34509         * BindingContext.cs:
34510         * ControlBindingsCollection.cs:
34511         * CurrencyManager.cs:
34512         * Binding.cs:
34513         * BindingManagerBase.cs: Initial implementation
34514         * BindingsCollection.cs: Add an internal contains method that the
34515         BindingManagerBase uses to ensure bindings aren't added twice to
34516         the collection.
34517         * PropertyManager.cs: Stubbed out.
34518         * Control.cs:
34519         * ContainerControl.cs: Hook up databinding
34520         
34521 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
34522
34523         * XplatUIOSX.cs:
34524           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
34525           Fixed Invalidate/Update chain.
34526           Fixed tons of other minor bugs (this is almost a complete rewrite).
34527
34528 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
34529
34530         * ComboBox.cs: do subcontrol creation when the control is created
34531
34532 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34533
34534         * Label.cs: fixes image drawing (image and imagelist)
34535         * ThemeWin32Classic.cs: cache brushes
34536         
34537 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34538
34539         * Form.cs: Move menu drawing code to Theme class
34540         * ComboBox.cs: Move ComboBox drawing code to Theme class
34541         * MenuItem.cs: Move menu drawing code to Theme class
34542         * MenuAPI.cs: Move menu drawing code to Theme class
34543         * ThemeWin32Classic.cs: New methods
34544         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
34545         * ListBox.cs: Move Listbox drawing code to Theme class
34546         * Theme.cs: New methods
34547
34548 2005-02-20  Peter Bartok  <pbartok@novell.com>
34549
34550         * Control.cs:
34551           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
34552             only process mnemonics on those)
34553           - Fixed event sequence for key handling; first calling
34554             ProcessKeyEventArgs now
34555         * TextBoxBase.cs:
34556           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
34557             for processing non-character keys
34558           - Fixed WM_CHAR to generate proper event sequence before processing
34559         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
34560           generation
34561
34562 2005-02-19  Peter Bartok  <pbartok@novell.com>
34563
34564         * UserControl.cs: Added TextChanged event; added attributes
34565         * SizeGrip.cs: Implemented resizing and optional display of grip
34566         * Form.cs: Fixed attribute
34567         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34568           Changed meaning of ScrollWindow bool argument; instead of the
34569           clear attribute (which will be true usually anyway), it gives the
34570           option of moving child controls as well.
34571         * XplatUIX11.cs:
34572           - Changed to match new ScrollWindow argument
34573           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
34574             now handles the implicit parent window a WM puts around us
34575         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
34576           to work)
34577         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
34578         * TreeView.cs: Adjusted to new ScrollWindow arguments
34579
34580 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34581
34582         * Form.cs: Menu integration with non-client area
34583         * MenuItem.cs: Menu integration with non-client area
34584         * MenuAPI.cs: Menu integration with non-client area
34585
34586 2005-02-18  Peter Bartok  <pbartok@novell.com>
34587
34588         * MethodInvoker.cs: Added
34589         * MdiLayout.cs: Added
34590         * SendKeys.cs: Started implementation
34591         * ErrorIconAlignment.cs: Added
34592
34593 2005-02-18  Peter Bartok  <pbartok@novell.com>
34594
34595         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
34596         * Form.cs: Added handling for Menu-related Non-client messages
34597
34598 2005-02-17  Peter Bartok  <pbartok@novell.com>
34599
34600         * UpDownBase.cs: Fixed typo, compilation errors
34601         * DomainUpDown.cs: Fixed attribute value
34602
34603 2005-02-16  Miguel de Icaza  <miguel@novell.com>
34604
34605         * UpDownBase.cs: Attach entry events.
34606         Propagate events.
34607         Add ForeColor property, Focused, InterceptArrowKeys (interception
34608         does not work yet).
34609
34610 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
34611
34612         * Form.cs:
34613                 - Redraw non client are on Setmenu
34614                 - Calc proper menu starting point
34615
34616 2005-02-17  Peter Bartok  <pbartok@novell.com>
34617
34618         * Application.cs: Fixed message_filter check
34619
34620 2005-02-17  Peter Bartok  <pbartok@novell.com>
34621
34622         * Application.cs: Now calls registered message filters
34623         * DockStyle.cs: Fixed attribute
34624         * Form.cs: Fixed attribute
34625         * Menu.cs: Fixed attribute
34626         * ToolTip.cs: Fixed attribute
34627         * TreeNode.cs: Added missing attributes and arranged in regions
34628         * PropertyGrid.cs: Fixed signatures
34629         * TreeNodeCollection.cs: Added attributes
34630         * Splitter.cs: Added missing attributes; arranged into regions
34631         * TabPage.cs: Added missing attributes; arranged into regions
34632         * TextBoxBase.cs: Added missing attributes
34633         * TextBox.cs: Added missing attributes
34634         * ArrangeDirection.cs: Added missing attributes
34635         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
34636         * ToolBarButton.cs: Fixed attributes
34637         * AnchorStyles.cs: Fixed attribute
34638         * TrackBar.cs: Fixed attributes
34639         * TabControl.cs: Added missing attributes and arranged into regions
34640         * ToolBar.cs: Fixed attribute
34641         * StatusBar.cs: Fixed signature, organized into regions and added
34642           attributes
34643         * StatusBarPanel.cs: Fixed attributes
34644         * ContentsResizedEventArgs.cs: Implemented
34645         * ContentsResizedEventHandler.cs: Implemented
34646         * DateBoldEventArgs.cs: Implemented
34647         * DateBoldEventHandler.cs: Implemented
34648         * UpDownEventArgs.cs: Implemented
34649         * UpDownEventHandler.cs: Implemented
34650         
34651 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
34652
34653         * Form.cs: first Menu NC refactoring
34654         * MenuAPI.cs: first Menu NC refactoring
34655         
34656 2005-02-16  Peter Bartok  <pbartok@novell.com>
34657
34658         * ImeMode.cs: Added missing attributes
34659         * Menu.cs: Fixed attribute
34660         * GroupBox.cs: Fixed attribute
34661         * Label.cs: Fixed attribute
34662         * ColorDialog.cs (RunDialog): Removed TODO attribute
34663         * ComboBox.cs: Fixed attributes
34664         * ListControl.cs: Added missing attributes
34665         * PropertyGrid.cs: Fixed attributes
34666         * Control.cs: Fixed attributes
34667         * ListViewItem.cs: Added TypeConverter attribute
34668         * NotifyIcon.cs: Fixed attributes
34669         * ListView.cs: Fixed attributes
34670         * ButtonBase.cs: Fixed attribute
34671         * ImageList.cs: Added missing attributes
34672         * ContainerControl.cs: Fixed signature
34673         * CheckedListBox.cs: Fixed attribute; added missing attributes
34674         * Panel.cs: Fixed attributes
34675         * PropertyTabChangedEventArgs.cs: Added missing attribute
34676         * PropertyValueChangedEventArgs.cs: Added missing attribute
34677         * Binding.cs: Fixed attribute
34678         * ListViewItemConverter: Implemented ListViewSubItemConverter class
34679         * ListBox.cs: Fixed attribute; added missing attributes;
34680         * ScrollableControl.cs: Added missing attributes
34681         * PictureBox.cs: Added missing attributes; implemented missing property
34682         * DateTimePicker.cs: Added missing attributes
34683         * Theme.cs (ToolWindowCaptionHeight): Fixed type
34684         * MonthCalendar.cs: Fixed attributes
34685         * StatusBarPanel.cs: Added missing attributes
34686         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
34687
34688 2005-02-16  Peter Bartok  <pbartok@novell.com>
34689
34690         * TextBoxBase.cs: The previous method to enforce height yet remember
34691           the requested high was less than ideal, this is an attempt to do
34692           it better.
34693         * Control.cs: Added comment about possible problem
34694         * Copyright: Updated format
34695         * GridItemType.cs: Fixed swapped values
34696
34697 2005-02-15  Jackson Harper  <jackson@ximian.com>
34698
34699         * BaseCollection.cs: Use property so we never access an
34700         uninitialized list. Also initialize the list in the property.
34701
34702 2005-02-15  Peter Bartok  <pbartok@novell.com>
34703
34704         * GroupBox.cs (ProcessMnemonic): Implemented
34705         * Label.cs (ProcessMnemonic): Implemented
34706         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
34707           hotkeys
34708
34709 2005-02-15  Peter Bartok  <pbartok@novell.com>
34710
34711         * RadioButton.cs (ProcessMnemonic): Implemented
34712         * CheckBox.cs (ProcessMnemonic): Implemented
34713         * Control.cs:
34714           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
34715             handling
34716           - Added internal method to allow calling ProcessMnemonic from other
34717             controls
34718         * ContainerControl.cs:
34719           - Started support for handling validation chain handling
34720           - Implemented ProcessMnemonic support
34721           - Added Select() call to Active, to make sure the active control
34722             receives focus
34723         * Form.cs: Setting toplevel flag for Forms (this was lost in the
34724           FormParent rewrite)
34725         * ThemeWin32Classic.cs:
34726           - DrawCheckBox(): Fixed stringformat to show hotkeys
34727           - DrawRadioButton(): Fixed stringformat to show hotkeys
34728         * CommonDialog.cs: Removed WndProc override, not needed
34729
34730 2005-02-14  Peter Bartok  <pbartok@novell.com>
34731
34732         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
34733           missed those in the rewrite
34734
34735 2005-02-14  Miguel de Icaza  <miguel@novell.com>
34736
34737         * NumericUpDown.cs (Increment, ToString): Add.
34738         (DecimalPlaces): implement.
34739         
34740         Add attributes.
34741         
34742         * UpDownBase.cs: Add the designer attributes.
34743
34744 2005-02-13  Peter Bartok  <pbartok@novell.com>
34745
34746         * Panel.cs: Removed border_style, now in Control
34747         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
34748           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
34749
34750 2005-02-13  Peter Bartok  <pbartok@novell.com>
34751
34752         * MouseButtons.cs: Added missing attributes
34753         * XplatUIStructs.cs: Added enumeration for title styles
34754         * LeftRightAlignment.cs: Added missing attributes
34755         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
34756           it compatible with Graphics.FromHwnd()
34757         * SelectedGridItemChangedEventArgs.cs: Fixed property type
34758         * Keys.cs: Added missing attributes
34759         * SelectionRange.cs: Added missing attributes
34760         * SelectionRangeConverter.cs: Added
34761         * XplatUI.cs:
34762           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
34763             ReleaseMenuDC methods
34764           - Renamed ReleaseWindow to UngrabWindow
34765           - Added proper startup notice to allow version identification
34766         * Form.cs:
34767           - Added missing attributes
34768           - Removed FormParent concept
34769         * Label.cs: Removed border_style field, now in Control
34770         * RadioButton.cs: Now properly selects RadioButton when focus is
34771           received
34772         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
34773         * Control.cs:
34774           - Added missing attributes
34775           - Added borderstyle handling
34776           - Removed FormParent concept support
34777           - Fixed calls to XplatUI to match changed APIs
34778           - Fixed bug that would case us to use disposed Graphics objects
34779           - Removed unneeded internal methods
34780           - PerformLayout(): Fixed to handle DockStyle.Fill properly
34781           - SelectNextControl(): Fixed to properly check common parents
34782         * TextBoxBase.cs: Removed border_style field (now in Control)
34783         * MessageBox.cs:
34784           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
34785             fixed calculations for form size
34786           - Added support for localized strings and icons
34787           - Improved form size calculations, added border
34788         * ListView.cs: Removed border_style field (now in Control)
34789         * X11Structs.cs: Moved several structs from X11 driver here
34790         * X11Keyboard.cs: Changed debug message
34791         * Application.cs: Removed FormParent concept support
34792         * CommonDialog.cs:
34793           - Resetting end_modal flag
34794           - Removed FormParent concept support
34795         * NativeWindow.cs: Removed FormParent concept support
34796         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
34797           Client area and Non-Client whole window to allow support for WM_NC
34798           messages
34799         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
34800           prevent using it until it supports Hwnd as per Geoff Norton's request
34801         * ToolBar.cs: Fixed drawing, was not doing proper drawing
34802         * PictureBox.cs: Removed border_style field, now in Control
34803         * XplatUIWin32.cs: Added new driver methods
34804
34805 2005-02-12  Peter Bartok  <pbartok@novell.com>
34806
34807         * OpacityConverter.cs: Implemented
34808         * Hwnd.cs: Internal class to support drivers that need to emulate
34809           client area/non-client area window behaviour
34810
34811 2005-02-11  Peter Bartok  <pbartok@novell.com>
34812
34813         * KeysConverter.cs: Implemented
34814
34815 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
34816
34817         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
34818         * LinkLabel: Added missing attributes
34819         * MainMenu.cs: fixes ToString
34820         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
34821         * ListBox.cs: fixes event position
34822         * TrackBar.cs: adds missing attributes and events
34823         
34824 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
34825
34826         * MenuItem.cs: Use SystemInformation and bug fixes
34827         * MenuAPI.cs: Use SystemInformation and bug fixes
34828
34829 2005-02-09  Jackson Harper  <jackson@ximian.com>
34830
34831         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
34832         their keystate otherwise things like VK_MENU get stuck "on".
34833
34834 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
34835
34836         * ListBox.cs: Fixes AddRange bug
34837         
34838 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
34839
34840         * ProgressBar.cs
34841                 - Add missing attributes
34842                 - Add missing method
34843                 
34844         * CheckedListBox.cs: Added missing attributes
34845                 - Add missing attributes
34846                 - Remove extra method
34847         
34848         * ComboBox.cs: Added missing attributes
34849         * VScrollBar.cs: Added missing attributes
34850         * ScrollBar.cs:  Added missing attributes
34851         * ListBox.cs: Fixes signature, add missing consts
34852         * LinkArea.cs:   Added missing attributes
34853         
34854
34855 2005-02-08  Peter Bartok  <pbartok@novell.com>
34856
34857         * Menu.cs: Added missing attributes
34858         * MainMenu.cs: Added missing attributes
34859         * GroupBox.cs: Added missing attributes
34860         * Label.cs: Added missing attributes
34861         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
34862         * ColorDialog.cs:
34863           - Added Instance and Options properties
34864           - Added missing attributes
34865         * Cursor.cs: Made Serializable
34866         * NotifyIcon: Added missing attributes
34867         * MenuItem.cs: Added missing attributes
34868         * TextBoxBase.cs: Implemented AppendText() and Select() methods
34869         * Panel.cs: Added Missing attributes
34870         * MonthCalendar.cs: Fixed CreateParams
34871
34872 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
34873         
34874         * LinkLabel.cs:
34875                 - Fixes signature
34876                 - Fixes issues with links
34877                 - Adds the class attributes
34878
34879 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
34880         
34881         * ComboBox.cs:
34882                 - Fixes button when no items available in dropdown
34883                 - Fixes repainting problems
34884                 - Adds the class attributes
34885                 
34886 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
34887
34888         * XplatUIOSX.cs: Detect the menu bar and title bar height from
34889         the current theme.  Cache these on startup.
34890
34891 2005-02-07  Jackson Harper  <jackson@ximian.com>
34892
34893         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
34894         the scrollbar buttons when they are depressed.
34895
34896 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
34897
34898         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
34899         Get the display size from the main displayid.  We currently dont
34900         support multiple display configurations.
34901
34902 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
34903
34904         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
34905
34906 2005-02-07  Miguel de Icaza  <miguel@novell.com>
34907
34908         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
34909
34910 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
34911
34912         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
34913
34914 2005-02-04  Jackson Harper  <jackson@ximian.com>
34915
34916         * ThemeWin32Classic.cs: Respect the clipping rect when
34917         drawing. Only fill the intersection of clips and rects so there
34918         isn't a lot of large fills.
34919         * ScrollBar.cs: Pass the correct clipping rect to the theme
34920         engine. Remove some debug code.
34921
34922 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
34923         
34924         * DateTimePicker.cs:
34925                 - Fixed crash on DateTime.Parse, use Constructor instead
34926
34927 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
34928         
34929         * MenuItem.cs:
34930         * MenuAPI.cs:
34931                 - Owner draw support (MeasureItem and DrawItem)
34932
34933 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
34934         
34935         *  Menu.cs:
34936                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
34937                 - Fixes MenuItems.Add range
34938         * MenuItem.cs:
34939                 - MergeMenu and Clone and CloneMenu functions
34940
34941 2005-02-03  Jackson Harper  <jackson@ximian.com>
34942
34943         * ScrollBar.cs: Make abstract
34944         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
34945         is abstract.
34946
34947 2005-02-03  Jackson Harper  <jackson@ximian.com>
34948
34949         * ScrollBar.cs: First part of my scrollbar fixups. This removes
34950         all the unneeded refreshes and uses invalidates with properly
34951         computed rects.
34952
34953 2005-02-03  Peter Bartok  <pbartok@novell.com>
34954
34955         * ComponentModel.cs: Added
34956         * IDataGridEditingService.cs: Added
34957         * Timer.cs: Added missing attributes
34958         * ToolTip.cs: Added missing attributes
34959
34960 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
34961
34962         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
34963
34964 2005-02-03  Peter Bartok  <pbartok@novell.com>
34965
34966         * ListBox.cs: Added missing attributes
34967
34968 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
34969         
34970         * ListBox.cs:
34971                 - Fixes font height after font change
34972                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
34973                 
34974 2005-02-02  Peter Bartok  <pbartok@novell.com>
34975
34976         * HandleData.cs: Introduced static methods to allow class
34977           to be more self-contained and track it's own HandleData objects
34978         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
34979           HandleData to use new static methods
34980
34981 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
34982
34983         * Combobox.cs:
34984                 - Fixes default size and PreferredHeight
34985                 - Missing events
34986                 - ObjectCollection.Insert implementation
34987                 
34988         * ListControl.cs
34989                 - Fixes signature
34990         * ListBox.cs:
34991                 - Several fixes
34992                 - ObjectCollection.Insert implementation
34993                 - No selection after clean
34994                 - Small fixes
34995
34996 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
34997
34998         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
34999
35000 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
35001
35002         * Combobox.cs:
35003                 - Caches ItemHeight calculation for OwnerDrawVariable
35004                 - Handles dropdown properly
35005                 - Fixes several minor bugs
35006
35007 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35008
35009         * ListBox.cs:
35010                 - Fixes 71946 and 71950
35011                 - Fixes changing Multicolumn on the fly
35012                 - Fixes keyboard navigation on Multicolumn listboxes
35013
35014 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35015         
35016         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
35017         crash reporter log.
35018
35019 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35020
35021         * XplatUIOSX.cs: Allow applications to actually exit.
35022
35023 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35024
35025         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
35026         their parent at creation time rather than lazily later.  Fixes a major
35027         regression we were experiencing.
35028
35029 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35030
35031         * ThemeWin32Classic.cs: more date time picker painting fixes
35032         * DateTimePicker.cs: more monthcalendar drop down fixes
35033         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
35034
35035 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35036
35037         * ScrollBar.cs:
35038                 - When moving the thumb going outside the control should stop the moving
35039                 - Adds the firing of missing events
35040                 - Fixes no button show if Size is not specified
35041                 - End / Home keys for keyboard navigation
35042
35043 2005-01-30  Peter Bartok  <pbartok@novell.com>
35044
35045         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
35046           sanity check to prevent theoretical loop
35047         * XplatUIWin32.cs (SetVisible): Removed debug output
35048         * XplatUIX11.cs (SystrayChange): Added sanity check
35049         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
35050         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
35051           behaviour, valid until the X11 client window rewrite is done
35052         * TextBox.cs (ctor): Setting proper default foreground and background
35053           colors
35054
35055 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
35056
35057         * Theme: Added DrawDateTimePicker to interface
35058         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
35059         * DateTimePicker.cs: Created (still needs keys and painting code)
35060         * DateTimePickerFormat.cs: added
35061         * MonthCalendar.cs: fixed CreateParams for popup window mode
35062           
35063 2005-01-29  Peter Bartok  <pbartok@novell.com>
35064
35065         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
35066           this should also the calculations for ligher/darker
35067         * Theme.cs: Fixed defaults for ScrollBar widths/heights
35068
35069 2005-01-29  Peter Bartok  <pbartok@novell.com>
35070
35071         * ArrangeDirection.cs: Added
35072         * ArrangeStartingPositon.cs: Added
35073         * SystemInformation.cs: Implemented
35074         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35075           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
35076           used by SystemInformation class
35077         * X11Strucs.cs: Added XSizeHints structure
35078         * MenuAPI.cs:
35079           - Fixed CreateParams to make sure the menu window is always visible
35080           - TrackPopupMenu: Added check to make sure we don't draw the
35081             menu offscreen
35082
35083 2005-01-29  Peter Bartok  <pbartok@novell.com>
35084
35085         * HandleData.cs: Added method for altering invalid area
35086         * TextBoxBase.cs: Implemented TextLength
35087
35088 2005-01-28  Peter Bartok  <pbartok@novell.com>
35089
35090         * XplatUIX11.cs: Improvement over last patch, not sending
35091           the WM_PAINT directly anymore, instead we scroll any pending
35092           exposed areas and let the system pick out the WM_PAINT later
35093
35094 2005-01-28  Peter Bartok  <pbartok@novell.com>
35095
35096         * SWF.csproj: Deleted, no longer used. Instead,
35097           Managed.Windows.Forms/SWF.csproj should be used
35098         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
35099           directly, to avoid a potential race condition with the next
35100           scroll
35101
35102 2005-01-28  Peter Bartok  <pbartok@novell.com>
35103
35104         * XplatUI.cs: Made class internal
35105
35106 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
35107
35108         * CheckedListBox.cs:
35109                 - Draw focus
35110                 - Fixed Drawing
35111                 - Missing methods and events
35112
35113 2005-01-27  Peter Bartok  <pbartok@novell.com>
35114
35115         * Application.cs (Run): Don't use form if we don't have one
35116
35117 2005-01-27  Peter Bartok  <pbartok@novell.com>
35118
35119         * TextBoxBase.cs (get_Lines): Fixed index off by one error
35120
35121 2005-01-27  Peter Bartok  <pbartok@novell.com>
35122
35123         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
35124         * GridItem.cs: Added; Patch by Jonathan S. Chambers
35125         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
35126         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
35127         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
35128         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
35129         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35130         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35131         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35132         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35133         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35134         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35135
35136 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35137
35138         * Combobox.cs:
35139                 - Draw focus on Simple Combobox
35140                 - Fixes drawing issues
35141                 - fixes 71834
35142
35143 2005-01-27  Peter Bartok  <pbartok@novell.com>
35144
35145         * Form.cs:
35146           - Place window in default location, instead of hardcoded 0/0
35147           - Send initial LocationChanged event
35148         * Control.cs:
35149           - UpdateBounds after creation to find out where the WM placed us
35150           - Make sure that if the ParentForm changes location the Form
35151             is notified
35152         * XplatUIX11.cs: XGetGeometry will not return the coords relative
35153             to the root, but to whatever the WM placed around us.
35154             Translate to root coordinates before returning toplevel
35155             coordinates
35156         * XplatUIWin32.cs: Removed debug output
35157         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
35158           flag to GetWindowPos, to allow translation of coordinates on X11
35159
35160 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35161
35162         * ListBox.cs: connect LostFocus Event
35163
35164 2005-01-27  Peter Bartok  <pbartok@novell.com>
35165
35166         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35167           XplatUIX11.cs: Extended the Systray API
35168         * Form.cs: Removed debug output
35169         * Application.cs: Fixed focus assignment, always need to call
35170           XplatUI.Activate() since Form.Activate() has rules that may
35171           prevent activation
35172         * NotifyIcon.cs: Should be complete now
35173         * ToolTip.cs: Worked around possible timer bug
35174
35175 2005-01-27  Jackson Harper  <jackson@ximian.com>
35176
35177         * TabControl.cs:
35178         - Only invalidate the effected tabs when the
35179         selected index changes. This reduces drawing and gets rid of some
35180         flicker.
35181         - Only refresh if the tabs need to be shifted, otherwise only
35182         invalidate the slider button.
35183         - On windows the tabs are not filled to right if the slider is
35184         visible.
35185         
35186 2005-01-27  Jackson Harper  <jackson@ximian.com>
35187
35188         * TabControl.cs: Only refresh on mouseup if we are showing the
35189         slider. Also only invalidate the button whose state has changed.
35190
35191 2005-01-26  Peter Bartok  <pbartok@novell.com>
35192
35193         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
35194         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
35195           and SystrayRemove() methods
35196         * XplatUIOSX.cs: Stubbed Systray methods
35197         * XplatUIX11.cs:
35198           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
35199             methods
35200           - Fixed broken XChangeProperty calls (marshalling messed up things)
35201         * X11Structs.cs: Added enums and structs required for Size hinting
35202         * NotifyIcon.cs: Added & implemented
35203
35204 2005-01-26  Jackson Harper  <jackson@ximian.com>
35205
35206         * TabControl.cs: Space vertically layed out tabs properly.
35207
35208 2005-01-26  Peter Bartok  <pbartok@novell.com>
35209
35210         * Form.cs (CreateClientParams): Always set the location to 0,0
35211           since we're a child window.
35212
35213         * Control.cs (SetVisibleCore): Always explicitly setting the location
35214           of a toplevel window, apparently X11 doesn't like to move windows
35215           while they're not mapped.
35216
35217 2005-01-26  Jackson Harper  <jackson@ximian.com>
35218
35219         * TabControl.cs: Implement FillToRight size mode with vertically
35220         rendered tabs.
35221
35222 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35223
35224         * ControlPaint.cs, ThemeWin32Classic.cs
35225                 - Fixes DrawFocusRectangle
35226
35227 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35228
35229         * MenuAPI.cs:
35230                 - MenuBar tracking only starts when item is first clicked
35231                 - Fixes menu hidding for multiple subitems
35232                 - Unselect item in MenuBar when item Executed
35233                 - Fixes bug 71495
35234
35235 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
35236
35237         * ListControl.cs:
35238                 - IsInputKey for ListBox
35239         * ListBox.cs:
35240                 - Focus item
35241                 - Shift and Control item selection
35242                 - Implement SelectionMode.MultiExtended
35243                 - Fixes RightToLeft
35244         * ComboBox.cs:
35245                 - IsInputKey implemented
35246                 - Do not generate OnTextChangedEdit on internal txt changes
35247                 
35248 2005-01-23  Peter Bartok  <pbartok@novell.com>
35249
35250         * AccessibleObject.cs: Partially implemented Select()
35251         * MonthCalendar.cs: Added missing attributes and events
35252         * Form.cs: Fixed CreateParams behaviour, now controls derived from
35253           form can properly override CreateParams.
35254         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35255           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
35256           Control performs Invalidate & Update
35257         * NativeWindow (CreateHandle): Added special handling for Form
35258           and Form.FormParent classes to allow overriding of From.CreateParams
35259         * Control.cs:
35260           - ControlNativeWindow: Renamed 'control' variable to more intuitive
35261             name 'owner'
35262           - ControlNativeWindow: Added Owner property
35263           - Removed usage of Refresh() on property changes, changed into
35264             Invalidate(), we need to wait until the queue is processed for
35265             updates, direct calls might cause problems if not all vars for
35266             Paint are initialized
35267           - Added call to UpdateStyles() when creating the window, to set any
35268             styles that CreateWindow might have ignored.
35269           - Added support for Form CreateParent overrides to UpdateStyles()
35270         * MessageBox.cs: Removed no longer needed FormParent override stuff,
35271           CreateParams are now properly overridable
35272         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
35273           CreateParams are now properly overridable
35274
35275 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
35276
35277         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
35278         OnTextBoxChanged.
35279
35280         Capture LostFocus and OnTextBoxChanged.  The later introduces a
35281         recursive invocation that I have not figured out yet.
35282
35283         Reset the timer when not using (it was accumulating).
35284
35285
35286         (OnTextBoxChanged): Set UserEdit to true here to track whether the
35287         user has made changes that require validation.
35288
35289         Reset changing to avoid loops.
35290
35291 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
35292
35293         * NumericUpDown.cs: Display value at startup.
35294
35295         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
35296         ValidateEditText.
35297
35298         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
35299         filled in.  Added some basic parsing of text.
35300
35301         Still missing the OnXXX method overrides, and figuring out the
35302         events that must be emitted.
35303
35304         * UpDownBase.cs: Handle UserEdit on the Text property.
35305         
35306 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
35307
35308         * ComboBox.cs:
35309           - Fixes IntegralHeight
35310           - ToString method
35311
35312 2005-01-21  Jackson Harper  <jackson@ximian.com>
35313
35314         * TabControl.cs: Set the SelectedIndex property when SelectedTab
35315         is set so that the page visibility is updated and the tabs are
35316         sized correctly.
35317
35318 2005-01-21  Jackson Harper  <jackson@ximian.com>
35319
35320         * TabControl.cs: Use cliping rectangle for blitting. Give the
35321         theme the clipping rect so we can do clipping while
35322         drawing. Remove some debug code.
35323
35324 2005-01-21  Jackson Harper  <jackson@ximian.com>
35325
35326         * TabPage.cs: Add a new method so tab pages can force the tab
35327         control to recalculate the tab page sizes.
35328         * TabControl.cs: UpdateOwner needs to make the tab control recalc
35329         sizes.
35330
35331 2005-01-20  Jackson Harper  <jackson@ximian.com>
35332
35333         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
35334
35335 2005-01-20  Jackson Harper  <jackson@ximian.com>
35336
35337         * TreeView.cs: Set the bounds for nodes properly. They were
35338         getting screwed up when checkboxes were not enabled, but images
35339         were.
35340
35341 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
35342
35343         * ListBox.cs:
35344                 - Owner draw support
35345                 - Fixes
35346                 
35347 2005-01-20  Jackson Harper  <jackson@ximian.com>
35348
35349         * XplatUIStructs.cs: More misc keys
35350         * X11Keyboard.cs: Ignore some control keys.
35351
35352 2005-01-20  Jackson Harper  <jackson@ximian.com>
35353
35354         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
35355         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
35356
35357 2005-01-19  Peter Bartok  <pbartok@novell.com>
35358
35359         * Control.cs: Un-selecting the control when it is loosing focus
35360
35361 2005-01-19  Jackson Harper  <jackson@ximian.com>
35362
35363         * TreeView.cs: Hook up to the text controls leave event so we can
35364         end editing when the users clicks outside the text box.
35365         
35366 2005-01-19  Jackson Harper  <jackson@ximian.com>
35367
35368         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
35369         get set in the conversion array.
35370
35371 2005-01-19  Peter Bartok  <pbartok@novell.com>
35372
35373         * Application.cs (ModalRun): Added a call to CreateControl to ensure
35374           focus is properly set
35375         * Button.cs:
35376           - Added missing attributes
35377           - removed styles, those are already set in the base class
35378         * ButtonBase.cs:
35379           - Added missing attributes
35380           - Added clip window styles
35381         * CheckBox.cs: Added missing attributes
35382         * CommonDialog.cs:
35383           - FormParentWindow.CreateParams: Added required clip styles
35384         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
35385           also filters modifier keys
35386         * MessageBox.cs:
35387           - Added assignment of Accept and Cancel button to enable Enter
35388             and Esc keys in MessageBox dialogs
35389           - FormParentWindow.CreateParams: Added required clip styles
35390         * RadioButton.cs: Added missing attributes
35391         * TextControl.cs: No longer draws selection if control does not
35392           have focus
35393         * TextBoxBase.cs:
35394           - Now draws simple rectangle around test area to make it obvious
35395             there's a control. This is a hack until we properly support borders
35396           - A few simple fixes to support selections better, now erases selected
35397             text when typing, and resets selection when using movement keys
35398
35399 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
35400
35401         * UpDownBase.cs: Added some new properties.
35402
35403         * DomainUpDown.cs: Implement a lot to get my test working.
35404
35405 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35406
35407         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
35408
35409 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35410
35411         * OSXStructs (WindowAttributes): Fixed csc complaints
35412
35413 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35414
35415         * XplayUIOSX.cs:
35416           OSXStructs.cs: Initial refactor to move enums and consts into
35417           OSXStructs and use them in the driver for greater readability.
35418
35419 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35420
35421         * XplatUIOSX.cs: Initial support for Standard Cursors.
35422         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
35423
35424 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
35425
35426         * ComboBox.cs: ability to change style when the ctrl is already
35427         created, missing methods and events, bug fixes, signature fixes
35428
35429 2005-01-19  Peter Bartok  <pbartok@novell.com>
35430
35431         * Cursors.cs (ctor): Added ctor to fix signature
35432
35433 2005-01-18  Peter Bartok  <pbartok@novell.com>
35434
35435         * Button.cs: Implemented DoubleClick event
35436         * ButtonBase.cs:
35437           - Fixed keyboard handling to behave like MS, where the press of
35438             Spacebar is equivalent to a mousedown, and the key release is
35439             equivalent to mouseup. Now a spacebar push will give the same
35440             visual feedback like a mouse click.
35441           - Added missing attributes
35442           - Added ImeModeChanged event
35443           - Added support for generating DoubleClick event for derived classes
35444         * CheckBox.cs:
35445           - Implemented DoubleClick event
35446           - Added missing attributes
35447         * CommonDialog.cs: Added missing attribute
35448         * ContextMenu.cs: Added missing attributes
35449         * RadioButton.cs:
35450           - AutoChecked buttons do not allow to be unselected when clicked
35451             (otherwise we might end up with no selected buttons in a group)
35452           - Added missing attributes
35453           - Implemented DoubleClickEvent
35454         * ThreadExceptionDialog.cs: Enabled TextBox code
35455
35456 2005-01-18  Peter Bartok  <pbartok@novell.com>
35457
35458         * Form.cs: Removed debug output
35459         * Button.cs: Added support for DoubleClick method
35460
35461 2005-01-18  Peter Bartok  <pbartok@novell.com>
35462
35463         * Form.cs:
35464           - Added method to parent window that allows triggering size
35465             calculations when a menu is added/removed
35466           - set_Menu: Cleaned up mess from early days of Form and Control,
35467             now properly triggers a recalc when a menu is added/removed
35468           - Added case to select form itself as focused form if no child
35469             controls exist
35470           - Added PerformLayout call when showing dialog, to ensure properly
35471             placed controls
35472         * Control.cs:
35473           - Select(): Made internal so Form can access it
35474           - Focus(): Only call Xplat layer if required (avoids loop), and sets
35475             status
35476         * Application.cs (Run): Removed hack and calls PerformLayout instead
35477           to trigger calculation when Form becomes visible
35478
35479 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
35480
35481         * ComboBox.cs: fixes for ownerdraw
35482
35483 2005-01-18  Peter Bartok  <pbartok@novell.com>
35484
35485         * TextControl.cs:
35486           - Sentinel is no longer static, each Document gets it's own, this
35487             avoids locking or alternatively overwrite problems when more
35488             than one text control is used simultaneously.
35489           - Switched to use Hilight and HilightText brushes for text selection
35490
35491         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
35492
35493 2005-01-18  Peter Bartok  <pbartok@novell.com>
35494
35495         * Control.cs:
35496           - Hooked up the following events:
35497                 o ControlAdded
35498                 o ControlRemoved
35499                 o HandleDestroyed
35500                 o ImeModeChanged
35501                 o ParentChanged
35502                 o TabStopChanged
35503                 o Invalidated
35504                 o SystemColorsChanged
35505                 o ParentFontChanged
35506                 o Move
35507           - Removed debug output
35508           - Added a call to the current theme's ResetDefaults when a color change
35509             is detected
35510         * Form.cs: Now setting the proper ImeMode
35511         * Theme.cs: Defined a method to force recreation of cached resources
35512           and rereading of system defaults (ResetDefaults())
35513         * ThemeWin32Classic.cs: Added ResetDefaults() stub
35514
35515 2005-01-17  Peter Bartok  <pbartok@novell.com>
35516
35517         * Control.cs: Added missing attributes
35518
35519 2005-01-17  Jackson Harper  <jackson@ximian.com>
35520
35521         * TreeNode.cs: Implement editing. Add missing properties selected
35522         and visible.
35523         * TreeView.cs: Implement node editing. Also some fixes to use
35524         Invalidate (invalid area) instead of Refresh when selecting.
35525
35526 2005-01-17  Peter Bartok  <pbartok@novell.com>
35527
35528         * Control.cs:
35529           - Implemented InvokeGotFocus() method
35530           - Implemented InvokeLostFocus() method
35531           - Implemented InvokePaint() method
35532           - Implemented InvokePaintBackground() method
35533           - Implemented InvokeClick() method
35534           - Implemented FindForm() method
35535           - Implemented RectangleToClient() method
35536           - Implemented ClientToRectangle() method
35537           - Implemented ResetBackColor() method
35538           - Implemented ResetCursor() method
35539           - Implemented ResetFont() method
35540           - Implemented ResteForeColor() method
35541           - Implemented ResetImeMode() method
35542           - Implemented ResetLeftToRight() method
35543           - Implemented ResetText() method
35544           - Implemented Scale() methods
35545           - Implemented ScaleCore() method
35546           - Implemented Update() method
35547           - Removed unused variables
35548           - Stubbed AccessibilityNotifyClients and
35549             ControlAccessibleObject.NotifyClients() methods (dunno what to do
35550             with those yet)
35551           - Now setting proper default for RightToLeft property
35552           - Fixed bug in SetClientSizeCore that would cause windows to get
35553             really big
35554           - Now sending Click/DoubleClick events
35555           - Now selecting controls when left mouse button is clicked on
35556             selectable control
35557         * AccessibleEvents.cs: Added
35558         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
35559         * XplatUIOSX.cs: Stubbed UpdateWindow() method
35560         * XplatUIWin32.cs: Implemented UpdateWindow() method
35561         * XplatUIX11.cs: Implemented UpdateWindow() method
35562         * Form.cs: Removed stray semicolon causing CS0162 warning
35563         * ThemeWin32Classic.cs: Fixed unused variable warnings
35564         * ScrollableControl.cs: Now calls base method for ScaleCore
35565         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
35566           style to avoid interference with internal click handler (which is
35567           different than standard Control click handling)
35568         * RadioButton.cs:
35569           - Now unchecks all sibling radio buttons when control is
35570             selected (Fixes #68756)
35571           - Removed internal tabstop variable, using the one inherited from
35572             Control
35573
35574 2005-01-17  Jackson Harper  <jackson@ximian.com>
35575
35576         * NavigateEventArgs.cs: Fix base type.
35577         * LinkLabel.cs: Sig fix
35578         
35579 2005-01-17  Jackson Harper  <jackson@ximian.com>
35580
35581         * TreeView.cs: Only invalidate the effected nodes bounds when
35582         selecting nodes.
35583
35584 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35585
35586         * XplatUIWin32.cs: fixes Win32 marshaling
35587         * XplatUIX11.cs: fixes method signature
35588
35589 2005-01-17  Peter Bartok  <pbartok@novell.com>
35590
35591         * XplatUIX11.cs: Clean up resources when we no longer need them
35592
35593 2005-01-17  Peter Bartok  <pbartok@novell.com>
35594
35595         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
35596           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
35597           and DestroyCursor() methods.
35598         * Cursor.cs: Partially implemented, now supports standard cursors;
35599           still contains some debug code
35600         * Cursors.cs: Implemented class
35601         * Control.cs:
35602           - WndProc(): Added handling of WM_SETCURSOR message, setting the
35603             appropriate cursor
35604           - Implemented Cursor property
35605           - Replaced break; with return; more straightforwar and possibly
35606             faster
35607           - Now properly setting the result for WM_HELP
35608         * X11Structs.cs: Added CursorFontShape enum
35609         * XplatUIStructs.cs:
35610           - Added StdCursor enum (to support DefineStdCursor() method)
35611           - Added HitTest enum (to support sending WM_SETCURSOR message)
35612         * XplatUIX11.cs:
35613           - Now sends the WM_SETCURSOR message
35614           - Implemented new cursor methods
35615         * XplatUIOSX.cs: Stubbed new cursor methods
35616         * XplatUIWin32.cs:
35617           - Implemented new cursor methods
35618           - Added GetSystemMetrics function and associated enumeration
35619
35620 2005-01-15  Peter Bartok  <pbartok@novell.com>
35621
35622         * Control.cs:
35623           - WndProc(): Now handles EnableNotifyMessage
35624           - SelectNextControl(): Fixed bug where if no child or sibling
35625             controls exist we looped endlessly
35626
35627 2005-01-14  Jackson Harper  <jackson@ximian.com>
35628
35629         * TreeView.cs: Recalculate the tab pages when a new one is added
35630         so that the proper bounding rects are created.
35631
35632 2005-01-14  Jackson Harper  <jackson@ximian.com>
35633
35634         * TreeView.cs: Draw a gray box instead of a grip in the lower
35635         right hand corner when there are both horizontal and vertical
35636         scroll bars.
35637
35638 2005-01-14  Jackson Harper  <jackson@ximian.com>
35639
35640         * Control.cs: When erasing backgrounds use FromHwnd instead of
35641         FromHdc when there is a NULL wparam. This occurs on the X driver.
35642         * XplatUIX11.cs: Set the wparam to NULL.
35643
35644 2005-01-13  Jackson Harper  <jackson@ximian.com>
35645
35646         * PictureBox.cs: Implement missing methods (except ToString, need
35647         to test that on windows) and events. When visibility is changed we
35648         need to redraw the image because the buffers are killed. When size
35649         is changed refresh if the sizemode needs it.
35650
35651 2005-01-13  Peter Bartok  <pbartok@novell.com>
35652
35653         * Control.cs (SelectNextControl): Was using wrong method to select
35654           a control
35655
35656 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35657
35658         * ComboBox.cs: fixes dropstyle
35659
35660 2005-01-13  Peter Bartok  <pbartok@novell.com>
35661
35662         * Form.cs:
35663           - Implemented Select() override
35664           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
35665           - Now sets keyboard focus on startup
35666         * Control.cs (SelectNextControl): Now properly handles directed=true
35667         * TextBoxBase.cs:
35668           - WndProc: Now passes tab key on to base if AcceptTabChar=false
35669           - Added (really bad) focus rectangle (mostly for testing)
35670         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
35671           to enforce redraw on focus changes
35672         * ContainerControl.cs:
35673           - Fixed detection of Shift-Tab key presses
35674           - Fixed traversal with arrow keys
35675         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
35676           gonna keep this or if it's complete yet
35677         
35678 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35679
35680         * ComboBox.cs: missing properties, fixes
35681
35682 2005-01-13  Peter Bartok  <pbartok@novell.com>
35683
35684         * Panel.cs (ctor): Setting Selectable window style to off
35685         * Splitter.cs (ctor): Setting Selectable window style to off
35686         * GroupBox.cs (ctor): Setting Selectable window style to off
35687         * Label.cs (ctor): Setting Selectable window style to off
35688
35689 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
35690
35691         * UpDownBase.cs (InitTimer): If the timer has been already
35692         created, enable it.
35693
35694         Use a TextBox instead of a Label.
35695
35696 2005-01-12  Jackson Harper  <jackson@ximian.com>
35697
35698         * TreeView.cs: Refresh the tree after sorting the nodes. Always
35699         draw the connecting node lines (when ShowLines is true).
35700         * TreeNode.cs: The nodes index can now be updated. This is used
35701         when a node collection is sorted.
35702         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
35703         insert or an existing unsorted node collection can be sorted.
35704         
35705 2005-01-12  Peter Bartok  <pbartok@novell.com>
35706
35707         * ContainerControl.cs: Implemented ProcessDialogKeys()
35708
35709 2005-01-12  Peter Bartok  <pbartok@novell.com>
35710
35711         * Control.cs:
35712           - Implemented SelectNextControl() method
35713           - Several focus related bug fixes
35714           - Fixed Docking calculations to match MS documentation and
35715             behaviour
35716
35717 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
35718
35719         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
35720         bug fixes
35721
35722 2005-01-12  Peter Bartok  <pbartok@novell.com>
35723
35724         * Control.cs:
35725           - Fixed broken Contains() method
35726           - Implemented GetNextControl() method. Finally. This is the pre-
35727             requisite for focus handling.
35728
35729 2005-01-12  Peter Bartok  <pbartok@novell.com>
35730
35731         * OSXStrucs.cs: Added
35732
35733 2005-01-12  Peter Bartok  <pbartok@novell.com>
35734
35735         * XplatUIWin32.cs:
35736           - Removed PeekMessageFlags
35737           - Implemented SetWindowStyle() method
35738         * XplatUIStructs.cs: Added PeekMessageFlags
35739         * X11Structs: Added missing border_width field to XWindowChanges struct
35740         * XplatUIX11.cs:
35741           - PeekMessage: Now throws exception if flags which are not yet
35742             supported are passed
35743           - Implemented SetWindowStyle() method
35744           - Fixed SetZOrder to handle AfterHwnd properly
35745         * XplatUI.cs: Added SetWindowStyle() method
35746         * XplatUIDriver.cs: Added SetWindowStyle() abstract
35747         * Control.cs:
35748           - Implemented UpdateStyles() method
35749           - Implemented UpdateZOrder() method
35750         * XplatUIOSX.cs: Added SetWindowStyle() stub
35751
35752 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
35753
35754         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
35755         button mouse).
35756
35757
35758 2005-01-11  Jackson Harper  <jackson@ximian.com>
35759
35760         * TreeView.cs: Still need to draw lines to siblings even if out of
35761         the current node is out of the clip.
35762
35763 2005-01-11  Jackson Harper  <jackson@ximian.com>
35764
35765         * TreeView.cs: When setting the hbar/vbar/grip position use
35766         SetBounds so that perform layout is only called once. Also suspend
35767         and resume layout so layout is only done once for all controls.
35768         - Removed some debug fluff
35769         * SizeGrip.cs: Call base implmentation in overriding methods.
35770         - When visibility is changed the drawing buffers are killed so we
35771         need to redraw.
35772
35773 2005-01-11  Jackson Harper  <jackson@ximian.com>
35774
35775         * TreeView.cs: Calculate the open node count while drawing. This
35776         saves us an entire tree traversal for every paint operation. Use
35777         a member var for the open node count so less vars are passed around.
35778
35779 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
35780
35781         * MonthCalendar.cs:
35782         - fixed selection to use mousemove, not mouse polling on timer
35783         * ThemeWin32Classic.cs
35784         - removed redundant unused variable "no_more_content"
35785         
35786 2005-01-11  Peter Bartok  <pbartok@novell.com>
35787
35788         * XplatUIX11.cs (DoEvents): Needs to return when no more events
35789           are pending, so it now calls PeekMessage instead of GetMessage;
35790           implemented a incomplete version of PeekMessage
35791         
35792 2005-01-11  Peter Bartok  <pbartok@novell.com>
35793
35794         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
35795           I18n issues
35796         * TextBoxBase.cs: Added sending of TextChanged event
35797
35798 2005-01-10  Jackson Harper  <jackson@ximian.com>
35799
35800         * TreeView.cs: Try not to draw outside the clipping rectangle on
35801         each node element.
35802
35803 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
35804
35805         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
35806
35807 2005-01-10  Jackson Harper  <jackson@ximian.com>
35808
35809         * TreeView.cs:
35810         - Implement fast scrolling. Now only the newly
35811         exposed nodes are drawn and the old image is moved using the
35812         XplatUI::ScrollWindow method.
35813         - Factor in height of nodes when calculating whether or not the
35814         node is in the clipping rect.
35815
35816 2005-01-10  Jackson Harper  <jackson@ximian.com>
35817
35818         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
35819
35820 2005-01-10  Peter Bartok  <pbartok@novell.com>
35821
35822         * Application.cs: Added temporary hack to resolve all our resize
35823           required issues on startup. This will get fixed properly at
35824           some point in the future
35825
35826 2005-01-10  Jackson Harper  <jackson@ximian.com>
35827
35828         * SizeGrip.cs: New internal class that is used as a sizing
35829         grip control...hence the name.
35830
35831 2005-01-10  Peter Bartok  <pbartok@novell.com>
35832
35833         * Control.cs: Implemented proper TabIndex handling, now assigning
35834           a tabindex when a control is added to a container
35835         * GroupBox.cs (ctor): Now sets the Container style bit, required
35836           for Control.GetNextControl()
35837
35838 2005-01-09  Jackson Harper  <jackson@ximian.com>
35839
35840         * TextBoxBase.cs: Clear window when scrolling (fixes build).
35841
35842 2005-01-09  Peter Bartok <pbartok@novell.com>
35843
35844         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35845           XplatUIX11.cs: Added ability to control ScrollWindow expose and
35846           an overload for ScrollWindow to allow only scrolling a rectangle
35847
35848 2005-01-09  Peter Bartok <pbartok@novell.com>
35849
35850         * Form.cs:
35851           - Implemented SetDesktopBounds method
35852           - Implemented SetDesktopLocation method
35853
35854 2005-01-08  Jackson Harper  <jackson@ximian.com>
35855
35856         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
35857         the node count has changed, this removes to VScroll::Refresh calls
35858         when drawing.
35859
35860 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
35861
35862         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
35863
35864 2005-01-07  Jackson Harper  <jackson@ximian.com>
35865
35866         * TreeNode.cs: Just update the single node when it is
35867         checked. Don't refresh after toggling, the Expand/Collapse already
35868         handles this.
35869         * TreeView.cs: Respect clipping a little more when drawing. Try
35870         not to redraw things that don't need to be redrawn. Just hide the
35871         scrollbars when they are no longer needed instead of removing
35872         them, so they don't have to be created again and again.
35873         
35874 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
35875
35876         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
35877         coordinates to window space to place the caret properly, FIXED.
35878         Implement GetWindowState & SetWindowState
35879
35880 2005-01-06  Peter Bartok <pbartok@novell.com>
35881
35882         * Form.cs:
35883           - Implemented ClientSize property
35884           - Implemented DesktopBounds property
35885           - Implemented DesktopLocation property
35886           - Implemented IsRestrictedWindow property
35887           - Implemented Size property
35888           - Implemented TopLevel property
35889           - Implemented FormWindowState property
35890         * Control.cs:
35891           - Implemented GetTopLevel() method
35892           - Implemented SetTopLevel() method
35893         * X11Structs.cs (Atom):
35894           - Added AnyPropertyType definition
35895           - Added MapState definiton and updated XWindowAttribute struct
35896         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
35897         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
35898         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
35899         * XplatUIWin32.cs:
35900           - Implemented GetWindowState() and SetWindowState() methods
35901           - Fixed Win32GetWindowLong return type
35902         * XplatUIX11.cs:
35903           - Introduced central function for sending NET_WM messages
35904           - Implemented GetWindowState() and SetWindowState() methods
35905         * TextBoxBase.cs (set_Lines):
35906           - Now uses Foreground color for text added via Text property (Duh!)
35907           - Added code to remember programmatically requested size (fixes
35908             behaviour when Multiline is set after Size)
35909           - Added AutoSize logic
35910
35911 2005-01-06  Jackson Harper  <jackson@ximian.com>
35912
35913         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
35914
35915 2005-01-06  Jackson Harper  <jackson@ximian.com>
35916
35917         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
35918         set to less then 0.
35919
35920 2005-01-06  Jackson Harper  <jackson@ximian.com>
35921
35922         * ScrollableControl.cs: Lazy init the scrollbars.
35923         
35924 2005-01-06  Jackson Harper  <jackson@ximian.com>
35925
35926         * Theme.cs: Speed up getting pens and solid brushes, by using
35927         their ARGB as a hash instead of tostring and not calling Contains.
35928
35929 2005-01-06  Peter Bartok <pbartok@novell.com>
35930
35931         * Form.cs:
35932           - Implemented OnActivated and OnDeactivate event trigger
35933           - Implemented Activate() method
35934           - Fixed ShowDialog() to activate the form that was active before
35935             the dialog was shown
35936         * XplatUIX11.cs:
35937           - Added global active_window var that tracks the currently active
35938             X11 window
35939           - Now always grabs Property changes from the root window to always
35940             catch changes on the active window property
35941           - Added code to PropertyNotify handler to send Active/Inactive
35942             messages when state changes. This puts X11 and Win32 en par on
35943             WM_ACTIVATE notifications (except for double notifications when
35944             the user clicks away from our modal window to another one of our
35945             windows)
35946
35947 2005-01-05  Jackson Harper  <jackson@ximian.com>
35948
35949         * ImageList.cs: Implment ctor
35950
35951 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
35952
35953         * XplatUIOSX.cs: Implement Activate/SetTopmost
35954
35955 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
35956
35957         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
35958
35959 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
35960
35961         * XplatUIOSX.cs: Implement GetActive/SetFocus.
35962
35963 2005-01-05  Peter Bartok <pbartok@novell.com>
35964
35965         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
35966           XplatUIOSX.cs: Added GetActive method to return the currently
35967           active window for the application (or null, if none is active)
35968         * Form.cs:
35969           - Implemented ActiveForm
35970           - Commented out owner assignment for modal dialogs (causes problems
35971             on Win32, since the owner will be disabled)
35972           - Reworked some Active/Focus handling (still incomplete)
35973         * CommonDialog.cs: Commented out owner assignment for modal dialogs
35974           (causes problems on Win32, since the owner will be disabled)
35975         * IWin32Window: Added ComVisible attribute
35976
35977 2005-01-05  Peter Bartok <pbartok@novell.com>
35978
35979         * ToolTip.cs (WndProc): Enable setting focus now that we have the
35980           required XplatUI functions.
35981
35982 2005-01-05  Peter Bartok <pbartok@novell.com>
35983
35984         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
35985           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
35986           to implement focus and activation handling; still incomplete and
35987           with debug output
35988
35989 2005-01-04  Peter Bartok <pbartok@novell.com>
35990
35991         * TextBoxBase.cs: Changed access level for Document property to
35992           match switch to internal for TextControl
35993
35994 2005-01-04  Peter Bartok <pbartok@novell.com>
35995
35996         * AccessibleObject: Added ComVisible attribute
35997
35998 2005-01-04  Jackson Harper  <jackson@ximian.com>
35999
36000         * X11Keyboard.cs: Remove unneeded var.
36001
36002 2005-01-04  Jackson Harper  <jackson@ximian.com>
36003
36004         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
36005         but PAINT.
36006         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
36007         ClientMessage. This makes apps exit cleanly (more often).
36008         
36009 2005-01-04  Jackson Harper  <jackson@ximian.com>
36010
36011         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
36012         handling focus, return correct colors and fonts,
36013         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
36014         handle selection, horizontal scrolling, and mouse interaction.
36015
36016 2005-01-04  Peter Bartok <pbartok@novell.com>
36017
36018         * ICommandExecutor.cs: Added
36019         * IDataGridColumnStyleEditingNotificationService.cs: Added
36020         * IFeatureSupport.cs: Added
36021         * IFileReaderService.cs: Added
36022         * IDataObject.cs: Added ComVisible attribute
36023         * AmbientProperties.cs: Added
36024         * BaseCollection.cs: Added missing attributes
36025         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
36026         * BaseCollection.cs: Added missing attributes
36027         * Binding.cs: Added TypeConverter attribute
36028         * BindingContext.cs: Added DefaultEvent attribute
36029         * BindingsCollection.cs: Added DefaultEvent attribute
36030         * Button.cs: Added DefaultValue attribute
36031         * DragEventArgs.cs: Added ComVisible attribute
36032         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
36033         * KeyEventArgs.cs: Added ComVisible attribute
36034         * KeyPressEventArgs.cs: Added ComVisible attribute
36035         * MouseEventArgs.cs: Added ComVisible attribute
36036         * NavigateEventArgs.cs: Added
36037         * NavigateEventHandler.cs: Added
36038         * FeatureSupport.cs: Added
36039         * OSFeature.cs: Added
36040         * Theme.cs: Added abstract Version property to support OSFeature
36041         * ThemeWin32Classic.cs: Added Version property to
36042           support OSFeature.Themes
36043         * ProgressBar.cs: Removed OnPaintBackground override, not required since
36044           the proper styles to avoid background drawing are set, also doesn't
36045           match MS signature
36046         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
36047         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
36048         * ScrollEventArgs.cs: Added ComVisible attribute
36049         * SplitterEventArgs.cs: Added ComVisible attribute
36050         * AccessibleSelection.cs: Added Flags attribute
36051         * Appearance.cs: Added ComVisible attribute
36052         * Border3DSide.cs: Added ComVisible attribute
36053         * Border3DStyle.cs: Added ComVisible attribute
36054         * BorderStyle.cs: Added ComVisible attribute
36055         * DragAction.cs: Added ComVisible attribute
36056         * ErrorBlinkStyle.cs: Added
36057         * ScrollEventType.cs: Added ComVisible attribute
36058         * AnchorStyles.cs: Added Editor attribute
36059         * DockStyle.cs: Added Editor attribute
36060         * HorizontalAlignment.cs: Added ComVisible attribute
36061         * HelpEventArgs.cs: Added ComVisible attribute
36062         * PaintEventArgs.cs: Added IDisposable
36063
36064 2005-01-04  Peter Bartok <pbartok@novell.com>
36065
36066         * TextControl.cs: Switched Line, LineTag and Document classes to
36067           internal
36068
36069 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36070
36071         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
36072         Simple mode, fixes, IntegralHeight, etc.
36073
36074 2005-01-04  Peter Bartok <pbartok@novell.com>
36075
36076         * TextBoxBase.cs: Using proper font variable now
36077
36078 2005-01-04  Peter Bartok <pbartok@novell.com>
36079
36080         * Form.cs (ShowDialog): Set parent to owner, if provided
36081         * GroupBox.cs: Removed unused vars
36082         * TextControl.cs:
36083           - Added GetHashCode() for Document and LineTag classes
36084           - Removed unused variables
36085           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
36086             to allow translation between continuous char position and line/pos
36087         * CheckBox.cs: Removed vars that are provided by base class
36088         * RadioButton.cs: Removed vars that are provided by base class, added
36089           new keyword where required
36090         * LinkLabel.cs: Added new keyword where required
36091         * Control.cs (WndProc): Removed unused variable
36092         * TextBoxBase.cs:
36093           - Finished SelectionLength property
36094           - Implemented SelectionStart property
36095           - Implemented Text property
36096           - Removed unused vars
36097         * MessageBox.cs: Added new keyword where required
36098         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
36099           WndProc signature
36100         * MenuAPI.cs: Added new keyword where required
36101         * ButtonBase.cs: Removed vars that are provided by base class, added
36102           new keyword where required
36103         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
36104           argument to double, to allow compiling with csc 2.0 (Atsushi ran
36105           into this)
36106         * Application.cs (Run): Now triggers the ThreadExit event
36107         * CommonDialog.cs: Added new keyword where required; now properly sets
36108           parent (owner) for dialog
36109         * XplatUIX11.cs: Commented out unused vars
36110         * StatusBar.cs: Fixed signature for Text property
36111         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
36112
36113 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36114
36115         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
36116         TrackBar.cs, MonthCalendar.cs: remove unused vars
36117
36118 2005-01-03  Jackson Harper  <jackson@ximian.com>
36119
36120         * ThemeWin32Classic.cs:
36121         * X11Keyboard.cs: Remove unused vars.
36122
36123 2005-01-03  Peter Bartok  <pbartok@novell.com>
36124
36125         * TextBox.cs:
36126           - set_Text: Tied into TextControl
36127           - set_TextAlignment: Tied into TextControl
36128         * TextControl.cs:
36129           - Added alignment properties and implemented alignment handling
36130             and drawing (still has a bug, not generating proper expose events)
36131           - Added new Line() constructor to allow passing the line alignment
36132           - Fixed selection setting, properly handling end<start now
36133           - Added aligment considerations to RecalculateDocument()
36134         * TextBoxBase.cs:
36135           - Now properly enforces control height for single line controls
36136           - Added support for CharacterCasing
36137           - Added IsInputKey override
36138           - Fixed Keys.Enter logic
36139           - Added SetBoundsCore override
36140           - Fixed mouse selection handling
36141
36142 2005-01-03  Jackson Harper  <jackson@ximian.com>
36143
36144         * TreeView.cs:
36145           - Collapse and uncheck all nodes when CheckBoxes is disabled.
36146           - Checkboxes are always aligned to the bottom of the node,
36147           regardless of item height.
36148           - Use the node bounds to draw the text so we can center it when
36149           the item height is greater then the font height.
36150           - Node::Bounds are only the text part of the node.
36151         * TreeNode.cs: New method to combine collapsing and unchecking all
36152           nodes recursively.
36153
36154 2005-01-02  Jackson Harper  <jackson@ximian.com>
36155
36156         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
36157         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
36158         tree when a check is changed. TODO: Only refresh the checked node.
36159
36160 2004-12-30  Jackson Harper  <jackson@ximian.com>
36161
36162         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
36163         * TreeNode.cs: When collapsing make sure to never collapse the
36164         root node.
36165
36166 2004-12-29  Jackson Harper  <jackson@ximian.com>
36167
36168         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
36169         
36170 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
36171
36172         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
36173
36174 2004-12-28  Peter Bartok  <pbartok@novell.com>
36175
36176         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
36177           not yet assigned
36178
36179 2004-12-28  Peter Bartok  <pbartok@novell.com>
36180
36181         * Control.cs (WndProc): Added WM_HELP handler, now generates
36182           HelpRequested event
36183         * Form.cs: Added HelpButton property and required support code
36184         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
36185
36186 2004-12-28  Peter Bartok  <pbartok@novell.com>
36187
36188         * CommonDialog.cs:
36189           - Made DialogForm.owner variable internal
36190           - Added check to ensure owner form is set before setting
36191             owner properties in CreateParams
36192
36193 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
36194
36195         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
36196           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
36197           GetCursorPos.  Fix major visibility issues.  Rework the windowing
36198           system to support borderless/titleless windows (implements menus).
36199           Fix GetWindowPos.  Implement initial background color support for
36200           views.
36201
36202 2004-12-28  Peter Bartok  <pbartok@novell.com>
36203
36204         * Form.cs (get_CreateParams): Make sure we have an owner before using
36205           the owner variable. Implement proper default if no owner exists
36206
36207 2004-12-28  Peter Bartok  <pbartok@novell.com>
36208
36209         * In preparation for making Managed.Windows.Forms the default build target
36210           for System.Windows.Forms, the following stubbed files were added.
36211           Dialogs are currently being implemented by contributors and are only
36212           short-term place holders.
36213         * ColorDialog.cs: Initial check-in (minmal stub)
36214         * DataGrid.cs: Initial check-in (minimal stub)
36215         * DataGridLineStyle.cs: Initial check-in (minimal stub)
36216         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
36217         * DataGridTableStyle.cs: Initial check-in (minimal stub)
36218         * FontDialog.cs: Initial check-in (minimal stub)
36219         * FileDialog.cs: Initial check-in (minimal stub)
36220         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
36221         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
36222         * OpenFileDialog: Initial check-in (minimal stub)
36223         * IComponentEditorPageSite.cs: Initial check-in
36224         * Splitter.cs: Initial check-in (for Jackson)
36225         * SplitterEventArgs.cs: Initial check-in (for Jackson)
36226         * SplitterEventHandler.cs: Initial check-in (for Jackson)
36227         * TextBox.cs: Initial check-in; still needs some wiring to
36228           TextControl backend
36229         * Form.cs: Implemented ControlBox property
36230         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
36231         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
36232         * TextControl.cs: Added selection functionality; added todo header
36233         * TextBoxBase.cs:
36234           - Implemented Lines property
36235           - Implemented TextHeight property
36236           - Implemented SelectedText property
36237           - Implemented SelectionLength property
36238           - Implemented SelectAll method
36239           - Implemented ToString method
36240           - Removed and cleaned up some debug code
36241           - Implemented (still buggy) mouse text selection
36242
36243 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
36244
36245         * ComboBox.cs: Complete DropDownList implementation, fixes.
36246
36247 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
36248
36249         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
36250         * ComboBoxStyle.cs: ComboBoxStyle enum
36251         * ComboBox.cs: Initial work on ComboBox control
36252
36253 2004-12-21  Peter Bartok  <pbartok@novell.com>
36254
36255         * Control.cs (ctor, CreateParams): Moved setting of is_visible
36256           forward so that anything that creates a window gets the default,
36257           also no longer uses Visible property in CreateParams to avoid
36258           walking up the parent chain and possibly get the wrong visible
36259           status. Fixed IsVisible to no longer walk up to the parent.
36260
36261 2004-12-21  Peter Bartok  <pbartok@novell.com>
36262
36263         * Form.cs (ShowDialog): Unset modality for the proper window
36264  
36265 2004-12-20  Peter Bartok  <pbartok@novell.com>
36266
36267         * CommonDialog.cs: Initial check-in
36268
36269 2004-12-20  Peter Bartok  <pbartok@novell.com>
36270
36271         * Control.cs (Visible): Now uses the parent window instead of the
36272           client area window for the property
36273
36274         * Form.cs
36275           - ShowDialog(): Now uses the proper window for modality
36276           - The default visibility state for the form parent is now false. This
36277             will prevent the user from seeing all the changes to the form and
36278             its controls before the application hits Application.Run()
36279           - Removed some stale commented out code
36280
36281         * NativeWindow.cs:
36282           - Added FindWindow() method to have a method to check for existence
36283             of a window handle
36284           - Added ability to override default exception handling (for example
36285             when debugging with VS.Net; to do this the ExternalExceptionHandler
36286             define must be set
36287           - Removed some useless debug output
36288
36289         * XplatUIX11.cs:
36290           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
36291             not working as expected
36292           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
36293             property to allow switching back to the modal window if focus is
36294             given to another one of our windows (Application Modal)
36295           - Now only sets override_redirect if we create a window
36296             without WS_CAPTION
36297           - Moved EventMask selection before mapping of newly created window
36298             so we can catch the map event as well
36299           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
36300           - Added various Atom related DllImports
36301           - Implemented Exit() method
36302           - .ctor() : No longer shows window if WS_VISIBLE is not defined
36303             in the CreateParams
36304
36305         * MessageBox.cs: Now properly deals with the FormParent window by
36306           providing an override the FormParent CreateParams property to
36307           set as POPUP instead of OVERLAPPED window.
36308
36309 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36310
36311         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
36312         Minor code cleanup.
36313
36314 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36315         
36316         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
36317
36318 2004-12-18  Peter Bartok  <pbartok@novell.com>
36319
36320         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
36321           implementing SetModal() method
36322
36323 2004-12-18  Peter Bartok  <pbartok@novell.com>
36324
36325         * X11Structs.cs (XGCValues): Fixed type of function element
36326         * XplatUI.cs: Added ScrollWindow() method
36327         * XplatUIDriver.cs: Added ScrollWindow() abstract
36328         * XplatUIWin32.cs: Implemented ScrollWindow() method
36329         * XplatUIX11.cs: Implemented ScrollWindow() method
36330         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
36331
36332 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36333
36334         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
36335         Some more keyboard support (INCOMPLETE)
36336
36337 2004-12-17  Peter Bartok  <pbartok@novell.com>
36338
36339         * TextControl.cs:
36340         - Added color attribute to line tags.
36341         - Added color argument to all functions dealing with tags
36342         - Added color argument support to various functions
36343         - Fixed miss-calculation of baseline/shift in certain circumstances
36344
36345         * TextBoxBase.cs: Added new color option to test code
36346
36347 2004-12-17  Jackson Harper  <jackson@ximian.com>
36348
36349         * TreeNode.cs:
36350         * MonthCalendar.cs: Signature fixes
36351
36352 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36353
36354         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
36355         keyboard event moved it.  Create a new graphics context for each paint resolves this
36356
36357 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36358
36359         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
36360         Make caret exist and go blink blink.  Initial keyboard support.
36361         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
36362         works.
36363
36364 2004-12-17  Jackson Harper  <jackson@ximian.com>
36365
36366         * XplatUIStructs.cs: Updated set of virtual keycodes.
36367         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
36368
36369 2004-12-17  Jackson Harper  <jackson@ximian.com>
36370
36371         * XplatUIX11.cs: Prune old keyboard code.
36372
36373 2004-12-17  Jackson Harper  <jackson@ximian.com>
36374
36375         * XplatUIX11.cs: When generating mouse wparams get the modifier
36376         keys from the ModifierKeys property.
36377
36378 2004-12-17  Jackson Harper  <jackson@ximian.com>
36379
36380         * X11Keyboard.cs: Send up/down input when generating
36381         messages. Remove some unused vars.
36382
36383 2004-12-17  Jackson Harper  <jackson@ximian.com>
36384
36385         * TabControl.cs:
36386         * TreeView.cs: get rid of warnings.
36387
36388 2004-12-17  Jackson Harper  <jackson@ximian.com>
36389
36390         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
36391
36392 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
36393
36394         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
36395           CheckedListBox.cs: Implementation
36396
36397 2004-12-17  Peter Bartok  <pbartok@novell.com>
36398
36399         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
36400
36401 2004-12-16  Peter Bartok  <pbartok@novell.com>
36402
36403         * TextControl.cs:
36404           - InsertCharAtCaret(): Fixed start pos fixup
36405           - CaretLine_get: No longer derives the line from the tag, the tag
36406             could be stale if lines in the document have been added or deleted
36407           - RebalanceAfterDelete(): Fixed bug in balancing code
36408           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
36409           - Line.Streamline(): Now can also elminate leading empty tags
36410           - DumpTree(): Added a few more tests and prevented exception on
36411             uninitialized data
36412           - Added Debug section for Combining lines
36413           - Delete(): Now copies all remaining properties of a line
36414           
36415         * TextBoxBase.cs:
36416           - Left mousebutton now sets the caret (and middle button still acts
36417             as formatting tester, which must go away soon)
36418           - Added Debug section for Deleting/Combining lines
36419           - Fixed calculations for UpdateView after Combining lines
36420
36421 2004-12-16  Peter Bartok  <pbartok@novell.com>
36422
36423         * TextControl.cs: Now properly aligns text on a baseline, using the
36424           new XplatUI.GetFontMetrics() method. Simplified several calculations
36425         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
36426           defined
36427
36428 2004-12-16  Peter Bartok  <pbartok@novell.com>
36429
36430         * XplatUI.cs: Added GetFontMetrics() method
36431         * XplatUIDriver.cs: Added GetFontMetrics() abstract
36432         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
36433           into libgdiplus, our private GetFontMetrics function
36434         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
36435         * XplatUIWin32.cs: Implemented GetFontMetrics() method
36436
36437 2004-12-16  Jackson Harper  <jackson@ximain.com>
36438
36439         * XplatUIStruct.cs: Add enum for dead keys
36440         * X11Keyboard.cs: Map and unmap dead keys.
36441
36442 2004-12-16  Jackson Harper  <jackson@ximian.com>
36443
36444         * X11Keyboard.cs: Detect and use the num lock mask.
36445
36446 2004-12-16  Peter Bartok  <pbartok@novell.com>
36447
36448         * Control.cs (CreateGraphics): Added check to make sure the
36449           handle of the window exists before calling Graphics.FromHwnd()
36450
36451 2004-12-16  Peter Bartok  <pbartok@novell.com>
36452
36453         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
36454           contains a lot of code that's not supposed to be there for the
36455           real thing, but required for developing/testing the textbox
36456           backend.
36457
36458 2004-12-16  Peter Bartok  <pbartok@novell.com>
36459
36460         * TextControl.cs:
36461         - Fixed Streamline method
36462         - Added FindTag method to Line
36463         - Added DumpTree method for debugging
36464         - Added DecrementLines() method for deleting lines
36465         - Fixed UpdateView to update the cursor to end-of-line on single-line
36466           updates
36467         - Added PositionCaret() method
36468         - Fixed MoveCaret(LineDown) to move into the last line, too
36469         - Added InsertChar overload
36470         - Fixed InsertChar tag offset calculations
36471         - Added DeleteChar() method
36472         - Added Combine() method for folding lines
36473         - Fixed Delete() method, no longer allocates wasted Line object and
36474           now copies all properties when swapping nodes
36475         - Delete() method now updates document line counter
36476
36477 2004-12-15  Jackson Harper  <jackson@ximian.com>
36478
36479         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
36480         * X11Keyboard.cs: Expose the currently selected modifier keys
36481         through a property.
36482
36483 2004-12-15  Peter Bartok  <pbartok@novell.com>
36484
36485         * TextControl.cs: Initial check-in. Still incomplete
36486
36487 2004-12-15  Jackson Harper  <jackson@ximian.com>
36488
36489         * TreeNode.cs:
36490         * TreeView.cs: Fix build on csc (second time today ;-))
36491
36492 2004-12-15  Jackson Harper  <jackson@ximian.com>
36493
36494         * TreeView.cs: Store the treenodes plus/minus box bounds when it
36495         is calculated and use this for click testing.
36496         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
36497
36498 2004-12-15  Jackson Harper  <jackson@ximian.com>
36499
36500         * TreeView.cs: Pass the nodes image index to the image list when
36501         drawing that image.
36502
36503 2004-12-15  Jackson Harper  <jackson@ximian.com>
36504
36505         * X11Keyboard.cs: Set messages hwnd.
36506         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
36507         post_message calls.
36508
36509 2004-12-15  Jackson Harper  <jackson@ximian.com>
36510
36511         * X11Keyboard.cs: Fix to compile with csc.
36512         
36513 2004-12-15  Jackson Harper  <jackson@ximian.com>
36514
36515         * X11Structs.cs: Add key mask values
36516         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
36517         * X11Keyboard.cs: New file - Extrapolates and interpolates key
36518         down/up foo into WM_CHAR foo
36519         * KeyboardLayouts.cs: Common keyboard layouts
36520         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
36521         post messages into the main queue.
36522
36523 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
36524
36525         * Button.cs: implement ProcessMnemonic
36526         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
36527           brushes everytime
36528         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
36529         * ButtonBase.cs: Show HotkeyPrefix (not the &)
36530
36531 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
36532         
36533         * MonthCalendar.cs: Implemented click-hold for next/previous month
36534           and date selection
36535           
36536 2004-12-11  Peter Bartok  <pbartok@novell.com>
36537
36538         * X11Structs.cs:
36539           - Added XKeyboardState (moved from XplatUIX11.cs)
36540           - Added XCreateGC related enums and structures
36541           - Added GXFunction for XSetFunction
36542
36543         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
36544
36545         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
36546           CaretVisible() calls
36547
36548         * ToolTip.cs: Added code to prevent stealing focus from app windows
36549
36550         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
36551           DestroyCaret, SetCaretPos and CaretVisible)
36552
36553         * XplatUIX11.cs:
36554           - Added implementation for caret functions
36555           - Moved hover variables into a struct, to make it a bit easier
36556             on the eyes and to debug
36557           - Removed XKeyboardState (moved to XplatUIX11.cs)
36558           - Moved Keyboard properties into the properties region
36559
36560         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
36561           call to get a graphics context for our control
36562
36563         * XplatUIOSX.cs: Added empty overrides for the new caret functions
36564
36565         * TreeView.cs: Fixed bug. No matter what color was set it would always
36566           return SystemColors.Window
36567
36568         * XplatUIWin32.cs: Implemented caret overrides
36569
36570 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
36571
36572         * ListBox.cs: fire events, implement missing methods and properties,
36573         sorting.
36574
36575 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
36576
36577         * MonthCalendar.cs: invalidation bug fixing
36578         * ThemeWin32Classic.cs: paint fixing
36579
36580 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
36581
36582         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
36583         prepare the CGContextRef there now.
36584
36585 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
36586
36587         * MonthCalendar.cs:
36588           - optimisationL only invalidate areas that have changed
36589         * ThemeWin32Classic.cs:
36590           - only paint parts that intersect with clip_area
36591
36592 2004-12-09  Peter Bartok  <pbartok@novell.com>
36593
36594         * Application.cs: Undid changes from r37004 which cause problems
36595         on X11
36596
36597 2004-12-09  Ravindra  <rkumar@novell.com>
36598
36599         * ToolBar.cs: Added support for displaying ContextMenu
36600         attached to a button on ToolBar.
36601         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
36602         property.
36603
36604 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36605
36606         * Label.cs: autosize works in text change and removes unnecessary
36607         invalidate
36608
36609 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36610
36611         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
36612         remove warnings
36613
36614 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
36615
36616         * XplatUIOSX.cs: Added mouse move/click/grab support
36617         Remove some debugging WriteLines not needed anymore.
36618         Add window resizing/positioning.
36619         Fix visibility on reparenting.
36620
36621 2004-12-08  Peter Bartok  <pbartok@novell.com>
36622
36623         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
36624
36625 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
36626
36627         * XplatUIOSX.cs: Initial checkin
36628         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
36629
36630 2004-12-03  Ravindra <rkumar@novell.com>
36631
36632         * ListView.cs: Added some keybindings and fixed scrolling.
36633         ScrollBars listen to ValueChanged event instead of Scroll
36634         Event. This would let us take care of all changes being
36635         done in the scrollbars' values programmatically or manually.
36636         * ListView.cs (CanMultiselect): Added a check for shift key.
36637         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
36638         * ListViewItem.cs (Clone): Fixed. We need to make a copy
36639         of ListViewSubItemCollection as well.
36640
36641 2004-12-06  Peter Bartok <pbartok@novell.com>
36642
36643         * Control.cs (Parent): Added check and exception to prevent
36644         circular parenting
36645
36646 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
36647
36648         * ListBox.cs: implemented clipping, selection single and multiple,
36649         bug fixing
36650
36651 2004-12-03  Ravindra <rkumar@novell.com>
36652
36653         * ListView.cs (ListView_KeyDown):
36654         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
36655         when CTRL key is pressed.
36656         * ListViewItem.cs (Selected): Fixed setting the property.
36657
36658 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36659
36660         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
36661
36662         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
36663         MinimizeBox, ShowInTaskbar, TopMost properties.
36664
36665         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
36666         will be implemented).
36667
36668 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36669
36670         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
36671
36672         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
36673         tests.
36674         
36675         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
36676         
36677         * TreeView.cs: BackColor is Colors.Window.
36678
36679 2004-12-01  Jackson Harper  <jackson@ximian.com>
36680
36681         * TreeView.cs: When resizing the tree if the user is making it
36682         smaller we don't get expose events, so we need to handle adding
36683         the horizontal scrollbar in the size changed handler as well as
36684         the expose handler.
36685
36686 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
36687
36688         * DrawItemState.cs: fixes wrong enum values
36689
36690 2004-12-01  Jackson Harper  <jackson@ximian.com>
36691
36692         * TreeView.cs: Resize the hbar as well as the vbar on resize.
36693
36694 2004-12-01  Jackson Harper  <jackson@ximian.com>
36695
36696         * NodeLabelEditEventArgs.cs:
36697         * NodeLabelEditEventHandler.cs:
36698         * OpenTreeNodeEnumerator.cs:
36699         * TreeNode.cs:
36700         * TreeNodeCollection.cs:
36701         * TreeView.cs:
36702         * TreeViewAction.cs:
36703         * TreeViewCancelEventArgs.cs:
36704         * TreeViewCancelEventHandler.cs:
36705         * TreeViewEventArgs.cs:
36706         * TreeViewEventHandler.cs: Initial implementation.
36707
36708 2004-12-01  Ravindra <rkumar@novell.com>
36709
36710         * ListView.cs (CalculateListView): Fixed scrolling related
36711         calculations. Also, removed some debug statements from other
36712         places.
36713         * ListViewItem.cs: Changed access to 'selected' instance variable
36714         from private to internal.
36715         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
36716
36717 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
36718
36719         * ThemeWin32Classic.cs: remove cache of brush and pens for
36720         specific controls and use the global system, fixes scrollbutton
36721         bugs (for small sizes, disabled, etc)
36722         
36723         * ScrollBar.cs: does not show the thumb for very small controls
36724         (as MS) and allow smaller buttons that the regular size
36725
36726 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
36727
36728         * UpDownBase.cs: Add abstract methods for the interface.
36729         Add new virtual methods (need to be hooked up to TextEntry when it
36730         exists).
36731         Add override methods for most features.
36732         Computes the size, forces the height of the text entry.
36733
36734         * NumericUpDown.cs: Put here the current testing code.
36735
36736         * Set eol-style property on all files that do not have mixed line
36737         endings, to minimize the future problems.  There are still a few
36738         files with mixed endings, and someone should choose whether they
36739         want to move it or not.
36740
36741 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
36742
36743         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
36744         System.Colors
36745         
36746 2004-11-30  Ravindra <rkumar@novell.com>
36747
36748         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
36749         drawing and replaced use of SystemColors by theme colors.
36750         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
36751         * ListView.cs (ListViewItemCollection.Add): Throw exception when
36752         same ListViewItem is being added more than once.
36753
36754 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
36755
36756         * MonthCalendar.cs:
36757           - ControlStyles love to make the control not flicker
36758           
36759 2004-11-30  Peter Bartok  <pbartok@novell.com>
36760
36761         * CharacterCasing.cs: Added
36762
36763 2004-11-29  Peter Bartok  <pbartok@novell.com>
36764
36765         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36766           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
36767           I am removing these files as they conflict with already completed
36768           work. While it is fantastic to get contributions to MWF, I
36769           respectfully ask that everyone please coordinate their contributions
36770           through mono-winforms-list or #mono-winforms at this time. We're
36771           explicitly avoiding stubbing and don't want controls that don't have
36772           their basic functionality implemented in svn. Please also see
36773           http://www.mono-project.com/contributing/winforms.html
36774
36775
36776 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
36777
36778         * Application.cs (ModalRun): Don't hang after exit.
36779
36780         * Theme.cs: New TreeViewDefaultSize property.
36781
36782         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
36783         with less hardcoded SystemColors constant.
36784         Implemented TreeViewDefaultSize.
36785
36786         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
36787         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
36788
36789
36790 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
36791
36792         * MonthCalendar.cs:
36793           - Fix NextMonthDate and PrevMonthDate click moving calendar
36794
36795 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
36796
36797         * MonthCalendar.cs:
36798           - Fix usage of ScrollChange Property when scrolling months
36799
36800 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
36801
36802         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
36803          - Fixes menu destroying
36804          - Support adding and removing items on already created menus
36805
36806 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
36807
36808         * MonthCalendar.cs:
36809           - Re-worked all bolded dates handling to match win32
36810         * ThemeWin32Classic.cs:
36811           - Fixed rendering with bolded dates
36812
36813 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
36814
36815         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
36816         - Horizontal scroolbar
36817         - Multicolumn
36818         - Fixes
36819
36820
36821 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
36822
36823         * MonthCalendar.cs:
36824           - Fix Usage of MaxSelectionCount from SelectionRange
36825           - Fixed Shift + Cursor Selection
36826           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
36827           - Fixed normal cursor selection to be compat with win32
36828           - Fixed Shift + Mouse Click selection
36829
36830 2004-11-24  Peter Bartok <pbartok@novell.com>
36831
36832         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
36833         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
36834         * XplatUIX11.cs:
36835           - CreatedKeyBoardMsg now updates keystate with Alt key
36836           - Added workaround for timer crash to CheckTimers, Jackson will
36837             develop a proper fix and check in later
36838           - Implemented DispatchMessage
36839           - Removed calling the native window proc from GetMessage (call
36840             now moved to DispatchMessage)
36841
36842         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
36843           the keydata (Fixes bug #69831)
36844
36845         * XplatUIWin32.cs:
36846           - (DispatchMessage): Switched to return IntPtr
36847           - Added DllImport for SetFocus
36848
36849 2004-11-24  Ravindra <rkumar@novell.com>
36850
36851         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
36852         background drawing.
36853         * ListViewItem.cs: Fixed various properties, calculations
36854         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
36855         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
36856         and some internal properties. Fixed MouseDown handler and Paint
36857         method.
36858
36859 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36860
36861         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
36862
36863 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36864
36865         * ContainerControl.cs: correct accidental check in of local changes
36866
36867 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
36868
36869         * ThemeWin32Classic.cs:
36870                 - Fixed Drawing Last month in grid (sometimes not showing)
36871         * MonthCalendar.cs:
36872                 - Fixed title width calculation bug (makeing title small)
36873
36874 2004-11-23  Peter Bartok <pbartok@novell.com>
36875
36876         * XplatUIX11.cs:
36877           - Added generation of WM_MOUSEHOVER event
36878           - Added missing assignment of async_method atom
36879           - Fixed WM_ERASEBKGND; now only redraws the exposed area
36880
36881 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
36882
36883         * ThemeWin32Classic.cs:
36884                 - Fixed Drawing of today circle when showtodaycircle not set
36885                 - fixed drawing of first and last month in the grid (gay dates)
36886         * MonthCalendar.cs:
36887                 - Fixed Drawing of today circle
36888                 - Fixed drawing of grady dates
36889                 - Fixed HitTest for today link when ShowToday set to false
36890                 - Fixed DefaultSize to obey ShowToday
36891
36892 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
36893
36894         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
36895         * System.Windows.Forms/Theme.cs
36896         * MonthCalendar.cs: added for MonthCalendar
36897         * SelectionRange.cs: added for MonthCalendar
36898         * Day.cs: added for MonthCalendar: added for MonthCalendar
36899         * DateRangeEventArgs.cs: added for MonthCalendar
36900         * DateRangeEventHandler.cs: added for MonthCalendar
36901
36902 2004-11-22  Ravindra <rkumar@novell.com>
36903
36904         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
36905         property.
36906
36907 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
36908
36909         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
36910         event handler.
36911         
36912         * NumericUpDown.cs: Added new implementation.
36913         * UpDownBase.cs: Added new implementation.
36914
36915         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
36916         implementations.
36917         
36918         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
36919         implementations.
36920
36921         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
36922         methods.
36923
36924 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
36925
36926         * Timer.cs  (Dispose): Should call the base dispose when
36927         overriding.
36928
36929 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
36930
36931         * ScrollBar.cs: updates thumb position when max, min or increment
36932         is changed
36933
36934 2004-11-21  Ravindra <rkumar@novell.com>
36935
36936         * ListView.cs: Implemented item selection, activation and
36937         column header style. Fixed properties to do a redraw, if
36938         required. Added support for MouseHover, DoubleClick, KeyDown
36939         and KeyUp event handling and some minor fixes.
36940         * ListViewItem.cs: Fixed constructor.
36941         * ThemeWin32Classic.cs: Improved drawing for ListView.
36942
36943 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
36944
36945         * ThemeWin32Classic.cs: initial listbox drawing code
36946         * DrawMode.cs: new enumerator
36947         * ListControl.cs: stubbed class
36948         * ListBox.cs: initial implementation
36949         * Theme.cs: new methods definitions
36950         * SelectionMode.cs: new enumerator
36951
36952 2004-11-17  Peter Bartok  <pbartok@novell.com>
36953
36954         * XplatUIWin32.cs: Added double-click events to the class style
36955         * Control.cs (WndProc):
36956           - Added handling of click-count to MouseDown/ MouseUp events.
36957           - Added handling of middle and right mouse buttons
36958           - Removed old debug code
36959
36960 2004-11-17  Jackson Harper  <jackson@ximian.com>
36961
36962         * XplatUIX11.cs: Use the new Mono.Unix namespace.
36963
36964 2004-11-17  Ravindra <rkumar@novell.com>
36965
36966         * ListView.cs: Added event handling for MouseMove/Up/Down.
36967         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
36968         * ThemeWin32Classic.cs: We need to clear the graphics context and
36969         draw column header in a proper state.
36970
36971
36972 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
36973
36974         *  Menu.cs: fixes signature
36975
36976 2004-11-16  Peter Bartok  <pbartok@novell.com>
36977
36978         * XplatUIX11.cs (GetMessage): Implemented generation of
36979           double click mouse messages
36980
36981 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
36982
36983         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
36984         not by menu
36985
36986 2004-11-11  Peter Bartok  <pbartok@novell.com>
36987
36988         * HandleData.cs: Added Visible property
36989         * XplatUIX11.cs (IsVisible): Now uses Visible property from
36990           HandleData
36991         * XplatUIX11.cs: Removed old debug leftovers
36992         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
36993         * Control.cs (WndProc): Removed old debug leftovers,
36994           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
36995           needed WM_SIZE handling
36996
36997 2004-11-11  Jackson Harper  <jackson@ximian.com>
36998
36999         * OwnerDrawPropertyBag.cs:
37000         * TreeViewImageIndexConverter.cs: Initial implementation
37001
37002 2004-11-10  Jackson Harper  <jackson@ximian.com>
37003
37004         * ThemeWin32Classic.cs:
37005         * TabControl.cs: instead of moving tabs by the slider pos just
37006         start drawing at the tab that is offset by the slider. This way
37007         scrolling always moves by exactly one tab.
37008
37009 2004-11-10  Jackson Harper  <jackson@ximian.com>
37010
37011         * TabControl.cs: You can only scroll left when the slider has
37012         already ben moved right.
37013         
37014 2004-11-10  Jackson Harper  <jackson@ximian.com>
37015
37016         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
37017         the clip area.
37018         
37019 2004-11-10  Jackson Harper  <jackson@ximian.com>
37020
37021         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
37022         clip area.
37023         
37024 2004-11-09  Jackson Harper  <jackson@ximian.com>
37025
37026         * TabControl.cs (CalcXPos): New helper method so we can determine
37027         the proper place to start drawing vertical tabs.
37028         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
37029         
37030 2004-11-09  Jackson Harper  <jackson@ximian.com>
37031
37032         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
37033         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
37034         and Bottom, left and right are illegal values for this and
37035         multiline is enabled when the alignment is set to left or right.
37036         (DrawTab): Each alignment block should draw the text itself now
37037         because Left requires special love. Also add rendering for Left
37038         aligned tabs.
37039         
37040 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
37041
37042         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
37043         does not destroy the windows, removes debugging messages
37044
37045 2004-11-09  jba  <jba-mono@optusnet.com.au>
37046
37047         * ThemeWin32Classic.cs
37048         (DrawButtonBase): Fix verticle text rect clipping in windows
37049         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37050         rendering and incorrect text rect clipping
37051         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37052         rendering and incorrect text rect clipping
37053         
37054 2004-11-08  Jackson Harper  <jackson@ximian.com>
37055
37056         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
37057         bottom when they are bottom aligned so the bottoms of the tabs get
37058         displayed.
37059         * TabControl.cs (DropRow): Move rows up instead of down when the
37060         tab control is bottom aligned.
37061
37062 2004-11-08 13:59  pbartok
37063
37064         * XplatUIX11.cs:
37065           - Added handling for various window styles
37066           - Added handling for popup windows
37067           - Added SetTopmost handling
37068
37069 2004-11-08 13:55  pbartok
37070
37071         * XplatUIWin32.cs:
37072           - Added argument to SetTopmost method
37073           - Fixed broken ClientToScreen function
37074
37075 2004-11-08 13:53  pbartok
37076
37077         * XplatUIStructs.cs:
37078           - Added missing WS_EX styles
37079
37080 2004-11-08 13:53  pbartok
37081
37082         * XplatUI.cs, XplatUIDriver.cs:
37083           - Added argument to SetTopmost
37084
37085 2004-11-08 13:52  pbartok
37086
37087         * X11Structs.cs:
37088           - Added XSetWindowAttributes structure
37089           - Improved XWindowAttributes structure
37090           - Added SetWindowValuemask enum
37091           - Added window creation arguments enum
37092           - Added gravity enum
37093           - Added Motif hints structure
37094           - Added various Motif flags and enums
37095           - Added PropertyMode enum for property functions
37096
37097 2004-11-08 13:50  pbartok
37098
37099         * Form.cs:
37100           - Fixed arguments for updated SetTopmost method
37101
37102 2004-11-08 13:49  pbartok
37103
37104         * ToolTip.cs:
37105           - Fixed arguments for updated SetTopmost function
37106           - Fixed usage of PointToClient
37107
37108 2004-11-08 13:44  pbartok
37109
37110         * MenuAPI.cs:
37111           - Added Clipping of children and siblings
37112
37113 2004-11-08 13:41  pbartok
37114
37115         * MainMenu.cs:
37116           - Removed SetMenuBarWindow call. We do this in Form.cs
37117
37118 2004-11-08 13:40  jackson
37119
37120         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
37121           scrolling jimmi in the correct location with bottom aligned tabs
37122
37123 2004-11-08 13:36  pbartok
37124
37125         * ContainerControl.cs:
37126           - Implemented BindingContext
37127           - Implemented ParentForm
37128
37129 2004-11-08 12:46  jackson
37130
37131         * TabControl.cs: Put bottom rendered tabs in the right location
37132
37133 2004-11-08 07:15  jordi
37134
37135         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
37136           removes dead code
37137
37138 2004-11-05 17:30  jackson
37139
37140         * TabControl.cs: When selected tabs are expanded make sure they
37141           don't go beyond the edges of the tab control
37142
37143 2004-11-05 14:57  jackson
37144
37145         * TabControl.cs: Reset show_slider so if the control is resized to
37146           a size where it is no longer needed it's not displayed anymore
37147
37148 2004-11-05 13:16  jackson
37149
37150         * TabControl.cs: Make tab pages non visible when added to the
37151           control
37152
37153 2004-11-05 12:42  jackson
37154
37155         * TabControl.cs: Implement SizeMode.FillToRight
37156
37157 2004-11-05 12:16  jackson
37158
37159         * Control.cs: Do not call CreateHandle if the handle is already
37160           created
37161
37162 2004-11-05 11:46  jackson
37163
37164         * TabControl.cs: Remove superflous call to CalcTabRows
37165
37166 2004-11-05 09:07  jackson
37167
37168         * XplatUIX11.cs: Update for Mono.Posix changes
37169
37170 2004-11-05 07:00  ravindra
37171
37172         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
37173           scrolling.
37174
37175 2004-11-04 22:47  jba
37176
37177         * ThemeWin32Classic.cs:
37178           - Fix Button rendering for FlatStyle = Flat or Popup
37179           - Fix RadioButton and CheckBox rendering when Appearance = Button
37180             (normal and flatstyle).
37181           - Correct outer rectangle color when drawing focus rectangle
37182           - Adjust button bounds to be 1 px smaller when focused
37183           - Make button not draw sunken 3d border when pushed (windows compat)
37184           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
37185           - Offset the text in RadioButton and Checkbox when being rendered as
37186           a button.
37187           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
37188           radiobuttons
37189           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
37190           - Fixed disabled text rendering for normally rendered radiobuttons
37191
37192 2004-11-04 10:26  jackson
37193
37194         * TabControl.cs: Recalculate tab rows when resizing
37195
37196 2004-11-04 07:47  jordi
37197
37198         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
37199           collection completion, drawing issues, missing features
37200
37201 2004-11-04 05:03  ravindra
37202
37203         * ScrollBar.cs:
37204                 - We need to recalculate the Thumb area when
37205                 LargeChange/maximum/minimum values are changed.
37206           - We set the 'pos' in UpdatePos() method to minimum, if it's less
37207                 than minimum. This is required to handle the case if large_change is
37208                 more than max, and use LargeChange property instead of large_change
37209                 variable.
37210           - We return max+1 when large_change is more than max, like MS does.
37211
37212 2004-11-04 04:29  ravindra
37213
37214         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
37215                 - Changed default value signatures (prefixed all with ListView).
37216                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
37217                 ListView.
37218           - Fixed calculations for ListViewItem and implemented Clone()
37219           method.
37220
37221 2004-11-04 04:26  ravindra
37222
37223         * Theme.cs, ThemeWin32Classic.cs:
37224                 - Changed default ListView values signatures (prefixed all with
37225                 ListView).
37226           - Fixed default size values for VScrollBar and HScrollBar.
37227                 - Fixed DrawListViewItem method.
37228
37229 2004-11-04 04:05  ravindra
37230
37231         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
37232
37233 2004-11-04 04:04  ravindra
37234
37235         * ImageList.cs: Implemented the missing overload for Draw method.
37236
37237 2004-11-03 19:29  jackson
37238
37239         * TabControl.cs: Handle dropping rows on selection properly
37240
37241 2004-11-03 11:59  jackson
37242
37243         * TabControl.cs: remove debug code
37244
37245 2004-11-03 11:52  jackson
37246
37247         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
37248           the scrolly widgerywoo
37249
37250 2004-11-02 13:52  jackson
37251
37252         * TabControl.cs: Resize the tab pages and tabs when the tab control
37253           is resized
37254
37255 2004-11-02 13:40  jackson
37256
37257         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
37258           selected tab to the bottom
37259
37260 2004-11-02 13:39  jackson
37261
37262         * TabPage.cs: Store the tab pages row
37263
37264 2004-11-02 12:33  jordi
37265
37266         * MenuItem.cs: fixes handle creation
37267
37268 2004-11-02 11:42  jackson
37269
37270         * TabControl.cs: signature fix
37271
37272 2004-11-02 08:56  jackson
37273
37274         * TabControl.cs: Calculate whether the tab is on an edge properly.
37275           Remove top secret debugging code
37276
37277 2004-11-01 19:57  jackson
37278
37279         * TabControl.cs: Add click handling, and proper sizing
37280
37281 2004-11-01 19:47  jackson
37282
37283         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
37284           tab controls
37285
37286 2004-11-01 19:39  jackson
37287
37288         * TabPage.cs: add internal property to store the bounds of a tab
37289           page
37290
37291 2004-10-30 04:23  ravindra
37292
37293         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
37294           values.
37295
37296 2004-10-30 04:21  ravindra
37297
37298         * ListView.cs, ListViewItem.cs: Added support for scrolling and
37299           fixed calculations.
37300
37301 2004-10-30 03:06  pbartok
37302
37303         * XplatUIX11.cs:
37304           - Removed extension of DllImported libs
37305
37306 2004-10-29 09:55  jordi
37307
37308         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
37309           navigation, itemcollection completion, menu fixes
37310
37311 2004-10-27 22:58  pbartok
37312
37313         * XplatUIX11.cs:
37314           - Now throws a nice error message when no X display could be opened
37315
37316 2004-10-26 13:51  jordi
37317
37318         * ListView.cs: removes warning
37319
37320 2004-10-26 03:55  ravindra
37321
37322         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
37323           ThemeWin32Classic.cs: Some formatting for my last checkins.
37324
37325 2004-10-26 03:36  ravindra
37326
37327         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
37328           control and default values.
37329
37330 2004-10-26 03:35  ravindra
37331
37332         * Theme.cs: Added some default values for ListView control.
37333
37334 2004-10-26 03:33  ravindra
37335
37336         * ToolBar.cs: ToolBar should use the user specified button size, if
37337           there is any. Added a size_specified flag for the same.
37338
37339 2004-10-26 03:33  ravindra
37340
37341         * ColumnHeader.cs: Added some internal members and calculations for
37342           ColumnHeader.
37343
37344 2004-10-26 03:32  ravindra
37345
37346         * ListViewItem.cs: Calculations for ListViewItem.
37347
37348 2004-10-26 03:31  ravindra
37349
37350         * ListView.cs: Added some internal members and calculations for
37351           ListView.
37352
37353 2004-10-22 13:31  jordi
37354
37355         * MenuAPI.cs: speedup menus drawing
37356
37357 2004-10-22 13:16  jackson
37358
37359         * XplatUIX11.cs: Make sure to update exposed regions when adding an
37360           expose event
37361
37362 2004-10-22 11:49  jackson
37363
37364         * Control.cs: oops
37365
37366 2004-10-22 11:41  jackson
37367
37368         * Control.cs: Check to see if the window should have its background
37369           repainted by X when drawing.
37370
37371 2004-10-22 11:31  jackson
37372
37373         * XplatUIX11.cs: When invalidating areas only use XClearArea if
37374           clear is true, this way we do not get flicker from X repainting the
37375           background
37376
37377 2004-10-22 11:28  jackson
37378
37379         * XEventQueue.cs: Queue properly
37380
37381 2004-10-21 09:38  jackson
37382
37383         * XEventQueue.cs: Fix access modifier
37384
37385 2004-10-21 09:36  jackson
37386
37387         * XEventQueue.cs: Don't loose messages
37388
37389 2004-10-21 09:22  jackson
37390
37391         * XEventQueue.cs: Don't loose messages
37392
37393 2004-10-20 04:15  jordi
37394
37395         * BootMode.cs: enum need it by SystemInfo
37396
37397 2004-10-19 21:58  pbartok
37398
37399         * XplatUIWin32.cs:
37400           - Small sanity check
37401
37402 2004-10-19 21:56  pbartok
37403
37404         * Form.cs:
37405           - Added private FormParentWindow class which acts as the container
37406             for our form and as the non-client area where menus are drawn
37407           - Added/Moved required tie-ins to Jordi's menus
37408           - Fixed/Implemented the FormStartPosition functionality
37409
37410 2004-10-19 21:52  pbartok
37411
37412         * Control.cs:
37413           - Removed unneeded locals
37414           - Added code to all size and location properties to understand and
37415             deal with the parent container of Form
37416
37417 2004-10-19 21:33  pbartok
37418
37419         * Application.cs:
37420           - Fixed to deal with new Form subclasses for menus
37421
37422 2004-10-19 17:48  jackson
37423
37424         * XEventQueue.cs: commit correct version of file
37425
37426 2004-10-19 16:50  jackson
37427
37428         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
37429
37430 2004-10-19 16:15  jordi
37431
37432         * MenuAPI.cs: MenuBarCalcSize returns the height
37433
37434 2004-10-19 08:31  pbartok
37435
37436         * Control.cs:
37437           - Added missing call to PreProcessMessage before calling OnXXXKey
37438           methods
37439
37440 2004-10-19 00:04  ravindra
37441
37442         * ToolTip.cs: Fixed constructor.
37443
37444 2004-10-18 09:31  jordi
37445
37446         * MenuAPI.cs: menuitems in menubars do not have shortcuts
37447
37448 2004-10-18 09:26  jordi
37449
37450         * MenuItem.cs: fixes MenuItem class signature
37451
37452 2004-10-18 08:56  jordi
37453
37454         * MenuAPI.cs: prevents windows from showing in the taskbar
37455
37456 2004-10-18 00:28  ravindra
37457
37458         * ToolTip.cs: Suppressed a warning message.
37459
37460 2004-10-18 00:27  ravindra
37461
37462         * Control.cs: Default value of visible property must be true.
37463
37464 2004-10-17 23:19  pbartok
37465
37466         * ToolTip.cs:
37467           - Complete implementation
37468
37469 2004-10-17 23:19  pbartok
37470
37471         * XplatUIX11.cs:
37472           - Added EnableWindow method
37473           - Added SetModal stub
37474           - Added generation of WM_ACTIVATE message (still needs testing)
37475           - Added SetTopMost stub
37476           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
37477
37478 2004-10-17 23:17  pbartok
37479
37480         * XplatUIWin32.cs:
37481           - Removed VirtualKeys to XplatUIStructs
37482           - Implemented SetTopMost method
37483           - Implemented EnableWindow method
37484           - Bugfix in ScreenToClient()
37485           - Bugfixes in ClientToScreen()
37486
37487 2004-10-17 22:51  pbartok
37488
37489         * XplatUIStructs.cs:
37490           - Added WS_EX styles to WindowStyles enumeration
37491
37492 2004-10-17 22:50  pbartok
37493
37494         * XplatUI.cs, XplatUIDriver.cs:
37495           - Added method for enabling/disabling windows
37496           - Added method for setting window modality
37497           - Added method for setting topmost window
37498
37499 2004-10-17 22:49  pbartok
37500
37501         * ThemeWin32Classic.cs:
37502           - Added ToolTip drawing code
37503
37504 2004-10-17 22:49  pbartok
37505
37506         * Theme.cs:
37507           - Added ToolTip abstracts
37508
37509 2004-10-17 22:47  pbartok
37510
37511         * Form.cs:
37512           - Fixed Form.ControlCollection to handle owner relations
37513           - Added Owner/OwnedForms handling
37514           - Implemented Z-Ordering for owned forms
37515           - Removed unneeded private overload of ShowDialog
37516           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
37517             so I hope)
37518           - Fixed Close(), had wrong default
37519           - Added firing of OnLoad event
37520           - Added some commented out debug code for Ownership handling
37521
37522 2004-10-17 22:16  pbartok
37523
37524         * Control.cs:
37525           - Fixed/implemented flat list of controls
37526
37527 2004-10-17 22:14  pbartok
37528
37529         * Application.cs:
37530           - Added code to simulate modal dialogs on Win32
37531
37532 2004-10-17 16:11  jordi
37533
37534         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
37535           mouse event
37536
37537 2004-10-17 13:39  jordi
37538
37539         * MenuAPI.cs: menu drawing fixes
37540
37541 2004-10-15 09:10  ravindra
37542
37543         * StructFormat.cs: General Enum.
37544
37545 2004-10-15 09:09  ravindra
37546
37547         * SizeGripStyle.cs: Enum for Form.
37548
37549 2004-10-15 09:08  ravindra
37550
37551         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
37552           in Theme for ListView.
37553
37554 2004-10-15 09:06  ravindra
37555
37556         * ColumnHeader.cs: Flushing some formatting changes.
37557
37558 2004-10-15 09:05  ravindra
37559
37560         * ListViewItem.cs: Implemented GetBounds method and fixed coding
37561           style.
37562
37563 2004-10-15 09:03  ravindra
37564
37565         * ListView.cs: Implemented Paint method and fixed coding style.
37566
37567 2004-10-15 07:34  jordi
37568
37569         * MenuAPI.cs: fix for X11
37570
37571 2004-10-15 07:32  ravindra
37572
37573         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
37574                 - Renamed Paint() method to Draw() for clarity. Also, moved
37575                 DrawImage() to OnPaint().
37576
37577 2004-10-15 07:25  ravindra
37578
37579         * CheckBox.cs, RadioButton.cs:
37580                 - Removed Redraw (), we get it from ButtonBase.
37581                 - Implemented Paint (), to do class specific painting.
37582
37583 2004-10-15 07:16  ravindra
37584
37585         * ButtonBase.cs:
37586                 - Redraw () is not virtual now.
37587                 - Added an internal virtual method Paint (), so that
37588                 derived classes can do their painting on their own.
37589                 - Modified OnPaint () to call Paint ().
37590
37591 2004-10-15 06:43  jordi
37592
37593         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
37594           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
37595
37596 2004-10-15 00:30  ravindra
37597
37598         * MessageBox.cs:
37599                 - MessageBox on windows does not have min/max buttons.
37600                 This change in CreateParams fixes this on Windows. We
37601                 still need to implement this windowstyle behavior in
37602                 our X11 driver.
37603
37604 2004-10-14 05:14  ravindra
37605
37606         * ToolBar.cs:
37607                 - Changed Redraw () to do a Refresh () always.
37608                 - Fixed the MouseMove event handling when mouse is pressed,
37609                 ie drag event handling.
37610                 - Replaced the usage of ToolBarButton.Pressed property to
37611                 ToolBarButton.pressed internal variable.
37612
37613 2004-10-14 05:10  ravindra
37614
37615         * ToolBarButton.cs:
37616                 - Added an internal member 'inside' to handle mouse move
37617                 with mouse pressed ie mouse drag event.
37618                 - Changed 'Pressed' property to return true only when
37619                 'inside' and 'pressed' are both true.
37620                 - Some coding style love.
37621
37622 2004-10-14 00:17  ravindra
37623
37624         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
37625           public method.
37626
37627 2004-10-14 00:15  ravindra
37628
37629         * ButtonBase.cs: Redraw () related improvements.
37630
37631 2004-10-14 00:14  ravindra
37632
37633         * MessageBox.cs: Moved InitFormSize () out of Paint method and
37634           removed unnecessary calls to Button.Show () method.
37635
37636 2004-10-13 17:50  pbartok
37637
37638         * XplatUIX11.cs:
37639           - Formatting fix
37640           - Removed destroying of window until we solve the problem of X
37641             destroying the window before us on shutdown
37642
37643 2004-10-13 16:32  pbartok
37644
37645         * ButtonBase.cs:
37646           - Now Redraws on MouseUp for FlatStyle Flat and Popup
37647
37648 2004-10-13 14:18  pbartok
37649
37650         * XplatUIX11.cs:
37651           - Added code to destroy the X window
37652
37653 2004-10-13 14:18  pbartok
37654
37655         * XplatUIWin32.cs:
37656           - Added code to destroy a window
37657
37658 2004-10-13 14:12  pbartok
37659
37660         * ButtonBase.cs:
37661           - Added the Redraw on Resize that got dropped in the last rev
37662
37663 2004-10-13 09:06  pbartok
37664
37665         * ThemeWin32Classic.cs:
37666           - Path from John BouAntoun:
37667             * Fix check rendering (centre correctly for normal style, offset
37668               correctly for FlatStyle).
37669             * Fix border color usage (use backcolor) for FlatStyle.Popup
37670             * Use checkbox.Capture instead of checkbox.is_pressed when
37671               rendering flatstyle states.
37672
37673 2004-10-12 21:48  pbartok
37674
37675         * ThemeWin32Classic.cs:
37676           - Removed all occurences of SystemColors and replaced them with the
37677             matching theme color
37678
37679 2004-10-12 21:41  pbartok
37680
37681         * ThemeWin32Classic.cs:
37682           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
37683             him using the function for flatstyle drawing
37684           - Changed functions to use the new version of CPDrawBorder3D
37685
37686 2004-10-12 21:15  pbartok
37687
37688         * ControlPaint.cs:
37689           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
37690             match MS documentation. They need to return defined colors if the
37691             passed color matches the configured control color. Thanks to John
37692             BouAntoun for pointing this out.
37693
37694 2004-10-12 20:57  pbartok
37695
37696         * Control.cs:
37697           - Fix from John BouAntoun: Raise ForeColorChanged event when text
37698             color is changed
37699
37700 2004-10-12 20:46  pbartok
37701
37702         * CheckBox.cs:
37703           - Fix from John BouAntoun: Now properly sets the Appearance property
37704
37705 2004-10-12 20:45  pbartok
37706
37707         * ThemeWin32Classic.cs:
37708           - Fixes from John BouAntoun: now handles forecolors and backcolors
37709             for flatstyle rendered controls much better; It also fixes normal
37710             checkbox rendering when pushed or disabled.
37711
37712 2004-10-08 02:50  jordi
37713
37714         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
37715           work
37716
37717 2004-10-07 08:56  jordi
37718
37719         * ThemeWin32Classic.cs: Removes deletion of cached brushes
37720
37721 2004-10-06 03:59  jordi
37722
37723         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
37724           XplatUIWin32.cs: removes warnings from compilation
37725
37726 2004-10-05 12:23  jackson
37727
37728         * RadioButton.cs: Fix ctor
37729
37730 2004-10-05 11:10  pbartok
37731
37732         * MessageBox.cs:
37733           - Partial implementation by Benjamin Dasnois
37734
37735 2004-10-05 10:15  jackson
37736
37737         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
37738           by John BouAntoun
37739
37740 2004-10-05 03:07  ravindra
37741
37742         * ToolBar.cs:
37743                 - Removed a private method, Draw ().
37744                 - Fixed the ButtonDropDown event handling.
37745                 - Fixed MouseMove event handling.
37746
37747 2004-10-05 03:04  ravindra
37748
37749         * ThemeWin32Classic.cs:
37750                 - Added DrawListView method and ListViewDefaultSize property.
37751                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
37752                 - Changed DOS style CRLF to Unix format (dos2unix).
37753
37754 2004-10-05 03:03  ravindra
37755
37756         * Theme.cs:
37757                 - Added DrawListView method and ListViewDefaultSize property.
37758
37759 2004-10-05 02:42  ravindra
37760
37761         * ToolBarButton.cs: Added an internal member dd_pressed to handle
37762           clicks on DropDown arrow.
37763
37764 2004-10-04 22:56  jackson
37765
37766         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
37767           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
37768           Control handle the buffers, derived classes should not have to
37769           CreateBuffers themselves.
37770
37771 2004-10-04 21:20  jackson
37772
37773         * StatusBar.cs: The control handles resizing the buffers now.
37774
37775 2004-10-04 21:18  jackson
37776
37777         * Control.cs: When resizing the buffers should be invalidated. This
37778           should be handled in Control not in derived classes.
37779
37780 2004-10-04 14:45  jackson
37781
37782         * TabPage.cs: oops
37783
37784 2004-10-04 02:14  pbartok
37785
37786         * LeftRightAlignment.cs:
37787           - Initial check-in
37788
37789 2004-10-04 01:09  jordi
37790
37791         * ThemeWin32Classic.cs: fixes right button position causing right
37792           button not showing on horizontal scrollbars
37793
37794 2004-10-02 13:12  pbartok
37795
37796         * XplatUIX11.cs:
37797           - Simplified the Invalidate method by using an X call instead of
37798             generating the expose ourselves
37799           - Added an expose when the window background is changed
37800           - Implemented ClientToScreen method
37801
37802 2004-10-02 13:08  pbartok
37803
37804         * XplatUIWin32.cs:
37805           - Added Win32EnableWindow method (test for implementing modal
37806           dialogs)
37807           - Added ClientToScreen method and imports
37808
37809 2004-10-02 13:07  pbartok
37810
37811         * XplatUI.cs, XplatUIDriver.cs:
37812           - Added ClientToScreen coordinate translation method
37813
37814 2004-10-02 13:06  pbartok
37815
37816         * KeyPressEventArgs.cs:
37817           - Fixed access level for constructor
37818
37819 2004-10-02 13:06  pbartok
37820
37821         * NativeWindow.cs:
37822           - Changed access level for the window_collection hash table
37823
37824 2004-10-02 13:05  pbartok
37825
37826         * Form.cs:
37827           - Added KeyPreview property
37828           - Added Menu property (still incomplete, pending Jordi's menu work)
37829           - Implemented ProcessCmdKey
37830           - Implemented ProcessDialogKey
37831           - Implemented ProcessKeyPreview
37832
37833 2004-10-02 13:02  pbartok
37834
37835         * Control.cs:
37836           - Added private method to get the Control object from the window
37837           handle
37838           - Implemented ContextMenu property
37839           - Implemented PointToScreen
37840           - Implemented PreProcessMessage
37841           - Implemented IsInputChar
37842           - Implemented IsInputKey
37843           - Implemented ProcessCmdKey
37844           - Completed ProcessKeyEventArgs
37845           - Fixed message loop to call the proper chain of functions on key
37846           events
37847           - Implemented ProcessDialogChar
37848           - Implemented ProcessDialogKey
37849           - Implemented ProcessKeyMessage
37850           - Implemented ProcessKeyPreview
37851           - Added RaiseDragEvent stub (MS internal method)
37852           - Added RaiseKeyEvent stub (MS internal method)
37853           - Added RaiseMouseEvent stub (MS Internal method)
37854           - Added RaisePaintEvent stub (MS Internal method)
37855           - Added ResetMouseEventArgs stub (MS Internal method)
37856           - Implemented RtlTranslateAlignment
37857           - Implemented RtlTranslateContent
37858           - Implemented RtlTranslateHorizontal
37859           - Implemented RtlTranslateLeftRight
37860           - Added generation of KeyPress event
37861
37862 2004-10-02 05:57  ravindra
37863
37864         * ListViewItem.cs: Added attributes.
37865
37866 2004-10-02 05:32  ravindra
37867
37868         * ListView.cs: Added attributes.
37869
37870 2004-10-01 11:53  jackson
37871
37872         * Form.cs: Implement the Close method so work on MessageBox can
37873           continue.
37874
37875 2004-09-30 14:06  pbartok
37876
37877         * XplatUIX11.cs:
37878           - Bug fixes
37879
37880 2004-09-30 11:34  jackson
37881
37882         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
37883
37884 2004-09-30 07:26  ravindra
37885
37886         * ListViewItemConverter.cs: Converter for ListViewItem.
37887
37888 2004-09-30 07:26  ravindra
37889
37890         * SortOrder.cs: Enum for ListView control.
37891
37892 2004-09-30 07:25  ravindra
37893
37894         * ColumnHeader.cs: Supporting class for ListView control.
37895
37896 2004-09-30 07:24  ravindra
37897
37898         * ListView.cs, ListViewItem.cs: Initial implementation.
37899
37900 2004-09-30 07:20  ravindra
37901
37902         * ItemActivation.cs: Enum for ListView Control.
37903
37904 2004-09-29 20:29  pbartok
37905
37906         * XplatUIX11.cs:
37907           - Added lookup of pixel value for background color; tries to get a
37908             color 'close' to the requested color, it avoids having to create a
37909             colormap.  Depending on the display this could mean the used color
37910             is slightly off the desired color. Might have to change it to a more
37911             resource intensive colormap approach, but it will work as a
37912           workaround to avoid red screens.
37913
37914 2004-09-29 14:27  jackson
37915
37916         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
37917
37918 2004-09-28 12:44  pbartok
37919
37920         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
37921           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
37922           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
37923           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
37924           TrackBar.cs, VScrollBar.cs:
37925           - Streamlined Theme interfaces:
37926             * Each DrawXXX method for a control now is passed the object for
37927               the control to be drawn in order to allow accessing any state the
37928               theme might require
37929
37930             * ControlPaint methods for the theme now have a CP prefix to avoid
37931               name clashes with the Draw methods for controls
37932
37933             * Every control now retrieves it's DefaultSize from the current
37934             theme
37935
37936 2004-09-28 12:17  jackson
37937
37938         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
37939           drawing
37940
37941 2004-09-24 14:57  jackson
37942
37943         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
37944           Gives us a nice little performance boost.
37945
37946 2004-09-24 12:02  jackson
37947
37948         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
37949           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
37950           Control and supporting classes. Initial checkin
37951
37952 2004-09-23 13:08  jackson
37953
37954         * Form.cs: Temp build fixage
37955
37956 2004-09-23 01:39  ravindra
37957
37958         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
37959           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
37960           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
37961           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
37962           EventHandlers needed by ListView Control.
37963
37964 2004-09-22 14:12  pbartok
37965
37966         * ScrollableControl.cs:
37967           - Implemented DockPadding property
37968           - Implemented AutoScroll property
37969           - Implemented AutoScrollMargin property
37970           - Implemented AutoScrollMinSize property
37971           - Implemented AutoScrollPosition property
37972           - Implemented DisplayRectangle property (still incomplete)
37973           - Implemented CreateParams property
37974           - Implemented HScroll property
37975           - Implemented VScroll property
37976           - Implemented OnVisibleChanged property
37977
37978 2004-09-22 14:09  pbartok
37979
37980         * Form.cs:
37981           - Added Form.ControllCollection class
37982           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
37983             RemoveOwnedForm (still incomplete, missing on-top and common
37984             minimize/maximize behaviour)
37985           - Added StartPosition property (still incomplete, does not use when
37986             creating the form)
37987           - Added ShowDialog() methods (still incomplete, missing forcing the
37988             dialog modal)
37989
37990 2004-09-22 14:05  pbartok
37991
37992         * Application.cs:
37993           - Added message loop for modal dialogs
37994
37995 2004-09-22 14:02  pbartok
37996
37997         * GroupBox.cs:
37998           - Fixed wrong types for events
37999
38000 2004-09-22 14:00  pbartok
38001
38002         * Shortcut.cs, FormWindowState.cs:
38003           - Fixed wrong values
38004
38005 2004-09-22 12:01  jackson
38006
38007         * Control.cs: Text is never null
38008
38009 2004-09-20 22:14  pbartok
38010
38011         * XplatUIWin32.cs:
38012           - Fixed accessibility level for Idle handler
38013
38014 2004-09-20 18:54  jackson
38015
38016         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38017           XplatUIX11.cs: New message loop that uses poll so we don't get a
38018           busy loop
38019
38020 2004-09-17 10:43  pbartok
38021
38022         * ScrollBar.cs:
38023           - Fixed behaviour of arrow buttons. Now properly behaves like
38024             Buttons (and like Microsoft's scrollbar arrow buttons)
38025
38026 2004-09-17 10:14  pbartok
38027
38028         * ScrollBar.cs:
38029           - Added missing release of keyboard/mouse capture
38030
38031 2004-09-17 06:18  jordi
38032
38033         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
38034           Theme.cs: Very early menu support
38035
38036 2004-09-16 17:45  pbartok
38037
38038         * XplatUIWin32.cs:
38039           - Fixed sending a window to the front
38040           - Added overload for SetWindowPos to avoid casting
38041
38042 2004-09-16 17:44  pbartok
38043
38044         * Control.cs:
38045           - Added SendToBack and BringToFront methods
38046
38047 2004-09-16 07:00  ravindra
38048
38049         * Copyright: Added Novell URL.
38050
38051 2004-09-16 07:00  ravindra
38052
38053         * ToolBar.cs: Invalidate should be done before redrawing.
38054
38055 2004-09-15 21:19  ravindra
38056
38057         * ColumnHeaderStyle.cs: Enum for ListView Control.
38058
38059 2004-09-15 21:18  ravindra
38060
38061         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
38062           ListView Control.
38063
38064 2004-09-13 18:26  jackson
38065
38066         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
38067           properly
38068
38069 2004-09-13 18:13  jackson
38070
38071         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
38072           a second thread and post messages into the main threads message
38073           queue. This makes timing much more consistent. Both win2K and XP
38074           have a minimum timer value of 15 milliseconds, so we now do this
38075           too.
38076
38077 2004-09-13 15:18  pbartok
38078
38079         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38080           XplatUIX11.cs:
38081           - Added Z-Ordering methods
38082
38083 2004-09-13 10:56  pbartok
38084
38085         * Form.cs:
38086           - Fixed #region names
38087           - Moved properties and methods into their proper #regions
38088
38089 2004-09-13 10:51  pbartok
38090
38091         * Form.cs:
38092           - Added Accept and CancelButton properties
38093           - Added ProcessDialogKey() method
38094
38095 2004-09-13 08:18  pbartok
38096
38097         * IWindowTarget.cs:
38098           - Initial check-in
38099
38100 2004-09-10 21:50  pbartok
38101
38102         * Control.cs:
38103           - Added DoDragDrop() [incomplete]
38104           - Properly implemented 'Visible' handling
38105           - Added SetVisibleCore()
38106           - Implemented FindChildAtPoint()
38107           - Implemented GetContainerControl()
38108           - Implemented Hide()
38109
38110 2004-09-10 19:28  pbartok
38111
38112         * Control.cs:
38113           - Moved methods into their appropriate #regions
38114           - Reordered methods within regions alphabetically
38115
38116 2004-09-10 18:57  pbartok
38117
38118         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38119           - Added method to retrieve text from window
38120
38121 2004-09-10 18:56  pbartok
38122
38123         * Control.cs:
38124           - Moved some internal functions into the internal region
38125           - Implemented FontHeight
38126           - Implemented RenderRightToLeft
38127           - Implemented ResizeRedraw
38128           - Implemented ShowFocusCues
38129           - Implemented ShowKeyboardCues
38130           - Implemented FromChildHandle
38131           - Implemented FromHandle
38132           - Implemented IsMnemonic
38133           - Implemented ReflectMessage
38134           - All public and protected Static Methods are now complete
38135
38136 2004-09-10 16:54  pbartok
38137
38138         * Control.cs:
38139           - Implemented remaining missing public instance properties
38140           - Alphabetized some out of order properties
38141
38142 2004-09-10 05:51  ravindra
38143
38144         * PictureBox.cs: Added a check for null image.
38145
38146 2004-09-10 00:59  jordi
38147
38148         * GroupBox.cs: remove cvs tag
38149
38150 2004-09-09 05:25  ravindra
38151
38152         * ToolBar.cs: Make redraw accessible from ToolBarButton.
38153
38154 2004-09-09 05:23  ravindra
38155
38156         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
38157           parent redraw.
38158
38159 2004-09-09 02:28  pbartok
38160
38161         * ThemeWin32Classic.cs:
38162           - Improve disabled string look
38163
38164 2004-09-09 01:15  jordi
38165
38166         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
38167           args and handler
38168
38169 2004-09-08 23:56  ravindra
38170
38171         * ItemBoundsPortion.cs: It's enum, not a class!
38172
38173 2004-09-08 23:47  ravindra
38174
38175         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
38176           Enums for Form.
38177
38178 2004-09-08 21:13  ravindra
38179
38180         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
38181           ListView control.
38182
38183 2004-09-08 21:03  ravindra
38184
38185         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
38186           avoid crash.
38187
38188 2004-09-08 21:01  ravindra
38189
38190         * ScrollableControl.cs: Removed unreachable code.
38191
38192 2004-09-08 06:45  jordi
38193
38194         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
38195
38196 2004-09-08 01:00  jackson
38197
38198         * XplatUIX11.cs: Only run the timers when updating the message
38199           queue. This effectively gives X messages a higher priority then
38200           timer messages. Timers still need love though
38201
38202 2004-09-07 14:01  jackson
38203
38204         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
38205           this for us and the handle is no longer valid.
38206
38207 2004-09-07 13:59  jackson
38208
38209         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
38210           loop that manages to not crash. TODO: Add poll and cleanup timers
38211
38212 2004-09-07 11:12  jordi
38213
38214         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
38215
38216 2004-09-07 03:40  jordi
38217
38218         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
38219           fixes, methods, multiple links
38220
38221 2004-09-06 06:55  jordi
38222
38223         * Control.cs: Caches ClientRectangle rectangle value
38224
38225 2004-09-05 02:03  jordi
38226
38227         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
38228           certain situations
38229
38230 2004-09-04 11:10  jordi
38231
38232         * Label.cs: Refresh when font changed
38233
38234 2004-09-02 16:24  pbartok
38235
38236         * Control.cs:
38237           - Added sanity check to creation of double buffer bitmap
38238
38239 2004-09-02 16:24  pbartok
38240
38241         * ButtonBase.cs:
38242           - Fixed selection of text color
38243           - Fixed handling of resize event; now properly recreates double
38244             buffering bitmap
38245           - Added missing assignment of TextAlignment
38246           - Added proper default for TextAlignment
38247
38248 2004-09-02 14:26  pbartok
38249
38250         * RadioButton.cs:
38251           - Added missing RadioButton.RadioButtonAccessibleObject class
38252
38253 2004-09-02 14:26  pbartok
38254
38255         * Control.cs:
38256           - Added missing Control.ControlAccessibleObject class
38257           - Started to implement Select()ion mechanisms, still very incomplete
38258
38259 2004-09-02 14:25  pbartok
38260
38261         * AccessibleObject.cs:
38262           - Added missing methods
38263
38264 2004-09-02 14:23  pbartok
38265
38266         * AccessibleNavigation.cs, AccessibleSelection.cs:
38267           - Initial check-in
38268
38269 2004-09-02 10:32  jordi
38270
38271         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
38272           pool for pens, brushes, and hatchbruses
38273
38274 2004-09-01 15:30  jackson
38275
38276         * StatusBar.cs: Fix typo
38277
38278 2004-09-01 14:44  pbartok
38279
38280         * RadioButton.cs:
38281           - Fixed state
38282
38283 2004-09-01 14:39  pbartok
38284
38285         * Button.cs, RadioButton.cs:
38286           - Functional initial check-in
38287
38288 2004-09-01 14:01  pbartok
38289
38290         * CheckBox.cs:
38291           - Added missing default
38292           - Added missing region mark
38293
38294 2004-09-01 09:10  jordi
38295
38296         * Label.cs: fixes method signatures, new methods, events, fixes
38297           autosize
38298
38299 2004-09-01 07:19  jordi
38300
38301         * Control.cs: Init string variables with an empty object
38302
38303 2004-09-01 04:20  jordi
38304
38305         * Control.cs: fires OnFontChanged event
38306
38307 2004-08-31 20:07  pbartok
38308
38309         * ButtonBase.cs:
38310           - Enabled display of strings
38311
38312 2004-08-31 20:05  pbartok
38313
38314         * Form.cs:
38315           - Added (partial) implementation of DialogResult; rest needs to be
38316             implemented when the modal loop code is done
38317
38318 2004-08-31 19:55  pbartok
38319
38320         * CheckBox.cs:
38321           - Fixed to match the removal of the needs_redraw concept
38322
38323 2004-08-31 19:55  pbartok
38324
38325         * ButtonBase.cs:
38326           - Removed the rather odd split between 'needs redraw' and redrawing
38327           - Now handles the events that require regeneration (ambient
38328             properties and size)
38329
38330 2004-08-31 19:41  pbartok
38331
38332         * Control.cs:
38333           - Added firing of BackColorChanged event
38334           - Added TopLevelControl property
38335           - Fixed handling of WM_ERASEBKGRND message
38336
38337 2004-08-31 12:49  pbartok
38338
38339         * ButtonBase.cs:
38340           - Removed debug
38341           - Minor fixes
38342
38343 2004-08-31 12:48  pbartok
38344
38345         * CheckBox.cs:
38346           - Finished (famous last words)
38347
38348 2004-08-31 04:35  jordi
38349
38350         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
38351           scrolling bugs, adds new methods
38352
38353 2004-08-30 14:42  pbartok
38354
38355         * CheckBox.cs:
38356           - Implemented CheckBox drawing code
38357
38358 2004-08-30 14:42  pbartok
38359
38360         * ButtonBase.cs:
38361           - Made Redraw() and CheckRedraw() virtual
38362           - Improved mouse up/down/move logic to properly track buttons
38363
38364 2004-08-30 09:44  pbartok
38365
38366         * CheckBox.cs:
38367           - Updated to fix broken build. Not complete yet.
38368
38369 2004-08-30 09:28  pbartok
38370
38371         * CheckState.cs:
38372           - Initial checkin
38373
38374 2004-08-30 09:17  pbartok
38375
38376         * Appearance.cs:
38377           - Initial check-in
38378
38379 2004-08-27 16:12  ravindra
38380
38381         * ToolBarButton.cs: Added TypeConverter attribute.
38382
38383 2004-08-27 16:07  ravindra
38384
38385         * ImageIndexConverter.cs: Implemented.
38386
38387 2004-08-27 14:17  pbartok
38388
38389         * Control.cs:
38390           - Removed unneeded stack vars
38391           - First attempt to fix sizing issues when layout is suspended
38392
38393 2004-08-25 15:35  jordi
38394
38395         * ScrollBar.cs: more fixes to scrollbar
38396
38397 2004-08-25 14:04  ravindra
38398
38399         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
38400           Added the missing divider code and grip for ToolBar Control.
38401
38402 2004-08-25 13:20  pbartok
38403
38404         * Control.cs:
38405           - Control now properly passes the ambient background color to child
38406             controls
38407
38408 2004-08-25 13:20  jordi
38409
38410         * ScrollBar.cs: small bug fix regarding bar position
38411
38412 2004-08-25 12:33  pbartok
38413
38414         * Timer.cs:
38415           - Now only calls SetTimer or KillTimer if the enabled state has
38416           changed
38417
38418 2004-08-25 12:33  pbartok
38419
38420         * XplatUIWin32.cs:
38421           - Fixed timer handling, now seems to work
38422           - Improved error message for window creation
38423
38424 2004-08-25 12:32  pbartok
38425
38426         * Control.cs:
38427           - Fixed generation of MouseUp message
38428
38429 2004-08-25 12:29  jordi
38430
38431         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
38432           and fixes for progressbar
38433
38434 2004-08-24 18:43  ravindra
38435
38436         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
38437           in ToolBar control.
38438
38439 2004-08-24 17:15  pbartok
38440
38441         * Panel.cs:
38442           - Added #region
38443           - Added missing events
38444           - Alphabetized
38445
38446 2004-08-24 17:14  pbartok
38447
38448         * StatusBar.cs, PictureBox.cs:
38449           - Now uses Control's CreateParams
38450
38451 2004-08-24 16:36  pbartok
38452
38453         * XplatUIX11.cs:
38454           - Fixed background color handling
38455           - Fixed sending of enter/leave events on a grab
38456
38457 2004-08-24 16:35  pbartok
38458
38459         * X11Structs.cs:
38460           - Refined definitions for CrossingEvent
38461
38462 2004-08-24 12:37  jordi
38463
38464         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
38465           formmating, methods signature, and adds missing events
38466
38467 2004-08-24 12:24  jordi
38468
38469         * Control.cs: fire OnEnabledChanged event
38470
38471 2004-08-24 11:17  pbartok
38472
38473         * XplatUIWin32.cs:
38474           - Implemented SetTimer() and KillTimer()
38475
38476 2004-08-24 11:16  pbartok
38477
38478         * XplatUIX11.cs:
38479           - Now uses Remove instead of Add to kill the timer
38480
38481 2004-08-24 10:16  jackson
38482
38483         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
38484           picture boxes in the theme now. Draw picture box borders and obey
38485           sizing modes
38486
38487 2004-08-24 05:49  jackson
38488
38489         * Timer.cs: Remove top secret debugging code
38490
38491 2004-08-24 05:34  jackson
38492
38493         * PictureBox.cs: Temp hack to make picture boxes draw their full
38494           image
38495
38496 2004-08-24 05:29  jackson
38497
38498         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38499           XplatUIX11.cs: Move timers to the driver level. On X they are
38500           queued by the driver and checked on idle.
38501
38502 2004-08-24 01:07  jackson
38503
38504         * XplatUIX11.cs: Use a queue for async messages instead of passing
38505           them as ClientMessages since that was totally broken. Also simply
38506           check for events and return an idle message if none are found. This
38507           gives us an idle handler, and prevents deadlocking when no messages
38508           are in the queue.
38509
38510 2004-08-23 18:19  ravindra
38511
38512         * XplatUIWin32.cs: Removed the unwanted destructor.
38513
38514 2004-08-23 17:27  pbartok
38515
38516         * ButtonBase.cs:
38517           - Finishing touches. Works now, just needs some optimizations.
38518
38519 2004-08-23 16:53  jordi
38520
38521         * ScrollBar.cs: small fix
38522
38523 2004-08-23 16:45  pbartok
38524
38525         * Application.cs:
38526           - Removed debug output
38527           - Simplifications
38528
38529 2004-08-23 16:43  jordi
38530
38531         * ScrollBar.cs: [no log message]
38532
38533 2004-08-23 16:10  pbartok
38534
38535         * Form.cs:
38536           - Fixed handling of WM_CLOSE message
38537           - Removed debug output
38538
38539 2004-08-23 16:09  pbartok
38540
38541         * Application.cs:
38542           - Added handling of Idle event
38543           - Added handling of form closing
38544           - Fixed reporting of MessageLoop property
38545           - Removed some unneeded code, should provide a bit of a speedup
38546
38547 2004-08-23 15:22  pbartok
38548
38549         * Control.cs:
38550           - Added InitLayout() method
38551           - Added code to properly perform layout when Anchor or Dock property
38552             is changed
38553           - Changed 'interpretation' of ResumeLayout. MS seems to have a
38554             LAMESPEC, tried to do it in a way that makes sense
38555
38556 2004-08-23 14:10  jordi
38557
38558         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
38559           properties and methods
38560
38561 2004-08-23 13:55  pbartok
38562
38563         * Control.cs:
38564           - Properly fixed Jordi's last fix
38565           - Now uses Cursor's Position property instead of calling XplatUI
38566           directly
38567
38568 2004-08-23 13:44  jordi
38569
38570         * PaintEventHandler.cs: Adding missing attribute
38571
38572 2004-08-23 13:39  pbartok
38573
38574         * Cursor.cs:
38575           - Implemented Position property
38576
38577 2004-08-23 13:39  pbartok
38578
38579         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38580           - Added method to move mouse cursor
38581
38582 2004-08-23 13:39  pbartok
38583
38584         * XplatUIX11.cs:
38585           - Fixed setting of background color
38586           - Added method to move mouse cursor
38587
38588 2004-08-23 13:16  jordi
38589
38590         * Control.cs: avoids null exception
38591
38592 2004-08-22 17:46  jackson
38593
38594         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
38595           PictureBox
38596
38597 2004-08-22 17:40  jackson
38598
38599         * XplatUIX11.cs: Add some missing locks
38600
38601 2004-08-22 15:10  pbartok
38602
38603         * Control.cs, Form.cs:
38604           - Removed OverlappedWindow style from Control, instead it's default
38605             now is child
38606           - Made form windows OverlappedWindow by default
38607
38608 2004-08-22 13:34  jackson
38609
38610         * ScrollBar.cs: Update the position through the Value property so
38611           the OnValueChanged event is raised.
38612
38613 2004-08-22 12:04  pbartok
38614
38615         * SWF.csproj:
38616           - Added Cursor.cs and UserControl.cs
38617
38618 2004-08-22 12:03  pbartok
38619
38620         * Cursor.cs:
38621           - Started implementation, not usable yet
38622
38623 2004-08-22 12:00  pbartok
38624
38625         * UserControl.cs:
38626           - Implemented UserControl (complete)
38627
38628 2004-08-21 19:20  ravindra
38629
38630         * ToolBar.cs: Correcting the formatting mess of VS.NET.
38631
38632 2004-08-21 18:49  ravindra
38633
38634         * ToolBar.cs: Probably this completes the missing attributes in
38635           toolbar control.
38636
38637 2004-08-21 18:03  ravindra
38638
38639         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
38640           Fixed toolbar control signatures.
38641
38642 2004-08-21 16:32  pbartok
38643
38644         * LinkLabel.cs:
38645           - Signature Fixes
38646
38647 2004-08-21 16:30  pbartok
38648
38649         * Label.cs:
38650           - Signature fixes
38651
38652 2004-08-21 16:19  pbartok
38653
38654         * Control.cs, Label.cs:
38655           - Signature fixes
38656
38657 2004-08-21 15:57  pbartok
38658
38659         * ButtonBase.cs:
38660           - Added loads of debug output for development
38661           - Fixed typo in method name
38662
38663 2004-08-21 15:52  pbartok
38664
38665         * ToolBarButtonClickEventArgs.cs:
38666           - Added missing base class
38667
38668 2004-08-21 14:53  pbartok
38669
38670         * Control.cs:
38671           - Updated to match new GrabWindow signature
38672
38673 2004-08-21 14:51  pbartok
38674
38675         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38676           - Added method to get default display size
38677
38678 2004-08-21 14:23  pbartok
38679
38680         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38681           - Added method to query current grab state
38682           - Added argument to allow confining a grab to a window
38683
38684 2004-08-21 14:22  pbartok
38685
38686         * Keys.cs:
38687           - Added [Flags] attribute so that modifiers can be used in bitwise
38688           ops
38689
38690 2004-08-21 14:21  pbartok
38691
38692         * TrackBar.cs, ScrollBar.cs:
38693           - Replaced direct XplatUI calls with their Control counterpart
38694
38695 2004-08-21 13:32  pbartok
38696
38697         * Control.cs:
38698           - Implemented Created property
38699
38700 2004-08-21 13:28  pbartok
38701
38702         * Control.cs:
38703           - Implemented ContainsFocus
38704
38705 2004-08-21 13:26  pbartok
38706
38707         * Control.cs:
38708           - Implemented CausesValidation
38709
38710 2004-08-21 13:21  pbartok
38711
38712         * Control.cs:
38713           - Implemented CanFocus
38714           - Implemented CanSelect
38715           - Implemented Capture
38716
38717 2004-08-21 12:35  pbartok
38718
38719         * XplatUIWin32.cs:
38720           - Fixed bug with Async message handling
38721           - Implemented getting the ModifierKeys
38722
38723 2004-08-21 12:32  jackson
38724
38725         * AsyncMethodResult.cs: Make sure we have the mutex before we
38726           release it. Fixes BeginInvoke on windows
38727
38728 2004-08-21 11:31  pbartok
38729
38730         * XplatUIWin32.cs, XplatUIX11.cs:
38731           - Drivers now return proper mouse state
38732
38733 2004-08-21 10:54  jackson
38734
38735         * Control.cs: Implement EndInvoke
38736
38737 2004-08-21 10:48  jackson
38738
38739         * Timer.cs: Remove unneeded finalizer
38740
38741 2004-08-20 19:52  ravindra
38742
38743         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
38744           in mouse event handling in the ToolBar control.
38745
38746 2004-08-20 19:50  ravindra
38747
38748         * ImageList.cs: Changed draw method to use the arguments passed in
38749           to draw the image.
38750
38751 2004-08-20 18:58  pbartok
38752
38753         * XplatUIStructs.cs:
38754           - Added private message for async communication
38755
38756 2004-08-20 17:38  ravindra
38757
38758         * Control.cs: Made RightToLeft property virtual and removed a
38759           Console.WriteLine.
38760
38761 2004-08-20 14:39  jordi
38762
38763         * ThemeGtk.cs: use style_attach
38764
38765 2004-08-20 14:39  pbartok
38766
38767         * XplatUIWin32.cs:
38768           - Added jackson's Async code from X11 to Win32
38769
38770 2004-08-20 14:09  pbartok
38771
38772         * SWF.csproj:
38773           - Added all new files
38774
38775 2004-08-20 14:09  pbartok
38776
38777         * Control.cs:
38778           - Added call to set window background color
38779
38780 2004-08-20 14:03  pbartok
38781
38782         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
38783           - Added method for setting the window background
38784
38785 2004-08-20 14:02  pbartok
38786
38787         * XplatUIWin32.cs:
38788           - Added method for setting the background color
38789           - Added handling for erasing the window background
38790
38791 2004-08-20 13:45  jordi
38792
38793         * TrackBar.cs: fixes timer, new properties and methods
38794
38795 2004-08-20 13:34  jackson
38796
38797         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
38798           correct thread
38799
38800 2004-08-20 13:22  jackson
38801
38802         * Timer.cs: Timer Tick events are now handed through Controls Async
38803           mechanism so the callbacks are executed in the same thread as X
38804
38805 2004-08-20 13:19  jackson
38806
38807         * XplatUIDriver.cs: Expose functionality to send async messages
38808           through the driver
38809
38810 2004-08-20 13:18  jackson
38811
38812         * Control.cs: Implement Begininvoke
38813
38814 2004-08-20 13:14  jackson
38815
38816         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
38817           messages through the driver
38818
38819 2004-08-20 13:12  jackson
38820
38821         * XplatUIX11.cs: Lock before all X operations. Also added Async
38822           method functionality through XSendEvent
38823
38824 2004-08-20 13:11  jackson
38825
38826         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
38827           This will screw up on 64 bit systems)
38828
38829 2004-08-20 13:10  jackson
38830
38831         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
38832           Async messages through X/Win32
38833
38834 2004-08-19 19:39  pbartok
38835
38836         * XplatUIX11.cs:
38837           - Updated code to match new HandleData.DeviceContext type
38838
38839 2004-08-19 19:38  pbartok
38840
38841         * HandleData.cs:
38842           - Made DeviceContext a generic object to allow usage from various
38843           drivers
38844           - Added support for queueing Windows messages
38845
38846 2004-08-19 19:37  pbartok
38847
38848         * XplatUIWin32.cs:
38849           - Added generation of MouseEnter, MouseLeave and MouseHover events
38850           - Added cleanup on EndPaint
38851
38852 2004-08-19 19:17  pbartok
38853
38854         * Control.cs:
38855           - Added handling of WM_MOUSEHOVER
38856           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
38857           code
38858
38859 2004-08-19 18:55  jordi
38860
38861         * ThemeGtk.cs: fixes button order
38862
38863 2004-08-19 18:12  jordi
38864
38865         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
38866
38867 2004-08-19 17:09  pbartok
38868
38869         * Control.cs:
38870           - Added Right property
38871           - Added RightToLeft property
38872
38873 2004-08-19 16:27  jordi
38874
38875         * ThemeGtk.cs: experimental GTK theme support
38876
38877 2004-08-19 16:26  jordi
38878
38879         * ITheme.cs, Theme.cs: move themes from an interface to a class
38880
38881 2004-08-19 16:25  jordi
38882
38883         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
38884           theme enhancaments
38885
38886 2004-08-19 16:04  pbartok
38887
38888         * XplatUIX11.cs:
38889           - Added colormap basics
38890           - Added a way to re-initialize with a different display handle
38891           - Fixed setting of the window background color
38892           - Added various X11 imports related to colors and colormaps
38893
38894 2004-08-19 15:51  pbartok
38895
38896         * X11Structs.cs:
38897           - Removed packing hints (Paolo suggested this a while back)
38898           - fixed colormap type
38899           - Added default Atom types
38900           - Added Screen and color structs and enums
38901
38902 2004-08-19 15:39  pbartok
38903
38904         * ImageList.cs:
38905           - Added missing Draw() method
38906           - Added missing RecreateHandle event
38907
38908 2004-08-19 15:30  pbartok
38909
38910         * Form.cs:
38911           - Added handling of WM_CLOSE
38912
38913 2004-08-18 13:16  jordi
38914
38915         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
38916           a table
38917
38918 2004-08-18 09:56  jordi
38919
38920         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
38921
38922 2004-08-17 15:31  ravindra
38923
38924         * SWF.csproj: Updated project.
38925
38926 2004-08-17 15:25  pbartok
38927
38928         * Control.cs:
38929           - Drawing improvement; don't call UpdateBounds if we are not visible
38930             (or have been minimized)
38931
38932 2004-08-17 15:24  pbartok
38933
38934         * XplatUIWin32.cs:
38935           - Finished IsVisible
38936           - Added Win32GetWindowPlacement
38937
38938 2004-08-17 15:08  jackson
38939
38940         * Panel.cs: Initial checkin of the Panel
38941
38942 2004-08-17 14:25  pbartok
38943
38944         * Control.cs:
38945           - Fixed broken handling of default window sizes
38946
38947 2004-08-17 13:29  jackson
38948
38949         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
38950           has a large startup time.
38951
38952 2004-08-17 10:25  jackson
38953
38954         * HandleData.cs: union areas properly
38955
38956 2004-08-17 10:12  jackson
38957
38958         * HandleData.cs: union areas properly
38959
38960 2004-08-16 20:00  ravindra
38961
38962         * ToolBar.cs, ToolBarButton.cs: Added attributes.
38963
38964 2004-08-16 18:48  ravindra
38965
38966         * ToolBar.cs: Added attributes.
38967
38968 2004-08-16 17:17  ravindra
38969
38970         * SWF.csproj: Updated project.
38971
38972 2004-08-16 17:16  jackson
38973
38974         * XplatUIX11.cs: Check for more expose events before sending a
38975           WM_PAINT so they can all be grouped together. This makes dragging a
38976           window across another window redraw in a sane way.
38977
38978 2004-08-16 15:47  pbartok
38979
38980         * Control.cs:
38981           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
38982             support OnMouseEnter/Leave()
38983           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
38984             exposure handling
38985
38986 2004-08-16 15:46  pbartok
38987
38988         * XplatUIStructs.cs, XplatUIX11.cs:
38989           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
38990           OnMouseEnter/Leave()
38991
38992 2004-08-16 15:34  jackson
38993
38994         * XplatUIX11.cs: Group multiple expose events in HandleData, make
38995           sure messages get the message field set to WM_NULL if they are not
38996           handled.
38997
38998 2004-08-16 15:24  jackson
38999
39000         * HandleData.cs: HandleData is used for storing message information
39001           for window handles
39002
39003 2004-08-15 17:23  ravindra
39004
39005         * ColorDepth.cs: Added attribute.
39006
39007 2004-08-15 17:23  ravindra
39008
39009         * SWF.csproj: Updated project for ToolBar Control.
39010
39011 2004-08-15 17:20  ravindra
39012
39013         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
39014           control and also dos2unix format.
39015
39016 2004-08-15 17:13  ravindra
39017
39018         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
39019           ToolBarButtonClickEventArgs.cs,
39020           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
39021           ToolBarTextAlign.cs: First Implementation of ToolBar control.
39022
39023 2004-08-15 15:31  pbartok
39024
39025         * ButtonBase.cs:
39026           - First (mostly) working version
39027
39028 2004-08-13 16:15  pbartok
39029
39030         * Control.cs:
39031           - Fixed Anchor default
39032
39033 2004-08-13 15:43  pbartok
39034
39035         * Control.cs:
39036           - Changed GetCursorPos signature
39037
39038 2004-08-13 15:42  pbartok
39039
39040         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39041           - Changed signature for GetCursorPos
39042
39043 2004-08-13 15:25  pbartok
39044
39045         * XplatUIX11.cs:
39046           - Cleanup
39047           - Fixed resizing/exposure handling
39048
39049 2004-08-13 15:22  jordi
39050
39051         * ThemeWin32Classic.cs: removes redundant code and fixes issues
39052           with tickposition
39053
39054 2004-08-13 14:55  jordi
39055
39056         * TrackBar.cs: change from wndproc to events
39057
39058 2004-08-13 13:00  jordi
39059
39060         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39061           XplatUIX11.cs: implements PointToClient (ScreenToClient)
39062
39063 2004-08-13 12:53  pbartok
39064
39065         * XplatUIWin32.cs:
39066           - Changed GetWindowPos to also provide client area size
39067           - Fixed broken prototypes for several win32 functions
39068
39069 2004-08-13 12:53  pbartok
39070
39071         * XplatUI.cs, XplatUIDriver.cs:
39072           - Changed GetWindowPos to also provide client area size
39073
39074 2004-08-13 12:52  pbartok
39075
39076         * XplatUIX11.cs:
39077           - Added generation of WM_POSCHANGED
39078           - Changed GetWindowPos to also provide client area size
39079
39080 2004-08-13 12:52  pbartok
39081
39082         * Control.cs:
39083           - Added Dispose() and destructor
39084           - Fixed resizing and bounds calculation
39085           - Fixed Layout
39086           - Added memory savings for invisible windows
39087
39088 2004-08-13 12:46  jordi
39089
39090         * TrackBar.cs: adds timer and grap window
39091
39092 2004-08-13 10:25  jackson
39093
39094         * Timer.cs: SWF Timer
39095
39096 2004-08-12 16:59  pbartok
39097
39098         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39099           - Implemented method to get current mouse position
39100
39101 2004-08-12 14:29  jordi
39102
39103         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
39104           enhancement, fix mouse problems, highli thumb, etc
39105
39106 2004-08-12 13:31  pbartok
39107
39108         * Control.cs:
39109           - Fixed Anchoring bugs
39110
39111 2004-08-12 13:01  jackson
39112
39113         * StatusBar.cs: Don't forget things
39114
39115 2004-08-12 12:54  jackson
39116
39117         * ThemeWin32Classic.cs: Handle owner draw status bars
39118
39119 2004-08-12 12:54  jackson
39120
39121         * StatusBar.cs: Implement missing properties, events, and methods.
39122           Handle mouse clicking
39123
39124 2004-08-12 10:19  jackson
39125
39126         * StatusBarPanelClickEventArgs.cs,
39127           StatusBarPanelClickEventHandler.cs: Classes for handling status
39128           bar panel click events
39129
39130 2004-08-12 10:10  jackson
39131
39132         * Control.cs: Add missing properties
39133
39134 2004-08-12 09:46  pbartok
39135
39136         * BindingsManagerBase.cs:
39137           - Name changed to BindingManagerBase.cs
39138
39139 2004-08-12 09:25  jordi
39140
39141         * ScrollableControl.cs: calls ctrlbase instead of exeception
39142
39143 2004-08-11 16:28  pbartok
39144
39145         * InputLanguageChangingEventArgs.cs:
39146           - Never check in before compiling. Fixes the last check-in
39147
39148 2004-08-11 16:26  pbartok
39149
39150         * InputLanguageChangingEventArgs.cs:
39151           - More signature fixes
39152
39153 2004-08-11 16:20  pbartok
39154
39155         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
39156           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
39157           ImageListStreamer.cs, InputLanguage.cs,
39158           InputLanguageChangedEventArgs.cs,
39159           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
39160           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
39161           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
39162           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39163           - Signature fixes
39164
39165 2004-08-11 16:16  pbartok
39166
39167         * Application.cs:
39168           - Fixed Signature
39169           - Added .Net 1.1 method
39170
39171 2004-08-11 15:25  pbartok
39172
39173         * SWF.csproj:
39174           - Fixed BindingManagerBase.cs filename
39175
39176 2004-08-11 15:22  pbartok
39177
39178         * BindingManagerBase.cs:
39179           - Was checked in with wrong filename
39180
39181 2004-08-11 14:50  pbartok
39182
39183         * SWF.csproj:
39184           - Updated
39185
39186 2004-08-11 13:41  jordi
39187
39188         * XplatUIWin32.cs: Fixes ClientRect
39189
39190 2004-08-11 13:19  pbartok
39191
39192         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39193           XplatUIX11.cs:
39194           - We had SetWindowPos and MoveWindow to set window positions and
39195             size, removed MoveWindow. We have GetWindowPos, so it made sense to
39196             keep SetWindowPos as matching counterpart
39197           - Added some X11 sanity checking
39198
39199 2004-08-11 12:59  pbartok
39200
39201         * Control.cs:
39202           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
39203             (It seems that SetBounds is just a front for SetBoundsCore and
39204              SetBoundsCore updates the underlying window system and
39205              UpdateBounds is responsible for updating the variables associated
39206              with the Control and sending the events)
39207           - Major cleanup of Size handling; we now have two sizes, client_size
39208             and bounds. Bounds defines the window with decorations, client_size
39209             without them.
39210
39211 2004-08-11 12:55  pbartok
39212
39213         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39214           - Added method to calculate difference between decorated window and
39215             raw client area
39216
39217 2004-08-11 12:54  pbartok
39218
39219         * Label.cs:
39220           - Forcing redraw on resize
39221
39222 2004-08-11 11:43  pbartok
39223
39224         * ImageList.cs:
39225           - Removed disposing of the actual images when the list is disposed
39226
39227 2004-08-11 09:13  pbartok
39228
39229         * Control.cs:
39230           - Now properly reparents windows
39231
39232 2004-08-11 08:37  pbartok
39233
39234         * Control.cs:
39235           - Duh!
39236
39237 2004-08-11 07:47  pbartok
39238
39239         * Control.cs:
39240           - Rewrote the collection stuff. Might not be as fast now, not
39241             keeping the number of children around and accessible directly, but
39242             it's more straightforward
39243
39244 2004-08-11 07:44  pbartok
39245
39246         * AccessibleObject.cs:
39247           - Fixed to match ControlCollection rewrite
39248
39249 2004-08-11 07:43  pbartok
39250
39251         * ImageList.cs:
39252           - Added missing creation of the collection list
39253
39254 2004-08-10 20:08  jackson
39255
39256         * StatusBar.cs: Get the paint message from WndProc
39257
39258 2004-08-10 19:31  jackson
39259
39260         * ThemeWin32Classic.cs: Create Brushes as little as possible
39261
39262 2004-08-10 19:20  jackson
39263
39264         * UICues.cs: Add Flags attribute
39265
39266 2004-08-10 19:19  jackson
39267
39268         * StatusBarPanel.cs: Signature cleanup
39269
39270 2004-08-10 19:10  jackson
39271
39272         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
39273           Initial implementation of status bar item drawing
39274
39275 2004-08-10 17:27  jordi
39276
39277         * TrackBar.cs: add missing methods, properties, and restructure to
39278           hide extra ones
39279
39280 2004-08-10 16:24  jackson
39281
39282         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
39283           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
39284           attribute
39285
39286 2004-08-10 13:21  jordi
39287
39288         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
39289           enhancements and standarize on win colors defaults
39290
39291 2004-08-10 12:52  jackson
39292
39293         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
39294           ThemeWin32Classic.cs: Implement DrawItem functionality
39295
39296 2004-08-10 12:47  jordi
39297
39298         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
39299
39300 2004-08-10 12:32  jordi
39301
39302         * Control.cs: throw ontextchange event
39303
39304 2004-08-10 11:43  pbartok
39305
39306         * Control.cs:
39307           - Added more to the still unfinished Dock/Anchor layout code
39308
39309 2004-08-10 11:39  pbartok
39310
39311         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39312           - Added GetWindowPos method
39313
39314 2004-08-10 11:36  pbartok
39315
39316         * XplatUIWin32.cs:
39317           - Implemented several methods
39318
39319 2004-08-10 09:47  jackson
39320
39321         * TrackBar.cs: Allow control to handle buffering
39322
39323 2004-08-10 09:41  jackson
39324
39325         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
39326
39327 2004-08-10 09:24  jackson
39328
39329         * Label.cs, LinkLabel.cs: Let Control handle buffering.
39330
39331 2004-08-10 09:09  jackson
39332
39333         * StatusBar.cs: Let Control handle all the buffering.
39334
39335 2004-08-10 09:08  jackson
39336
39337         * Control.cs: Control will now handle the buffering code, so each
39338           control does not have to implement this.
39339
39340 2004-08-10 08:34  jackson
39341
39342         * XplatUIDriver.cs: Use default colors from the theme
39343
39344 2004-08-09 17:12  pbartok
39345
39346         * ImageList.cs:
39347           - Fixed several bugs Ravindra pointed out
39348
39349 2004-08-09 16:11  pbartok
39350
39351         * Control.cs:
39352           - Added incomplete dock layout code
39353           - Added support for mouse wheel
39354
39355 2004-08-09 16:09  pbartok
39356
39357         * XplatUIX11.cs:
39358           - Added handling for middle and right mousebutton
39359           - Added handling for mouse wheel
39360           - Added handling for key state and mouse state and position
39361           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
39362           messages
39363
39364 2004-08-09 15:40  jackson
39365
39366         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
39367           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
39368           checkin
39369
39370 2004-08-09 15:37  jackson
39371
39372         * StatusBar.cs: Initial implementation of StatusBar
39373
39374 2004-08-09 15:36  jackson
39375
39376         * ITheme.cs: Add support for drawing status bar and getting status
39377           bar item sizes
39378
39379 2004-08-09 15:35  pbartok
39380
39381         * MouseButtons.cs:
39382           - Fixed values
39383
39384 2004-08-09 15:34  jackson
39385
39386         * ThemeWin32Classic.cs: Add support for drawing status bar and get
39387           status bar item sizes
39388
39389 2004-08-09 15:21  jackson
39390
39391         * ThemeWin32Classic.cs: Use known colors for default control
39392           colours
39393
39394 2004-08-09 15:12  jackson
39395
39396         * ThemeWin32Classic.cs: Make the default font static, it is static
39397           in control so this doesn't change functionality and creating fonts
39398           is sloooooow.
39399
39400 2004-08-09 14:56  pbartok
39401
39402         * X11Structs.cs:
39403           - Added GrabMode enum
39404
39405 2004-08-09 14:55  pbartok
39406
39407         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39408           - Removed Run method, was only required for initial development
39409
39410 2004-08-09 14:51  pbartok
39411
39412         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39413           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
39414           capture
39415
39416 2004-08-09 13:48  pbartok
39417
39418         * XplatUIX11.cs:
39419           - Fixed default sizing for child windows
39420
39421 2004-08-09 12:56  pbartok
39422
39423         * XplatUIX11.cs:
39424           - Added generation of WM_DESTROY message
39425           - Added handling of window manager induced shutdown
39426
39427 2004-08-09 11:31  jackson
39428
39429         * ThemeWin32Classic.cs: New names for control properties
39430
39431 2004-08-09 11:25  jackson
39432
39433         * Control.cs: Use new color names
39434
39435 2004-08-09 11:02  jackson
39436
39437         * XplatUI.cs: Get default window properties from the theme
39438
39439 2004-08-09 11:01  jackson
39440
39441         * ITheme.cs: The theme engine now controls default window
39442           properties
39443
39444 2004-08-09 11:00  jackson
39445
39446         * ThemeWin32Classic.cs: Add default window color properties
39447
39448 2004-08-09 10:17  jackson
39449
39450         * ThemeWin32Classic.cs: Use correct default back color
39451
39452 2004-08-09 10:05  jackson
39453
39454         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
39455           the theme now.
39456
39457 2004-08-09 09:56  jackson
39458
39459         * XplatUI.cs: Remove defaults, these are handled by the theme now.
39460
39461 2004-08-09 09:54  jackson
39462
39463         * Control.cs: Get default properties from the theme.
39464
39465 2004-08-09 09:53  jackson
39466
39467         * ITheme.cs: Themes now handle default control properties
39468
39469 2004-08-09 09:53  jackson
39470
39471         * ThemeWin32Classic.cs: Themes now handle default control
39472           properties so coloring will be consistent
39473
39474 2004-08-08 16:54  jordi
39475
39476         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
39477
39478 2004-08-08 15:08  jordi
39479
39480         * XplatUIX11.cs: fixes keyboard crash
39481
39482 2004-08-08 13:47  jordi
39483
39484         * Label.cs: add cvs header info
39485
39486 2004-08-08 12:09  jackson
39487
39488         * ThemeWin32Classic.cs: Add pen_buttonface
39489
39490 2004-08-08 11:52  jordi
39491
39492         * Label.cs, LinkLabel.cs: [no log message]
39493
39494 2004-08-08 11:34  jordi
39495
39496         * ThemeWin32Classic.cs: Use Windows Standard Colours
39497
39498 2004-08-07 17:32  jordi
39499
39500         * TrackBar.cs: throw exceptions of invalid enums values
39501
39502 2004-08-07 17:31  jordi
39503
39504         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
39505           draw method name
39506
39507 2004-08-07 16:56  jackson
39508
39509         * HorizontalAlignment.cs: Initial checkin
39510
39511 2004-08-07 13:16  jordi
39512
39513         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
39514           methods
39515
39516 2004-08-07 13:05  jordi
39517
39518         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
39519           GetSysColor defines
39520
39521 2004-08-06 18:01  pbartok
39522
39523         * ThemeWin32Classic.cs:
39524           - Fixed some rounding issues with float/int
39525
39526 2004-08-06 18:00  jackson
39527
39528         * DockStyle.cs, AnchorStyles.cs:
39529
39530                   Add flags and serializable attributes.
39531
39532 2004-08-06 17:46  pbartok
39533
39534         * XplatUIX11.cs:
39535           - Implemented GetParent
39536
39537 2004-08-06 17:18  pbartok
39538
39539         * TrackBar.cs:
39540           - Fixed some rounding issues with float/int
39541
39542 2004-08-06 17:17  pbartok
39543
39544         * X11Structs.cs, XplatUIX11.cs:
39545           - Fixed Refresh and Invalidate
39546
39547 2004-08-06 15:30  pbartok
39548
39549         * Control.cs, X11Structs.cs, XplatUIX11.cs:
39550           - Fixed recursive loop when resizing
39551           - Improved/fixed redrawing on expose messages
39552
39553 2004-08-06 09:53  jordi
39554
39555         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
39556           keyboard navigation
39557
39558 2004-08-06 08:02  pbartok
39559
39560         * X11Structs.cs, XplatUIX11.cs:
39561           - Fixed reparenting
39562           - Fixed window border creation
39563
39564 2004-08-05 15:38  pbartok
39565
39566         * XplatUIX11.cs:
39567           - Attempted fix for reparenting problems
39568
39569 2004-08-04 15:14  pbartok
39570
39571         * Control.cs:
39572           - Fixed Invalidation bug (calculated wrong client area)
39573           - Added ClientSize setter
39574
39575 2004-08-04 15:13  pbartok
39576
39577         * Form.cs:
39578           - Added AutoScale properties
39579
39580 2004-08-04 15:13  pbartok
39581
39582         * SWF.csproj:
39583           - Added latest files
39584
39585 2004-08-04 14:11  pbartok
39586
39587         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39588           XplatUIX11.cs:
39589           - Added Invalidate handling
39590
39591 2004-08-03 17:09  jordi
39592
39593         * XplatUIDriver.cs: fixes spelling mistake
39594
39595 2004-07-27 09:53  jordi
39596
39597         * TrackBar.cs: fixes trackbar events, def classname, methods
39598           signature
39599
39600 2004-07-27 09:29  jordi
39601
39602         * ScrollBar.cs: fixes scrollbar events
39603
39604 2004-07-27 04:38  jordi
39605
39606         * Control.cs: changes to be able to run winforms samples
39607
39608 2004-07-26 11:42  jordi
39609
39610         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
39611           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
39612
39613 2004-07-26 05:41  jordi
39614
39615         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
39616           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
39617           implementation
39618
39619 2004-07-22 09:22  jordi
39620
39621         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
39622           check link overlapping, implement events, and fixes
39623
39624 2004-07-21 10:28  jordi
39625
39626         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
39627
39628 2004-07-21 10:19  jordi
39629
39630         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
39631           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
39632           LinkLabelLinkClickedEventArgs.cs,
39633           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
39634           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
39635           implementation
39636
39637 2004-07-19 13:09  jordi
39638
39639         * Control.cs, Label.cs: label control re-written: added missing
39640           functionlity, events, and properties
39641
39642 2004-07-19 10:49  jordi
39643
39644         * Control.cs: fixes SetBounds logic
39645
39646 2004-07-19 01:29  jordi
39647
39648         * Control.cs: Call RefreshWindow only if the window has created
39649
39650 2004-07-15 14:05  pbartok
39651
39652         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
39653           - Implemented ImageList and ImageList.ImageCollection classes
39654           - Added ColorDepth enumeration
39655           - Updated SWF VS.Net project
39656
39657 2004-07-15 11:06  jordi
39658
39659         * XplatUIStructs.cs: added MsgButons enum
39660
39661 2004-07-15 11:03  jordi
39662
39663         * Control.cs: added basic mouse handeling events
39664
39665 2004-07-15 03:38  jordi
39666
39667         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
39668           Vertical TrackBar control implementation
39669
39670 2004-07-13 09:33  jordi
39671
39672         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
39673
39674 2004-07-13 09:31  jordi
39675
39676         * Control.cs, Form.cs: commit: new properties and fixes form size
39677           problems
39678
39679 2004-07-09 14:13  miguel
39680
39681         * ProgressBar.cs: Spelling
39682
39683 2004-07-09 11:25  pbartok
39684
39685         * ProgressBar.cs:
39686           - Removed usage of Rectangle for drawing. Miguel pointed out it's
39687           faster
39688
39689 2004-07-09 11:17  miguel
39690
39691         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
39692
39693                 * ProgressBar.cs: Fixed spelling for `block'
39694
39695                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
39696                 style guidelines.
39697
39698                 Avoid using the += on rect.X, that exposed a bug in the compiler.
39699
39700 2004-07-08 23:21  pbartok
39701
39702         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
39703           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
39704           BaseCollection.cs, Binding.cs, BindingContext.cs,
39705           BindingMemberInfo.cs, BindingsCollection.cs,
39706           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
39707           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
39708           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
39709           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
39710           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
39711           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
39712           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
39713           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
39714           FrameStyle.cs, GiveFeedbackEventArgs.cs,
39715           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
39716           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
39717           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
39718           InputLanguageChangedEventArgs.cs,
39719           InputLanguageChangedEventHandler.cs,
39720           InputLanguageChangingEventArgs.cs,
39721           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
39722           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
39723           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
39724           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
39725           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
39726           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
39727           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
39728           QueryAccessibilityHelpEventArgs.cs,
39729           QueryAccessibilityHelpEventHandler.cs,
39730           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
39731           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
39732           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
39733           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
39734           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
39735           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
39736           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
39737           XplatUIX11.cs, lang.cs:
39738           - Initial check-in
39739
39740