* ListView.cs: When retrieving an item in virtual mode, as part of the
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2009-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2
3         * ListView.cs: When retrieving an item in virtual mode, as part of the
4         process calculate its layout, instead of trying to do it later.
5         * ListViewItem.cs: There's no need to try to infer whether we need to
6         compute layout or not anymore - we just do it every time we are
7         returning an item.
8         This way we should be fixing View changes with cached items, which
9         were storing the previous value, and not updating their contents
10         properly.
11
12 2009-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13
14         * ColumnHeader.cs: Remove the double linear search in the Index
15         property, by removing the call to Contains, which is not needed.
16         Also, Columns collection can never be null.
17
18 2009-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19
20         * ColumnHeader.cs: When calculating the width and height of the
21         column, try to expand to the right and use all the free space if we
22         are the last column *and* the resize mode is set to -2/header content.
23         Fixes #544716.
24
25 2009-10-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
26
27         * ListView.cs: When retrieving the top item, take into account the
28         offset represented by the header control, to retrieve the proper
29         value. Patch by Christoph von Wittich (Christoph at ApiViewer.de)
30         Fixes the remaining bits of #543773.
31
32 2009-10-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
33
34         * ListView.cs: TopItem setter should set the value as the top, not
35         only ensuring its visibility.
36         Fixes part of #543773.
37
38 2009-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
39
40         * ListView.cs: For virtual mode, when navigating the items using keyboard,
41         don't use the matrix of positions, and instead calculate the positions
42         based on the number of cols and rows, taking advantage of the fixed
43         positions of items. Use the same idea to implement FirstVisibleIndex,
44         so we avoid iterating over all the items. Patch by Stephen Robinson
45         mono at esar.org.uk.
46         Fixes part of #467418.
47
48 2009-10-12  Dick Porter  <dporter@codicesoftware.com>
49
50         * Splitter.cs: Adjust offsets when more than one splitter is
51         present in a control.  Fixes bug 509472.
52
53 2009-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
54
55         * ListView.cs: When computing the value for groups height don't use
56         text_size field, since in LargeIcon view it sometimes contains a
57         double height value - use Font.Height directly, and also improve the
58         padding value.
59         * ThemeWin32Classic: The same as above.
60         This way the space between the group header, the line, and the items
61         area is not that big in LargeIcon view.
62
63 2009-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
64
65         * ListView.cs: When retrieving the fixed positions for the items in
66         virtual mode, use the row value to compute the coords of the item,
67         instead of the col value, as opposed to SmallIcon/LargeIcon views.
68
69 2009-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
70
71         * ListView.cs: The location of the items should be computed on the fly
72         in virtual mode - that decreased speed overall, but reduces the load
73         time.that decreased speed overall, but reduces the load time. Also,
74         handle the cases where we were using data structures we don't need to
75         use/create for this mode.
76         Fixes part of #467418.
77
78 2009-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
79
80         * ListView.cs: Tile view and VirtualMode can't be applied together.
81         Patch by Stephen Robinson <mono@esar.org.uk>.
82
83 2009-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
84
85         * ListView.cs: When calculating the layout for Details view, don't ask
86         for the items *at all* in case we are in virtual mode. This should
87         re-enable the proper behaviour of virtual mode.
88
89 2009-09-26  Jonathan Pobst  <monkey@jpobst.com>
90
91         * TreeNode.cs: When we invalidate a node, make sure we start at
92         0, instead of the node's Bounds.Left, which does not include
93         the +/-, checkbox, or stateimages.
94         [Fixes bug #542481]
95
96 2009-09-24  Ivan N. Zlatev  <contact@i-nz.net>
97
98         * DataGridView.cs: Compare the name and not displayname of properties 
99         when checking if the column is already bound.
100
101 2009-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
102
103         * RichTextBox.cs: For SelectedRtf, after inserting the stream, adjust
104         the position of the caret by adding the needed chars represented by the new line chars,
105         according to the system, using rich *or* hard new lines as needed. Also do a
106         check to be sure we don't move the cursor position beyond the limits
107         of our text. This should avoid problems with text being pasted,
108         regarding the position of the caret.
109
110 2009-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
111
112         * RichTextBox.cs: When SelectedRtf is set, and we are in the 0
113         position in the x axis, force to re-use any already available line,
114         even if it is not empty. This way pasting text into our textbox in the
115         beginning for non empty lines should work fine.
116
117 2009-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
118
119         * RichTextBox.cs: When we are inserting a flow of rtf text, and we are
120         *not* loading it from a file, try to re-use a line if already
121         available, since the default behaviour of the parser is to create new
122         lines for the document.
123         This should fix a regressions we found after the last fix for #513030.
124
125 2009-09-14  Tom Hindle <tom_hindle@sil.org>
126
127         * ToolStripOverflow.cs: Fixes #536036 by adding null ptr check.
128
129 2009-09-11  Ivan N. Zlatev  <contact@i-nz.net>
130
131         * PropertyGrid.cs: Hide the splitter when the help is hidden.
132
133 2009-09-11  Ivan N. Zlatev  <contact@i-nz.net>
134
135         * InternalWindowManager.cs: Call Invalidate-Update instead of 
136         Refresh for MS compitability. Note also that Refresh is virtual 
137         and several controls override it in order to provide data refresh 
138         functionallity on top of the redraw and they do not expect this 
139         extra refresh call.
140         * Control.cs: In Refresh Invalidate the control and all children 
141         insead of calling Refresh for each of them.
142         [Fixes bug #538336]
143
144 2009-09-11  Ivan N. Zlatev  <contact@i-nz.net>
145
146         * PropertyGrid.cs: Always set the help panel properties on the 
147         internal control, because they are inherited and can change with 
148         the parent.
149         [Fixes bug #525305]
150
151 2009-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
152
153         * RichTextBox.cs: When processing rtf, don't add a new line if we
154         already have one for that position. This way we avoid overriding by
155         mistake our lines when copying/pasting.
156         Fixes #513030.
157
158 2009-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
159
160         * TextControl.cs: When inserting new lines, look for the end of file
161         char, and remove chars after it. This is unlikely to happeng either
162         loading a file, pasting text or pressing a char, but can happen using
163         the TextBox.Text property.
164         Fixes #535884.
165
166 2009-09-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
167
168         * Line.cs: In DeleteCharacters, cache line.Length for every tag, since
169         tag.Start changes will modify it indirectly and then we would end up
170         with wrong values.
171         Fixes #512521.
172
173 2009-09-03  Ivan N. Zlatev  <contact@i-nz.net>
174
175         * BindingSource.cs: Implement support for chained data sources.
176         * ListBindingHelper.cs: Add support for ICurrencyManagerProvider and 
177         clean up.
178         [Fixes part of bug #536547]
179
180 2009-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
181
182         * RichTextBox.cs: When saving the text to a file using SaveFile use
183         Environment.NewLine to separate the lines. This way we should be
184         saving the files according to the system.
185         Fixes the remaining part of #511515.
186
187 2009-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
188
189         * RichText.cs: Remove some unix new line characters and use
190         Environment.NewLine. Fixes part of #511515.
191
192 2009-08-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
193
194         * TextBoxBase.cs: Modified should *not* be modified from the Text
195         property, as our new tests show. It should be to false, however, in
196         Append and Clear; and Paste, Cut, Undo, and direct user input should set it
197         to true. Also, as opposed to what the .net docs say -but proven by our
198         tests-, the changes should be generating a ModifiedChanged event
199         (thus we set the property, instead of the field).
200         Fixes #511267.
201
202 2009-08-27  Ivan N. Zlatev  <contact@i-nz.net>
203
204         * DataGridView.cs: Fire the CellDoubleClicked event.
205         [Fixes bug #533430]
206
207 2009-08-27  Ivan N. Zlatev  <contact@i-nz.net>
208
209         * DataGridView.cs: Add support for column DataGridViewAutoSizeColumnMode
210         DisplayedCells and DisplayedCellsExceptHeader.
211         [Fixes bug #533435]
212
213 2009-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
214
215         * TextControl.cs: When removing a simple char, actually record the
216         action in the undo manager. This way we both support undoing the
217         removal of chars using backspace/delete, as well as keeping data
218         integrity when other undo tasks are performed.
219         Fixes #531983.
220
221 2009-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
222
223         * Control.cs: Remove the ancient code in ResetText, which was setting
224         the internal field to String.Empty, instead of doing it for our Text
225         property, as .net does (which also causes a TextChanged event and all
226         the other related routines).
227         Fixes #531587.
228
229 2009-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
230
231         * TreeNodeCollection.cs: Correctly implement Contains by using a
232         linear search - there's no possible way to use a binary search, since
233         the node instances are not implementing IComparable, nor have a
234         specific order.
235         Fixes #529927.
236
237 2009-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
238
239         * DataGrid.cs: If we are *not* changing a row
240         already added to the source, and thus we are adding a new 
241         row instead, try to move to the previous row when Esc is
242         pressed -if possible-.
243         Fixes some bits of #322974.
244
245 2009-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
246
247         * DataGridTextBoxColumn.cs:
248         * DataGrid.cs: Moving the cell to the add row (the last one) should
249         not immediately add a new row - this should happen until the very
250         first change happens in that textbox.
251         Fixes part of #322974.
252
253 2009-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
254
255         * ToolStripDropDown.cs: When assigning the owner item, use its Font as
256         well.
257
258 2009-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
259
260         * ToolStripItem.cs: When the owner changes its Font, call the
261         OnFontChanged event, so we let our users know that we likely have a
262         new font - since Font is an ambient property.
263         * ToolStripDropDownItem.cs: When our Font changes, propagate that
264         information to our DropDown control, if any.
265         Fixes #531515.
266
267 2009-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
268
269         * DataGrid.cs: 
270         * ThemeWin32Classic.cs: When the user clicks on a new cell, we should reset any
271         previous selection, just like .net does. Also, in the cases where a
272         cell is being edited and it keeps the selected status, use the normal
273         colors for it, and use the selected colors for the rest of the columns of
274         that row.
275         Fixes the remaining bits of #323051.
276
277 2009-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
278
279         * DataGrid.cs: When getting ProcessKeyPreview fired, call Edit() if we
280         are not editing already - so the edition is actually active on our
281         column style textbox. Also, it seems the code handling process the
282         grid keys is repeated, but instead of removing it, just comment it for
283         now.
284         Fixes part of #323051.
285
286 2009-08-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
287
288         * AsyncMethodResult.cs: Store a exception field in case the called
289         method actually caused an exception. This way we can throw it later.
290         * XplatUIDriver.cs: Check if the async method result has an exception
291         - throw it if needed. 
292         The idea is that Control.Invoke throws the exception from the thread
293         that called it, not the main MWF thread. 
294         Patch by Tom Spink <tspink@gmail.com>. Fixes #497175.
295
296 2009-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
297
298         * DataGrid.cs: In mouse move we need to shift the selection in case
299         the pointer is on the row headers.
300         Fixes #323052.
301
302 2009-08-11  Ivan N. Zlatev  <contact@i-nz.net>
303
304         * SplitContainer.cs: Avoid updating the splitter distance if it hasn't 
305         moved. Updating the distance was causing a re-layout which was resetting 
306         the clicks counter and preventing DoubleClick from every firing.
307         [Fixes bug #521387]
308
309 2009-08-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
310
311         * DataGrid.cs: When a new TableStyle is added, don't create new
312         columns for it unless it is empty - this is the correct way to both
313         respect the columns if they were provided by our user, or create them
314         for him in case the column collection is empty.
315         Fixes #323111.
316
317 2009-08-10  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
318
319         * DataGrid.cs: Actually call BindColumns in the handler for
320         ListManager.MetaDataChanged, since the current code is already taking
321         into account the scenario when a custom table style is used - this was
322         confusing us before, and that's why we commented the call to
323         BindColumns. Also call CallAreasAndInvalidate, to properly reflect the
324         changes as needed.
325         Fixes #465021.
326
327 2009-08-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
328
329         * DataGrid.cs: When setting the data source, if we have a user
330         provided table style available, force a complete bind in case the
331         column styles for that table style is empty.
332
333 2009-08-09  Ivan N. Zlatev  <contact@i-nz.net>
334
335         * DataGridViewCell.cs: Handle null and DBNull values.
336
337 2009-08-07 Rodrigo Kumpera  <rkumpera@novell.com>
338
339         * ListBindingHelper.cs: Fix the 1.0 build by making this type available
340         under that profile.
341
342 2009-08-07  Ivan N. Zlatev  <contact@i-nz.net>
343
344         * CurrencyManager.cs: Remove duplicate code.
345
346 2009-08-07  Ivan N. Zlatev  <contact@i-nz.net>
347
348         * DataGridView.cs, DataGridViewCell.cs, DataGridViewColumn.cs: 
349         Massive population performance boost. From seconds to ms.
350         [Fixes bug #528887]
351
352 2009-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
353
354         * DataGrid.cs: When handling mouse down on a column, don't do any sort
355         even if the list supports it if we are empty. This way we avoid an exc
356         sorting the empty list, and keep the UI compatible with .net.
357
358 2009-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
359
360         * DataGrid.cs: In Edit () check we have any row before trying to use
361         the current row. Fixes a IOOR exc with an empty data grid.
362
363 2009-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
364
365         * DataGridColumnStyle.cs: Don't call CheckValidDataSource when setting
366         the owner DataGrid - even if this seems to be the right thing to do,
367         .net is not doind this check at this point, but in later operations.
368         Fixes #465019.
369
370 2009-07-28  Mike Gorse  <mgorse@novell.com>
371
372         * ToolStripMenuItem.cs: Added UIA CheckOnClickChanged event.
373
374 2009-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
375
376         * Application.cs: Make FilterMessage internal for 1.1. Fixes the 1.1 build.
377
378 2009-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
379
380         * XplatUIX11.cs:
381         * XplatUIWin32.cs: We need to filter the messages using
382         Application.FilterMessage for our DoEvents implementations. Observe
383         that I don't like the idea of XplatUI call the upper level Application
384         class, but at this point is easier and simpler to do this call - based
385         on the fact it's only one simple call.
386         Fixes #516735.
387
388 2009-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
389
390         * TreeNodeCollection.cs: When removing the selected node, set the
391         SelectedNode value of TreeView to null if there aren't more nodes left - 
392         this is better than to clear the selected node in Clear, since we need
393         to handle the situation in the Remove methods as well.
394         Fixes #525002.
395
396 2009-07-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
397
398         * ToolStripItemCollection.cs: Find should do a case insensitive
399         search, and should throw an ArgumentNullException if the parameter is
400         an empty string.
401
402 2009-07-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
403
404         * PropertyGrid.cs: Use click handlers for each ToolStripButton instead
405         of using a global handler for the ToolStrip. This way the buttons can
406         be recovered and can have its PerformClick method called properly.
407         Fixes #522454.
408
409 2009-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
410
411         * X11Dnd.cs: Implement support for XdndActionList, so we can get the
412         complete list of the supported actions in the drag source, and use the
413         action passed in the Position message only as a fallback. This will
414         help us with dnd operations with non winforms apps.
415         Fixes #402158.
416
417 2009-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
418
419         * ToolStripItemCollection.cs: Use a List<> instead of an ArrayList in
420         Find. This should fix the exception we were getting when trying to
421         convert the ArrayList to an array of objects (since we were losing the
422         type parameter).
423         Fixes #519944.
424
425 2009-07-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
426
427         * RadioButton.cs: Setting Checked when none of the sibligs is checked
428         should happen *not* in GotFocus, but in the Enter event. This is
429         specially important since we should get that Checked behaviour even if
430         no handle is created yet - and thus, no actual GotFocus call happens at
431         the time.
432         Fixes #520764.
433
434 2009-07-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
435
436         * ComboBox.cs: Adjust manually the top border for out internal
437         ComboBox, since removing the border from it leaves it without any
438         margin. This is not noticeable in a default ComboBox, but it is in an
439         instance shown on top of ToolStrip.
440         Fixes the remaining part of #507462.
441
442 2009-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
443
444         * TextBoxBase.cs: Expose the margin top width as a property, to keep
445         the code clean.
446         * ToolStripTextBox.cs: Since we are actually using no border in the
447         default TextBox impl, and we are drawing the border ourselves, we need
448         to manually set the top margin.
449         Fixes part of #507462.
450
451 2009-07-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
452
453         * PrintPreviewDialog.cs: Record when left was pressed, so we can
454         simulate Tab+Alt when moving the focus throughout our buttons and
455         controls.
456         Fixes the remaining bits of #509142.
457
458 2009-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
459
460         * TabControl.cs: When computing the width of each tab page, use the
461         page's Font instead of the tab control one.
462         Fixes #514368.
463
464 2009-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
465
466         * MenuAPI.cs: When handling the Keys.Left key, don't close the menu if
467         the current menu is specifically a ContextMenu (this is what .net does
468         as well). This way we also avoid a crash caused by MenuTracker trying
469         to use the menu when it was already hidden.
470
471 2009-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
472
473         * PrintPreviewDialog.cs: Remove the code used to handle the
474         DropDown menu, since we are now doing it by default in ToolBar, and
475         just call the base impl as needed.Also, deactivate the dropdown menu
476         before moving the focus to a different button in our toolbar, as .net
477         does.
478         * ContextMenu.cs:
479         * MenuAPI.cs: Make as internal the needed bits to deactivate a
480         ContextMenu, and also to keep some beauty in our api.
481
482 2009-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
483
484         * ToolBar.cs: When handling the key down message, if we are on a
485         drop down button, either show the DropDownMenu or pass the key to its
486         ProcessCmdKey method as needed.
487         Fixes the remaining bits of #509985.
488
489 2009-06-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
490
491         * ToolBar.cs: Isolate the event logic related to OnButtonClick. Also
492         set current_item when navigating with the keyboard, so we can use it
493         properly later. Finally, handle both Enter and Space to fire
494         OnButtonClick *only*, without any other impact, as .net does.
495         Fixes part of #509985.
496
497 2009-06-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
498
499         * MenuAPI.cs: Close any active menu when we get a simple Alt.
500         Fixes #509299.
501
502 2009-06-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
503
504         * ToolBar.cs: In OnButtonClick only change the Pushed value for
505         buttons with toogle style. We were previously doing it for
506         DropDownButton's buttons, but that's not what .net is doing.
507         Fixes #510030.
508
509 2009-06-26  Atsushi Enomoto  <atsushi@ximian.com>
510
511         * XplatUICarbon.cs : support multi-byte text input.
512           Fixed bug #501276.
513
514 2009-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
515
516         * ListBox.cs: When creating DrawItemEventArgs, pass either
517         Theme.ColorHighlightText or ForeColor depending on the selected state
518         of our item, as .net does.
519         Fixes #512115.
520
521 2009-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
522
523         * ComboBox.cs: When handling WM_CHAR, process the message first, and
524         send it to the textbox only if it wasn't handled.
525         Fixes #507459.
526
527 2009-06-18  Jonathan Pobst  <monkey@jpobst.com>
528
529         * ComboBox.cs: Only do my big sort at the end of AddRange if
530         the combobox is actually set to Sorted.
531
532 2009-06-18 Tom Hindle <tom_hindle@sil.org>
533         
534         * XplatUIX11.cs: Enabled Text to coexist with custom data formats.
535         Fixes #511849.
536
537 2009-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
538
539         * ListBox.cs: When calculating the scrollbars for non MultiColumn
540         mode, force the use of the horizontal scrollbar only if
541         ScrollAlwaysVisible is true as well.
542         Fixes #513029.
543
544 2009-06-17  Jonathan Pobst  <monkey@jpobst.com>
545
546         * ComboBox.cs: When using AddRange on a sorted combobox, don't
547         try to use our inefficient sorted insert method, just append
548         it and sort the whole thing at then end.
549         [Fixes bug #511247]
550
551 2009-06-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
552
553         * ToolBar.cs: Expose as internal the code used to show a dropdown menu.
554         * PrintPreviewDialog.cs: Handle the down/up arrow keys for our
555         DropDown element.
556         Fixes #509152.
557
558 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
559
560         * DataGridView.cs: Scrolling fixes.
561         [Fixes bug #512816]
562
563 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
564
565         * DataGridView.cs, DataGridViewRowCollection.cs: Clean up a bit and 
566         optimize for batch adding rows.
567
568 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
569
570         * DataGridView.cs: Avoid calling ReBind twice during the initial data 
571         binding.
572         [Fixes bug #512807]
573
574 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
575
576         * DataGridView.cs: Suppress invalidation during data binding.
577         [Fixes part of bug #512807]
578
579 2009-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
580
581         * PrintPreviewDialog.cs: Tune the navigation among the buttons and
582         controls that are part of our ToolBar, so we can mimic the behaviour
583         observed in .Net, by handling also the arrow keys and doing the
584         preprocess for them too.
585         Fixes the remaining bits of #509142.
586
587 2009-06-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
588
589         * ToolBar.cs: Expose the current item as internal.
590         * PrintPreviewDialog.cs: Tune the TabStop property for
591         PrintPreviewControl/ToolBar so we match the .net scenario regarding
592         Tab navigation. Also implement support to navigate throughout the
593         items in the ToolBar.
594         Fixes #509142.
595
596 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
597
598         * DataGridViewComboBoxCell.cs, DataGridViewComboBoxColumn.cs: 
599         Implement items syncing in the non-databound scenario.
600         [Fixes bug #494031]
601
602 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
603
604         * DataGridView.cs: Call OnCellValidating and OnCellValidated and 
605         handle the Cancel accordingly.
606         [Fixes bug #506838]
607
608 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
609
610         * DataGridViewBand.cs: Fix a typo in DefaultHeaderCellType.
611         [Fixes bug #506796]
612
613 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
614
615         * DataGridViewColumnCollection.cs, DataGridViewRowCollection.cs, 
616         DataGridView.cs: Fire CollectionChangeAction.Refresh collection 
617         changed when Clearing the collections so that the DataGridView 
618         can know and reset the current cell.
619         [Fixes bug #492549]
620
621 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
622
623         * BindingSource.cs: In ResetBindings use the ListChangedEventArgs ctor 
624         with the PropertyDescriptor parameter instead of index, because the 
625         latter will set some irelevant indices. Fixes a bug uncovered by recent
626          fix to ListChangedEventArgs.
627
628 2009-06-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
629
630         * DataObject.cs: When looking for any specific format, do a case
631         insensitive search, as .net does.
632         Fixes #509199.
633
634 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
635
636         * CurrencyManager.cs: In AllowNew firstly check if the list is a 
637         IBindingList and proxy to AllowNew. IBindingList has slightly differet 
638         logic and eventhough it's an IList IsReadOnly should not be used in this 
639         case as it might be True but AllowNew could be True as well.
640         Fixes a bug uncovered by a fix to the Array class.
641
642 2009-06-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
643
644         * ListBindingHelper.cs: In GetListItemType do a null check when
645         looking for IList.Item, since the impl could be explicit, and thus
646         private. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
647         Fixes the remaining part of #507120
648
649 2009-06-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
650
651         * DataObject.cs: Map StringFormat/Text/UnicodeText formats properly,
652         to match them in all the cases, as this is exactly what .net does.
653         Fixes #510728.
654
655 2009-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
656
657         * ListBindingHelper.cs: In GetListItemType handle gracefully the case
658         where an instance of IEnumerator returns a null value for its Current
659         property. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
660         Fixes #507120.
661
662 2009-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
663
664         * ComboBox.cs: Properly detect whether we need to use our vertical
665         scrollbar or not, specially for DropDownList/DropDown styles,
666         depending on the value of DropDownHeight.
667         Fixes #508541.
668
669 2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
670
671         * ToolTip.cs: Call the base implementation in Dispose, but do it
672         before anything else to avoid a regression. This way we do the default
673         routines related to any System.ComponentModel.Container.
674         Fixes #508586.
675
676 2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
677
678         * Clipboard.cs:
679         * XplatUIX11.cs:
680         * DataFormats.cs: Implement support for serializable types in our
681         clipboard.
682         Fixes #357642.
683
684 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
685
686         * ColorDialog.cs: Actually add the help button to the form, so it can
687         be visible.
688         Fixes #478555.
689
690 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
691
692         * PrintPreviewDialog.cs: Don't use Dock.Fill for the
693         PrintPreviewControl, since it will be hidden in the top by our
694         toolbar. Use manual location and anchoring instead.
695         Fixes #474889.
696
697 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
698
699         * FileDialog.cs: When saving the size of the dialog, use the
700         ClientSize instead of Size, so we have always the same size for the
701         form. Patch by Alex Shulgin.
702         Fixes #503064.
703
704 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
705
706         * MessageBox.cs: When showing the dialog call XplatUI.AudibleAlert to
707         show a beep, similar to what .net does. 
708         Fixes #473725.
709
710 2009-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
711
712         * ContainerControl.cs:
713         * MenuStrip.cs
714         * ToolStrip.cs: Implicit mnemonic processing should happen for every
715         ToolStrip child, not only for MenuStrip, so we are going to do that in
716         ToolStrip.ProcessMnemonic, where we already had that exactly
717         functionality, but we are only just checking that either this instance
718         is a ToolStripDropDownMenu instance or Alt has been pressed. Finally
719         remove the extra code, since we are not going to use it now.
720         Fixes the remaining bits of #503663.
721
722 2009-05-21  Neville Gao  <nevillegao@gmail.com>
723
724         * ContextMenu.cs: Cleaned up UIA properties.
725
726 2009-05-20  Dick Porter  <dick@acm.org>
727
728         * XplatUICarbon.cs: Add more locking around MessageQueue
729         manipulations.
730
731 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
732
733         * DateTimePicker.cs: Call Focus in HideMonthCalendar to avoid
734         duplication of code, as well as actually getting the focus back in
735         *any* scenario where the drop down is closed.
736
737 2009-05-18 Tom Hindle <tom_hindle@sil.org>
738         * ScrollableControl.cs: Ignore setting properties HScroll and 
739         VScroll when AutoScroll is true.
740         [Fixes bug #500213]
741
742 2009-05-18  Jonathan Pobst  <monkey@jpobst.com>
743
744         * ToolStripRenderer.cs: Apply patch from Thomas Goldstein to make
745         disabled graphics look closer to the ones that .Net produces.
746         [Fixes bug #473660]
747
748 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
749
750         * DateTimePicker.cs: When calculating the max width for the year part,
751         use the current value, since *all* the possible values are exactly a 4
752         digits number. This way we avoid a ArgumentOutOfRangeException trying
753         to check against different values.
754         Fixes #500917.
755
756 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
757
758         * MessageBox.cs: When handling ProcessDialogChar, check that
759         CancelButton is not null before trying to use it, to avoid a null ref
760         exception. We don't need to do that on the ok/yes buttons, since they
761         always exist.
762         Fixes #503935.
763
764 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
765
766         * ListBox.cs: Handle the key down event in WndProc instead of doing it
767         in an event handler, as we need to avoid any operation in case
768         the user has handled it in its own OnKeyDown handler, and this can't
769         be achieved since our handler would be the first one always.
770         * FontDialog.cs: Update the calls since our method handling key down
771         has been renamed.
772         Fixes #503469.
773
774 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
775
776         * Application.cs: We should dismiss the active ToolStrip when we
777         receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
778         keyboard short cut can be properly processed by another menu item.
779         Fixes part of #503663.
780
781 2009-05-13  Andreia Gaita  <avidigal@novell.com>
782
783         * HtmlDocument.cs: If the objects are strings, wrap them in ""
784
785 2009-05-13  Andreia Gaita  <avidigal@novell.com>
786
787         * HtmlDocument.cs: Fix InvokeScript call (duh).
788
789 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
790
791         * TextBox.cs: Expose IsAutoCompleteAvailable as internal.
792         * ComboBox.cs: If auto complete is being used, it is needed to update
793         the actual value of the combo box, doing it immediately if the user
794         presses Enter, or doing it when our combo box loses focus. Finally,
795         when handling Enter and Escape keys for the combobox, don't try to
796         hide the listbox if it is not visible in the first place. 
797         Fixes part of #489339.
798
799 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
800
801         * ToolStripDropDownMenu.cs: Use the height returned by
802         ToolStripItem.GetPreferredHeight to calculate our own height.
803
804 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
805
806         * TreeNode.cs: When setting Checked, do a double null check, since the
807         current node can still get a null parent handling
808         TreeView.OnAfterCheck.
809         Fixes #502567.
810
811 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
812
813         * Control.cs: When assigning ContextMenu, do a null check before
814         assigning its container field.
815
816 2009-05-08  Brad Taylor  <brad@getcoded.net>
817
818         * DateTimePicker.cs: Add a UIA-specific property to ensure that if
819         is_checkbox_checked is changed, we won't break.
820
821 2009-05-08  Andrés G. Aragoneses  <aaragoneses@novell.com>
822
823         * ToolStripItem.cs: Prevent NRE when our holder is a
824         ToolStripDropDownButton and we get Select()ed.
825
826 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
827
828         * ToolStripControlHost.cs: DefaultSize must return the current size of
829         the Control, not the value returned by GetPreferredSize. Also connect
830         a handle to the control Resize event, and use it to fire
831         OnHostedControlReize.
832         Fixes the remaining bits of #483146.
833
834 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
835
836         * ToolStripDropDown.cs: When performing the layout, use
837         ToolStripItem.GetPreferredSize ().Height instead of
838         ToolStripItem.Height, since we are already using it that way in this
839         same method.
840         Fixes part of ##483146.
841
842 2009-05-08  Brad Taylor  <brad@getcoded.net>
843
844         * DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers.  Send
845         OnUIASelectionChanged when ShowCheckbox is true and the checkbox
846         recieves focus.  Part of fix for #502029.
847
848 2009-05-06  Mike Gorse  <mgorse@novell.com>
849
850         * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
851         Add PerformClick and PerformDoubleClick to PopupButton.
852         Fixes #499851.
853
854 2009-05-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
855
856         * TabControl.cs: call Focus() to emit GotFocus event at the
857         proper time when SelectionIndex changes. Fixes #499887.
858
859 2009-05-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
860
861         * MonthCalendar.cs: In SetBoundsCore always do the bounds check to
862         have valid values, even if BoundSpecified is not including
863         Size/Height/Width - this is useful when we are in a control using Dock
864         or Anchor.
865         Fixes part of #483146.
866
867 2009-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
868
869         * ComboBox.cs: When losing the focus, if our textbox is not null,
870         close its auto complete list, if any.
871         Fixes part of #489339.
872
873 2009-04-27  Andrés G. Aragoneses  <aaragoneses@novell.com>
874
875         * ListView.cs: Make OnColumnClick +internal to be used by a11y.
876
877 2009-04-27  Brad Taylor  <brad@getcoded.net>
878
879         * ToolStripButton.cs: Emit an internal event when CheckOnClick is
880         changed.
881
882 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
883
884         * XplatUIX11.cs: Properly support UTF8 when handling the
885         SelectionRequest event - this is helpful supporting some window
886         managers, such KDE, that explictly request the text in utf8, as
887         opposed to gnome, that supports ascii.
888         Fixes #489393.
889
890 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
891
892         * ToolStripDropDownItem.cs: When assigning a new
893         ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
894         Capture duties performed by Application/ToolStripManager are handled
895         nicely and we don't end up in an inconsisten stat.
896         Fixes #492815.
897
898 2009-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
899
900         * ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
901         any ToolStripDropDownItem when receiving a mouse down event in an
902         empty area.
903
904 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
905
906         * ToolBarButton.cs: add UIA events for style and dropdownmenu changes.
907
908 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
909
910         * ToolBarButton.cs: rename a method to include UIA prefix.
911
912 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
913
914         * ToolBarButton.cs: change visibility of some UIA methods from
915         protected virtual to private.
916
917 2009-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
918
919         * ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
920         fire OnDropDownOpened/OnDropDownClosed depending on the new
921         visibility. This also ensures that any direct access to this instance
922         will fire the mentioned events for the OwnerItem.
923         * ToolStripDropDownItem.cs: Remove the invocations to
924         OnDropDownOpened/OnDropDownClosed, since they are handled in
925         ToolStripDropDown, as well as updating the
926         OnDropDownHide/OnDropDownShow calls to be in the right order.
927         Fixes #496193.
928
929 2009-04-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
930
931         * Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any 
932         shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the 
933         event is the same as the owner of the menu item. Also set properly 
934         SourceControl for ContextMenuStrip, as well as add an internal field to 
935         contain the control that owns the ContextMenuStrip (we need to know this 
936         even before the public property is assigned).
937         Fixes bits of #393775.
938
939 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
940
941         * StatusStrip.cs: Use the same icon as .net when the mouse is over the
942         size grip.
943         Fixes #492828.
944
945 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
946
947         * ComboBox.cs: When calculating the height of the ComboListBox,
948         specially for the 2.0 profile, use MaxDropDownItems if the
949         DropDownHeight property hasn't been set, and use the later if it has
950         been set. This way we support both properties.
951         Fixes #493308.
952
953 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
954
955         * ThreadExceptionDialog.cs: Draw the error icon, previously missing.
956         Fixes #474253.
957
958 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
959
960         * ContainerControl.cs: Implement support for Control.CausesValidation,
961         by adding a pending list of controls to be validated in the top
962         container control, and postpone validation as needed. 
963         Also remove any control in the validation chain in case it gets removed 
964         from its owner before the pending validation actually happens.
965         Fixes #457170.
966
967 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
968
969         * ListBox.cs: The default instance StringFormat field used to draw our
970         items should use the StringFormatFlags.NoWrap value, so it doesn't try
971         to put in a different line the text that doesn't fit our bounds, but
972         show it partially.
973         Fixes #475581.
974
975 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
976
977         * CheckedListbox.cs: When executing OnItemClick check that the index
978         is different to -1 before trying to retrieve an item using that value.
979         Fixes a ArgumentOutOfRangeException thrown when the horizontal
980         scrollbar was visible but not needed, and then a clicked was received
981         on its area.
982
983 2009-04-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
984
985         * MaskedTextBox.cs: If Insert is pressed, change the internal
986         overwrite mode for our default value.
987         Fixes some bits of #477395.
988
989 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
990
991         * ListView.cs: In EnsureVisible avoid any direct access to items if we
992         are using virtual mode - otherwise use the bounds stored in a specific
993         item in a given index. This is specially important when using groups
994         or when items are re-arranged, since the position in the items
995         collection can be different than that one being displayed.
996         Fixes the rest of ##491978.
997
998 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
999
1000         * ThemeWin32Classic.cs: Include the previous check for ListView in a
1001         2.0 define as needed.
1002
1003 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1004
1005         * ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups.
1006         Fixes part of #491978.
1007
1008 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1009
1010         * ToolTip.cs: New fields to store the title/icon information.
1011         * ThemeWin32Classic.cs: Implement support for tooltip's title and
1012         icon.
1013         Fixes #491978.
1014
1015 2009-04-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1016
1017         * TabControl.cs: When removing a tab that was previously selected, set
1018         internally the value of selected_index to -1, to avoid trying to
1019         access the previous one when trying to set the new one (and was
1020         already removed from the collection). This is what .net seems to do
1021         too.
1022         Fixes #490937.
1023
1024 2009-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1025
1026         * XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
1027         separated, and we cannot fallback on Text if Rtf is requested but not
1028         present.
1029         * Clipboard.cs: Actually use the format specified by our user when
1030         putting data.
1031
1032 2009-03-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1033
1034         * X11Clipboard.cs: Actually look for the RtfText format when calling
1035         GetRftText in our clipboard formats list, instead of using the
1036         generical Text format.
1037
1038 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1039
1040         * TextBox.cs: Process auto completion properly when we are using the
1041         internal source provided by ComboBox, and also remove some repeated
1042         checks.
1043         Fixes #489339.
1044
1045 2009-03-30 Tom Hindle <tom-hindle@sil.org>
1046         
1047         * DataGridView added Support for Invisible Columns to 
1048         AutoFillColumnsInternal method.
1049
1050 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1051
1052         * X11Structs:
1053         * X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
1054         its own file, since it is adding some functionality and thus is not a
1055         simple struct as before.
1056         * XplatUIX11.cs: Add support to store different formats that could
1057         have been specified by the user when puting data in the Clipboard -
1058         this is important when more than one format is supported (such plain
1059         text and rtf text). Update in the needed places, as well as simplify
1060         the code.
1061         Fixes #489625.
1062
1063 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1064
1065         * XplatUIX11.cs: When handling the SelectionRequest event, use
1066         SelectionRequestEvent instead of SelectionEvent, so we get the right
1067         data for the app asking for clipboard data. Set the member of
1068         SelectioneEvent.property to indicate the place where we are storing
1069         the information as well - this is specially important for gnome/kde
1070         apps using the TARGETS atom to ask for the supported permission before
1071         actually asking for a specific format.
1072         Fixes #489393.
1073
1074 2009-03-28  Ivan N. Zlatev  <contact@i-nz.net>
1075
1076         * DataGridViewCell.cs: We don't support drawing all types of cell borders, 
1077         so fallback and at least draw something instead of nothing.
1078
1079 2009-03-27  Ivan N. Zlatev  <contact@i-nz.net>
1080
1081         * DataGridView.cs: If the column header isn't visible allow resizing 
1082         using the cell column border. Also be sure to reset the cursor properly.
1083         [Fixes bug #489929]
1084
1085 2009-03-26   Carlos Alberto Cortez <calberto.cortez@gmail.com>
1086
1087         * ToolStrip.cs: When disposing, iterate over the items in reverse
1088         order, since disposing the items modifies the collection.
1089         * ToolStripItem.cs: Remove from the owner when disposing.
1090         Fixes #485769.
1091
1092 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
1093
1094         * DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No 
1095         longer throws a NotImplementedException.
1096           Based on a patch by Tom Hindle <tom_hindle@sil.org>
1097         [Fixes bug #488319]
1098
1099 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
1100
1101         * DataGridView.cs: Implement IsCurrentRowDirty. No longer throws 
1102         NotImplementedException.
1103
1104 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
1105
1106         * DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs: 
1107         Fix SortMode clash handling.
1108         [Fixes bug #488263]
1109
1110 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
1111
1112         * DataGridView.cs: Do not show the vertical scrollbar if there is only 
1113         one row or less. For the sake of MSNET compatibility.
1114         [Fixes bug #487988]
1115
1116 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
1117
1118         * DataGridView.cs: When the current cell is moved out of the editing row 
1119         be sure to reset it back to a place holder row.
1120
1121 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
1122
1123         * DataGridView.cs: If IsHandleCreated and the very first row is added 
1124         to the grid in a non-databound scenario - select the first cell.
1125         [Fixes bug #486881]
1126
1127 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
1128
1129         * DataGridView.cs: If we are not databound and empty once the first row 
1130         gets added select the first cell.
1131         [Fixes bug #486881]
1132
1133 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
1134
1135         * DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
1136         DataGridView. They do not belong to a DataGridView.
1137         [Fixes bug #486645]
1138
1139 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
1140
1141         * DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs: 
1142         Set indices and associate with DataGridView only after the item is 
1143         add to the internal list.
1144         [Fixes part of bug #486645]
1145
1146 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
1147
1148         * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount. 
1149         FullRowTemplate already contains all the cells.
1150         [Fixes part of bug #486645]
1151
1152 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
1153
1154         * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal 
1155         to perform Pre and Post removal actions to allow the current cell to be 
1156         moved and all events fired properly before the column is removed.
1157
1158 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
1159
1160         * DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and 
1161         Post removal action to allow the current cell to be moved and all events fired 
1162         properly before the row is removed.
1163
1164 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
1165
1166         * DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
1167         [Fixes bug #486640]
1168
1169 2009-03-18  Jonathan Pobst  <monkey@jpobst.com>
1170
1171         * XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
1172         placement of popup windows on OSX.
1173
1174 2009-03-18  Matt Guo  <matt@mattguo.com>
1175
1176         * FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
1177         [Fixes bug #482690]
1178
1179 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
1180
1181         * DataGridView.cs: Implement the CellMouseDoubleClick event.
1182         [Fixes bug #486262]
1183
1184 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
1185
1186         * DataGridView.cs: Fix scrolling to take into account that the 
1187         scrollbars are actually inside the client area of the datagridview.
1188
1189 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
1190
1191         * DataGridView.cs: Implement mouse wheel scrolling.
1192         [Fixes bug #486159]
1193
1194 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
1195
1196         * DataGridView.cs: When DataSource changes the rebinding should happen 
1197         not if IsHandleCreated but if BindingContext != null.
1198         [Fixes bug #486013]
1199
1200 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
1201
1202         * DataGridView.cs: Browsable(false) properties should be skipped when 
1203         autogenerating the columns.
1204         [Fixes bug #486021]
1205
1206 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1207
1208         * DomainUpDown.cs: When ReadOnly is true, all the text entered by the
1209         user should use a different handling, trying to use every pressed char
1210         as a unique and only one prefix to compare against the items. Also,
1211         refactor some input check code to avoid duplication.
1212         Fixes #458607.
1213
1214 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
1215
1216         * DataGridViewCell.cs: In OwningColumng Handle invalid column index 
1217         silently.
1218         [Fixes bug #485278]
1219
1220 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
1221
1222         * DataGridViewBand.cs: Update our State whenever a property changes.
1223         * DataGridView.cs: Don't be so generous in reseting Displayed, because 
1224         it will spawn lots and lots of unneeded State changed events.
1225         [Fixes bug #484989]
1226
1227 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
1228
1229         * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs: 
1230         Add support for invisible rows and columns.
1231         [Fixes bug #484951]
1232
1233 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
1234
1235         * DataGridViewCell.cs: Escape literal { in ToString.
1236         * DataGridViewTextBoxCell.cs: Fix ToString.
1237         [Fixes bug #484923]
1238
1239 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1240
1241         * MenuAPI.cs: When navigating items using the keyboard properly handle
1242         the case when no item is selected - this way we should try to select
1243         the first or the last item depending on the direction, but no the
1244         second or third one, etc.
1245
1246 2209-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1247
1248         * Form.cs: When calling ProcessCmdKey, just after checking for any
1249         MainMenu, check if there's an active ContextMenu that is *not* owned
1250         by the form - this is needed when a non-focusable control owns a
1251         ContextMenu but its ProcessCmdKey method can't be called since it
1252         can't receive any input.
1253         Fixes #477655.
1254
1255 2009-03-13  Neville Gao  <nevillegao@gmail.com>
1256
1257         * ToolBar.cs: Sent ButtonClick events when button style is DropDown.
1258         * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
1259         ContextMenu is displayed.
1260
1261 2009-03-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1262
1263         * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
1264         WM_HELP message for the associated window, don't call
1265         NativeWindow.WndProc *at all*, since this could send a WM_*
1266         key-related to Control.WndProc. Also, return the keypress message, in
1267         case it needs to be preprocessed for any menu.
1268         Fixes #478476.
1269
1270 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
1271
1272         * DataGridView.cs: When removing the first displayed row and moving 
1273         the current cell up one we must invalidate the first displayed row 
1274         index before calculating the row heights, etc.
1275         [Fixes bug #483202]
1276
1277 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
1278
1279         * DataGridView.cs: Fix three column bugs:
1280            - Rows should be cleared (but not removed) if columns become 0.
1281            - The current cell should get moved
1282            - ColumnCount increase was adding too many columns.
1283
1284 2009-03-07  Ivan N. Zlatev  <contact@i-nz.net>
1285
1286         * DataGridView.cs: Fix RowCount decrease which wasn't working well 
1287         in both scenarions - with and without editing row.
1288
1289 2009-03-06  Ivan N. Zlatev  <contact@i-nz.net>
1290
1291         * DataGridView.cs: Be compatible with MS in that the scroll to 
1292         selection has a synchronous effect. The trick here is that in 
1293         order to avoid unnecessary calculations each time a row/column 
1294         is added/removed we recalculate the whole grid size just before 
1295         just before the scroll to selection.
1296         [Fixes bug #482478]
1297
1298 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1299
1300         * RichTextBox.cs: LoadFile(string path) should pass by default
1301         RichTextBoxStreamType.RichText, without caring about the detection or
1302         extension of the file.
1303
1304 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1305
1306         * RichTextBox.cs: When calling LoadFile, remove the extra EOL
1307         introduced by StreamReader, since it will convert the EOF to an EOL.
1308         Fixes #479646.
1309
1310 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
1311
1312         * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
1313         preferred size twice.
1314
1315 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
1316
1317         * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
1318         string if we aren't on a ToolStripDropDownMenu.
1319
1320 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
1321
1322         * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
1323         code from Item to Button.  Patch from Alex Shulgin.
1324
1325 2009-03-05  Jonathan Pobst  <monkey@jpobst.com>
1326
1327         * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
1328         * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
1329         not a ToolStripDropDown.
1330         * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
1331
1332 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
1333
1334         * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
1335
1336           Based on a patch by Tom Hindle <tom_hindle@sil.org>
1337           [Fixes bug #482133]
1338
1339 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
1340
1341         * DataGridView.cs, DataGridViewElement.cs: 
1342            - Always calls OnDataGridViewChanged() if the new DGV is 
1343            not the same/null as the current one.
1344            - Do not throw NREs when setting TopLeftHeaderCell to null
1345            - Unset the DGV for TopLeftHeaderCell when replacing it
1346           Based on a patch by Tom Hindle <tom_hindle@sil.org>
1347           [Fixes bug #481681]
1348
1349 2009-03-04  Jonathan Pobst  <monkey@jpobst.com>
1350
1351         * ToolStripDropDown.cs: When dismissing control due to ESC, don't
1352         hit a NRE if we are a ContextMenuStrip and do not have a parent.
1353         [Fixes bug #478616]
1354
1355 2009-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1356
1357         * ListView.cs: When removing items from a ListViewItemCollection
1358         contained in ListView (not in ListViewGroup), before actually removing
1359         the items remove them also from their -if any- associated groups. If
1360         the item is present in ListViewGroup.Items but not in ListView.Items,
1361         then don't remove it - this is *exactly* what .net seems to do.
1362         Fixes the remaining bits of #478689.
1363
1364 2009-02-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1365
1366         * ListView.cs: In our MouseDown handler in ItemControl use the item in
1367         the very specific *real* position where the mouse was pressed, using
1368         GetItemAtDisplayIndex for that purpose, instead of directly accessing
1369         Items - this is specially useful when groups with Details view is
1370         used. This is what we do in other places when using groups.
1371         Fixes part of #478689.
1372
1373 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1374
1375         * MaskedTextBox.cs: Properly replace selection when a new valid key
1376         is pressed - even when IsOverwriteMode is false. This is what .net
1377         does.
1378
1379 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1380
1381         * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
1382         true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace, 
1383         since Set will keep the previous value in case of error (just what we
1384         need), but still call MaskedTextProvider.Clear if
1385         RejectOnFirstFailure is false - match .net.
1386
1387 2009-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1388
1389         * MaskedTextBox.cs: When setting Text use the very precise algorithm
1390         that .net uses: iterate over every char of the new value, trying to
1391         use every char, and use a normal call to MaskedTextProvider.Replace
1392         call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected 
1393         in case of error in both cases, as well.
1394         Fixes #477408.
1395
1396 2009-02-25  Neville Gao  <nevillegao@gmail.com>
1397
1398         * ColorDialog.cs: Added UIA Framwork Property:
1399         UIASelectedSmallColorControl.
1400
1401 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1402
1403         * MaskedTextBox.cs: Forgot to update the call of the new method
1404         introduces in the previous patch.
1405
1406 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1407
1408         * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
1409         key. Also create a new method to avoid code duplication between
1410         OnKeyDown and OnKeyPress.
1411         Fixes #477388.
1412
1413 2009-02-24  Ivan N. Zlatev  <contact@i-nz.net>
1414
1415         * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected 
1416         or deselected.
1417         [Fixes bug #479124]
1418
1419 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1420
1421         * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
1422         actually inversed, so put it the right way. Also, don't automatically
1423         look for the next editable item after adding a new one, but way for
1424         the next insertion (this is what .net does) - this is not needed when
1425         MaskedTextProvider.InsertAt is called however, since it already looks for the
1426         next editable position.
1427         Fixes the remaining bits of #477383.
1428
1429 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1430
1431         * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
1432         MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
1433         property after the text was modified, adjust the testPosition value
1434         depending on what method was called.
1435         Fixes part of #477383.
1436
1437 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1438
1439         * ListView.cs: For EnsureVisible, adjust the view port bounds based on
1440         the existence of the column headers, as well as using this information
1441         to adjust the vscrollbar value, so items never get hidden by the
1442         column headers.
1443         Fixes #478498.
1444
1445 2009-02-23  Ivan N. Zlatev  <contact@i-nz.net>
1446
1447         * DataGridView.cs: Make the ScrollBars property work properly.
1448
1449 2009-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1450
1451         * TextBox.cs: Some code lifting for AutoComplete's support. First,
1452         when handling non-navigation keys, save the original Text typed by the
1453         user, and don't motify it BEFORE. This was a design mistake, since the
1454         re-assignation happens only when navigating the append/suggest list,
1455         not while creating the matches. Also, process the Delete key just like 
1456         the backspace one. Finally, when handling WM_CHAR, ignore both Escape
1457         and Enter keys.
1458         Fixes some missing bits of #469967.
1459
1460 2009-02-22  Ivan N. Zlatev  <contact@i-nz.net>
1461
1462         * DataGridView.cs: Fix row removal in the data-bound scenario.
1463
1464 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
1465
1466         * DataGridViewCell.cs: Use strict equality comparison in order to 
1467         prevent superfluous CellValueChanged events.
1468
1469 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
1470
1471         * DataGridView.cs: Do not reset the columns when the data list changes, 
1472         but only the rows. Fixes multiple bugs related to sorting, custom 
1473         column styles being reset and more.
1474
1475 2009-02-19  Jonathan Pobst  <monkey@jpobst.com>
1476
1477         * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
1478         drawing the image.
1479
1480 2009-02-18  Andrés G. Aragoneses  <aaragoneses@novell.com>
1481
1482         * ToolBarButton.cs: Oops, use the correct event (fix r127298).
1483
1484 2009-02-17  Andrés G. Aragoneses  <aaragoneses@novell.com>
1485
1486         * ToolBarButton.cs: Event for Enabled property (needed to fix
1487           UIA #474197).
1488
1489 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1490
1491         * TextBox.cs: When handling WndProc with autocomplete activated,
1492         event if the new text is not causing any change in the look up
1493         algorithm, save it as we normally do when numbers and letters.
1494         Fixes #469967.
1495
1496 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1497
1498         * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
1499         Invalidate the proper bounds in the TreeView, not only resetting the
1500         width.
1501         Fixes #475542.
1502
1503 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1504
1505         * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
1506         BackColor property. This is what .net does in both 1.1 and 2.0.
1507         * TreeView.cs: When selected_node is not the same as highlighted_node,
1508         we need to handle the back color in a different way, trying to use the
1509         node's BackColor if it's not Color.Empty.
1510         Fixes #464200.
1511
1512 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1513
1514         * TreeView.cs: When canceling selection in our MouseUp handler,
1515         invalidate also the previous selected node bounds.
1516         Fixes #464191.
1517
1518 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
1519
1520         * DataGridView.cs: End or if end fails then cancel the current edit 
1521         operation before clearing the data source.
1522
1523 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
1524
1525         * DataGridView.cs: Data-bind only after the handle is created.
1526         [Fixes bug #473680]
1527
1528 2009-02-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1529
1530         * TreeView.cs: When handling the MouseMove event, check if
1531         focused_node and selected_node fields are null - usually they are non
1532         null, since we have always a selected node, but canceling selection by
1533         handling BeforeSelect event leaves the two of them as null.
1534         Fixes #470451.
1535
1536 2009-02-06  Neville Gao  <nevillegao@gmail.com>
1537
1538         * TabControl.cs: Control enabled to support accessibility.
1539         [Fixes Bug #472428]
1540
1541 2009-02-05  Ivan N. Zlatev  <contact@i-nz.net>
1542
1543         * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation: 
1544            - Use ArrayList.Insert instead of the Item property so that the item 
1545            is actually inserted and not an existing item replaced.
1546            - Call DataGridView.OnRowsAddedInternal and drop internal from 
1547            OnRowsAdded for binary compitability. This also fixes several 
1548            redrawing issues.
1549         [Fixes bug #472968]
1550
1551 2009-02-05  Andrés G. Aragoneses  <aaragoneses@novell.com>
1552
1553         * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
1554           the value.
1555
1556 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1557
1558         * ToolBarButton.cs: Add another event (OnUIATextChanged).
1559
1560 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1561
1562         * ToolBarButton: Fix typo in previous commit (r125704).
1563
1564 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1565
1566         * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
1567         when a button gets focus, firing the events from the ToolBar.
1568         r: jpobst
1569
1570 2009-02-04  Mario Carrion  <mcarrion@novell.com>
1571
1572         * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting 
1573         Width.
1574         * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
1575         ColumnHeader to raise ColumnWidthChanged.
1576         [Fixes Bug #467086]
1577
1578 2009-02-03  Ivan N. Zlatev  <contact@i-nz.net>
1579
1580         * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion 
1581         code in the row collection code, so that the completion happens before 
1582         the CollectionChanged event, also better encapsulation.
1583         [Fixes bug #471987]
1584
1585 2009-02-02  Ivan N. Zlatev  <contact@i-nz.net>
1586
1587         * DataGridView.cs: When editing is finished do not remove the editing 
1588         row, because it has already become a real one. Instead add a new one.
1589         [Fixes bug #471754]
1590
1591 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1592
1593         * TreeView.cs: When drawing the node's image, check that the index
1594         specified by the node is valid for the ImageList.
1595         Fixes #471094.
1596
1597 2009-02-02  Andrés G. Aragoneses  <aaragoneses@novell.com>
1598
1599         * ToolBar.cs: Add new UIAPerformClick method to be called by
1600         UIAutomationWinforms when someone calls Invoke() on the
1601         ToolBarButtonProvider. r: jpobst
1602
1603 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1604
1605         * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
1606         MapNotify/UnmapNotify events - we are already firing those events in
1607         the proper places, so we avoid this way to send the same message two
1608         times. I'm leaving the handling code in case we could break something
1609         in the future, as this change seems dangerous (but needed).
1610         Fixes #467546.
1611
1612 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1613
1614         * DataGridView.cs: Complete incomplete rows when they are added to 
1615         the grid.
1616         [Fixes bug #471068]
1617
1618 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1619
1620         * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the 
1621         binding is cleared prior to setting it to null. Fixes a regression 
1622         causing exceptions when the DataSource is set to null and then set 
1623         again to a data source.
1624
1625 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1626
1627         * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs: 
1628            - Make Image/Bitmap cells work.
1629            - Handle images with size greater than the cell.
1630            - Default to MiddleCenter alignment for image cells.
1631         [Fixes bug #471101]
1632
1633 2009-01-30  Ivan N. Zlatev  <contact@i-nz.net>
1634
1635         * UpDownBase.cs: Force Height to PreferredHeight.
1636
1637 2009-01-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1638
1639         * XplatUIX11.cs: We should use utf8 handling clipboard transference
1640         with other x11 applications, and use utf16 when handling clipboard
1641         data in the class library. Update the related points as well.
1642         Fixes #468683.
1643
1644 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
1645
1646         * DataGridViewCell.cs: Format strings according to the supplied 
1647         CellStyle.Format.
1648         [Fixes bug #470384]
1649
1650 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
1651
1652         * DataGridView.cs: Reset the hover cell if it gets moved due to row(s) 
1653         addition or removal. Fixes multiple crashes in OnMouseMove.
1654
1655 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
1656
1657         * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
1658
1659 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
1660
1661         * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the 
1662         current context.
1663         [Fixes bug #469239]
1664
1665 2009-01-26  Andreia Gaita  <avidigal@novell.com>
1666
1667         * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
1668         won't be disabled by default.
1669         Fixes #468690
1670
1671 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
1672
1673         * DataGridView.cs: Do not clear the rows if we are not databound.
1674
1675 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
1676
1677         * DataGridView.cs: Do not be too smart about selecting the first cell 
1678         when the first row is added as this is not what MS does. Fixes the 
1679         failing unit tests.
1680
1681 2009-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1682
1683         * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
1684         take into account the fact that OpenTreeNodeEnumerator needs to call
1685         MoveNext/MovePrevious to actually put the passed node as the one
1686         retrieved in Current. This way this property should work as really
1687         expected in .net.
1688         Fixes part of #467225.
1689
1690 2000-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1691
1692         * TreeView.cs: When calculating the scrollbars, don't use
1693         TreeNode.Bounds, since it still can have the values of the previous
1694         -and now invalid- layout -which depends on TreeView.skipped_nodes, and
1695         could not have been updated as well-, and use the actual number of
1696         visible number of nodes to compute the height needed to contain all
1697         the nodes. Also reset the value of vbar to 0 when disabled - this way
1698         we make sure that, when re-enabled, it will update the visible area of
1699         the treeview, even if the previous value before disabling it is the
1700         same as now. Finally don't do anything for the vbar.ValueChanged
1701         handler - for the case wheer we manually set the value but don't the
1702         vbar is disabled already.
1703         Fixes part of #467225.
1704
1705 2009-01-23  Jonathan Pobst  <monkey@jpobst.com>
1706
1707         * ToolStrip.cs: Switch from foreach to for, in case the collection
1708         somehow changes while enumerating it.
1709
1710 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1711
1712         * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no 
1713         editing control.
1714
1715 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1716
1717         * DataGridView.cs: Fix new row adding/editing in the non-databound 
1718         scenario.
1719
1720 2009-01-21  Mike Gorse  <mgorse@novell.com>
1721
1722         * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
1723           use them.
1724           Added UIAValueParamChangedEvent.
1725
1726 2009-01-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1727
1728         * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
1729         of trying to set as top node the highest parent of the previous top
1730         node. Moving to the bottom of the TreeView after a call to CollapseAll
1731         is exactly what .net does. This should avoid some nasty issue when
1732         CollapseAll is called and we don't need the vertical scroll bar.
1733
1734 2009-01-21  Mario Carrion <mcarrion@novell.com>
1735
1736         * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
1737         and UIATopMostChanged.
1738
1739 2009-01-21  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1740
1741         * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
1742         UIAEnabledChanged, and UIATextChanged events.
1743
1744         * Form.cs: Add UIAMenuChanged event.
1745
1746         * Menu.cs:
1747         * MenuAPI.cs: Note which internal APIs are being used by UIA.
1748
1749 2009-01-21  Neville Gao  <nevillegao@gmail.com>
1750
1751         * ToolBar.cs: Control enabled to support accessibility.
1752         [Fixes Bug #455950]
1753
1754 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1755
1756         * TreeView.cs: When handling mouse up event, check whether
1757         highlighted_node is null or not - usually it should be non-null
1758         alwaays, since the mouse down handler sets it, but some externa
1759         operations, such TreeNodeCollection.Clear, could set it to null.
1760         Fixes #438650.
1761
1762 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1763
1764         * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu 
1765         item is disabled.
1766
1767 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1768
1769         * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
1770         [Fixes bug #467285]
1771
1772 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1773
1774         * MonthCalendar.cs: When handling the selection changes using the
1775         mouse, don't set SelectionRange if the selection range didn't actually
1776         change. This matters because, even if we set the range to the same
1777         previous range, an extra DateChanged event is fired. Just to be clear:
1778         SelectionRage property doesn't check whether the new value is
1779         different to the previous one (by ref equals doesn't work here).
1780         Fixes other bits of #364914.
1781
1782 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1783
1784         * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
1785         selection using the keyboard, since we are already firing this event
1786         when setting SelectionRange. Also don't set SelectionRange if the
1787         previous and the new value are the same (the property, just as .net
1788         does, doesn't check whether the previous value and the new one are the
1789         same). This saves us from firing OnDateChanged event if the selection
1790         range didn't change actually.
1791         Fixes the remaining bits of #364914.
1792
1793 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1794
1795         * ListBox.cs: When removing an item and the last item is selected,
1796         remove it from the selection, and if selection mode is One try to
1797         select the new last item.
1798         Fixes #465422.
1799
1800 2009-01-16  Mike Gorse  <mgorse@novell.com>
1801
1802         * Splitter.cs: Make MaxSize internal so that UIA code can use it.
1803
1804 2009-01-16  Mario Carrion <mcarrion@novell.com>
1805
1806         * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged 
1807         when changing Text. 
1808
1809 2009-01-16  Carlos Alberto Cortez <calberto.cortez@ggmail.com>
1810
1811         * X11Structs.cs:
1812         * XplatUIX11.cs: Properly encode/decode the unicode strings we
1813         store/retrieve in the Clipboard. Also, since we try to convert the
1814         data to different formats, separate the source and the result of
1815         it, so we can always fallback to the original and don't mix wrong
1816         conversions.
1817
1818 2009-01-16  Mike Gorse  <mgorse@novell.com>
1819
1820         * TextControl.cs: Add UIASelectionChanged event.
1821
1822 2009-01-16  Ivan N. Zlatev  <contact@i-nz.net>
1823
1824         * DataGridView.cs: Forward the first key events to the editing control.
1825         [Fixes bug #457307]
1826
1827 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1828
1829         * Application.cs: Oops, launch the copied handler of PreRun instead of
1830         the global one (gendarme would bark otherwise). (Improving r123375)
1831
1832 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1833
1834         * XplatUI.cs:
1835         * Application.cs: Move the PreRun event fire to the end of the XplatUI
1836         static ctor (we don't move the PreRun event to this class because its
1837         usage would cause the call to the static ctor). This way we can get
1838         a11y support for dialogs that run without App.Run.
1839
1840 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1841
1842         * ListView.cs: New internal property to know the inner array's length of
1843         the location of items, in order to avoid a try-catch strategy for the
1844         case when this array has not been resized yet (for reference, look at
1845         r123288). r: jpobst
1846
1847 2009-01-13  Andrés G. Aragoneses  <aaragoneses@novell.com>
1848
1849         * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
1850         reflection calls. This requires UIAutomationWinforms r123213.
1851
1852 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1853
1854         * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
1855         handlers and fire the DateSelected event until MouseUp is reached,
1856         like .net does, instead of firing it for each mouse event.
1857         Fixes part of #364914.
1858
1859 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1860
1861         * TreeView.cs: When the selection gets canceled using the BeforeSelect
1862         event, invalidate the previous highlighted_node bounds, to show the
1863         user that the item was *not* selected.
1864         Fixes #464191.
1865
1866 2009-01-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1867
1868         * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
1869         well as -in DropDown and Simple modes- writing in the textbox should
1870         try to set the requested item as the top one, but navigating with the
1871         keyboard and handling mouse selection don't need that behaviour. Also,
1872         when resetting selected_index handling key press events, reset
1873         ComboListBox.HighlightIndex. 
1874         Fixes the remaining bits of #464188.
1875
1876 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1877
1878         * DataGridView.cs: Fix crashes when shortcut keys are pressed, but 
1879         there are no cells:
1880            - CurrentCellAddress should be -1, -1 and not 0, 0.
1881            - Be tolerant and fall back to clearing the current cell if either 
1882            column or row is -1 in MoveCurrentCell.
1883            - Misc. more -1 checks.
1884
1885 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1886
1887         * DataGridView.cs: Preserve the column index. Fixes a regression 
1888         introduced by the data binding position tracking code.
1889
1890 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1891
1892         * DataGridView.cs: If the bottom of the row matches the client height 
1893         do not regard the row as partially visible. Fixes the weird scrolling 
1894         when there is no scrollbar.
1895
1896 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1897
1898         * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
1899
1900 2009-01-09  Mario Carrion  <mcarrion@novell.com>
1901
1902         * MessageBox.cs: Fixed internal UIAIconRectangle property.
1903
1904 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1905
1906         * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
1907
1908 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1909
1910         * DataGridView.cs: Track the Position in the CurrencyManager.
1911
1912 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1913
1914         * DataGridView.cs: Implement data-bound new item editing/addition.
1915         * DataGridViewRowCollection.cs: Make it possible for us to internally 
1916         remove the edit row.
1917         [Fixes bugs #457107, #457308, #325240]
1918
1919 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1920
1921         * CurrencyManager.cs: Even if Position is set to a greater value than the 
1922         list count reset it to position of the last item.
1923
1924 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1925
1926         * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList. 
1927         Fix that in order to make CancelNew to work.
1928
1929 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1930
1931         * BindingSource.cs: When adding a new item try to delegate to the internal 
1932         list first before throwing an exception.
1933
1934 2009-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1935
1936         * ComboBox.cs: When setting the text and adjusting the top_item, do it
1937         *only* if the current item is *not* visible already.
1938         Fixes part of #464188.
1939
1940 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1941
1942         * DataGridView.cs: Requesting the CurrencyManager for the first time can 
1943         lead to unexpected OnBindingContextChanged calls and recursive rebinding. 
1944         Fix that.
1945         [Fixes bug #464493]
1946
1947 2009-01-08  Brad Taylor  <brad@getcoded.net>
1948
1949         * ComboBox.cs: Expose a few private fields as internal UIA properties.
1950
1951 2009-01-07  Mario Carrion <mcarrion@novell.com>
1952         
1953         * DataGrid.cs: CWL removed.
1954
1955 2009-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1956
1957         * RadioButton.cs: When setting Checked, we should first update the
1958         check state of the current RadioButton, as well as invalidating it,
1959         and after that actually update the siblings. This is done to match
1960         .net.
1961         Fixes the remaining bits of #463028.
1962
1963 2009-01-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1964
1965         * RadioButton.cs: Setting Checked to false should set TabStop to stop
1966         as well. Also, when we get the focus and no other RadioButton is
1967         selected in the parent control, we should mark ourselves as Checked.
1968         Fixes part of #463028.
1969
1970 2009-01-05  Mario Carrion <mcarrion@novell.com>
1971
1972         * DataGrid.cs: UIA suppport. internal events: 
1973         UIAGridCellChanged, UIAColumnsHeadersVisibleChanged, 
1974         UIASelectionChanged, UIACollectionChanged. Internal properties: 
1975         UIARowHeight, UIACellsArea, UIACaptionArea, 
1976         UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle, 
1977         UIAVScrollBar and UIAHScrollBar.
1978
1979 2009-01-05  Jonathan Pobst  <monkey@jpobst.com>
1980
1981         * ToolStripSplitStackLayout.cs: Enable the overflow button if any
1982         of the buttons are set to Overflow = Always.
1983         [Fixes bug #463013]
1984
1985 2009-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1986
1987         * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
1988         based on whether the binding source is availble or not. Fixes #463008.
1989
1990 2009-01-03  Ivan N. Zlatev  <contact@i-nz.net>
1991
1992         * DataGridViewCell.cs: We should return a value even if we are not bound 
1993         to a DataGridView.
1994
1995 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1996
1997         * CurrencyManager.cs, DataGrid.cs: 
1998            - Rename CanAddRows to AllowNew. The CurrencyManager has no 
1999            concept of "rows".
2000            - Add two more internal properties AllowRemove and AllowEdit.
2001         * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows, 
2002         AllowUserToDeleteRows and cell ReadOnly state to be also checked against the 
2003         CurrencyManager data source.
2004
2005 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
2006
2007         * DataGridView.cs: Fix crashes caused by assigning negative values to 
2008         ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than 
2009         the column/row heights/widths.
2010         [Fixes bug #462684]
2011
2012 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
2013
2014         * DataGridView.cs: Non-autogenerated columns that have a data property 
2015         set that exists in the current datasource should be set to be data-bound.
2016
2017 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
2018
2019         * DataGridView.cs: Fix column sorting for columns containing null 
2020         values. A "null" value is not always "null" (e.g could be String.Empty) 
2021         and thus parsing numeric types throwed an exception for "null" values.
2022
2023 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
2024
2025         * DataGridView.cs: Detach the editing control when the edit is 
2026         finished.
2027
2028 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
2029
2030         * DataGridView.cs: Multiple fixes to handle last column/row removal 
2031         and cell movement after that instead of throwing exceptions.
2032
2033 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
2034
2035         * DataGridViewCellCollection.cs: When cells are removed the column 
2036         indices become invalid if the cell is not the last one and have to 
2037         be refreshed.
2038
2039 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
2040
2041         * DataGridView.cs: Return false in CommitEdit if there was an error.
2042
2043 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
2044
2045         * DataGridView.cs: Remove a leftover Console.WriteLine.
2046
2047 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
2048
2049         * DataGridViewRow.cs: Access the indexer of the data manager directly 
2050         instead of the internal list.
2051
2052 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
2053
2054         * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs: 
2055         Rewrite the value getting, setting, parsing, formatting logic:
2056            - If data-bound value get/set should actually get and set from the 
2057              data source.
2058            - Make proper usage of TypeConverters for value parsing/formatting.
2059            - Raise DataError if setting the new value fails.
2060            - Get rid off the internal valueType field and get/set the ValueType 
2061            property instead.
2062         [Fixes bug #462051]
2063
2064 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
2065
2066         * DataGridView.cs: Rewrite the DataBinding layer:
2067            - Get rid off all BindingSource/IBindingList/DataSet/DataTable 
2068            specific code.
2069            - Get rid off the per DataSource type column autogeneration code.
2070            - Use the CurrencyManager for everything that is DataBinding related.
2071
2072 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
2073
2074         * CurrencyManager.cs: Do not fire duplicate ListChanged events.
2075
2076 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
2077
2078         * DataGridView.cs, DataGridViewRow.cs: Add a new internal property 
2079         DataManager to fetch the CurrencyManager for the DataGridView and to 
2080         spare this logic for the other components to follow.
2081
2082 2008-12-31  Mario Carrion  <mcarrion@novell.com>
2083
2084         * MessageBox.cs: UIA support: new properties: UIAMessage, 
2085         UIAMessageRectangle and UIAIconRectangle.
2086
2087 2008-12-31  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2088
2089         * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
2090         and DirComboBox.DirComboBoxItem.ToString override for UIA support.
2091
2092 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
2093
2094         * DataGridView.cs: Do not autogenerate duplicate column for a 
2095         data member that has already problematically been assigned one.
2096         [Fixes bug #457305]
2097
2098 2008-12-30  Jonathan Pobst  <monkey@jpobst.com>
2099
2100         * ProfessionalColorTable.cs: Better detection of user's theme.
2101         [Fixes bug #462766]
2102
2103 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
2104
2105         * DataGridView.cs: In the case where there are no autogenerated 
2106         columns and the user adds columns problematically we must generate 
2107         the rows after the very first column is added.
2108
2109 2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2110
2111         * DateTimePicker.cs: When increasing/decreasing the value of month
2112         with ShowUpDown set to true, moving from december to january, and
2113         moving from january to december should adjust the year to the next and
2114         the previous year, respectively.
2115         Fixes the remaining bits of #459674.
2116
2117 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
2118
2119         * DataGridView.cs: If a new cell is selected edit mode should be 
2120         immediately enabled only if EditOnEnter is set. Whether the mouse 
2121         or not was used to select the cell is irrelevant.
2122
2123 2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
2124
2125         * DataGridView.cs: Remove a bogus ReBind call, which was causing 
2126         recursive rebinding.
2127
2128 2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2129
2130         * DateTimePicker.cs: Handle the "MMMM" month format.
2131         Fixes #459674.
2132
2133 2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
2134
2135         * DataGridView.cs: 
2136            - Make ReBind private and refactor various calls to call ReBind 
2137            instead of ClearBinding/DoBinding
2138            - Rebind when the column collection changes
2139         * DataGridViewColumnCollection.cs: 
2140            - Leave the rebinding on change to be handled by the DataGridView.
2141
2142 2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
2143
2144         * DataGridView.cs: Add a ReBind convenience method.
2145         * DataGridViewColumnCollection.cs: Rebind when a column is added.
2146         [Fixes bug #462019]
2147
2148 2008-12-23  Neville Gao  <nevillegao@gmail.com>
2149
2150         * StatusBar.cs: Modified argument variable.
2151         * SplitContainer.cs: Control enabled to support accessibility.
2152         [Fixes Bug #455950]
2153
2154 2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
2155
2156         * ToolStripMenuItem.cs: Guard against an NRE.
2157         [Fixes bug #457110]
2158
2159 2008-12-22  Mario Carrion  <mcarrion@novell.com>
2160
2161         * Control.cs: AccessibleXXXX properties don't return 
2162         AccessibleObject.XXXX, instead a local referece is returned.
2163
2164 2008-12-22  Neville Gao  <nevillegao@gmail.com>
2165
2166         * PrintPreviewControl.cs: Added internal properties to support
2167         accessibility.
2168         [Fixes Bug #459699]
2169
2170 2008-12-19  Mario Carrion  <mcarrion@novell.com>
2171
2172         * Control.cs: Reverted r121561. 
2173
2174 2008-12-19  Andrés G. Aragoneses  <aaragoneses@novell.com>
2175
2176         * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
2177         it has been moved to the bridge.
2178
2179 2008-12-18  Brad Taylor  <brad@getcoded.net>
2180
2181         * DateTimePicker.cs: Add a few UIA specific events, and a couple
2182         internal methods useful for UIA.
2183
2184 2008-12-18  Mario Carrion <mcarrion@novell.com>
2185
2186         * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
2187         [Fixes Bug #455752]
2188
2189 2008-12-17  Mike Gorse  <mgorse@novell.com>
2190
2191         * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
2192           item's Focused property is set.
2193
2194 2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2195
2196         * TreeView.cs:
2197         * TreeNode.cs:
2198         * TreeNodeCollection.cs: Add events for UIA support:
2199         UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
2200         UIACollectionChanged.
2201
2202 2008-12-17  Bill Holmes  <billholmes54@gmail.com>
2203
2204         * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
2205           SubItemStyle member field. 
2206
2207         Contributed under MIT/X11 license.
2208
2209 2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2210
2211         * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
2212         y coord, since it's useless in this case, and we need to rely only on
2213         the number of rows and ItemHeight to compute this value.
2214         Fixes part of #257471.
2215
2216 2008-12-15  Mike Gorse  <mgorse@novell.com>
2217
2218         * StatusBar.cs: Send OnUIACollectionChanged in Remove().
2219
2220 2008-12-15  Mario Carrion  <mcarrion@novell.com>
2221
2222         * Control.cs: Accessibility properties instantiate AccessibilityObject when
2223         needed.
2224         [Fixes Bug #459223]
2225
2226 2008-12-15  Brad Taylor  <brad@getcoded.net>
2227
2228         * ToolStripItem.cs: Add a UIA specific event for listening for when a
2229         ToolStripItem becomes selected or deselected.
2230
2231 2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2232
2233         * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
2234         .net does. Use the date in the point of the mouse move coords as the
2235         new range as well, if the left button of the mouse is being pressed.
2236         Fixes #364914.
2237
2238 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2239
2240         * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
2241         MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
2242         effectively repaint the control.
2243         Fixes the remaining bits of #417961.
2244
2245 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2246
2247         * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
2248         range to contain only dates within the new possible range.
2249         Fixes part of #417961.
2250
2251 2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2252
2253         * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
2254         length of the text, but the end position, so we need to substract 1 to
2255         have a valid value. Also, in the same InputText method, don't use
2256         SelectionLength as the length of the text, since the selected text
2257         could actually be empty, but we need to set the value anyway.
2258         Fixes #457370.
2259
2260 2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2261
2262         * TextBox.cs: Don't do any auto complete task if the custom source is
2263         null or empty. Also avoid duplication of code.
2264         Fixes #457743.
2265
2266 2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
2267
2268         * DataGridView.cs: Refresh column sizes when new rows are added.
2269         [Fixes bug #457050]
2270
2271 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2272         * RichTextBox.cs: When parsing the contents of a rtf file, don't call
2273         Split to create a line - we are already doing this, by _adding_ a new
2274         one when rtf_cursor_x is 0 (this field gets this value just after we
2275         receive the newline param as true). This avoids having a proportional number
2276         of empty lines in the end of the rich text box.
2277         Fixes #396664.
2278
2279 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2280
2281         * RichTextBox.cs: When saving the contents as a plain text, don't add
2282         a new line for every Line structure, since the data in Document
2283         already contains the new line characters. This avoids duplicated new
2284         lines using the Save methods.
2285         Fixes #445618.
2286
2287 2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2288
2289         * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
2290         framework.  Fixes bug #457678.
2291
2292 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2293
2294         * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
2295         where datasource is null.
2296         [Fixes exception reported in bug 441240]
2297
2298 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2299
2300         * DataGridView.cs: EndEdit validation fixes.
2301
2302 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2303
2304         * DataGridView.cs: This is the cool patch that adds support for 
2305         actually updating the data in the databinding backend after editing. 
2306         With bonus firing and handling the DataError event.
2307
2308 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2309
2310         * Line.cs: When calculating the text tags's Shift value, store it as
2311         pixels instead of points. This way we can actually handle different
2312         fonts in the same RichTextBox, as well as the right size of the caret.
2313         Fixes part of #351938.
2314
2315 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2316
2317         * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was 
2318         casted to CheckState causing InvalidCastExceptions.
2319
2320 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2321
2322         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
2323         to not depend on the item being clicked.
2324
2325 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2326
2327         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
2328         longer throws a NotImplementedException.
2329
2330 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2331
2332         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
2333         IDataGridViewEditingControl for editing.
2334
2335 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2336
2337         * DataGridViewComboBoxCell.cs: Implement data binding support.
2338
2339 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2340
2341         * DataGridView.cs: Use the CurrencyManager to update the data source 
2342         binding position instead of casting the data sourcde to BindingSource.
2343         This enables position updating for other type of data sources.
2344
2345 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2346
2347         * ComboBox.cs: Update the SelectedIndex before updating the Text 
2348         in OnDisplayMemberChanged.
2349
2350 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
2351
2352         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
2353         [Fixes bug #457112]
2354
2355 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
2356
2357         * DataGridView.cs: Sorting fixes:
2358            - Be strict when sorting is enabled.
2359            - If there is a data source delegate the sorting request.
2360
2361 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
2362
2363         * Binding.cs: When converting the data also try with the destination 
2364         type typeconverter. This indirectly adds support for Nullable types 
2365         in our databinding layer.
2366
2367 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
2368
2369         * DataGridView.cs: When cell editing is finished focus back the 
2370         DataGridView. Fixes keyboard navigation post-editing.
2371
2372 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
2373
2374         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
2375         setting to after EndEdit is called for the old cell.
2376
2377 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
2378
2379         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
2380
2381 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
2382
2383         * XplatUIX11.cs: Send WM_HELP only to the focused window.
2384
2385 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2386
2387         * CurrencyManager.cs: Fix exceptions when resetting the data source 
2388         for the same time (e.g. in ComboBox): 
2389            - Do not set the list position if we are still transferring data
2390            - When resetting the list firstly push the data then update the 
2391            binding.
2392         * Binding.cs: Check BindingManager.Position == -1 instead of 
2393         BindingManager.Current == null in order to avoid unexpected 
2394         exceptions.
2395
2396 2008-12-05  Brad Taylor  <brad@getcoded.net>
2397
2398         * MonthCalendar.cs: Add UIA specific events so that we can know when
2399         the selection changes, and when MaxSelectedCount changes.
2400
2401 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2402
2403         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
2404         used for anything.
2405
2406 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2407
2408         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
2409         to the control being drawn for the first time by:
2410            - Implement DisplayedRowsCount to not rely on the control being
2411            already painted. Also added support for the partial row flag.
2412            - Fix scrolling to take into account partial rows and scroll to
2413            them.
2414         [Fixes bug #456527]
2415
2416 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2417
2418         * DataGridView.cs: Do not reset the CurrentCell when the handle is
2419         created if the user has already set it.
2420
2421 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2422
2423         * DataGridView.cs: Fix CurrentCell to actually select the cell.
2424
2425 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2426
2427         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
2428         text and then let the underneath users of IDataObject interpret and
2429         parse by themselves. 
2430         Fixes #439251.
2431
2432 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2433
2434         * DataGridView.cs: Fix my previous commit to actually update what it 
2435         was supposed to.
2436
2437 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2438
2439         * DataGridView.cs: Ensure that when a row is removed the all the 
2440         current row/column/cell get updated. Fixes multiple exceptions.
2441
2442 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2443
2444         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
2445         is used.
2446         [Fixes bug #443560]
2447
2448 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2449
2450         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
2451         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
2452         new state.
2453         [Fixes issue 1 in bug #443560]
2454
2455 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2456
2457         * DataGridView.cs: Invalidate after the current row/column seletion 
2458         chagnes.
2459         [Fixes bug #438434]
2460
2461 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2462
2463         * DataGridView.cs: Refresh the data if the data list is reset, etc.
2464
2465 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2466
2467         * DataGridView.cs: Handle datasource state changes:
2468            - IBindingList - list changes
2469            - BindingSource - list changed and datasource changes
2470
2471 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2472
2473         * DataGridView.cs: Select the first cell when databound. 
2474         Visually select when CurrentCell is set.
2475
2476 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2477
2478         * DataGridView.cs: Set the current cell before raising CellClick.
2479
2480 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2481
2482         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
2483         CellLeave events as this is already done in SetCurrentCellAddressCore.
2484
2485 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2486
2487         * DataGridView.cs: Set the minimum size for the columns to be the 
2488         width of their header, so that the columns don't get squashed 
2489         all together.
2490
2491 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2492
2493         * DataGridView.cs: After the data is bound PerformLayout, so that 
2494         the columns get autosized.
2495
2496 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2497
2498         * DataGridView.cs: Move all currentCell setting code into 
2499         one central place - SetCurrentCellAddressCore. That way the 
2500         current cell is properly updated when programatically set.
2501         Fire RowEnter/Leave events.
2502
2503 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2504
2505         * DataGridView.cs: Update the CurrencyManager.Position, so that 
2506         when a BindingSource is used BindingSource.Current will be correct.
2507
2508 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2509
2510         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
2511            - No caption text is drawn because Color.Empty is used.
2512            - Fix top and height off by 1.
2513
2514 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2515
2516         * DataGridViewRow.cs: Implement DataBoundItem.
2517
2518 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2519
2520         * BindingSource.cs: Return null for Current if there is no data present.
2521
2522 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2523
2524         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
2525         menus using the arrow keys. Also when handling the left arrow key, don't 
2526         assign the current menu to the parent one, if the parent is null.
2527         Fixes #446392.
2528
2529 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
2530
2531         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
2532         #413501.
2533
2534 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2535
2536         * Scrollbar.cs:
2537         * ScrollableControl.cs: Simplify the code to manually set the size of
2538         the thum area, avoiding duplication of code, and also preserving the
2539         right value for different code paths - this can happen when size
2540         changes are made to the scrollbar after setting LargeChange, Maximum
2541         or related properties for the ScrollBar.
2542
2543 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2544
2545         * ScrollableControl.cs: When scrolling, don't invalidate the entire
2546         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
2547         what .Net does: copy the visible area, and only invalidate the part of
2548         the area that wasn't visible before scrolling.
2549         Fixes #441738.
2550
2551 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
2552
2553         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
2554         can clear ourselves when it is raised, we don't have a newrowindex
2555         if we don't have any columns.
2556         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
2557         re-index after each delete so the NewRow will have the correct index.
2558         [Fixes bug #448005]
2559
2560 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
2561
2562         * Form.cs: Don't change min/max size if it is empty.
2563         [Fixes bug #447873]
2564
2565 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2566
2567         * ScrollBar.cs:
2568         * ScrollableControl.cs: When the manual thumb size is used, the
2569         maximum allowed value should depend on that thumb size, instead of
2570         LargeChange (using the maximum - LargeChange + 1 value). But
2571         LargeChange should be used normally when incrementing/decrementing.
2572         Fixes the remaining part of #441546.
2573
2574 2008-11-23  Andreia Gaita  <avidigal@novell.com>
2575
2576         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
2577         until an about:blank has been loaded (according to spec). Fix 
2578         ScrollbarsEnabled to set when a document is loaded (since we use js 
2579         for it). Fix url so it reflects the current loading document and not 
2580         the previous one. Send StatusChanged events.
2581
2582 2008-11-23  Andreia Gaita  <avidigal@novell.com>
2583
2584         * Application.cs: If a message comes in for an embedded control
2585         (like webbrowser) when we're capturing the keyboard, release the
2586         capture and continue.
2587         [fixes #429462]
2588
2589 2008-11-22  Andreia Gaita  <avidigal@novell.com>
2590
2591         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
2592
2593 2008-11-21  Andreia Gaita  <avidigal@novell.com>
2594
2595         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
2596         
2597 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2598
2599         * ScrollBar.cs:
2600         * ScrollableControl.cs: Set manually the thumb size for the
2601         ScrollableControl scrollbars, so any further changes to the underneath
2602         scrollbars respect the original size.
2603         Fixes part of #441546.
2604
2605 2008-11-21  Geoff Norton  <gnorton@novell.com>
2606
2607         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
2608         PlatformID.MacOSX now exists.
2609
2610 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2611
2612         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
2613         Having something internal abstract isn't very nice for people who want
2614         to inherit from this class.
2615
2616 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2617
2618         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
2619         invalid value.  Just return null for the Image, and use the ImageList's
2620         ImageSize for calculations.
2621
2622 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2623
2624         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
2625         through DroppedDown so the proper events get called and state gets reset.
2626         [Fixes bug #446805]
2627
2628 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
2629
2630         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
2631         the collection is modified.
2632
2633 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
2634
2635         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
2636         aren't always correct, and fixing them for every case is not worth the
2637         negligible benefit they provide.
2638         [Fixes bug #445713]
2639
2640 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
2641
2642         * DataGridView.cs: We should never add actual cells to the RowTemplate.
2643         Internally, use RowTemplateFull to give us a new row with cells.
2644         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
2645         * DataGridViewRowCollection.cs: Use RowTemplateFull.
2646
2647 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2648
2649         * XplatUIX11.cs: Forms without borders should be able to change its
2650         size - specially they should be able to be maximized, adding the
2651         respective MotifFunctions.Resize bit when setting window properties as
2652         well as *not* marking the Hwnd as size fixed.
2653         Fixes #444347.
2654
2655 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
2656
2657         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
2658         an alpha value.
2659         [Fixes bug #444348]
2660
2661 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
2662
2663         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
2664         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
2665         AutoSizeColumnModeChanged.
2666         [Fixes bug #443609]
2667
2668 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
2669
2670         * DataGridViewRowCollection.cs: Guard against the user deleting the
2671         NewRow.  Add an internal delete so we can still delete it.
2672         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
2673         [Fixes bug #442181]
2674
2675 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
2676
2677         * TextControl.cs: Add some order of operation to our math so
2678         we don't end up with a negative height for our invalidate rect.
2679         [Fixes bug #381889]
2680
2681 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
2682
2683         * Control.cs: When our enabled changes, notify our implicit children
2684         controls as well as our regular controls.
2685         [Fixes bug #441523]
2686
2687 2008-11-08  Andreia Gaita <shana@jitted.com> 
2688
2689         * HtmlElement.cs: Small code cleanup
2690
2691 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2692
2693         * BindingNavigator.cs: MoveFirstItem should be enabled only if
2694         position is larger than 0, not only different than 0. Also Position
2695         and Count items should be enabled if the BindingSource is non null and
2696         non empty.
2697         Fixes #439961.
2698
2699 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
2700
2701         * TabControl.cs: Don't raise SelectedIndexChanged until we have
2702         actually modified the tab collection, so TabCount will be correct.
2703         [Fixes bug #441896]
2704
2705 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2706
2707         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
2708         NonSerialized to fix serialization of ListViewItem.
2709
2710 2008-11-04  Mike Gorse  <mgorse@novell.com>
2711
2712         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
2713           focus change, and always call in SetFocusedItem.
2714         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
2715
2716 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
2717
2718         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
2719         mode.  Based on a patch by John Mortlock.
2720         [Fixes bug #436790]
2721
2722 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2723
2724         * ListView.cs: Use the UsingGroups property where needed, instead of
2725         duplicating the check in other places.
2726
2727 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2728
2729         * ListView.cs: When calculating layout, refresh the count of items
2730         belonging to the default item, insteas of doing it only one time. This
2731         was already working fine for icon views, not not for details.
2732         Fixes #438948.
2733
2734 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2735
2736         * ListView.cs:
2737         * ListViewItem.cs:
2738         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
2739         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
2740         does.
2741         Fixes #437933.
2742
2743 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2744
2745         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
2746
2747 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2748
2749         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
2750         #441280, patch by Mike Gorse <mgorse@novell.com>.
2751
2752 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2753
2754         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
2755         if there is no scrollbar.
2756         [Fixes bug #440885]
2757
2758 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2759
2760         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
2761         patch from Andy Hume that fixes many issues with ProgressBar.
2762         [See bug #440220]
2763
2764 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2765
2766         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
2767         [Fixes bug #438866]
2768
2769 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2770
2771         * UpDownBase.cs:
2772         * DomainUpDown.cs:
2773         * NumericUpDown.cs: Internal events added to UpDownBase:
2774         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
2775         <ngao@novell.com>.
2776
2777 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2778
2779         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
2780
2781 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2782
2783         * ListView.cs:
2784         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
2785         Application.EnableVisualStyles hasn't been called.
2786         Fixes part of #437933.
2787
2788 2008-10-31  Andreia Gaita  <shana@jitted.com>
2789
2790         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
2791           if the container is not focused already, we need to specifically set
2792           focus to the first available control, or to the form itself if there
2793           are no controls.
2794
2795 2008-10-31  Andreia Gaita  <shana@jitted.com>
2796
2797         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
2798         WM_ACTIVATE have been processed before returning, so it is guaranteed that
2799         once it returns and the form is visible, it is actually on the screen on X11
2800
2801         * ContainerControl.cs: Only send focus to the control if the top container
2802           is already focused. This is so that, when a form is first shown, all
2803           the enter/leave events are done first before any focus stuff comes in.
2804           If a control has no top container, there's an extra check on Control.Focus
2805           to make sure it gets focused in this particular case.
2806
2807         * Control.cs: Force focus if the control is active but did not receive
2808           focus after being set as active.
2809
2810         * MdiClient.cs: Dispose the form when closing
2811
2812         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
2813           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
2814           if the window is a top Form.
2815           Reset all hwnd properties when the window has been destroyed so that
2816           we don't land in any codepaths that might try to do something with it.
2817           Added a bunch of debugging messages. If TRACE is defined, all X calls
2818           are logged through DebugHelper. Set a few missing EntryPoint attributes.
2819
2820 2008-10-29  Mario Carrion <mcarrion@novell.com>
2821
2822         * ListViewItem.cs: Control enabled to support Accessibility:
2823         - Internal events: UIATextChanged, UIASubItemTextChanged.
2824         - Internal event UIATextChanged in ListViewSubItem that triggers
2825         UIASubItemTextChanged.
2826         * ListView.cs: Control enabled to support Accessibility:
2827         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
2828         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
2829         - Internal event UIACollectionChanged in ColumnHeaderCollection.
2830         - Internal event UIACollectionChanged in ListViewItemCollection.
2831         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
2832         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
2833         - Internal methods: UIAGetHeaderBounds.
2834
2835 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2836
2837         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
2838         the event from the respective scrollbars.
2839         Fixes #436709.
2840
2841 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2842
2843         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
2844         textbox to know whether any navigation key will be handled or not. If
2845         not, don't pass the message to the textbox, and use it here instead. 
2846         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
2847         is more precise- than the previous AutoCompleteMatches one.
2848         This should the keyboard navigation in ComboBox when using auto
2849         complete modes.
2850
2851 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2852
2853         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
2854         [Fixes bug #436730]
2855
2856 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2857
2858         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
2859         overridden methods will get called.
2860         * ToolStripItem.cs: Raise Click before MouseUp.
2861         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
2862         the item's location into account.
2863         [Fixes bug #437683]
2864
2865 2008-10-24  Neville Gao  <nevillegao@gmail.com>
2866
2867         * NumericUpDown.cs: Control enabled to support accessibility.
2868         [Fiexes bug #438135]
2869
2870 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2871
2872         * TextBox.cs: Check that we actually have items no navigate, select
2873         text when pressing enter, as well as handle direction keys only if
2874         mode is different to Suggest or the suggest listbox is visible.
2875
2876 2008-10-23  Andreia Gaita  <shana@jitted.com>
2877
2878         * WebBrowser.cs: Use the new ContentStream property to retrieve
2879           a stream encoded from the document content
2880
2881 2008-10-23  Andreia Gaita  <shana@jitted.com>
2882
2883         * HtmlDocument.cs,
2884           HtmlElement.cs,
2885           HtmlWindow.cs: Fix GetHashcode for null objects
2886
2887 2008-10-22  Andreia Gaita  <shana@jitted.com>
2888
2889         * HtmlDocument.cs,
2890           HtmlElement.cs,
2891           HtmlWindow.cs: Fix equality operators (fixes #428173)
2892
2893 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2894
2895         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
2896         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
2897         [Fixes bug #436772]
2898
2899 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2900
2901         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
2902         same item with the mouse as was already selected.
2903         [Fixes bug #436789]
2904
2905 2008-10-21  Brad Taylor  <brad@getcoded.net>
2906         
2907         * TextControl.cs: Break out code to get the visible range into
2908           GetVisibleLineIndexes to be used in UIA code.
2909         
2910         * Line.cs:
2911         * TextControl.cs:
2912         * TextBoxBase.cs: Add comments indicating that the method or property
2913           is used via reflection from UIA code.
2914
2915 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2916
2917         * ListViewItem.cs: Match .net serialization.
2918         Fixes remaining part of #417520.
2919
2920 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
2921
2922         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
2923
2924 2008-10-20  Mario Carrion <mcarrion@novell.com>
2925
2926         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
2927         added: UIAToolTipRectangle.
2928
2929 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2930
2931         * ListViewItem.cs: When deserializing enumerate over the data, instead
2932         of accessing the data directly. This way we handle much better the
2933         cases were we lack information.
2934         Fixes #417520.
2935
2936 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2937
2938         * ListView.cs: When removing an item from a main ListView.Items
2939         collection (and not a ListViewGroupCollection.Items one), remove it
2940         also from the group, as .net does. Patch by Mario Carrion (mario at
2941         novell dot com).
2942         Fixes #436653.
2943
2944 2008-10-19  Andreia Gaita  <avidigal@novell.com>
2945
2946         * Form.cs: Forms that get closed without a handle being created are
2947         disposed in 2.0. Fixes failing FormTest.FormClose and
2948         FormTest.FormClose2 on windows.
2949
2950 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2951
2952         * ListView.cs: If both scrollbars are visible, the vertical one
2953         shouldn't extend too far down.
2954         Fixes #435771.
2955
2956 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2957
2958         * DataGridView.cs: Add the ability to resize columns and rows with
2959         the mouse.  Also support double-clicking to autoresize.
2960         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
2961         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
2962         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
2963         isn't shown on autoresize.
2964         [Fixes bug #420193]
2965
2966 2008-10-17  Mario Carrion <mcarrion@novell.com>
2967
2968         * ComboBox.cs: Remove UIAListbox.
2969
2970 2008-10-17  Mario Carrion <mcarrion@novell.com>
2971
2972         * ComboBox.cs, ListBox.cs: Using added/removed item in 
2973           OnUIACollectionChangedEvent instead of index.
2974
2975 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2976
2977         * ComboBox.cs: When we are sorting the items, if the item's type
2978         doesn't support IComparer, use a default one that compares based
2979         off the item's visible text.
2980         [Fixes bug #436328]
2981
2982 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2983
2984         * ColumnHeader.cs: Invalidate ListView.header_control when setting
2985         ImageIndex/ImageKey.
2986         * ThemeWin32Classic.cs: When drawing the column header, draw a image
2987         for the column if available, and make the required adjustments to the
2988         text location.
2989         Fixes #435105.
2990
2991 2008-10-17  Neville Gao  <nevillegao@gmail.com>
2992
2993         * StatusBarPanel.cs: Control enabled to support accessibility.
2994         [Fixes bug #435988]
2995
2996 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2997
2998         * DataGridView.cs: When a user begins an edit in the 'new row',
2999         make that a real row, and add a new 'new row'.  If the user
3000         cancels the edit, remove the new 'new row' and reset everything.
3001         Also, ensure UserAddedRow and UserRemovedRow events are raised.
3002         [Fixes bug #430954]
3003
3004 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
3005
3006         * TableLayoutSettings.cs: Fix NREs when deserializing and 
3007         panel is not yet set.
3008         [Fixes bug #436199]
3009
3010 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
3011
3012         * DataGridView.cs: Invalidate after deleting a row.
3013
3014 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
3015
3016         * DataGridView.cs: Handle Enter and Escape keys.
3017           - Move call to EndEdit to MoveCurrentCell.
3018           - Remove call to EndEdit from navigation key routines.
3019           - Fire CellLeave and CellEnter.
3020
3021 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
3022
3023         * DataGridViewCell.cs: Some fixes to the new cell border
3024         painting code.
3025
3026 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
3027
3028         * ThemeEngine.cs: Enable visualstyles rendering by default
3029         (on platforms that support it).
3030
3031 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
3032
3033         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
3034         MainForm.OnLoad has completed unless DoEvents is forced.
3035         [Fixes bug #412536]
3036
3037 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
3038
3039         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
3040
3041 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
3042
3043         * Control.cs: Make our implementation of DrawToBitmap better 
3044         match WmPaint.  [Fixes bug #435579]
3045
3046 2008-10-14  Andreia Gaita  <avidigal@novell.com>
3047
3048         * WebBrowser.cs: Use DocumentElement as the document's root for the
3049         whole content. Should fix DocumentText and DocumentStream problems.
3050
3051 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
3052
3053         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
3054         these will get called in DGV.OnCollectionChanged.  Make sure 
3055         OnCollectionChanged always gets called.
3056         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
3057         from every row.  Call this in OnCollectionChanged.
3058         [Fixes bug #433669]
3059
3060 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3061
3062         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
3063         textbox if auto complete is used, since we need to navigate over it.
3064         And in this case don't pass this messages to the base impl. Also hide
3065         the auto complete list box when displaying the drop down listbox.
3066         * TextBox.cs: new internal members to expose some of the auto complete
3067         functionality to combobox.
3068
3069 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
3070
3071         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
3072         MainForm.OnLoad has completed.
3073         [Fixes bug #412536]
3074
3075 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3076
3077         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
3078         Append support to this controls. We need it to apply new patches.
3079
3080 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3081
3082         * Control.cs: When updating z order in child controls, send to back
3083         the implicit controls. Also, do it explicitly, instead of making
3084         GetAllControls return the implicit controls in a specific order, and
3085         thus avoid depending on that, which could change in the future.
3086         Fixes #434304.
3087
3088 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3089
3090         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
3091         call to StartDrag, since we must fire DragDrop/DragLeave *before*
3092         that, as .net does - instead of firing DragDrop/DragLeave *after* the
3093         call to Control.DoDragDrop has completed. This is needed since at the
3094         point of returning, we have sent related dnd ClientMessages, but we
3095         need to wait for them to fire the wmf respective ones.
3096         Fixes #325076.
3097
3098 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
3099
3100         * LinkLabel.cs: Recreate link pieces when change Padding.
3101
3102 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
3103
3104         * LinkLabel.cs: Take Padding into account when recreate link pieces.
3105         [Fixes bug #412530]
3106
3107 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
3108
3109         * Control.cs: Implement internal property PaddingClientRectangle, it will be
3110         useful for drawing controls that must take care about Padding property.
3111
3112 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
3113
3114         * BindingSource.cs: Make item_type internal so we can access it in DGV.
3115         * DataGridView.cs: Add support for autogenerating columns from a
3116         BindingSource.
3117
3118 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
3119
3120         * DataGridView.cs: Comment out an exception that is getting thrown
3121         too often currently.
3122
3123 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
3124
3125         * DataGridView.cs: Always rebind to the datasource, as things may
3126         have changed in it that we aren't capturing yet.
3127
3128 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
3129
3130         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
3131         drawing mode.  If we are top aligned, give ourselves some top padding.
3132
3133 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3134
3135         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
3136         events on the control under the mouse pointer, instead of firing them
3137         on the window generating the dnd operation. To achieve this re-use the
3138         code used to get the window under the pointer when getting MouseMove
3139         events.
3140         Fixes #381876.
3141
3142 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3143
3144         * X11Dnd.cs: Don't check that that the window sending the dnd events
3145         is the owner of the selection. Although Gtk+ sets it that way, it's
3146         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
3147         So, just as Gtk+ does, we set our window sending the dnd events as the
3148         owner of the selection, but don't check it when receiving them. This
3149         should fix interoperability with Qt/Kde.
3150         Fixes #324251.
3151
3152 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
3153
3154         * DataGridView.cs: Make sure we take the vertical scrollbar into
3155         account when autosizing columns.
3156
3157 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
3158
3159         * DataGridView.cs: Handle sorting datetimes.
3160
3161 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
3162
3163         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
3164         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
3165         compilation warnings.
3166
3167 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
3168
3169         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
3170         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
3171         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
3172         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
3173         compilation warnings.
3174
3175 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
3176
3177         * DataGridView.cs, DataGridViewCell.cs, 
3178         DataGridViewCellValidatingEventArgs.cs, 
3179         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
3180         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
3181         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
3182
3183 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
3184
3185         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
3186         Cleanup compilation warnings.
3187
3188 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
3189
3190         * XplatUIWin32.cs: Cleanup compilation warnings.
3191
3192 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
3193
3194         * PropertyGrid.cs: Cleanup compilation warnings.
3195
3196 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
3197
3198         * DataGridViewRow.cs: Only clear the row background if we
3199         are going to paint a new background.
3200
3201 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
3202
3203         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
3204         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
3205         use PaintBorder instead.        
3206
3207 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
3208
3209         * DataGridView.cs: When CellBorderStyle is set, update the
3210         AdvancedCellBorderStyle to match.
3211
3212 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
3213
3214         * DataGridViewCell.cs: Add helper methods to convert Alignment
3215         to TextFormatFlags and align rectangles.
3216         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
3217         * DataGridViewImageCell.cs: Use Alignment when painting the image.
3218
3219 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
3220
3221         * ToolTip.cs: Display tooltips only for controls on the active form.
3222         [Fixes bug #428115]
3223
3224 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
3225
3226         * DataGridView.cs: Make OnCellValueNeeded internal.
3227         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
3228         user can supply their own value if they choose.
3229
3230 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
3231
3232         * DataGridViewColumnHeaderCell.cs: Create a new style object
3233         so the DefaultCellStyle doesn't get changed.
3234
3235 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
3236
3237         * ToolStripItem.cs: Check to make sure the owner is actually
3238         changing in InternalOwner before doing any work.  Fixes some
3239         failing tests.
3240
3241 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
3242
3243         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
3244         * DataGridView.cs: Use a column header's inherited style instead
3245         of just using the default.
3246
3247 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
3248
3249         * SplitContainer.cs: Raise SplitterMoved when the splitter is
3250         moved through code.
3251
3252 2008-10-01  Mario Carrion <mcarrion@novell.com>
3253
3254         * ScrollBar.cs: Internal property added: UIAThumbPosition.
3255
3256 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
3257
3258         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
3259
3260 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
3261
3262         * ToolStripItem.cs: When the user sets Owner, we need to remove
3263         it from its previous owner and then add it to the new owner's
3264         item collection.  Also, create InternalOwner, so we can set the owner
3265         that doesn't do this new stuff.
3266         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
3267
3268 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
3269
3270         * ToolStripItem.cs: When our parent changes, recalculate our text
3271         size, since we may be getting our Font from our parent.  When our
3272         owner's Font changes, recalculate ourselves as we may be using
3273         that font.
3274
3275 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
3276
3277         * MenuAPI.cs: Select the first option of a popup when opening the popup via
3278         return key. [Fixes bug #413792].
3279
3280 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
3281
3282         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
3283         ambient properties.  (Get their value from their parents if
3284         values haven't been set.)
3285
3286 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
3287
3288         * ToolStripSystemRenderer.cs: Call overridden methods' bases
3289         after our logic, so users can do painting by handling the events.
3290         Currently, we draw over any user painting.
3291
3292 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
3293
3294         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
3295         after our logic, so users can do painting by handling the events.
3296         Currently, we draw over any user painting.
3297
3298 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
3299
3300         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
3301
3302 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
3303
3304         * TreeNode.cs, TreeView.cs: Move logic that determines the node
3305         image to draw to TreeNode.  Give Index/Keys put on the node
3306         precedence over the global one for the TreeView.
3307
3308 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
3309
3310         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
3311
3312 2008-09-29  Mario Carrion <mcarrion@novell.com>
3313
3314         * ListBox.cs: Index fixed.
3315
3316 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3317
3318         * TabControl.cs: When expanding the tab -because it's selected now-,
3319         using Right alignment, instead of adding some selected delta value to
3320         the X origin, substract it, so it gets a location adjacent to the panel, 
3321         instead of be more separated.
3322         Fixes #409170.
3323
3324 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
3325
3326         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
3327         own copies of them.
3328
3329 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3330
3331         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
3332         as well as the other static fields, to avoid using their previous
3333         values my mistake when handling the dnd events. This should avoid
3334         handling any status event after the drop has been finalized/cancelled.
3335
3336 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3337
3338         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
3339         operation, instead of waiting until we get any movement - this will
3340         help us to have the data available in case no movement was detected
3341         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
3342         Finally add a windows.forms-only fallback to fire the mentioned events
3343         if no movement at all was detected, just like .net does.
3344         Fixes #381876.
3345
3346 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
3347
3348         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
3349         return early if the text is empty because the icon doesn't get
3350         drawn then.  [Fixes bug #428113]
3351
3352 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3353
3354         * FileDialog.cs: Implement basic support for sorting by columns in
3355         Details view. Patch by Eric Petit.
3356         Fixes #428006.
3357
3358 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3359
3360         * ThemeWin32Classis.cs: When drawing gridlines take into account the
3361         case where ListView.ItemSize hasn't been computed, and provide a
3362         fallback as well. This prevents a division by 0.
3363
3364 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
3365
3366         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
3367         correctly draw tooltip backgrounds.
3368
3369 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
3370
3371         * ImageList.cs: Change CopyTo implementation to ensure clones are
3372         created of our images.
3373         [Fixes bug #409169]
3374
3375 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
3376
3377         * Control.cs: When setting fonts, we need to ensure we change our
3378         reference to the new font object, even if it represents the same
3379         font as before.  If we don't, the original font can get disposed
3380         and we will still try to use it.
3381         [Fixes bug #386450]
3382
3383 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3384
3385         * FileDialog.cs: Take into account Tile view when selecting the view
3386         (2.0 profile).
3387
3388 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3389
3390         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
3391         the item bounds, since we can't iterate over them in virtual mode.
3392         Also fix wrong calculation of the gridlines when using scrolling.
3393         Fixes #400390.
3394
3395 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3396
3397         * XplatUIX11.cs: When handling EnterNotify events, take into account
3398         both the public and implicit controls when trying to detect the
3399         grab/ungrab process. This should fix ListView selection in Details
3400         view.
3401
3402 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
3403
3404         * TreeView.cs: Redraw the whole node area when the selected node changes.
3405         Things like state images were not getting redrawn because the invalid
3406         rectangle was too small.
3407         [Fixes bug #428211]
3408
3409 2008-09-23  Mario Carrion  <mcarrion@novell.com>
3410
3411         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
3412         [Fixes bug #428993]
3413
3414 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
3415
3416         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
3417         [Fixes bug #428114]
3418
3419 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
3420
3421         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
3422         [Fixes bug #427884]
3423
3424 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
3425
3426         * StatusBar.cs: Add tooltip support.
3427         [Fixes bug #428113]
3428
3429 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3430
3431         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
3432         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
3433         hlaustralia.com.au).
3434         Fixes #425360.
3435
3436 2008-09-23  Neville Gao  <nevillegao@gmail.com>
3437
3438         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
3439         [Fixes bug #419079]
3440
3441 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
3442
3443         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
3444         [Fixes bug #428107]
3445
3446 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3447
3448         * ListView.cs: Don't do anything when EnsureVisible is called inside a
3449         BeginUpdate/EndUpdate block.
3450         Fixes #425049.
3451
3452 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3453
3454         * ListViewItem.cs: The semantics for the public .ctor of
3455         ListViewSubItemCollection need us to already have a Text value for the
3456         item, which in our implementation have as available *after* adding the
3457         first sub item. So create an internal .ctor that satisfies our needs
3458         and let the public .ctor have the same semantics as .net.
3459         Fixes #427561.
3460
3461 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3462
3463         * ListControl.cs: Changes in Formatting related values should call
3464         RefreshItems, as .net does.
3465         * ComboBox.cs:
3466         * ListBox.cs: In the respective overrides of RefreshItems calculate
3467         layout as well as refreshing - again, this is what .net does.
3468         Fixes #426168.
3469
3470 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3471
3472         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
3473         since we are already doing that when we change the value of the
3474         scrollbar or force the call to ScrollWindow in the same method. This
3475         way we don't cause a Invalidate call for all the listbox bounds for
3476         methods calling UpdateTopItem with an already updated top item. This
3477         was happening specially calling EnsureVisible with already visible
3478         items.
3479
3480 2008-09-18  Mike Gorse <mgorse@novell.com>
3481
3482         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
3483           XplatUIStructs.cs: Added KeyFilter
3484         [Fixes bug #427039]
3485
3486 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3487
3488         * RelatedPropertyManager.cs: The properties returned by
3489         GetItemProperties should be that ones of the *actual* object returned
3490         by the property, not the property type - this is very special when the
3491         property exposes a type, but the returned object actually is a child
3492         class and implements more functionality and properties.
3493
3494 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3495
3496         * Binding.cs: Don't look for the property in the data source if the
3497         passed string is empty.
3498
3499 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3500
3501         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
3502         fix unused variable warnings.
3503
3504 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3505
3506         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
3507         [Fixes bug #427073]
3508
3509 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3510
3511         * XplatUIX11.cs: 
3512          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
3513          leads to the window manager overriding our border style and zorder. 
3514          - Allow the activation of non-modal forms, which are children of a 
3515          modal form.
3516         [Fixes bug #423417]
3517
3518 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
3519
3520         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
3521         ask the window manager to do the work instead of changing the property 
3522         directly.
3523         [Fixes bug #423417]
3524
3525 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3526
3527         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
3528         AddNew to fix some navigation for empty datasets. [Fixes #323053]
3529
3530 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3531
3532         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
3533         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
3534         border and fixes some drawing issues when resize form.
3535
3536 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3537
3538         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
3539         
3540         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
3541         AcceptButton.
3542
3543 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
3544
3545         * TextBoxBase.cs: For standard textbox the scrollbars are always 
3546         visible if Multiline is true.
3547         [Fixes bug #426896]
3548
3549 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
3550
3551         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
3552         patch.
3553         
3554 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
3555
3556         [Fixes most od DBNull and HeadersVisible problems]
3557         
3558         * DataGrid.cs:
3559         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
3560         returns the value that we need.
3561         - Fixed FromPixelToColumn method that return zero for first     column and for
3562         row header cell, now it returns -1 for row header cell.
3563         - Fixed HitTest to check row header cell in column header area, it now
3564         returns HitTestType.None. [Fixes #322864]
3565         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
3566         checks for RowHeadersVisible and other things.
3567         - If an exception occurs when setting CurrentCell and user type 'yes' in
3568         message dialog, invalidade current and new cell and set setting_current_cell
3569         to false to prevent future errors. [Partially fixes #323050]
3570
3571         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
3572         value (SetColumnValueAtRow), it must be done by grid to properly show 
3573         messages. [Fixes #323050]
3574
3575         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
3576         better draw column and row header. Also dont draw anything when column
3577         headers is not visible.
3578
3579 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3580
3581         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
3582         logic.
3583
3584 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3585
3586         * TreeView.cs: Don't start editing a node on right click, only
3587         left click.
3588
3589 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3590
3591         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
3592         disabled over a year ago.
3593         * Form.cs: Wrap calling Load in a try/catch because it can happen
3594         before the catch-all one in NativeWindow.
3595         [Fixes bug #425414]
3596
3597 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3598
3599         * ToolStripDropDownMenu.cs: Calculate the connected area better
3600         to take into account when the drop down is not directly under the
3601         owner item.
3602         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
3603
3604 2008-09-16  Mario Carrion <mcarrion@novell.com>
3605
3606         * ScrollBar.cs: New event added: UIAValueChanged, generated when
3607           LargeChange, SmallChange, Maximum or Minimum values are changed.
3608         [Fixes bug #426464]
3609
3610 2008-09-16  Mario Carrion <mcarrion@novell.com>
3611
3612         * ErrorProvider.cs: Component enabled to support accessibility.
3613         * Application.cs: Updated to Initialize UIA in ErrorProvider.
3614         [Fixes bug #426459]
3615
3616 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3617
3618         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
3619         so we don't highlight on first focus.
3620         [Fixes bug #360869]
3621
3622 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3623
3624         * TextControl.cs: Correctly calculate the height of the area we 
3625         need to invalidate when we have started scrolling and viewport_y
3626         is used.  [Fixes bug #387608]
3627
3628 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3629
3630         * TextControl.cs: When getting the SelectedText, don't add in
3631         NewLine characters, as they are already contained in the lines.
3632         [Fixes bug #388115]
3633
3634 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3635
3636         * TextBoxBase.cs: Replace the buggy Lines setter with one that
3637         simply concats the lines and send it to the Text setter.
3638         [Fixes issue #2 and #3 of 388115]
3639
3640 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3641
3642         * Binding.cs: The default value of DataSourceNullValue should be
3643         Convert.DBNull actually. Also, the NullValue should only be used *if*
3644         itself is not null, and use the null/Convert.DBNull value instead.
3645
3646 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3647
3648         * TextControl.cs: Add a method to convert a string newline to the
3649         newline enum.
3650         * TextBoxBase.cs: When the user hits enter, insert a native newline.
3651         [Fixes part 1 of bug #388115]
3652
3653 2008-09-15  Mario Carrion <mcarrion@novell.com>
3654
3655         * ToolTip.cs: UnPopup event set to internal to match public API.
3656
3657 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3658
3659         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
3660         have to remove the Ctrl in order for the focus moving code to kick in.
3661         [Fixes bug #426170]
3662
3663 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3664
3665         * CheckedListBox.cs: Return the real item index from Add.  It may not be
3666         the last item if the list is sorted.  The user can change the NewValue in
3667         the ItemCheck event, we need to use that value if so.
3668         * ListBox.cs: Return the real item index from a sorted Add.
3669         [Fixes bug #426166]
3670
3671 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
3672
3673         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
3674         happen that the icons from the theme is missing or the particular size 
3675         unavailable.
3676         [Fixes bug #424981]
3677
3678 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3679
3680         * Binding.cs: When assigning null or DBNull depending on value/ref type,
3681         use IsValueType instead to get the precise desired value.
3682         Fixes #424276.
3683
3684 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3685
3686         * TreeNodeCollection.cs: When adding a new node to an opened node,
3687         we have to invalidate everything below the parent node because
3688         every node scoots down and we have to repaint them.
3689         [Fixes bug #411386]
3690
3691 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3692
3693         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
3694         property into account when drawing.
3695         [Fixes bug #416064]
3696
3697 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3698
3699         * ListBox.cs: When calling Items.Clear(), call
3700         SelectedIndexCollection.ClearCore instead of normal Clear method, to
3701         not fire any Selected*Changed event - this is done to match .net and
3702         don't have invalid values when changing the DataSourceProperty.
3703         Fixes #424273.
3704
3705 2008-09-12  Mario Carrion  <mcarrion@novell.com>
3706
3707         * HelpProvider.cs: Control enabled to support accessibility.
3708         * Application.cs: Updated to Initialize UIA in HelpProvider.
3709         [Fixes bug #425988]
3710
3711 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3712
3713         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
3714         make the dialog TopMost as well.
3715         [Fixes bug #425984]
3716
3717 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3718
3719         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
3720         clipboard data better.
3721         [Fixes bug #414446]
3722
3723 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3724
3725         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
3726         TextChanged and SelectionChanged events fire in the same order as .Net.
3727         [Fixes bug #425725]
3728
3729 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3730
3731         * DataGridView.cs: When sorting a column, if it only contains numbers,
3732         do a numeric sort instead of a string sort.
3733         [Fixes bug #425849]
3734
3735 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3736
3737         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
3738         against NRE's when the settings have a null panel.
3739         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
3740         the panel gets set.
3741         [Fixes bug #425647]
3742
3743 2008-09-11  Mario Carrion  <mcarrion@novell.com>
3744
3745         * ToolTip.cs: Control enabled to support accessibility.
3746         * Application.cs: Updated to Initialize UIA in ToolTip.
3747         [Fixes bug #425277]
3748
3749 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3750
3751         * Control.cs: Make the custom Enumerator internal to fix build.
3752
3753 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3754
3755         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
3756         already in edit mode, begin edit mode.  Generally edit mode isn't
3757         started until the second click, but CheckBoxes are special.
3758
3759 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3760
3761         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
3762         since that can be set to anything.  Always add them to the Control's
3763         parent.  [Fixes bug #416058]
3764
3765 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3766
3767         * ListView.cs: Use a custom enumerator for ListViewItemCollection
3768         so items can be deleted in a foreach.
3769         [Fixes bug #425342]
3770
3771 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3772
3773         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
3774         Store the user set explicit height so that the row can be AutoSized
3775         and then when AutoSize is turned off, it can get its original size back.
3776         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
3777         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
3778         rows' heights back to their explicit values.
3779         [Fixes bug #415780]
3780
3781 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3782
3783         * DateTimePicker.cs: When getting focus, select the checkbox if we are
3784         already showing it. Also, don't change its value when pressing space
3785         if the checkbox is not visible (ShowCheckBox as false). Finally, the
3786         checkbox should remain selected as long as Checked is false, and the
3787         other parts are disabled.
3788         Fixes #424267.
3789         
3790 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3791
3792         * MessageBox.cs: Handle shortcut keys to dialog buttons.
3793         [Fixes bug #425425]
3794
3795 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3796
3797         * Binding.cs: When the value retrieved from the control property is
3798         null, don't return Convert.DBNull for Nullable instances, since they
3799         can *actually* get a null value.
3800         Fixes #424265.
3801
3802 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3803
3804         * Control.cs: Add an internal field to force doublebuffering regardless
3805         of what the public mechanisms are set to.  This is because MS's native
3806         controls are doublebuffered even though their .Net bits are set to false.
3807         * ProgressBar.cs: Set force_double_buffer to true.
3808         [Fixes bug #406595]
3809
3810 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3811
3812         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
3813         the cell template.
3814         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
3815         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
3816         without EditingControls, paint background selection for types without
3817         EditingControls, reset the EditingCellValueChanged flag when the
3818         cell's value is committed.
3819         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
3820         have EditingControls, remove a double call to a cell's OnContentClickInternal,
3821         don't do cell changing logic in OnMouseDown if the cell didn't change.
3822         [Fixes bug #420351]
3823
3824 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3825
3826         * DateTimePicker.cs: Fix the edition of am/pm specifier.
3827
3828 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
3829
3830         * TextControl.cs: Add "&" to the list of valid characters in a URL.
3831
3832 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3833
3834         * DateTimePicker.cs: Before incrementing or decrementing any part in
3835         the textbox, end any current edit. Also when ending the current edit
3836         use the editing_part_index field instead of the current selected
3837         value, since they can be out of synch, and we really need to work on
3838         the *real* current edit part. Finally when PartData.Selected changes,
3839         always try to end any ongoing edit.
3840         This should fix some small errors handling mouse navigation and
3841         increase/decrease operations.
3842
3843 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3844
3845         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
3846         respectively) should handled different, since the 12 hours format
3847         needs the value typed by the user to be adjusted depending on the
3848         a.m/p.m value, so it is preserved, and only changed when the value
3849         reaches the 12 value (when it changes from a.m to p.m).
3850         Fixes part of #416555.
3851
3852 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3853
3854         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
3855         * ToolStripDropDownItem.cs: Don't fire events and such again if
3856         ShowDropDown is called on an already dropped down item.
3857         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
3858         subitems, the user may add some in the DropDownOpening event.
3859         [Fixes bug #417877]
3860
3861 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3862
3863         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
3864         [Fixes bug #424270]
3865
3866 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3867
3868         * MdiClient.cs: When looking for menustrips on a child form to merge,
3869         look inside ToolStripContainers.
3870         [Fixes bug #424264]
3871
3872 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3873
3874         * ErrorProvider.cs: Unbreak my previous commit.
3875
3876 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3877
3878         * ErrorProvider.cs: Icon should always be 16x16.
3879         [Fixes bug #424380]
3880
3881 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3882
3883         * GridEntry.cs: Invalidate the child items cache when the property 
3884         value changes.
3885
3886 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3887
3888         * GridEntry.cs, PropertyGridView.cs: 
3889            - Update the ReadOnly detection and rendering to finally hopefully 
3890            match the one of MSFT.
3891            - Niceify and move the debug CWLS.
3892         [Fixes bug #409028]
3893
3894 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3895
3896         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
3897         since we are already calling Invalidate for the entire control when
3898         needed - and call Redraw() when size changes, since we need to paint
3899         there by ourselved and not anymore from the mentioned method. 
3900         This should improve the layout process. Also clean some not needed calls 
3901         here and there.
3902
3903 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3904
3905         * MenuAPI.cs: Add a null check to the Alt-F4 code.
3906         [Fixes bug #420309]
3907
3908 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3909
3910         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
3911         [Fixes bug #423040]
3912
3913 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
3914
3915         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
3916         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
3917         on item expansion. Improves performance and fixes bug #417955.
3918         [Fixes bug #417955]
3919
3920 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
3921
3922         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
3923         fix the build.
3924
3925 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3926
3927         * TextControl.cs: Add "_" to the list of valid characters in a URL.
3928         [Fixes bug #423408]
3929
3930 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3931
3932         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
3933         region gets set.
3934         [Fixes bug #414166]
3935
3936 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3937
3938         * FontDialog.cs: When storing our font size from the starting font,
3939         use SizeInPoints instead of Size in case Size is a different unit
3940         from Points.
3941         [Fixes bug #416489]
3942
3943 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3944
3945         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
3946         don't use it for anything else, check if a directory is highlighted.
3947         If it is, navigate into it.
3948         [Fixes bug #422087]
3949
3950 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3951
3952         * Binding.cs: When acquiring a BindingManagerBase for the first time,
3953         check that the specified property actually exists in the data source,
3954         and throw an ArgumentException if that's not the case - this is only
3955         done for this scenario, since for later cases (such Position changes)
3956         we throw different exceptions (match .Net).
3957
3958 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
3959
3960         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
3961           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
3962           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
3963           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
3964           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
3965           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
3966           properties.
3967           [Fixes bug #418684]
3968
3969 2008-09-03  Neville Gao  <nevillegao@gmail.com>
3970
3971         * StatusBar.cs: Control enabled to support accessibility.
3972         [Fixes bug #419079]
3973
3974 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3975
3976         * Binding.cs: When connecting the event handler for the "Changed"
3977         event for the property, only do it for PropertyManager, and not for
3978         CurrencyManager - this is exactly what does .Net, totally ignoring any
3979         change in the property of the elements of a list.
3980         Fixes the tests.
3981
3982 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
3983
3984         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
3985         to Windows when creating a window, as we fake MDI stuffs.
3986         [Fixes bug #421858]
3987
3988 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
3989
3990         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
3991         change takes effect.
3992
3993 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
3994
3995         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
3996         [Fixes bug #419001]
3997
3998 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3999
4000         * DataGridView.cs: Raise CellContentClick event.
4001         [Fixes part of bug #420351]
4002
4003 2008-08-27  Mario Carrion  <mcarrion@novell.com>
4004
4005         * ScrollBar.cs: Control enabled to support accessibility.
4006         [Fixes bug #416759]
4007
4008 2008-08-27  Mario Carrion  <mcarrion@novell.com>
4009
4010         * ComboBox.cs: Control enabled to support accessibility.
4011         [Fixes bug #416663]
4012
4013 2008-08-27  Mario Carrion  <mcarrion@novell.com>
4014
4015         * ListBox.cs: Control enabled to support accessibility.
4016         [Fixes bug #416640]
4017
4018 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
4019
4020         * ComboBox.cs: Don't suppress the TextChanged event when changing
4021         the SelectedIndex.
4022         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
4023         and re-raise it.
4024         [Fixes bug #420673]
4025
4026 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
4027
4028         * ErrorProvider.cs: Fix a regression NRE when setting properties
4029         for a control before it has a parent.
4030         [Fixes bug #420305]
4031
4032 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4033
4034         * Binding.cs: Use the BindingManagerBase.Current value to obtain
4035         connect the property "Changed" event, instead of using the data
4036         sources - this is useful when the property specifies actually a
4037         multiple objects path.
4038         Fixes part of #417973.
4039
4040 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4041
4042         * RelatedPropertyManager.cs: PropertyManager instances associated to a
4043         nested properties should return not the properties of the data source
4044         itself, but the properties of the type of a specific property in the
4045         data source - match .net.
4046
4047 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
4048
4049         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
4050         AddRange overloads into AddItems method, and added missing NULL check.
4051         Added extra argument check to RemoveAt for compatibility with MS. 
4052         Modified IList implementation of Add, Contains, IndexOf and Remove to
4053         throw an ArgumentException if item is not an int. Modified IList.Insert
4054         to throw a NotSupportException instead of an Exception. Implemented
4055         ICollection.
4056         (ObjectCollection): To avoid duplication, use AddItems method from
4057         AddRange overloads. On 1.0 profile, first perform NULL check on items
4058         in AddItems.
4059
4060 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
4061
4062         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
4063          #419087.
4064
4065 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
4066
4067         * X11Keyboard.cs : comment out some Console.WriteLine().
4068
4069 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
4070
4071         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
4072           even if premises are not filled. Also XLookupString() was not
4073           receiving correct input, which blocked precise input handling
4074           on non-XIM mode.
4075
4076 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
4077
4078         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
4079         type of delegate, instead of EventHandler - this was causing a type
4080         cast exception in all apps handling this event.
4081         Fixes #417876.
4082
4083 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
4084
4085         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
4086         ShowDropDown to give the user a chance to dynamically add
4087         drop down items.  [Step 1 of fixing bug #417877]
4088
4089 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4090
4091         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
4092         had any mouse motion since the call to StartDrag, to match the dnd
4093         behaviour of .net.
4094         Fixes part of #381876.
4095
4096 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4097
4098         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
4099         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
4100         Also, if we are actually moving into a different window after
4101         grabbing, generate a LeaveNotify event for the previous window, since
4102         we need to fire the leave events until the grab ends, not when
4103         actually moving outside of the control.
4104
4105 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4106
4107         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
4108         events only for client windows was wrong - we need to compare the
4109         client window against the window receiving the EnterNotify event, not
4110         against zero (since client window is never Zero, btw).
4111         This prevents having unnecessary handling of EnterNotify events for
4112         non-client windows when a gran begins.
4113
4114 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4115
4116         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
4117         MouseMove/MotionNotify events at all (which should only happen after
4118         MouseUp/ButtonRelease, as .Net does).
4119         This avoids firing an extra and unnecessary MouseMove event just after
4120         every MouseDown event.
4121
4122 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
4123
4124         * LinkLabel.cs: Always clear any previous links when LinkArea
4125         is set.  [Fixes bug #410709]
4126
4127 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
4128
4129         * ToolStripProfessionalRenderer.cs: Revert last change.
4130         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
4131         for ToolStripDropDownBackground.
4132
4133 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
4134
4135         * ToolStripProfessionalRenderer.cs: Use Window color for the 
4136         background of dropdowns to match .Net when the user is not
4137         using the default white.  [Fixes bug #418108]
4138
4139 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
4140
4141         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
4142           it caused timer registration twice. Fixed bug #418107.
4143
4144 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4145
4146         [Correction: This is the actual change to X11Dnd issue, not the
4147         previous one, which was actually a different issue.]
4148
4149         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
4150         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
4151         when the pointer is actually in motion, but only when the pointer
4152         seems to stop (as .net does).
4153         Fixes part of #381876.
4154
4155
4156 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
4157
4158         * ListBox.cs: Fix CopyTo implementation.
4159         [Fixes bug #409169]
4160
4161 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
4162
4163         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
4164         drawing a ComboBox's background.  Fixes bad disabled rendering when
4165         the control is not at 0,0.
4166         [Fixes bug #416063]
4167
4168 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
4169
4170         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
4171         ComponentModel layer, which will properly prioritize the attributes.
4172         Avoids wrong prioritization of duplicate attributes when retrieving 
4173         the converter and editor.
4174         [Fixes bug #417729]
4175
4176 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4177
4178         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
4179         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
4180         when the pointer is actually in motion, but only when the pointer
4181         seems to stop (as .net does).
4182         Fixes part of #381876.
4183
4184 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
4185
4186         * GridEntry.cs: Perform stricter check for the ParentEntry's 
4187         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
4188         implementation.
4189         [Fixes bug #417567]
4190
4191 2008-08-14  Geoff Norton  <gnorton@novell.com>
4192
4193         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
4194         Fixes #396983.  Properly fix ActiveWindow trackin and do not
4195         prematurely show POPUP windows.
4196
4197 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
4198
4199         * XplatUIX11.cs: Handle the obscured regions while scrolling using
4200         GraphicsExpose event, processing it just after we copy the scrolled
4201         area. This ensures that the next calls to ScrollWindow will copy
4202         regions already updated, and the scrolling will be smooth. Also remove
4203         the code that was trying to detect the obscured regions, since we are
4204         not using it anymore (too slow).
4205
4206 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4207
4208         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
4209         MultiExtended mode, by separating some logic between the ctrl/shift
4210         handling. Also ignore any MouseMove events generated together with
4211         MouseDown events - we are only interested in the real motion event.
4212         Fixes part of #414963.
4213
4214 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
4215
4216         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
4217         is selected.  [Fixes bug #414143]
4218
4219 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
4220
4221         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
4222         and not the parent one (the propertyowner). Fixes the behavior of 
4223         GetConverter/GetEditor.
4224         [Fixes bug #415452]
4225
4226 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
4227
4228         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
4229         [Fixes part of bug #415452]
4230
4231 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
4232
4233         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
4234         GridEntry, not the current.
4235         [Fixes bug #413896]
4236
4237 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
4238
4239         * TextBoxBase.cs: De-internalize max_length field.
4240         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
4241         share the same logic.
4242         [Fixes bug #414454]
4243
4244 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4245
4246         * ListBox.cs: Selection changes made in the MouseDown handler should
4247         use the *Core versions of selection in SelectedIndices collection,
4248         since the SelectedIndexChanged/SelectedValueChanged events are fired
4249         until we get a MouseUp event, and thus we need to separate the logic
4250         from the events, as done in the keyboard navigation. Also, fire those
4251         selection events from keyboard navigation in SelectionMode.None, even
4252         if we don't have a selection, as .Net does.
4253
4254 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
4255
4256         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
4257         last change introduced when an item is clicked but isn't on a toolstrip.
4258
4259 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4260
4261         * ListBindingHelper.cs: When looking for an object's properties, check
4262         if it implements ICustomTypeDescriptor, in which case we should
4263         resolve the propertu based on its GetProperties method, not in its
4264         actual properties. This is what .Net seems to do.
4265         Fixes a UsingWebBrowser problem during initialization.
4266
4267 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
4268
4269         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
4270         sitting on a MenuStrip.
4271
4272 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
4273
4274         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
4275         no children with the keyboard, we need to release the keyboard capture.
4276         [Fixes bug #413567]
4277
4278 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
4279
4280         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
4281         no children with the keyboard, we need to release the keyboard capture.
4282         [Fixes bug #413567]
4283
4284 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
4285
4286         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
4287         the GTK+-based implementation of VisualStyles.
4288         * ThemeWin32Classic.cs: Exposed various layout values for use in the
4289         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
4290         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
4291         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
4292         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
4293         TrackBarHorizontalTrackHeight.
4294
4295 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
4296
4297         * TabControl.cs: Added hot style handling for the scroll buttons.
4298         right_slider_state, left_slider_state are now of type PushButtonState to
4299         allow for a hot state. Added tracking of the mouse button being held down
4300         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
4301         LeftScrollButtonArea.
4302         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
4303         TabControlGetRightScrollRect.
4304
4305 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
4306
4307         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
4308         runtime errors.
4309
4310 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
4311
4312         * Form.cs: Ensure that we reset the shown_raised flag after 
4313         the form is closed, so that we raise the show events the next 
4314         time the form is shown.
4315         [Fixes bug #413141]
4316
4317 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
4318
4319         * Form.cs: Ensure closing events are raised only once.
4320         [Fixes bug #413143]
4321
4322 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
4323
4324         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
4325         so that we can successfully generate the LParam in-place instead of 
4326         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
4327         navigation for menus.
4328
4329 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
4330
4331         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
4332         'navigating'. Fixes bug #411356.
4333
4334 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
4335
4336         [Fixed remaining issues of #406773 (#1)]
4337         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
4338
4339         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
4340         MainMenu (already done) and ContextMenu creation.
4341
4342         * ContextMenu.cs: Create tracker on construction. 
4343
4344 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
4345
4346         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
4347         possible to instantiate MenuTracker without GrabControl.
4348
4349 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
4350
4351         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
4352
4353         * MainMenu.cs: Set GrabControl on SetForm using current form.
4354
4355 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
4356
4357         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
4358
4359 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
4360
4361         * MenuAPI.cs: Check if menu is activated before deactivate it in 
4362         ProcessShortcut.
4363
4364 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
4365
4366         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
4367         ColumnStyle.cs: 
4368         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
4369          - One style instance can only participate in a single style collection.
4370          - Styles can request their owner to layout whenever their properties 
4371          change.
4372          [Fixes bugs #412583 and #412582]
4373
4374 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
4375
4376         * X11Keyboard.cs: Implement the generation of the LParam for 
4377         all keyboard messages.
4378         [Fixes bug #378728]
4379
4380 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
4381
4382         * ListBox.cs: Don't let the user set TopIndex so high that it
4383         scrolls up far enough to show empty items.
4384         [Fixes bug #412728]
4385
4386 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4387
4388         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
4389         (I'm an idiot and forgot to commit the actual changes, as well as
4390         specify the right file, which is this one, not ListView.cs).
4391
4392 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4393
4394         * ListView.cs: Don't draw ListViewSubItem instances from
4395         DrawListViewItem - we need to reuse the main item's drawing for the
4396         first sub item in case owner draw is true, but wants the system to
4397         do the default draw for the first sub item, without incurring in a
4398         recursion problem.
4399         Fixes #410880.
4400
4401 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
4402
4403         * ToolStripButton.cs: Update Checked for CheckOnClick before
4404         raising the Click event.  [Fixes bug #412505]
4405
4406 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
4407
4408         * Form.cs: Remove some seems leftover code for non-TopLevel's 
4409         CreateParams, which is breaking ClientSize sizing, because it 
4410         removes the border window styles.
4411
4412 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
4413
4414         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
4415         changes.
4416
4417 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
4418
4419         * WebBrowser.cs: Removed debug output.
4420
4421 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
4422
4423         * FileDialog.cs: Apply patch from Ernesto to clean up some
4424         dialog messages.
4425
4426 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4427
4428         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
4429         that the change has an immediate effect.
4430
4431 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4432
4433         * ScrollableControl.cs: Update PerformLayout calls to include 
4434         provide the name of the property that changed.
4435
4436 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4437
4438         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
4439         location. Fixes drawing of border and cell borders if scrollable.
4440
4441 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4442
4443         * ScrollableControl.cs: Perform layouting after the AutoScroll 
4444         properties have changed, so that the changes have immediate 
4445         effect.
4446         [Fixes bug #409090]
4447
4448 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4449
4450         * XplatUIX11.cs: Non Client area is actually Client such in the 
4451         case of NotifyIcon, so double check WholeWindow == ClientWindow 
4452         when adding an expose.
4453         [Fixes bugs #324237 and #357022]
4454
4455 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4456
4457         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
4458         repaint the cell borders.
4459
4460 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4461
4462         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
4463         disposal to avoid unexpected ObjectDisposedExceptions.
4464
4465 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
4466
4467         * TableLayoutPanel.cs: Layout on Row/Column count change.
4468
4469 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
4470
4471         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
4472         bug #409351.
4473         * PictureBox.cs: When ImageLocation is set to null or an empty string,
4474         only set image to null if it was previously initialized from an url
4475         (or using ImageLocation). In ImageLocation, load specified image
4476         asynchronously if WaitOnLoad is false. Added support for local file
4477         paths to LoadAsync, and added missing argument check.
4478
4479 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4480
4481         * DateTimePicker.cs: 
4482         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
4483         order to set the value as required (which means: when selection
4484         changes for a part being edited, and not before that if not needed).
4485         Also use an enum to describe which part are we using, and use the
4486         selection as a property in PartData, in order to notify the
4487         DateTimePicker owner that we need to end the current edit.
4488         Fixes #383462.
4489
4490 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
4491
4492         * PropertyGridTextBox.cs: Validation should be performed only if we 
4493         are focused. We can lose focus for example if the Return key is used 
4494         to set the entry and there is an error. When the message box is 
4495         displayed we would have validate on click in the message box.
4496
4497 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
4498
4499         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
4500         in order to determine that we are expandable is wrong. There was a bug, 
4501         now fixed, in TypeDescriptor that was causing the wrong converter to be 
4502         returned which caused GetPropertiesSupported == false in most cases.
4503         [Fixes bug #409027]
4504
4505 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
4506
4507         * ImageList.cs: Fix ICollection.CopyTo implementation for
4508         ImageListCollection.  [Fixes bug #409169]
4509
4510 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4511
4512         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
4513         WorkingArea so that menus can appear on the second monitor
4514         when one has dual monitors.
4515
4516 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4517
4518         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
4519         Fixes build.
4520
4521 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4522
4523         * TextBox.cs: Implement navigation support for auto complete in
4524         TextBox, as well as refactor the code to show the auto complete window
4525         when receiving a WM_CHAR message, instead of TextChanged, since
4526         autocomplete itself should be able to set the Text a lot of times and
4527         finally only typing should show it, not changes from code.
4528
4529 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4530
4531         * TabControl.cs: When expanding the selected tab, don't adjust the
4532         width if alignment is Right, since it has a different offset than 0,
4533         as opposed to the other alignments.
4534         Fixes the selected tab not being painted at all with alignment = Right
4535         and using FillToRight size mode.
4536
4537 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4538
4539         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
4540
4541 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4542
4543         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
4544         values from the textbox to the boundary values.  [Fixes bug #409026]
4545
4546 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4547
4548         * TreeNodeCollection.cs: We were copying one too many elements when
4549         doing our array copy.  Fixes a crash when RemoveAt is called.
4550         [Fixes bug #408999]
4551
4552 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4553
4554         * TabControl.cs: When doing the layout and need to call FillRow -using
4555         FillToRight size mode-, use the overload receiving a bool param
4556         indicating whether we need to do a vertical or horizontal calculation.
4557         Fixes part of #399583.
4558
4559 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4560
4561         * TextBox.cs: When painting, use the value returned by
4562         GetLastVisibleItem instead of using the cached last_item field, since
4563         there could be a desynchronization between the layout and the
4564         painting. Fixes a AOOR exception in auto complete mode.
4565
4566 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
4567
4568         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
4569         NonClientAreaEnabled until our VisualStyles is modified to allow it.
4570
4571 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
4572
4573         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
4574
4575 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4576
4577         * TextBox.cs: When focus is lost, if the auto complete listbox is
4578         visible, hide it.
4579
4580 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
4581
4582         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
4583         tracking size for tool windows.
4584         * Theme.cs, ThemeWin32Classic.cs : Extracted
4585         ManagedWindowSpacingAfterLastTitleButton.
4586
4587 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
4588
4589         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
4590         They are bit-rotted and have always been listed as "unsupported".
4591
4592 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
4593
4594         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
4595
4596 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
4597
4598         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
4599
4600 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4601
4602         * ListBox.cs: Make sure last_item_visible gets reset before we try
4603         to do a layout due to scrollbars appearing or disappearing.
4604         [Fixes bug #408139]
4605
4606 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4607
4608         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
4609         for different window themes.  [Fixes bug #339140]
4610
4611 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4612
4613         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
4614         in ManagedWindowBorderWidth.
4615
4616 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4617
4618         * InternalWindowManager.cs: Change MouseMove to take a point, so
4619         we can use the same point later on.
4620         * MdiWindowManager.cs: Store point sent to MouseMove so we can
4621         later reset to it.  On Windows, the Cursor.Position had already
4622         changed by the time we were resetting to it.
4623         [Fixes bug #363239]
4624
4625 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4626
4627         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
4628         are inactive.
4629         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
4630         user requested it.
4631         [Fixes bug #398686]
4632
4633 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4634
4635         * MdiWindowManager.cs: Double-clicking on the title bar should not
4636         maximize a MDI form if MaximizeBox = false.
4637
4638 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4639
4640         * ThemeVisualStyles.cs: Fixed a warning.
4641
4642 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4643
4644         * ThemeVisualStyles.cs: Fixed warnings and formatted.
4645
4646 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4647
4648         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
4649         implementation produces a better result.
4650
4651 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4652
4653         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
4654         windows.
4655
4656 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4657
4658         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
4659         cannot be used from the ThemeEngine constructor.
4660         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
4661         Application.VisualStylesEnabled because it does not work on X11.
4662
4663 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
4664
4665         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
4666         that we did not always check for, as well as fixes to the IList
4667         implementations.  [Fixes bug #402703]
4668
4669 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4670
4671         * IDeviceContext.cs: Added Dispose.
4672
4673 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4674
4675         * Control.cs: Added OnSizeInitializedOrChanged.
4676         * Form.cs: OnLoadInternal: Added a call to
4677         Control.OnSizeInitializedOrChanged.
4678         * InternalWindowManager.cs:
4679          * HandleTitleBarMouseMove: No longer invalidates the parent window.
4680          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
4681          * TitleButton: Added Entered.
4682          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
4683         * MdiWindowManager.cs:
4684          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
4685          move over the maximized title buttons causes a change.
4686          * IsActive: Can now be called before the window is added to a MDI parent.
4687         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
4688         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4689         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
4690         * ThemeWin32Classic.cs:
4691          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
4692          * DrawTitleButton takes a new form parameter.
4693          * Added ManagedWindowTitleButtonHasHotElementStyle,
4694          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4695
4696 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4697
4698         * ThemeEngine.cs: ThemeVisualStyles is now selected if
4699         Application.EnableVisualStyles has been called, even if the current system
4700         configuration does not support rendering with Visual Styles.
4701         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
4702         Styles should not be used.
4703
4704 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
4705
4706         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
4707         ComboBox in FormsTest.
4708
4709 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
4710
4711         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
4712         for fixed toolwindows.
4713
4714 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
4715
4716         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
4717
4718 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4719
4720         * Control.cs: CreateControl just returns if the Control is diposed 
4721         and doesn't throw ObjectDisposedException.
4722         [Fixes bug #406566]
4723
4724 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4725
4726         * Control.cs: Do not create the control if the parent isn't created 
4727         yet, e.g in the case of a parented form on which .Show is called.
4728         It will be created when the parent is made visible/created.
4729         Improves #402446.
4730
4731 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4732
4733         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
4734         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
4735         [Fixes bug #406786]
4736
4737 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4738
4739         * Form.cs: When disposed set owner to null. Improves #402446.
4740
4741 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4742
4743         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
4744         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
4745         if not.
4746         * Form.cs: Take the Padding into account for the PreferredSize.
4747         [Fixes bug #402849]
4748
4749 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4750
4751         * TabControl.cs: Since we don't support more than one direction in
4752         TabControl rows alignment (this is, the row becomes the
4753         bottom row when selected), make Direction return always 1. This way
4754         the layout doesn't get confused about a bad calculation.
4755         Fixes #399582.
4756
4757 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4758
4759         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
4760         so that the wparam is properly set.
4761         Fixes form moving in the test case in bug 402446.
4762
4763 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
4764
4765         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
4766         the full tree instead of nothing.  [Improves bug #406584]
4767
4768 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4769
4770         * ThemeWin32Classic.cs: Adjusted minimized window painting.
4771
4772 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4773
4774         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
4775         children.
4776
4777 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
4778
4779         * TreeView.cs: Add a null check when using CollapseAll on an
4780         empty tree.  [Fixes bug #406449]
4781
4782 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4783
4784         * Form.cs: Make OnMenuComplete internal so we can call it.
4785         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
4786         [Fixes bug #399321]
4787
4788 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4789
4790         * TabControl.cs: Handle Up and Down keys when TabControl is in
4791         vertical alignment.
4792         [Fixes bug #399585]
4793
4794 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4795
4796         * TabControl.cs: Invalidate when we remove a tab.  Guard against
4797         an AOORE when trying to remove a tabpage that is not owned by the
4798         parent control.
4799         [Fixes bug #399927]
4800
4801 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4802
4803         * ScrollBar.cs: Change the LargeChange calculation to be correct.
4804         Ensure we are using LargeChange instead of large_change so we our
4805         calculations are correct.
4806         [Fixes bug #403122]
4807
4808 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4809
4810         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
4811         we need to ensure the ColumnCount/RowCount gets set.
4812         [Fixes bug #404851]
4813
4814 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4815
4816         * ListBox.cs: When handling item navigation, if selection mode is
4817         None, call EnsureVisible, since scrolling is normally handled by
4818         selection, that we are not calling in this case.
4819         Fixes #398345.
4820
4821 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4822
4823         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
4824         a null check to our focus walking code.  [Fixes bug #394332]
4825
4826 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
4827
4828         * ComboBox.cs: Case missed in bug 379596 "Support item
4829         navigation by entering text": On _close_ drop-down select
4830         the first item matching the text in the textbox.  [Fixes bug #397265]
4831
4832 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4833
4834         * DataGridView.cs: Fix a crash when sorting by column headers, 
4835         mentioned in bug #404841.  Remove some dead switch cases.
4836
4837 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4838
4839         * ComboBox.cs:
4840         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
4841         uses the AutoComplete support in the internal TextBox. Also TextBox
4842         can store a reference to ComboBox, in case AutoCompleteSource is set
4843         to ListItems (this is, ComboBox's items, and we don't want to pass an
4844         additional collection).
4845
4846 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4847
4848         * ListViewItem.cs: Restore the initial value of bounds rect to
4849         Rectangle.Empty, and is this value for Layout detection in virtual
4850         mode. Fixes the tests.
4851
4852 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
4853
4854         * XPlatUI.cs: Remove references to "new" X11 backend.
4855
4856 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4857
4858         * Control.cs: Add an internal virtual OnDragDropEnd method 
4859         to allow controls such as ListBox, which depend on a sequence 
4860         of MouseDown+Move+End events, to handle the lack of a MouseUp 
4861         when a DnD operation is started in MouseDown.
4862         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
4863         get a MouseUp, so reset our state whenever a DnD operation ends.
4864
4865 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4866
4867         * PropertyGrid.cs: Clear the root griditem first thing when 
4868         new object/s is/are selected. Fixes some rare cases where 
4869         the View will get a paint request and won't know that the 
4870         grid is in the process of repopulating.
4871
4872 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4873
4874         * XplatUIX11.cs, InternalWindowManager.cs: 
4875         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
4876         doesn't automagically update the FormBorderStyle, so we must 
4877         double check the CreateParams explicitly to determine if the 
4878         window is a toolwindow.
4879         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
4880         instead of doing custom checks.
4881
4882         Fixes toolwindows for the test case in bug #402446
4883
4884 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4885
4886         * Control.cs: Visibility of the control should be false 
4887         when the handle is destroyed in WmDestroy and not immediately 
4888         in Dispose(). This is effectively where the disposing process 
4889         ends even though the control is marked as Disposed immediately 
4890         after calling Dispose().
4891         [Fixes bug #402446]
4892
4893 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4894
4895         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
4896         when the textbox gets focus.
4897         [Fixes bug #402704]
4898
4899 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4900
4901         * PropertyGridTextBox.cs, PropertyGridView.cs: 
4902          - Alt + Down should show the drop down editor.
4903          - Focus the editor when showing it
4904         [Fixes bug #402710]
4905
4906 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
4907
4908         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
4909         that are not the first panel.
4910         * StatusBar.cs: Ensure that the X coordinate of panels is always
4911         stored.  Fix IList implementation of StatusBarPanelCollection to
4912         call the regular methods.
4913         [Fixes bug #403599, #402165]
4914
4915 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
4916
4917         * ThemeWin32Classic.cs: Fix position calculation for centered
4918         text on status bar panels.  [Fixes bug #402165]
4919
4920 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4921
4922         * Splitter.cs: Fix Splitter to:
4923          - Work for arbitrary splitter size
4924          - Handle MinSize and MinExtra properly
4925          - Get rid of absolute positioning during drag and use relative
4926          - Multiple other fixes 
4927          [Fixes bug #338966]
4928
4929 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4930
4931         * Cursor.cs: Show shouldn't hide the cursor.
4932
4933 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4934
4935         * ListViewItem.cs: When invalidating, add some extra space to bounds,
4936         since focus rectangle and selection can add some space and need to
4937         take into account those small offsets - specially in Details view.
4938         * ListView.cs: Instead of invalidate using item Bounds directly, call
4939         item.Invalidate, to have the code centralized.
4940         Fixes focused/selection garbage when selecting and deselecting items
4941         that are close.
4942
4943 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4944
4945         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
4946         mode we can check whether we have to force a Layout or not, and can
4947         cache based on this, instead of avoiding caching all the the time. Do
4948         this check in GetBounds and TextBounds.
4949         Fixes selection in Details view.
4950
4951 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4952
4953         * ListView.cs: Make HeaderControl internal, thus the theme engine can
4954         get its *real* height instead of trying to infere it.
4955         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
4956         get the position of them, since it's in general a bad idea in general,
4957         and because we can't do that in virtual mode. Instead get the first
4958         visible item as well as item height, and draw them.
4959         Fixes #400390.
4960
4961 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
4962
4963         * ToolStripSplitButton.cs: We can't add in extra width if
4964         the button is not AutoSize.  [Fixes bug #401279]
4965
4966 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
4967
4968         * PaddingConverter.cs: 
4969          - Implement conversion to InstanceDescriptor
4970          - Handle "All" in CreateInstance by using the supplied 
4971          ITypeDescriptorContext.
4972          [Fixes bugs #396076 and #396078]
4973
4974          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
4975          Code contributed under MIT/X11 license.
4976
4977 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
4978
4979         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
4980         ButtonBase.cs:
4981         Add Category attributes.
4982         Code is contributed under the MIT/X11 license.
4983
4984 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
4985
4986         * Form.cs: 
4987          - Fix a NRE when unparenting a form.
4988          - Do not recreate or destroy a parented form when 
4989         unparenting. 
4990
4991 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4992
4993         * TextBox.cs: Implement basic support for AutComplete with custom
4994         sources.
4995
4996 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
4997
4998         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
4999         DropDownButtonBounds should be from the origin of the button, not the
5000         ToolStrip.  [Fixes bug #401279]
5001
5002 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
5003
5004         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
5005           running gtk_init_check.  This prevents GAIL from loading
5006           unnecessarily, which was breaking UIA support.  Initial fix for bug
5007           #375987.
5008         * Application.cs: Add UIA support to Winforms.  New static constructor
5009           uses reflection to initialize UIAutomationWinforms assembly.  Added
5010           PreRun event so UIA can initialize before the mainloop starts, and
5011           FormAdded event so UIA can provide a11y support for new Forms in an
5012           Application.
5013
5014 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
5015
5016         * DataGridView.cs: When binding to a dataset, subscribe to table
5017         and column change events.  Unsubscribe to these when we clear bindings.
5018         [Fixes bug #399601]
5019
5020 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
5021
5022         [DataGrid drawing refactory]
5023
5024         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
5025
5026         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
5027         must be handle by Theme, now it call DataGridPaintColumnHeader.
5028
5029         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
5030         test cases must be also fixed because it checks for wrong size.
5031
5032         * ThemeWin32Classic.cs: 
5033                 - Draw the bottom line of grid caption.
5034                 - Prevent to draw caption text when it is empty.
5035                 - Use CPDrawBorder3D for 3D efects to simplify code.
5036                 - Uses 3D (when not flat) to paint corner shared between row and column
5037                 header.
5038                 - Fix header drawing issues on win32, now borders are drawing.
5039                 - Fix column header paint issues to mimic win32.
5040                 - Adjust header drawing for last column, like first one it must be draw
5041                 different.
5042                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
5043                 not an character.
5044                 - DataGridPaintColumnHeader created to draw column headers, it also
5045                 paint stuff right on Win32.
5046                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
5047                 class.
5048
5049         * Theme.cs: 
5050                 - DataGridPaintRowHeaderStar method added.
5051                 - DataGridPaintColumnHeader method added.
5052
5053 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
5054
5055         * Control.cs: Don't reset to Dock style layout if DockStyle is
5056         set to none.  [Fixes bug #399316]
5057
5058 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
5059
5060         * Win32DnD.cs: Fix the check for control not equal null.
5061         Fixes bug #341420 and #381886. 
5062
5063 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
5064
5065         * DataGridViewRowCollection.cs: Update the indexes of rows after
5066         one has been removed.
5067         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
5068         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
5069         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
5070         rows for the Rows collection, or deleting rows from the bound DataSet.
5071
5072 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
5073
5074         * DataGridView.cs: Listen to a DataSet's changed event even
5075         when autogeneratecolumns is false.  Refactor the changed event's
5076         add row code to use the same as the existing add row code.
5077         [Fixes bug #399601]
5078
5079 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
5080
5081         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
5082         much any time the caret moves and there is text, not just when
5083         the selection changes as one would think.
5084         * RichTextBox.cs: Override RaiseSelectionChanged and fire
5085         SelectionChanged.
5086         [Fixes bug #397271]
5087
5088 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
5089
5090         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
5091         instead of trying to duplicate the code.
5092         * ListBox.cs: Make method internal so we can send keyboard events.
5093         [Fixes bug #398344]
5094         
5095 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
5096
5097         * TextBoxBase.cs: When pasting and checking the max length,
5098         subtract the selected text length (the text we will be replacing) from
5099         the document length.
5100         * TextControl.cs: Ensure every character insertion is reflected in
5101         charcount, so max length will work properly.
5102         [Fixes bug #398605]
5103
5104 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
5105
5106         * ListBox.cs: Ensure scrollbars are updated when a single
5107         column listbox with an already set top-index is created.
5108         [Fixes bug #398342]
5109
5110 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
5111
5112         * FontDialog.cs: Typing in the font/style textboxes should search
5113         the list boxes case-insensitively.  [Fixes bug #398343]
5114
5115 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
5116
5117         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
5118         widths of icon and buttons instead of hard coded values.
5119
5120 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5121
5122         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
5123         as well as generating a SelectedIndexChanged event, just like .Net does
5124         -surprise-.
5125         Fixes #398345.
5126
5127 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5128
5129         * ListBox.cs: When navigating items visually, use FocusedItem as the
5130         reference point instead of SelectedIndex, since even in
5131         SelectionMode.None we need to support navigation, and in that case we
5132         just can't use SelectedIndex.
5133         Fixes part of #398345.
5134
5135 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
5136
5137         * Control.cs: Make a SetBoundsInternal that avoids the new
5138         SetBounds code.
5139         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
5140         SetBoundsInternal instead of SetBoundsCoreInternal.
5141
5142 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
5143
5144         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
5145         SetBounds for the scrollbars.
5146
5147 2008-06-10  Andreia Gaita <avidigal@novell.com> 
5148
5149         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
5150           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
5151           OnMouseMove, OnMouseOver, OnMouseUp
5152         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
5153           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
5154         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
5155           to the WebControl object to pass to new collection objects
5156         * HtmlHistory.cs: Implement support for individual window histories.
5157         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
5158           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
5159           GotFocus, LostFocus, OnLoad, OnUnload
5160         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
5161           ContextMenu
5162         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
5163           security level changes and context menu event support.
5164
5165 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5166
5167         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
5168         as happens with Esc, patch my Andy Hume.
5169         Fixes #396294.
5170
5171 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
5172
5173         * MdiWindowManager.cs: DrawMaximizedButtons now uses
5174         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
5175         * Theme.cs: Made MenuButtonSize platform dependent. Added
5176         ManagedWindowButtonSize.
5177         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
5178         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
5179
5180 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
5181
5182         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
5183         Added support for rendering with VisualStyles.
5184
5185 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
5186
5187         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
5188         support for rendering the border with VisualStyles.
5189
5190 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
5191
5192         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
5193         the icon is not shown.
5194         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
5195         its own logic.
5196
5197 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
5198
5199         * InternalWindowManager.cs: Draw minimized windows even if they don't have
5200         borders.
5201
5202 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
5203
5204         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
5205
5206 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
5207
5208         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
5209         [Fixes bug #397943]
5210
5211 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5212
5213         * ComboBox.cs: When snaping height -because of IntegralHeight set to
5214         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
5215         if the requested height leaves the listbox area with *less* than the
5216         required are to see one item. We were setting it to PreferredHeight
5217         even for values matching the height for a single item.
5218         Fixes #396297.
5219
5220 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
5221
5222         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
5223
5224 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
5225
5226         * DataGridViewCell.cs: Use property instead of field.
5227
5228 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
5229
5230         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
5231         null checks.
5232
5233 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
5234
5235         * Theme.cs: Added #region around the managed window code. Made the managed
5236         window methods abstract.
5237         * ThemeWin32Classic.cs: Added #region around the managed window code.
5238
5239 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
5240
5241         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
5242         if it has borders.
5243         * ThemeWin32Classic.cs: Removed HasBorders checks in
5244         DrawManagedWindowDecorations.
5245
5246 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
5247
5248         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5249         Extracted ManagedWindowGetTitleBarIconArea.
5250
5251 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
5252
5253         * DataGridViewCellStyle.cs: Don't clone the font.
5254
5255 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
5256
5257         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
5258
5259 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5260
5261         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
5262         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
5263         in 64 bit machines.
5264
5265 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
5266
5267         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
5268         Use Format/FormatProvider before trying converters.
5269         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
5270         are 'set'.  Change constructor to not use ApplyStyle since it wants
5271         everything applied.  Clone the Font.
5272         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
5273         ApplyStyle the rest.
5274
5275 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5276
5277         * ListView.cs: We need to calculate the scrollbars even if the handle
5278         hasn't been created - this is needed when methods using scrollbars
5279         info, such EnsureVisible, are called before control has been created.
5280         Fixes #397272.
5281
5282 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
5283
5284         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
5285         only if the elements are defined. 
5286
5287 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5288
5289         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
5290         section. Also, when setting bounds, snap height as well as save the
5291         requested height if Dock has any value affecting the height: Left,
5292         Right and Bottom - important if using IntegralHeight as true.
5293
5294 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5295
5296         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
5297         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
5298         instead of doing that only in our SetBoundsCore override, since the 
5299         bounds cached can be the same as saved one and we could not get the
5300         new height applied.
5301         Fixes #396297.
5302
5303 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
5304
5305         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
5306         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
5307         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
5308         ToolWindowCaptionButtonSize.
5309         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
5310
5311 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
5312
5313         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
5314         hard coded values.
5315         * Theme.cs: Made DoubleClickTime plaform dependent.
5316
5317 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
5318
5319         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
5320         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
5321         ToolWindowCaptionHeight.
5322
5323 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
5324
5325         * InternalWindowManager.cs: The adjustment to ensure positive client area
5326         sizes is now platform dependent (disabled on Windows).
5327         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
5328         RequiresPositiveClientAreaSize.
5329
5330 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
5331
5332         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
5333
5334 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
5335
5336         * InternalWindowManager.cs: Changed IconicSize to use
5337         SystemInformation.MinimizedWindowSize.
5338         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
5339         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
5340
5341 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5342
5343         * ComboBox.cs: If the combobox is anchored both on top and bottom,
5344         adjust height if IntegralHeight is true when calling SetBoundsCore (as
5345         likely the height was modified even if Height wasn't specified in
5346         BoundsSpecified parameter).
5347         Fixes part of #396297.
5348
5349 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
5350
5351         * InternalWindowsManager.cs: Changed minimum window size while resizing to
5352         SystemInformation.MinWindowTrackSize.
5353         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
5354         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
5355
5356 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
5357
5358         * MenuItem.cs: Fixed Dispose.
5359
5360 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
5361
5362         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
5363         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
5364         EnteredHeaderCell, PressedHeaderCell: Added.
5365         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
5366         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
5367         theme a chance to override default painting.
5368         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
5369         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
5370         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
5371         ListView and DataGridView header rendering.
5372         
5373 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
5374
5375         * RichTextBox.cs: GetPositionFromCharIndex should return the 
5376         visual position of the character relative to the viewport.
5377         [Fixes part of bug #396664]
5378
5379 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
5380
5381         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
5382         and not just for the existance of an UITypeEditor. In some cases 
5383         there is an editor associated just to do PaintValue, but which 
5384         doesn't actually support editing.
5385         [Fixes bug #396632]
5386
5387 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5388
5389         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
5390         if needed, instead of 0 - this should help us in the corner case where
5391         we have more than one item but we are only partially showing 1 item.
5392         Fixes part of #374713.
5393
5394 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5395
5396         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
5397         control, return immediately if the any parent control's handle hasn't
5398         been created or isn't visible, as well as avoiding creating the parent
5399         Form if the handle hasn't been previously created.
5400         Fixes tests.
5401
5402 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
5403
5404         * TableLayoutPanel.cs: Use border sizes when calculating the
5405         panel's preferred size.  [Fixes part of bug #396433]
5406
5407 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
5408
5409         * SplitContainer.cs:
5410          - Fix SplitterDistance to update only if needed. 
5411          - Make it force min and max validation.
5412          - Handle properly mouse moves outside the resizeable area.
5413          [Fixes bug #396232]
5414
5415 2008-06-02  Andreia Gaita <avidigal@novell.com> 
5416
5417         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
5418           (which also suppresses all popup dialogs). Throw NotSupported
5419           exceptions for activex getters/setters.
5420         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
5421           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
5422           StatusText, Version, GoSearch
5423         * HtmlDocument.cs: Add DocType support
5424
5425 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
5426
5427         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
5428         [Fixes bug 396124]
5429
5430 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
5431
5432         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
5433
5434 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
5435
5436         * TableLayoutPanel.cs: When calculating preferred size, use the
5437         actual number of columns and rows, not what the user set them to.
5438         [Fixes bug #396141]
5439
5440 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
5441
5442         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
5443         394311.
5444
5445 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5446
5447         * XplatUIX11.cs: When detecting areas obscured in a control by other
5448         toplevel windows while scrolling, return if the control hasn't a 
5449         container form.
5450         Fixes some tests.
5451
5452 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5453
5454         * XplatUIX11.cs: Properly detect the visible area of a control being
5455         scrolled (obscured by other winforms controls and any X toplevel
5456         windows), to mark as invalid the requested area to be scrolled that
5457         isn't visible and thus can't be copied.
5458         Fixes #324513.
5459
5460 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5461
5462         * ListBox.cs: Compute the precise amount to vertically scroll when
5463         using DrawMode.OwnerDrawVariable.
5464         Patch by jkeymer (j.keymer@gmx.net).
5465
5466 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5467
5468         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
5469         to avoid setting an invalid value for the verticall scrollbar 
5470         when navigating items. And, duh, also remove my silly debug messages
5471         from previous commits.
5472         Fixes #374713.
5473
5474 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
5475
5476         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
5477         make it MS compatible.
5478
5479 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
5480
5481         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
5482          - Allow the editing of entries even if their parent is read-only.
5483          - Do not render expandable properties read-only.
5484          - Refactor expansion checks form PropertyGrid into PropertyGrid.
5485
5486 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
5487
5488         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
5489         support for the hover style.
5490
5491 2008-05-29  Andreia Gaita <avidigal@novell.com> 
5492
5493         * ContainerControl.cs: Check for null dead-end when traversing the tree
5494           of parent controls.
5495         
5496           [Fixes #394332, patch by Ernesto Carrea]
5497
5498 2008-05-29  Geoff Norton  <gnorton@novell.com>
5499
5500         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
5501         constant that it is.  Fixes #393981
5502
5503 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
5504
5505         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
5506         that the user probably doesn't want to set this.
5507
5508 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
5509
5510         * ThemeWin32Classic.cs: Don't let the text size be bigger than
5511         the control size for CheckBox/RadioBox.
5512         [Fixes part of bug #394645]
5513
5514 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5515
5516         * PropertyGrid.cs: Update the state of the sorting buttons in 
5517         the toolbar if PropertySort is set programatically.
5518
5519 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5520
5521         * GridItemCollection.cs: Add multiple items with conflicting names 
5522         support and also preserve name ordering.
5523         [Fixes #395345]
5524
5525 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5526
5527         * GridItemCollection.cs: Revert my multiple items with same 
5528         name patch.
5529
5530 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5531
5532         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
5533         or middle ones.
5534         Fixes part of #393908.
5535
5536 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
5537
5538         * ToolStripDrowDown.cs: When using the Show () methods that have a
5539         Control parameter, set the menu owner to that Control.
5540         [Fixes bug #394345]
5541
5542 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
5543
5544         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
5545         [Fixes bug #362756]
5546
5547 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5548
5549         * GridItemCollection.cs: Refactor to support multiple items with the 
5550         same name.
5551         [Fixes bug #394314]
5552
5553 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
5554
5555         * Control.cs: The 2.0 check for illegal cross thread calls in 
5556         Control.Handle were throwing an exception when we were getting
5557         the Handle in order to invoke correctly.  Created a private
5558         version that does not contain this check.
5559         [Fixes bug #394531]
5560
5561 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5562
5563         * PropertyGrid.cs: Respect DefaultTabType.
5564
5565 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5566
5567         * ListView.cs: SPACE selects an item.
5568         [Fixes bug #393023]
5569
5570 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5571
5572         * ListView.cs: Reset the search string whenever the items are 
5573         modified.
5574         [Fixes bug #393020]
5575
5576 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5577
5578         * ListControl.cs: For the first added item PositionChanged is fired
5579         _before_ ItemChanged, which leave us in a temporary invalid state - so
5580         we need to set the selected index from ItemChanged handler *if* we
5581         know that the first item has just been added *and* the items have been
5582         actually added to the ListControl.
5583         Fixes #369048.
5584
5585 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5586
5587         * TabControl.cs: Only clicks with the left button should be
5588         handled.
5589         Fixes #393908.
5590
5591 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5592
5593         * ComboBox.cs: 
5594         * FIleDialog.cs:
5595         * TextBox.cs: Expose an internal method in TextBox to restore the
5596         original context menu, and call it from ComboBox to re-use it in the
5597         combobox containing the file name in FileDialog.cs.
5598         Fixes part of #393775.
5599
5600 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
5601
5602         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
5603         style.
5604
5605 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
5606
5607         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
5608         down button style.
5609
5610 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5611
5612         * ComboBox.cs: Minor correction to previous patch: PageDown should
5613         also *try* to move by one item if the computed offset is negative,
5614         just like the PageUp case.
5615
5616 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5617
5618         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
5619         should be done for at least 1 item, and not stay at the same item.
5620         Fixes part of #374713.
5621
5622 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
5623
5624         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
5625         directories.  [Fixes bug #393931]
5626
5627 2008-05-22  Andreia Gaita <avidigal@novell.com> 
5628
5629         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
5630           Don't fire events until the initial about:blank page has finished
5631           loading. Clean up events.
5632
5633 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
5634
5635         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
5636           FocusIn() too. This should fix the issue on switching
5637           scim keyboards.
5638
5639 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
5640
5641         * X11Keyboard.cs : set XIM font size to somewhat reasonable
5642           number (ideally the input textbox size, but that could be
5643           too messy).
5644
5645 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
5646
5647         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
5648         the ToolStripItem's TextChanged.  [Fixes bug #393597]
5649
5650 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5651
5652         * TabControl.cs: When invalidating in SelectedIndex and we need to
5653         inflate to take into account the border of the tabs, make sure that
5654         the invalidated rect doesn't overflow the control bounds, since that
5655         would avoid updating at all.
5656
5657 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5658
5659         * TabControl.cs: Don't substract scroller width from the row width,
5660         since we need to take into account the total width of the control when
5661         calculating the position of the tabs. This avoids showing scroller
5662         when it is actually not needed.
5663         Fixes part of #322325.
5664
5665 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5666
5667         * ThemeVisualStyles.cs: Added support for TextBoxBase.
5668
5669 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5670
5671         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5672         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
5673
5674 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5675
5676         * DataGridView.cs: Only paint the top left header cell if there
5677         are columns.
5678
5679 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5680
5681         * DataGridView.cs: When binding to a BindingSource, get the underlying
5682         list to bind to.  [Fixes bug #345483]
5683
5684 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5685
5686         * DataGridView.cs: Do not bind to collection properties.
5687         [Fixes bug #337470]
5688
5689 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5690
5691         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
5692
5693 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5694
5695         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
5696         thumb style.
5697
5698 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5699
5700         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
5701
5702 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5703
5704         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
5705         background.
5706
5707 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5708
5709         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
5710
5711 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5712
5713         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
5714         checked styles.
5715
5716 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5717
5718         * TabControl.cs: Extended to handle the hot style.
5719
5720 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5721
5722         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
5723         Extended UpDownBase code to handle hot and disabled styles.
5724
5725 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5726
5727         * DataGridView.cs: Handle databinding to generic list type things.
5728         [Fixes bug #325239]
5729
5730 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5731
5732         * DataGridViewCellCollection.cs: Add a method to find the cell
5733         with the given DataPropertyName.
5734         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
5735         * DataGridViewColumnCollection.cs: Add a method to clear all
5736         autogenerated columns.
5737         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
5738         columns.
5739         [Fixes bug #348082]
5740
5741 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5742
5743         * DataGridView.cs: Don't try to update the RowTemplate with
5744         a null CellTemplate.
5745
5746 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5747
5748         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
5749         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
5750         * DataGridView.cs: Lots of fixes/enhancements to databinding to
5751         a DataSet.
5752
5753 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5754
5755         * Control.cs: Remove invalidating implicit child controls when
5756         control is invalidated.  It was causing too many redraws on
5757         controls with implicit scrollbars.
5758         * ListView.cs: Listen to the Invalidated event and invalidate
5759         child controls.
5760
5761 2008-05-20  Andreia Gaita <avidigal@novell.com> 
5762
5763         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
5764         * HtmlDocument.cs: Check for nulls
5765
5766 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5767
5768         * Control.cs: In ControlCollection.RemoveInternal, remove the
5769         internal control before calling PerformLayout and OnControlRemoved,
5770         which was leaving us in an invalid state and causing a X error (bad
5771         match). Observe that Remove () call has the same order.
5772         Fixes an X error changing ComboBoxStyle.DropDownStyle.
5773
5774 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5775
5776         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
5777         being fired if ControlStyles.UserPaint style is activated.
5778         Fixes #371905.
5779
5780 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5781
5782         * GridEntry.cs: Don't be so strict when setting the value - 
5783         do not check if what we set is what we get.
5784         [Fixes bug #389245]
5785
5786 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5787
5788         * XplatUIX11.cs: If there are no timers timeout should be 0
5789         [Fixes bug #363522]
5790
5791 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5792
5793         * Control.cs: As a followup to invalidating implicit children when
5794         a control is invalidated, only invalidate them if they are in the
5795         clip rectangle.
5796
5797 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5798
5799         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
5800
5801 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5802
5803         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
5804
5805 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5806
5807         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
5808         * XplatUIWin32.cs: Made Win32DeleteObject public.
5809
5810 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5811
5812         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
5813         PropertyDescriptor.ShouldSerializeValue.
5814         [Fixes bug #391924]
5815
5816 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5817
5818         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
5819         in the classic theme.
5820
5821 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5822
5823         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
5824         ThumbPressed.
5825         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
5826         ScrollBarHasPressedThumbStyle.
5827
5828 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5829
5830         * TextRenderer.cs: Included some methods in the 1.1 profile.
5831
5832 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5833
5834         * Control.cs: When we make a control visible, it may have been
5835         previously visible and while it wasn't visible, the z-order of
5836         things may have been shuffled, so the control needs to have its
5837         z-order updated just in case.  [Fixes bug #391518]
5838
5839 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5840
5841         * ThemeVisualStyles.cs: Added support for GroupBox.
5842
5843 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5844
5845         * GroupBoxRenderer.cs: Included in the 1.1 profile.
5846
5847 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
5848
5849         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
5850           bug #389996; XSelectInput() behaved as mouse handler robber,
5851           so remove extra call to it.
5852
5853 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5854
5855         * Control.cs: Simplify ControlCollection.Contains method.
5856
5857 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5858
5859         * DataGridViewRow.cs: Implement GetPreferredSize.
5860
5861 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5862
5863         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
5864
5865 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5866
5867         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
5868         painting and edit control fixes.
5869
5870 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5871
5872         * DataGridView.cs, DataGridViewCell.cs: Work around some external
5873         checks to make sure we are in an actual row/col for top left header cell.
5874         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
5875
5876 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5877
5878         * Control.cs: Use long instead of int when handling WParam from
5879         mousewheel scrolling.  Int was overflowing on Win64.
5880
5881 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5882
5883         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
5884         flow panel without scrolling first, and then calculate the 
5885         scrolling based on the new layout.  [Fixes bug #390149]
5886
5887 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5888
5889         * ListBox.cs: Invalidate after scrolling up when selected index
5890         changes.  [Fixes bug #390151]
5891
5892 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5893
5894         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
5895         set, default height to 150. I tried first with DefaultSize, but this
5896         is not generating a SetBoundsCore call before handle creation time, so
5897         we can take it into account. This is just what .net does.
5898
5899 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5900
5901         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
5902         as it broke some stuff.  Calberto is filing a bug for eno to
5903         work with.
5904
5905 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5906
5907         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
5908         to 0 is the current value is -1, and if style is not Simple, just
5909         return, like .net does.
5910         Fixes part of #374713.
5911
5912 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5913
5914         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
5915         progress bar stuffs, use doubles instead of ints to prevent
5916         overflow.  [Fixes bug #389798]
5917
5918 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5919
5920         * XplatUIX11.cs, X11Keyboard.cs :
5921           Significant refactoring on XIM support. Now IM engine UI
5922           should show up, at mostly-correct preedit position.
5923           - Eliminated use of FocusWindow, as it is never mapped
5924             and hence blocks correct preedit position. XIC is now
5925             created per window, and it must be destroyed too when
5926             the window is destroyed.
5927           - WM_QUIT messages should not be filtered even when hwnd
5928             is zombie. Filtering it could cause endless loop.
5929           - Preedit position must move only when the window is alive.
5930           - Make it IDisposable and make sure to release XIM/XICs.
5931
5932 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5933
5934         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
5935           XplatUIX11.cs, XplatUIWin32.cs :
5936           fix for bug #325033 and #387693;
5937           - WM_QUIT should not be sent when no running application
5938             exists.
5939           - SetTimer/KillTimer (especially on win32) should be
5940             invoked for the window that the timer is/will_be attached.
5941           - There could be unattached timers to a window when it's
5942             started. For those timers, hold pending timers and when
5943             a window is mapped, attach them to it.
5944           - WaitForHwndMessage() could run into loop when
5945             WM_SHOWWINDOW is handled before this method is called.
5946             So, strictly check wm_showwindow state.
5947           - Tick handler should not be invoked while one Tick handler
5948             call is still running (introduced Busy state).
5949
5950 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5951
5952         * WebBrowserBase.cs: Override Internal alternative methods for
5953           SetBoundsCore and OnResize instead of the protected ones.
5954         * Control.cs: Move SetBoundsCore and OnResize implementations to
5955           SetBoundsCoreInternal and OnResizeInternal, so they can be
5956           overriden internally (WebBrowserBase needs to catch them but can't
5957           override the protected methods without api compat problems)
5958
5959 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5960
5961         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
5962
5963 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5964
5965         * Binding.cs:
5966         * ListView.cs: Remove debug messages.
5967
5968 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5969
5970         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
5971         area is empty. Also calculate scrollbars in Simple mode based in area
5972         height and total number of items, not in MaxDropDownItems.
5973         Fixes part of #371991.
5974
5975 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5976
5977         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
5978
5979 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5980
5981         * BindingSource.cs: GetListSortDescription is not public.
5982
5983 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5984
5985         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
5986
5987 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5988
5989         * HtmlElement.cs: Fix parameter names to match MS.
5990         * HtmlWindowCollection.cs: Should not be sealed.
5991
5992 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5993
5994         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
5995         button, because the thumb button will not get drawn if the scrollbar
5996         is disabled.  [Fixes bug #389262]
5997
5998 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5999
6000         * ListBox.cs: Handle End key for multi-column listboxen.
6001         [Fixes bug #389266]
6002
6003 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
6004
6005         * ListBox.cs: Fix algorithm to determine which column our item is in.
6006         [Fixes bug #389265]
6007
6008 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
6009
6010         * ListBox.cs: Invalidate when the listbox is resized.
6011         [Fixes bug #389256]
6012
6013 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
6014
6015         * ListBox.cs: There is always at least one row in the ListBox (if
6016         we are doing these calculations.)  [Fixes bug #389253]
6017
6018 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
6019
6020         * ListBox.cs: There is always at least one column in the ListBox.
6021         [Fixes bug #389250]
6022
6023 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6024
6025         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
6026         ensure in Simple mode that the height is exactly the requested one.
6027         Also add the ComboBoxListControl to the controls collection in Simple
6028         mode even if handle hasn't been created.
6029         Fixes part of #371991.
6030
6031 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6032
6033         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
6034         our ComboBox owner instead of giving it back to the previous control (
6035         as done in other controls). Also remove the empty override of Select
6036         method, since we want to be selected *and* give focus to our owner.
6037         This should let the user do keys-navigation in Simple mode. 
6038
6039 2008-05-10  Geoff Norton  <gnorton@novell.com>
6040
6041         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
6042         problems with rapid scrolling of treeviews. Fixes #381084
6043
6044 2008-05-10  Geoff Norton  <gnorton@novell.com>
6045
6046         * XplatUICarbon.cs: Deactivate the active window before
6047         activating the desired window.  Completes fixing #386504
6048
6049 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6050
6051         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
6052         SmallChange to the item size width plus the padding, to match .net.
6053
6054 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6055
6056         * FileDialog.cs: Apply the custom filter typed by the user in the file
6057         name combobox as much as possible while navigating in the file dialog.
6058         Fixes #385261.
6059
6060 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6061
6062         * Binding.cs: Actually use NullValue if the retrieved value of
6063         data source is null or DBNull. Makes a test pass.
6064
6065 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
6066
6067         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
6068         * MimeIcon.cs: Provide a way to get icons from resources.
6069
6070 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6071
6072         * Binding.cs: When the value retrieved from the control to be assigned
6073         to the data source is null, actually use the 2.0 DataSourceNullValue
6074         value. Make pass a data binding test.
6075
6076 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
6077
6078         * Control.cs: We need to invalidate implicit children even when
6079         invalidate is called with invalidatechildren = false.  (Implicit
6080         children are really part of the parent.)
6081         * ListView.cs: Double-buffer internal child controls for less
6082         flicker.
6083         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
6084         owner ListView subitems for greatly increased performance.
6085         [Fixes bug #388477]
6086
6087 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
6088
6089         * FileDialog.cs: When the user types a wildcard character in the
6090         filename combobox, update the contents of the folder using the text as
6091         a filter.
6092         Fixes part of #385261.
6093
6094 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
6095
6096         * ListBox.cs: Various fixes for MultiColumn listboxen.
6097         [Fixes bug #388114]
6098
6099 2008-05-08  Andreia Gaita <avidigal@novell.com> 
6100
6101         * HtmlElement.cs: Implement Style property
6102
6103 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
6104
6105         * ListBox.cs: Respect checkboxes when measuring item size.
6106         * ThemeWin32Classis.cs: When drawing list items, don't draw
6107         text outside of the item's bounds to prevent overlapping.
6108         (.Net actually overlaps, but that's just silly.)
6109         [Fixes bug #388117]
6110
6111 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
6112
6113         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
6114         Gert Driesen. Fixes bug #324830. 
6115
6116 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
6117
6118         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
6119         method implemented.
6120
6121 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6122
6123         * BindingSource.cs: When calling IsSynchronized, return the value of
6124         the related IList list.
6125
6126 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6127
6128         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
6129         make a test pass.
6130
6131 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
6132
6133         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
6134         navigation to scroll the grid if the current cell is not visible.
6135
6136 2008-05-07  Andreia Gaita <avidigal@novell.com> 
6137
6138         * HtmlElement.cs: Implement TabIndex
6139
6140 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
6141
6142         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
6143         properties, even when there are no items.
6144         [Fixes bug #387611]
6145
6146 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
6147
6148         * NativeWindow.cs: Add support for multiple handles per window.
6149         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
6150         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
6151         directly - use FromHandle instead.
6152         [Fixes bug #374660]
6153
6154 2008-05-07  Andreia Gaita <avidigal@novell.com> 
6155
6156         * HtmlElement.cs: Implement InnerHTML setter
6157
6158 2008-05-07  Andreia Gaita <avidigal@novell.com> 
6159
6160         * HtmlDocument.cs: Implement Focused
6161
6162 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6163
6164         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
6165         methods, as well as add messages to the exceptions.
6166
6167 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6168
6169         * BindingSource.cs: Setting DataSource should only reset DataMember if
6170         the previous value was null (make pass a not working test).
6171
6172 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6173
6174         * BindingSource.cs: When EndInit call is postponed and is called until
6175         DataSource.EndInit is called, remove the handler for data source.
6176
6177 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
6178
6179         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
6180
6181 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
6182
6183         * ToolStripManager.cs: Store references to toolstrips as
6184         weak references so they do not prevent forms from getting collected.
6185         [Fixes bug #386483]
6186
6187 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
6188
6189         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
6190         on .Net.  So do the same thing in WndProc.
6191
6192 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
6193
6194         * TrackBar.cs: Commit patch from Andy Hume that corrects
6195         the clickable areas to better match .Net.
6196         [Fixes bug #387074]
6197
6198 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
6199
6200         * TrackBar.cs: Commit patch from Andy Hume that adds the
6201         ResizeRedraw control flag so the track bar repaints itself
6202         when it is resized.  [Fixes bug #387072]
6203
6204 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
6205
6206         * TrackBar.cs: Commit patch from Andy Hume that adds better
6207         support for keyboard navigation when the TrackBar is vertical.
6208         [Fixes bug #387071]
6209
6210 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6211
6212         * BindingSource.cs: Implement ISupportInitializeNotification support.
6213
6214 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
6215
6216         * ThemeVisualStyles.cs: Added support for ToolBar.
6217
6218 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
6219
6220         * ToolBar.cs: Made the Vertical property internal.
6221
6222 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
6223
6224         * ThemeVisualStyles.cs: Added support for TrackBar.
6225
6226 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
6227
6228         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
6229         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
6230         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
6231         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
6232         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
6233         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
6234
6235 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
6236
6237         * ThemeVisualStyles.cs: Added support for UpDownBase.
6238
6239 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
6240
6241         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
6242         Extracted Theme.UpDownBaseDrawButton.
6243
6244 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
6245
6246         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
6247         removed from the static toolstrips collection in ToolStripManager
6248         when they are disposed.  Provides a workaround for bug #386483.
6249
6250 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
6251
6252         * GridEntry.cs: Read-only properties with Editor with 
6253         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
6254         [Fixes bug #384184]
6255
6256 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
6257
6258         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
6259         the menu key and there are no items on the menu.
6260         [Fixes bug #386644]
6261
6262 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
6263
6264         * Control.cs: Avoid calling ToString on a string.
6265         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
6266         * GroupBox.cs: In FlatStyle property throw, not just create, the 
6267         exception. Avoid calling ToString on a string.
6268         * ProgressBar.cs: Avoid calling ToString on a string. 
6269         * ScrollBar.cs: Avoid calling ToString on a string. 
6270         [All issues were found using Gendarme]
6271
6272 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
6273
6274         * NotifyIcon.cs: Prevent click events to be trigger after double click 
6275         events. Fixes remaining issues of bug #324832.
6276
6277 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
6278
6279         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
6280         to mimic win32 behavior. Partially fixes bug #324832.
6281
6282 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6283
6284         * BindingSource.cs: Implement Find methods.
6285
6286 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6287
6288         * BindingSource.cs: Implement Sort, ApplySort overloads, and
6289         RemoveSort methods.
6290
6291 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6292
6293         * ListBindingHelper.cs: When calling GetListItemProperties and the
6294         passed object is ITypedList, return the result of
6295         ITypedList.GetItemProperties instead.
6296
6297 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
6298
6299         * LinkLabel.cs: Set default value of name on constructor of Link class
6300         only for 2.0 profile.
6301
6302 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
6303
6304         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
6305         Fixes remaining issues of bug #346154.
6306
6307 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
6308
6309         * LinkLabel.cs: Set a default value for name on internal contructor of
6310         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
6311
6312 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
6313
6314         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
6315         and refer all instances to owner.links. Partially fixes #346154.
6316
6317 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6318
6319         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
6320         length equal zero. Also called CreateLinkPieces in constructor. It fixes
6321         the LinkLabel test 'TestLinkArea'.
6322
6323 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6324
6325         * Form.cs: Remove menu before close form to prevent form to be not gaced.
6326         [Fixes #386460]
6327
6328 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6329
6330         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
6331         [Fixes #386463]
6332
6333 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6334
6335         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
6336         [Fixed bug #357004]
6337
6338 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6339
6340         * MenuAPI.cs: Remove unused ProcessCmdKey method.
6341
6342 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6343
6344         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
6345         [Fixes bug #375398]
6346
6347 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6348
6349         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
6350         of bug #367492.
6351
6352 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6353
6354         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
6355         sometimes we open a conext menu on mouse down of some controls and the mouse
6356         up is dispatched to menu and dont need to. It fix remaining issues of 
6357         #363711 and other problems related to menu mouse click events.
6358
6359 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
6360
6361         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
6362         some var names to better fit changes, now we have month_menu and today_menu
6363         vars. Fixes bug #363711.
6364
6365 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
6366
6367         * MonthCalendar.cs: Handle every right mouse click to open context menu,
6368         right now the default month menu but it will be change to have "Go to today"
6369         menu.
6370
6371 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6372
6373         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
6374
6375 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
6376
6377         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
6378
6379 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6380
6381         * ThemeVisualStyles.cs: Added support for TreeView.
6382
6383 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6384
6385         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
6386         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
6387
6388 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6389
6390         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
6391
6392 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6393
6394         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
6395         Implement 2.0 SP1 stuffs.
6396
6397 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6398
6399         * FileDialog.cs: Implement 2.0 SP1 stuffs.
6400
6401 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6402
6403         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
6404         Implement CanEnableIme property. (2.0 SP1)
6405
6406 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6407
6408         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
6409         from the 2.0 API.
6410
6411 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6412
6413         * Control.cs: Provide an internal way for a control to override
6414         the setting of Height.
6415         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
6416         set height using new method.
6417
6418 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6419
6420         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
6421
6422 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6423
6424         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
6425         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
6426
6427 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6428
6429         * ThemeVisualStyles.cs: Added support for StatusBar.
6430
6431 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6432
6433         * DataObject.cs: Add the other IDataObject interface.
6434
6435 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6436
6437         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
6438         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
6439
6440 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6441
6442         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
6443         * ListView.cs: Hide non-public API.
6444         * MaskedTextBox.cs: Remove extra attribute.
6445
6446 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6447
6448         * DataGridViewImageCell.cs: Use formatted value instead of value
6449         to calculate preferred size.
6450
6451 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6452
6453         * ListBox.cs: Move some initialization around so that selected_indices
6454         is not accessed before it is created.
6455
6456 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6457
6458         * InputLanguageCollection.cs: Implement the collection better.
6459         [Fixes bug #385506]
6460
6461 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6462
6463         * ToolStripDropDownItem.cs: Get the correct event object for
6464         DropDownItemClicked.
6465         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
6466         [Fixes bug #385475]
6467
6468 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6469
6470         * DataGridViewRowCollection.cs: We don't currently support shared 
6471         rows.  Should fix test failures caused by previous commit.
6472
6473 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6474
6475         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
6476         datagridview gets set.  Only paint cells in visible columns.
6477         * DataGridViewCell.cs: Draw border after cell content.
6478         * DataGridView.cs: Invalidate after setting some properties.  Only
6479         use visible columns.  Fit hit test bug with areas in the col/row header
6480         area but not in a row or col.  Implement UpdateCell/Row methods.
6481
6482 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6483
6484         * DataGridViewElement.cs: Don't throw NIEX.
6485         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
6486         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
6487         * DataGridViewCheckBoxColumn.cs: Implement ToString.
6488         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
6489         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
6490         if the user filled in the formatting Value, use it.
6491
6492 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6493
6494         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
6495         to a string.
6496
6497 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6498
6499         * BindingSource.cs: Some corrections to Filter property, as well as
6500         setting it for our list when resetting it.
6501
6502 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
6503
6504         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
6505         than the maximum.  Fixes reopened bug #384182.
6506
6507 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6508
6509         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
6510         Fixes remaining issues of #367490.
6511
6512 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6513
6514         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
6515         SystemInformation.WorkingArea to get max_screen value.
6516
6517 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6518
6519         * BindingSource.cs: Implement Filter and RemoveFilter.
6520
6521 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6522
6523         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
6524
6525 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6526
6527         * X11Dnd.cs: When trying to convert data and we know we started the
6528         dnd loop, don't try to use the cached data if the loop is not running,
6529         which means that the data has been resetted.
6530         Fixes #378191.
6531
6532 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6533
6534         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
6535         win32 behavior.
6536
6537 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6538
6539         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
6540         it to drawn off screen edge. Fixes bug #367490.
6541
6542 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6543
6544         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
6545         menu position to have only one assignment of Location var.
6546
6547 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6548
6549         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
6550         for this patch. Fixes bug #384115.
6551
6552 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6553
6554         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
6555         the same.  If LargeChange is zero, set a minimum size for the scroll
6556         thumb grip.  [Fixes bug #384182]
6557
6558 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6559
6560         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
6561         [Fixes bug #384181]
6562
6563 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6564
6565         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
6566
6567 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6568
6569         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
6570         patch from Ernesto).
6571
6572 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6573
6574         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
6575
6576 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6577
6578         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
6579
6580 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6581
6582         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
6583
6584 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6585
6586         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
6587
6588 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
6589
6590         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
6591
6592 2008-04-27  Andreia Gaita <avidigal@novell.com> 
6593
6594         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
6595           supposed to return a reference to an mshtml interface, which we
6596           don't support).
6597         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
6598           reference to an mshtml interface, which we don't support). Code
6599           formatting cleanup.
6600         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
6601           DomDocument getter (it's supposed to return a reference to an
6602           mshtml interface, which we don't support). Code formatting cleanup.
6603
6604 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6605
6606         * ListView.cs: Ouch, forgot to commit.
6607
6608 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6609
6610         * ListView.cs: 
6611         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
6612
6613 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6614
6615         * ListView.cs: When calculating box selection for virtual mode, don't
6616         look for intersection with item's text, but item bounds, since that
6617         would mean read ListViewItem's text for _every_ item, and that's
6618         something we just can't do in virtual mode (items are only requested
6619         when drawn).
6620
6621 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
6622
6623         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
6624         partial support for managed windows (based on the patch from Ernesto).
6625
6626 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6627
6628         * ListView.cs: When doing a key search use FindItemWithText method
6629         instead of doing the search by ourselves, this way we avoid
6630         duplicating the code and also we handle the special case for virtual
6631         mode. To achieve that make our private overload of FindItemWithText
6632         internal and also have a 'roundtrip' parameter.
6633
6634 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6635
6636         * ListView.cs: When doing the layout don't request the
6637         ListViewItem instance if we are in virtual mode (since we can't request it
6638         until the item is actully drawn).
6639
6640 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6641
6642         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
6643         from Ernesto).
6644
6645 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6646
6647         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
6648         the patch from Ernesto).
6649
6650 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6651
6652         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
6653         * ThemeVisualStyles.cs: Added.
6654
6655 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6656
6657         * IDeviceContext.cs: Added a missing using.
6658
6659 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6660
6661         * ButtonBase.cs: Made IsDefault protected internal.
6662         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
6663
6664 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6665
6666         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
6667         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
6668         RadioButtonRenderer.cs: Included in the 1.1 profile.
6669         * IDeviceContext.cs: Added.
6670         * TextRenderer.cs: Included a member in the 1.1 profile.
6671
6672 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6673
6674         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
6675
6676 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6677
6678         * ErrorProvider.cs: Make the error icons come after the control
6679         they refer to.  It isn't the way the MS does it, but its better
6680         than what we were doing.  See bug #368587.
6681
6682 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6683
6684         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
6685         from Eric Albright that lazy loads the input language as ensures
6686         everything gets properly initialized.  Fixes bug #373871.
6687
6688 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6689
6690         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
6691         implicit mnemonics.  [Fixes bug #383000]
6692
6693 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6694
6695         * X11Dnd.cs: When canceling the operation, automatically restore the
6696         default cursor - normally the default cursor is restored when the
6697         mouse buttons are released, but we should be able to restore it even
6698         if the buttons are still pressed (for example, when pressing ESC to
6699         cancel).
6700         Fixes #381894.
6701
6702 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6703
6704         * X11Dnd.cs: When starting a new drad and drop operation, set control
6705         field to null, just as the other fields, to avoid calling any
6706         operation on a previous control. Also, when calling DndLeave on a
6707         control, set it to null, thus we don't fire that event multiple times
6708         for that control.
6709         Fixes #209264.
6710
6711 2008-04-23  Geoff Norton  <gnorton@novell.com>
6712
6713         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
6714         the whole_window object.  Fixes #377084.
6715
6716 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6717
6718         * HtmlElement.cs: Implement RaiseEvent (event injection into the
6719           embedded browser)
6720
6721 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
6722
6723         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
6724
6725 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6726
6727         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
6728           invocation
6729
6730 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6731
6732         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
6733           attaching/detaching
6734
6735 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6736
6737         * X11Dnd.cs: When the drop was cancelled, or could just not be
6738         performed, return DragDropEffect.None always (match .net).
6739
6740 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6741
6742         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
6743
6744 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6745
6746         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
6747
6748 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6749
6750         * DataGridView.cs: Add support for error icon tool tips.
6751         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
6752         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
6753
6754 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
6755
6756         * X11Structs.cs: Add mouse button masks enum.
6757         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
6758         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
6759         form resize/move operation instead of for each step of it.
6760         [Fixes bug #346529 for the x11 backend]
6761
6762 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6763
6764         * DataGridView*: Implement support for drawing error icons.
6765
6766 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6767
6768         * TreeView.cs: Make vbar and hbar internal.
6769         * TreeNode.cs: If collapsing the node removes one of the TreeView's
6770         scrollbars, invalidate the whole thing.
6771         [Fixes bug #382001]
6772
6773 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6774
6775         * TreeView.cs: Calling Sort() sets Sorted = true.
6776         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
6777         if the nodes need to be sorted.
6778         [Fixes bug #382028]
6779
6780 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
6781
6782         * Form.cs: Fire SizeChanged for both when the form is minimized and 
6783         restored.
6784         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
6785         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
6786
6787 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6788
6789         * ComboBox.cs: If the combobox is disabled, draw a disabled
6790         background before painting anything else.
6791         [Fixes bug #381729]
6792
6793 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6794
6795         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
6796         forget to send a Leave event to the target window - just as .net does
6797         when cancelling dnd operations.
6798
6799 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6800
6801         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
6802         soon as possible - this happens when we send the drop message to the
6803         target window. This way we avoid firing any DragOver _after_ drop finished.
6804         Fixes #378179.
6805
6806 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6807
6808         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
6809         * Form.cs: Handle form minimization as a special state, where size doesn't 
6810         change, but we have to fire SizeChanged.
6811         [Fixes bug #325122 for the win32 and x11 backends]
6812
6813 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6814
6815         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
6816         if the handle is disabled.
6817         [Fixes bug #371751]
6818
6819 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6820
6821         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
6822         for forms with FormBorderStyle.None.
6823         [Fixes bug #349571]
6824
6825 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6826
6827         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
6828         WM_EXITSIZEMOVE.
6829         [Fixes bug #346529 for the X11 backend]
6830
6831 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6832
6833         * XplatUIX11.cs: 
6834           - Send a mouse Enter message after say dragging the mouse with a 
6835           button down and then release it in another client.
6836           - Reset the cursor to prevent X11 from remembering it and setting it 
6837           before the control gets WM_SETCURSOR.
6838           - Qeueue a mouse move after a mouse enter like win32.
6839           [Fixes bug #323234]
6840
6841 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6842
6843         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
6844         It's sent when the form gets moved, resized, closed.
6845         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
6846         [Fixes bug #359193 for X11]
6847
6848 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6849
6850         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
6851         the build.
6852
6853 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6854
6855         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
6856         group. Fixes the 1.1 build.
6857
6858 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6859
6860         * ListView.cs: Use display indexes for selection in Details view, as
6861         well as do the proper layout based on display indexes for that view
6862         too.
6863
6864 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6865
6866         * ListView.cs: Focused item information is now stored as a display
6867         index, and display indexes are used all over the place for selection,
6868         instead of ListViewItem.Index values, which doesn't give us enough
6869         information to modify the selection in groups mode, and was broken.
6870
6871 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
6872
6873         * Control.cs: Do not fire MouseDown if validation of the control has 
6874         failed.
6875         * Form.cs: Validate the form before closing.
6876         [Fixes bugs #330501 and #353310]
6877
6878 2008-04-18  Andreia Gaita <avidigal@novell.com> 
6879
6880         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
6881           CreateWebBrowserSiteBase implementations
6882         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
6883           Style and TabIndex setters
6884
6885 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6886
6887         * ListViewGroup.cs: When returning the actual item count, return the
6888         proper count for default group.
6889         Fix the tests.
6890
6891 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6892
6893         * ListView.cs:
6894         * ListViewGroup.cs: When calculating groups layout, get the actual
6895         number of items per group, since groups added to the group BUT not
6896         added to the ListView are just ignored, and can cause some nasty
6897         exceptions because of the lack of synchronization. Also for
6898         ListViewGroup don't use lazy initialization for items, since we 
6899         the common scenario is to use it always - and it helps us to  refactor
6900         and clean the .ctor overloads.
6901
6902 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6903
6904         * ListView.cs: When adding an item to a ListViewItemCollection
6905         belonging to a group (ListViewGroup.Items), don't generate a redraw if
6906         the added item hasn't beeen previously added to the ListView instance
6907         refered by the group, since it will be ignored. This should avoid some 
6908         really nasty flickering.
6909
6910 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6911
6912         * ListView.cs: When accessing an item in a specific display
6913         position, use the helper method GetItemAtDisplayIndex, instead of
6914         direct access to the reordered_items_indices array. When doing layout
6915         for groups set the correct Items index for the display position (since
6916         in groups mode items don't have the same position as in Items
6917         collection).
6918         * ListViewGroup.cs: Add a field to store the starting item number,
6919         which is later used when calculating the layout.
6920
6921         Fixes #360805.
6922
6923 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
6924
6925         * Application.cs: Fixed ProductVersion to fallback to the assembly
6926         version. Fixes regression for bug #325413.
6927
6928 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6929
6930         * ListView.cs: New helper method to retrieve an item in a _specific
6931         display_ position (the items can be displayed in a different order
6932         than one of Items collection).
6933         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
6934         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
6935         specific display position (again remember that items can be sorted
6936         different than Items).
6937
6938 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6939
6940         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
6941         list and update it when the collection changes.  We were recreating
6942         this several times per row paint and for every pixel the mouse moved
6943         across the grid.
6944         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
6945         changes.
6946
6947 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6948
6949         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
6950         list to use generics.
6951         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
6952         and remove unneccessay casts.
6953
6954 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6955
6956         * DataGridViewBand.cs: Add internal way to set displayed variable.
6957         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
6958         * DataGridView.cs: Make sure we always keep track of Displayed
6959         rows and columns, and only draw things that are displayed.
6960
6961 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
6962
6963         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
6964           whether the key events are filtered or not. Introduced
6965           PreFilter() process for this purpose. This fixes atokx3/iiimx
6966           shift state issue.
6967
6968 2008-04-16  Andreia Gaita <avidigal@novell.com> 
6969
6970         * HtmlHistory.cs: Implement Length property
6971
6972 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
6973
6974         * DataGridView.cs: Call EndEdit when a sort is performed so we take
6975         away the edit textbox.  Refactor to reuse column sort code.
6976
6977 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
6978
6979         * MenuAPI.cs: Remove the code that save and restore capture status of 
6980         grab_control, this fixes some Menu and Context menu bugs but maybe it can
6981         cause some others, I cant figure the possible problems of this patch but
6982         right now remove the code looks to be better than keep it. This patch fixes
6983         bugs #357638, #378721 and #379570.
6984
6985 2008-04-12  Andreia Gaita <avidigal@novell.com> 
6986
6987         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
6988         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
6989         add missing properties and event handlers.
6990         
6991 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
6992
6993         * ListBox.cs: Make sure the LargeChange we are setting is at least
6994         zero, to prevent an IOORE.  [Fixes bug #379531]
6995
6996 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
6997
6998         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
6999         in DropDownList mode, for each key-press select the next item 
7000         starting with that letter.
7001         For other modes, when no item selected, on arrow-up/-down and open 
7002         drop-down select the first item matching the text in the textbox.
7003
7004 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
7005
7006         * X11Keyboard.cs : Control.FromHandle() could return null
7007           in MoveCurrentCaretPos().
7008
7009 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7010
7011         * ListView.cs: When changing the size in VirtualMode, also Reset the
7012         selection.
7013         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
7014         changing selection info for VirtualMode.
7015         Fixes #372618.
7016
7017 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7018
7019         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
7020         view, don't use LineLimit for the first item - use NoWrap *always*
7021         instead, since ListView.LabelWrap is not used for this view.
7022         Fixes #378054.
7023
7024 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7025
7026         * Binding.cs: Call UpdateIsBinding when setting control - probably
7027         Binding is already usable and we don't need to wait to check the
7028         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
7029         Created, just like 2.0 does.
7030         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
7031
7032 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7033
7034         * Binding.cs: Just realized we don't need to have a handler for
7035         BindingContextChanged, since this info should be now consumed directly
7036         in the BindingManagerBase. And also, the manager.IsBindingSuspended
7037         state info is checked directly, instead of caching it.
7038
7039         * CurrencyManager.cs: IsSuspended should return always false if Count
7040         == 0.
7041
7042 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7043
7044         * Binding.cs: When calling PushData, return if manager.Count == 0,
7045         since we just don't have data to be read. Also, when setting the
7046         Control for binding, hook up some events to refresh the IsBinding
7047         state when BindingContext change or control gets created; use
7048         Control.IsHandleCreated instead of Control.Created check to set
7049         IsBinding state - we *actually* need to modify IsBinding when control
7050         is created, but we don't have any Created event, only HandleCreated.
7051         Fixes part of #349364.
7052
7053 2008-04-11  Geoff Norton  <gnorton@novell.com>
7054
7055         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
7056         warping a null Caret.
7057
7058 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
7059
7060         * DataGridView.cs: Implement row/column autosizing methods. Implement
7061         autosorting.
7062         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
7063         * DataGridViewRowCollection.cs: Add an internal sorting method.
7064
7065 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
7066
7067         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
7068         value in ListView drawing code.
7069
7070 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
7071
7072         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
7073         is clicked.  Respect the user setting Cancel in FileOk.
7074
7075 2008-04-11  Geoff Norton  <gnorton@novell.com>
7076
7077         * ListView.cs: Avoid setting and resetting control Width/Heights and
7078         calculate the final value and set it once.  Prevents a feedback loop
7079         on the mac.
7080
7081 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
7082
7083         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
7084         [Fixes bug #378869]
7085
7086 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
7087
7088         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
7089           Add some on-the-spot code, but it seems we don't need it.
7090
7091 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
7092
7093         * Form.cs: Add method for DataGridView to trigger focus cues
7094         even when it handles the tab keypress.
7095
7096 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
7097
7098         * DataGridView.cs: More keyboard handling, tab, esc.
7099         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
7100         when at the beginning or end of the text in the text box.
7101
7102 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
7103
7104         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
7105
7106 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
7107
7108         * DataGridView.cs: Some fixups for showing and adding the edit control.
7109         * DataGridViewButtonColumn.cs: Implement ToString.
7110         * DataGridViewCell.cs: Size and position the control simultaneously.
7111         * DataGridViewTextBoxCell.cs: Use base to position control.
7112
7113 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
7114
7115         * DataGridViewCell.cs: Fix up some formatting and painting code.
7116         * DataGridViewImageCell.cs: Implement some NIEX methods.
7117
7118 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
7119
7120         * ToolStripItemCollection.cs: What moving an item from one owner
7121         to another, remove from source owner before adding to destination.
7122         [Fixes bug #378109]
7123
7124 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
7125
7126         * PictureBox.cs: Call Load when ImageLocation is set.
7127         [Fixes bug #378308]
7128
7129 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
7130
7131         * X11Keyboard.cs, XplatUIX11.cs :
7132           Implement over-the-spot mode (with some odd offsets).
7133           - set preedit position when caret is set.
7134           - Wrap XMoveResizeWindow() to move preedit position.
7135
7136 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
7137
7138         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
7139         array lenght.
7140
7141 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
7142
7143         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
7144         and ScanTableIndex public, it fix compilations errors when compiling
7145         WinForms to generate keyboard layout resources.
7146
7147 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
7148
7149         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
7150         different element count than scan table. It prevents some errors in non
7151         standard keyboards.
7152
7153 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
7154
7155         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
7156
7157 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
7158
7159         * DataGridView.cs: Call OnContentClick.
7160         * DataGridViewCell.cs: Do a null check on ValueType instead
7161         of valueType.
7162         * DataGridViewCheckBoxCell.cs: Implement.
7163
7164 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
7165
7166         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
7167
7168 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
7169
7170         * X11Keyboard.cs : Check XGetIMValues() return value in
7171           case it does not return input styles in some environment.
7172
7173 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
7174
7175         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
7176
7177 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7178
7179         * BindingContext.cs: Stub UpdateBinding method.
7180
7181 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
7182
7183         * X11Structs.cs : added couple of structs for XIM support.
7184         * X11Keyboard.cs :
7185           Release XIM in case it failed to create XIC. 
7186           Use consts for XNblah string.
7187           Add support for IM style customization and XIC creation
7188           for preedit-position and preedit-callback.
7189           Right now use MONO_WINFORMS_XIM_STYLE environment variable
7190           (list of: over-the-spot | on-the-spot | root). Only root
7191           mode works so far.
7192
7193           (redoing r99172 with fix.)
7194
7195 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
7196
7197         * TreeView.cs: Center the checkbox a little better.
7198
7199 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
7200
7201         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
7202         Apply very nice patch from Ernesto Carrea that simplifies our
7203         scrollbar drawing.  [From bug #376146]
7204
7205 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
7206
7207         * TreeView.cs: Correct the location of the root node checkbox when
7208         ShowRootLines = false.  Don't draw the root lines for the root node
7209         when ShowRootLines = false.  [Fixes bug #377535]
7210
7211 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
7212
7213         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
7214         Fixed line endings.
7215         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
7216         line endings.
7217         * MaskedTextBox.cs: Added missing attribute. Code formatting.
7218         * PageSetupDialog.cs: Added missing attribute. Code formatting.
7219         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
7220         * ImeMode.cs: Added missing field.
7221         * HtmlWindow.cs: Code formatting. Fixed line endings.
7222         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
7223         warnings.
7224         * HtmlHistory.cs: Code formatting. Fixed line endings.
7225         * HtmlDocument.cs: Code formatting. Fixed line endings.
7226         * ToolStripPanel.cs: Added missing IList implementation.
7227         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
7228
7229 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
7230
7231         * BindingContext.cs: Changed argument names to fix corcompare errors.
7232         * DataGridView.cs: Removed extra explicit interface implementation
7233         of IDropTarget. Code formatting.
7234         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
7235         * ComboBox.cs: Changed argument names to fix corcompare errors.
7236         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
7237         errors.
7238         * GridColumnStylesCollection.cs: Changed argument names to fix
7239         corcompare errors. Removed extra tabs.
7240         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
7241         errors.
7242         * Control.cs: Changed argument names to fix corcompare errors. Code
7243         formatting. Removed extra explicit IList implementation.
7244         * TextBox.cs: Changed argument names to fix corcompare errors. Code
7245         formatting. Use string.Empty instead of "".
7246         * GridItemCollection.cs: Changed argument names to fix corcompare
7247         errors. Code formatting.
7248         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
7249         corcompare errors. Code formatting.
7250         * ImageList.cs: Changed argument names to fix corcompare errors.
7251         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
7252         * DataGridViewRowCollection.cs: Changed argument names to fix
7253         corcompare errors. Code formatting.
7254         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
7255         * DataGridViewSelectedCellCollection.cs: Changed argument names to
7256         fix corcompare errors. Code formatting.
7257         * DataGridViewComboBoxCell.cs: Changed argument names to fix
7258         corcompare errors. Code formatting.
7259         * LinkLabel.cs: Changed argument names to fix corcompare errors.
7260         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
7261         formatting.
7262         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
7263         Code formatting.
7264         * BindingSource.cs: Changed argument names to fix corcompare errors.
7265         Removed extra explicit interface implementations.
7266         * DataGridViewSelectedRowCollection.cs: Changed argument names to
7267         fix corcompare errors. Code formatting.
7268         * ToolStripItemCollection.cs: Removed extra explicit interface
7269         implementation of IList.ReadOnly.
7270         * DataGridViewColumnCollection.cs: Changed argument names to fix
7271         corcompare errors. Code formatting.
7272         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
7273         * ListView.cs:  Changed argument names to fix corcompare errors.
7274         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
7275         errors.
7276         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
7277         errors.
7278         * ListBindingHelper.cs: Changed argument names to fix corcompare
7279         errors.
7280         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
7281         fix corcompare errors. Code formatting.
7282         * ToolStripPanel.cs: Removed extra explicit implementation of
7283         IDropTarget interface.
7284         * ListBox.cs: Changed argument names to fix corcompare errors. Code
7285         formatting. Removed extra tabs and spaces.
7286         * DataGridViewCellCollection.cs: Changed argument names to fix
7287         corcompare errors.
7288         * Help.cs: Changed argument names to fix corcompare errors. Code
7289         formatting.
7290         * TabControl.cs: Changed argument names to fix corcompare errors.
7291         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
7292         errors.
7293         * TableLayoutSettings.cs: Changed argument names to fix corcompare
7294         errors.
7295
7296 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7297
7298         * ListBindingHelper.cs: When returning properties, only return those
7299         that are browsable. Also, don't do a linear search of the properties,
7300         but use the indexer of the PropertyDescriptorCollection class.
7301
7302 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7303
7304         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
7305         Dictionary containing the related (child) currency managers. Also,
7306         when setting DataSource, add datasource to our List if it is not a list.
7307
7308 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
7309
7310         * PropertyGridTextBox.cs: Fix background color of the buttons.
7311         * PropertyGridView.cs: Make the entry less jumpy.
7312
7313 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
7314
7315         * PropertyGrid.cs: Fix unused variable warnings.
7316
7317 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
7318
7319         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
7320         double-click. It expanded it once in the mouse down and then 
7321         again in the double-click handler.
7322
7323 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
7324         
7325         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
7326         TypeConverter and UITypeEditors.
7327
7328 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
7329
7330         * Control.cs: Visibility should be set synchronously, 
7331         so we must also redraw once it is and not rely on layouting or 
7332         other code to repaint.
7333         [Fixes bug #339898]
7334
7335 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
7336
7337         * DataGridViewCell.cs: Respect DataGridView.GridColor.
7338
7339 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
7340
7341         * Control.cs: Invalidate when the alpha channel is less than 255,
7342         not only when control is transparent.
7343
7344 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
7345
7346         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
7347         Implement some painting convenience methods that threw NIEX.
7348
7349 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
7350
7351         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
7352         * DataGridViewLinkCell.cs: Implement.
7353
7354 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
7355
7356         * GridEntry.cs: Report the conversion exception error description.
7357         [Fixes bug #375792]
7358
7359 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
7360
7361         * PropertyGridView.cs: Do not scroll to item on resize.
7362         [Fixes bug #375789]
7363
7364 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7365
7366         * BindingContext.cs: When retrieving a BindingManagerBase, if the
7367         dataSource parameter is ICurrencyManagerProvider, then return
7368         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
7369         instead of creating a new one.
7370
7371 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7372
7373         * BindingSource.cs: Implement support for Type instances as
7374         DataSource.
7375
7376 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
7377
7378         * DataGridView.cs: Minor cleanups and call CellMouseUp.
7379         * DataGridViewCell.cs: Make some painting routines internally virtual.
7380         * DataGridViewButtonCell.cs: Implement.
7381
7382 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
7383
7384         * Control.cs: We always need to invalidate our children with
7385         transparent backgrounds when we are invalidated.
7386         [Fixes bug #376081]
7387
7388 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7389
7390         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
7391         and CancelCurrentEdit on CurrencyManager respectively. Implement
7392         support for ICancelAddNew too.
7393
7394 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7395
7396         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
7397         call EndNew/CancelNew if list is ICancelAddNew.
7398
7399 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
7400
7401         * DataGridView.cs: Guard against an exception while painting
7402         if there are no rows.
7403
7404 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
7405
7406         * DataGridView.cs: Implement a bunch of keyboard commands.
7407
7408 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
7409
7410         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
7411         isn't set, don't call OnPaint.  [Fixes bug #375300]
7412
7413 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7414
7415         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
7416         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
7417         hookup the remaining events related to CurrencyManager, and fire
7418         OnListChanged also for the Clear () method.
7419
7420 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7421
7422         * BindingSource.cs: Use Current and Position implementations in
7423         CurrencyManager instead of using our own routines, since we need 
7424         to be in synch with it. Count should NEVER return a -1 value, and 
7425         also report ListChanged events for both simple IList data 
7426         sources (manually) as well for IBindingList ones (by hooking up an
7427         event handler for it).
7428
7429 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7430
7431         * BindingSource.cs: Make one .ctor call the another, to avoid
7432         duplicate code. Add the CurrencyManager property, and also for AddNew
7433         throw the proper exceptions and show better error messages.
7434
7435 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7436
7437         * ComboBox.cs: Only adjust selectedindex if Handle has been
7438         created.  Fixes failing test.
7439
7440 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7441
7442         * ComboBox.cs: Adjust selectedindex if we insert a new item
7443         above the current selectedindex in a sorted ComboBox.
7444         [Fixes bug #374654]
7445
7446 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7447
7448         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
7449         [Fixes bug #374712]
7450
7451 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7452
7453         * DataGridViewTextBoxCell.cs: Implement stuffs.
7454
7455 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7456
7457         * TreeView.cs: Create the scrollbars even earlier to be
7458         double dog certain they are created before they are accessed.
7459
7460 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7461
7462         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
7463
7464 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7465
7466         * ScrollBar.cs: Create an internal safe Value setter so we
7467         won't crash if we try to set a value outside the min and max.
7468         * TextBoxBase.cs: Use safe value setter to guard against a
7469         potential NRE that is being reported by Reflector.
7470
7471 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7472
7473         * TreeView.cs: Create the scrollbars earlier in the constructor
7474         to attempt to guard against an NRE in SetTop in Reflector.
7475
7476 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7477
7478         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
7479         DataGridViewRowCollection.cs: Do not scroll column and row headers,
7480         show messagebox on data format error, use column display index
7481         correctly, make sure HitTest supports new layout stuff,
7482         make sure scrollbars support new layout stuff.
7483
7484 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
7485
7486         * XplatUIX11.cs : Patch by Doug Rintoul.
7487           For some IM engines, keypress events need to delay call
7488           to XPending() and XNextEvent() in the loop so that it
7489           does not mess the orders in XIM commit callback.
7490           Some KeyRelease events such as shift keys need to be
7491           processed both in the IM engine and winforms driver
7492           itself since winforms holds its own state check.
7493
7494           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
7495
7496 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
7497
7498         * X11Keyboard.cs, XplatUIX11.cs :
7499           add primitive support for XIM input support (preedit-
7500           nothing and status-nothing). It requires precise event
7501           capturing (XSelectInput/"filterEvents") and different
7502           call to XFilterEvent against root window.
7503           Get composed string and send dummy WM_IME_COMPOSITION.
7504           Free XIM and XIC instances in finalizer.
7505
7506           (This first patch does not include suggested changes
7507            by Doug Rintoul. It will follow.)
7508
7509 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7510
7511         * DataGridView.cs: When binding to a property, if the property
7512         doesn't have a setter, set the column to readonly.
7513         [Fixes bug #343965]
7514
7515 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7516
7517         * ComboBox.cs: Guard against NRE if an arrow key is hit while
7518         we aren't dropped down.  Support Home/End in DropDownList mode.
7519         [Fixes bug #371990]
7520
7521 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7522
7523         * TreeNodeCollection.cs: Don't increment count until we've
7524         saved our index to return.
7525         [Fixes bug #373603]
7526
7527 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7528
7529         * Label.cs: Add padding to the label's AutoSize calculation.
7530         [Fixes bug #373792]
7531
7532 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7533
7534         * ListBindingHelper.cs: Actually implement GetListName method.
7535
7536 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7537
7538         * BindingSource.cs: Throw the propert expceptions for some methods, as
7539         well as detect the list item type for Add method if DataSource is null.
7540
7541 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7542
7543         * DataGridViewCell.cs: I don't know why I commented this out,
7544         putting it back for now.
7545
7546 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7547
7548         * DataGridViewCell.cs: Remove storage for owning column, just
7549         use column index.
7550         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
7551         * DataGridViewColumnHeaderCell.cs: If the header text has been
7552         explicitly set, return it.
7553         [Fixes bug #325979]
7554
7555 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7556
7557         * DataGridViewRowCollection.cs: Disable row sharing when
7558         using data binding.  Its a great feature, but lets work on
7559         getting DGV usable first before we worry about optimizations.
7560
7561 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7562
7563         * BindingSource.cs: When resetting our internal list, compute list
7564         item type information to be used for indirect list access. Also
7565         implement/tune some properties and methods related to the list access
7566         too.
7567         * ListBindingHelper.cs: Add a stub for GetListName method, used from
7568         BindingSource.
7569
7570 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7571
7572         * DataGridView.cs: If RowCount is increased while ColumnCount
7573         is zero, add a column.  [Fixes bug #331649]
7574
7575 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7576
7577         * DataGridViewRowCollection.cs: When adding new rows for
7578         databinding, make sure they are place before the add row.
7579         [Fixes bug #343961]
7580
7581 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7582
7583         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
7584         instead of Index order.
7585
7586 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7587
7588         * DataGridView.cs: If columns are added by increasing ColumnCount,
7589         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
7590         [Fixes bug #325588]
7591
7592 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7593
7594         * DataGridView.cs: Turn off and on the "new row" when 
7595         AllowUserToAddRows is toggled.  When the handle is created,
7596         set current cell and selected cell/row/col.
7597
7598 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7599
7600         * ComboBox.cs: When navigating the drop down by keyboard, we
7601         need to scroll the list box if our selection moves out of the
7602         currently shown items.  [Fixes bug #371990]
7603
7604 2008-03-24  Luke Page <luke.a.page@gmail.com>
7605
7606         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
7607         on the control. Also now handles unicode compatibility characters and
7608         stores the unicode compatibility length on the stack. Fixes Bugs
7609         #355198 and #366436.
7610
7611 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7612
7613         * BindingSource..cs: Take into account DataMember when re-creating the
7614         List property, and also create a specific kind of list as needed.
7615
7616 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7617
7618         * ListBindingHelper.cs: Add a new case for GetList () method - when we
7619         get an empty IEnumerable, try to detect whether the datamember is
7620         valid or not for that type, if true, return null, and throw exception
7621         otherwise.
7622
7623 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
7624
7625         * ComboBox.cs: Alt-Down should drop down the list, Esc should
7626         retract it.  [Fixes bug #371989]
7627
7628 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
7629
7630         * PropertyGrid.cs: Initialize the sorting button as pushed.
7631
7632 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
7633
7634         * PropertyGrid.cs: 
7635          - Visually select the PropertyTab.
7636          - Filter Properties by Attributes properly.
7637
7638 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7639
7640         * MenuItem.cs: Remove menu item from parent when disposed.
7641         [Fixes bug #372845]
7642
7643 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7644
7645         * ToolBar.cs: Don't reset layout_type if Dock = None.
7646
7647 2008-03-21  Andreia Gaita <avidigal@novell.com> 
7648
7649         * UserControl.cs: Select the first available control when we get focus.
7650           Fixes #372616
7651
7652 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7653
7654         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
7655         the content if we are in edit mode.  [Fixes bug #343964]
7656
7657 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7658
7659         * DataGridViewCell.cs: Fix border painting for column headers.
7660
7661 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7662
7663         * BindingSource.cs: When setting or resetting data source,
7664         use ListBindingHelper.GetList () method, since it will get the list in
7665         case datasource is IListSource.
7666
7667 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
7668
7669         * DataGridViewCell.cs: Implement lots more stuffs.
7670
7671 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7672
7673         * PropertyGridView.cs, GridEntry.cs: Implement support for 
7674         UITypeEditor.IsDropDownResizable.
7675
7676 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
7677
7678         * DataGridViewCell.cs: Remove unused variables, improve how
7679         several of the property getters work.
7680         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
7681         get its size from the parent row/col.
7682
7683 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7684
7685         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
7686         user alters manually the PropertyTabs collection via the 
7687         PropertyTabs property.
7688
7689 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7690
7691         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
7692         new tests for them to be sure to be compatible with .net.
7693
7694 2008-03-20  Andreia Gaita <avidigal@novell.com> 
7695
7696         * WebBrowserBase.cs: Fix attributes, add events
7697         * WebBrowser.cs: Fix Padding signature
7698
7699 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7700
7701         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
7702
7703 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
7704
7705         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
7706         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
7707         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
7708         passes the new suite of tests for it.
7709
7710 2008-03-18  Andreia Gaita <avidigal@novell.com> 
7711
7712         * WebBrowser.cs: Add missing attributes, missing Padding and
7713           DefaultSize properties, remove extraneous getters
7714
7715 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7716
7717         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
7718         method overloads.
7719
7720 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7721
7722         * ComboBox.cs: Move resetting the selected index to keypress
7723         instead of textchanged.  Changing the text programmatically
7724         should not trigger resetting the selected index.  Fixes test.
7725
7726 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7727
7728         * ComboBox.cs: When the user types into the textbox, reset
7729         the selected index to -1.  [Fixes bug #371672]
7730
7731 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7732
7733         * FileDialog.cs: Support Control-A for selecting everything
7734         in an OpenFileDialog.  [Fixes bug #371564]
7735
7736 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
7737
7738         * DataGridView.cs: When row/column visible/height properties
7739         change, invalidate.  Take the NIEX out of InvalidateRow/Column
7740         etc.  We don't support them yet, but we can just invalidate
7741         everything until we do support them.  (Added MonoTODO).  Set
7742         proper control styles.
7743         * DataGridViewRow.cs: Don't call PaintHeader if row headers
7744         are turned off. 
7745
7746 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7747
7748         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
7749
7750 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7751
7752         * DataGridViewRow.cs: Only paint the white background in
7753         cell bounds, the row bounds extends past the cells if the 
7754         grid width isn't as wide as the DGV.
7755
7756 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7757
7758         * DataGridView*: Completely revamp the drawing to match the
7759         public API.  Our grids now look better, and call all the
7760         appropriate methods and event to allow users to override
7761         the painting and do their own.
7762
7763 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7764
7765         * ListBindingHelper.cs: Implement 2.0 GetList methods.
7766
7767 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7768
7769         * DataGridView.cs: Implement BorderStyle.
7770
7771 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7772
7773         * FileDialog.cs: Apply patch from Andy Hume: Any time we
7774         are comparing attributes, make sure we only look at the
7775         one we are interested.  These calls were failing if there
7776         were more than one attribute.
7777         [Fixes bug #370385]
7778
7779 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7780
7781         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
7782
7783 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7784
7785         * PageSetupDialog.cs: Stub EnableMetric.
7786         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
7787         * PrintPreviewDialog.cs: Add ProcessDialogKey,
7788         ProcessTabKey.
7789
7790 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7791
7792         * MonthCalendar.cs: Remove unused variable.
7793
7794 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7795
7796         * DataGridView*.cs: corcompare stuffs.
7797
7798 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7799
7800         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
7801         The savings aren't worth the extra code to fix the optimization.
7802         [Fixes bug #368585]
7803
7804 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7805
7806         * ToolBar.cs: Always call base.Dock in the Dock override so that
7807         Control's layout_type gets reset correctly.
7808         [Fixes bug #368882]
7809
7810 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
7811
7812         * X11Dnd.cs: End DnD operation also for the middle mouse button.
7813
7814 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7815
7816         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
7817         at the same time we do explicit ones, because we have to give all
7818         other controls on the container a chance to handle explicit ones
7819         first.  If no one has an explicit mnemonic, then we can let the
7820         MenuStrip have a shot at implicit mnemonics.
7821         * MenuStrip.cs: Create an implicit mnemonic function.
7822         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
7823         mnemonics for MenuStrips.
7824         [Fixes bug #368493]
7825
7826 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7827
7828         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
7829         DataGridColumnStyle.cs: corcompare stuffs.
7830
7831 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7832
7833         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
7834         Details - This is needed after we added the bits to use any available
7835         column also for List and SmallIcon view. 
7836
7837 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7838
7839         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
7840         at the proper place, not only when changing SelectedIndex and changing
7841         the selection using keys/mouse, as .net does.
7842
7843 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7844
7845         * ControlBindingsCollection.cs: Implement last 2.0
7846         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
7847         in the new 2.0 Add methods.
7848
7849 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7850
7851         * ListBox.cs: When calling SelectedIndexCollection.Clear,
7852         return if no items are previously selected - this is done to avoid 
7853         firing OnSelectedIndexChanged without need to do so. Also,
7854         when creating handle ensure that the focused item is visible (as
7855         .net does).
7856
7857 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7858
7859         * ListBox.cs: Rewrote/refactored most of selection code. We require
7860         the following things in selection: a) keep selection sorted (both
7861         indices and items), b) SelectedIndices automatically detect the
7862         selection mode, c) SelectedIndex should be the first selected item
7863         index, d) Need to Focus/adjust scroll bar when selecting a new item,
7864         not only for SelectedIndex, which is specially important in Multi*
7865         selection modes. To achieve this we are moving the selection core to
7866         SelectedIndexCollection and make depend all selection modifications on
7867         it.
7868         Fixes #366438.
7869
7870 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7871
7872         * ToolStrip.cs: Enable implicit mnemonics for drop down
7873         menu strips.  [Fixes part of bug #367692]
7874
7875 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7876
7877         corcompare - fix parameter names [stragglers].
7878         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
7879         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
7880         TabControl.cs.
7881
7882 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7883
7884         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
7885         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
7886         mnemonic, let the ToolStripManager have it even if it doesn't
7887         have a matching mnemonic.
7888         [Fixes bug #367499]
7889
7890 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7891
7892         corcompare - fix warning about implicit implementation
7893         * ToolStrip.cs: Add IToolStripData interface.
7894         * IToolStripData.cs: Add.
7895
7896 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7897
7898         corcompare - fix warning about implicit implementation
7899         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
7900         * IBounds.cs: Add.
7901
7902 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7903
7904         corcompare - fix parameter names [N-Z].
7905         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
7906         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
7907         PropertyManager.cs, RichTextBox.cs,
7908         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
7909         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
7910         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
7911         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
7912         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
7913         ToolStripContentPanel.cs, ToolStripDropDown.cs,
7914         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
7915         ToolStripPanel.cs, ToolStripSeparator.cs,
7916         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
7917         UICuesEventHandler.cs, UpDownBase.cs.
7918
7919 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7920
7921         corcompare - fix parameter names [G-M].
7922         GridColumnStylesCollection.cs, GridItemCollection.cs,
7923         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
7924         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
7925         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
7926         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
7927         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
7928
7929 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7930
7931         corcompare - fix parameter names [A-F].
7932         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
7933         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
7934         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
7935         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
7936         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
7937         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
7938         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
7939
7940 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7941
7942         * GridEntry.cs: Do not convert not only if the types match, 
7943         but also if the property type is assigneable from the value's
7944         type.
7945         [Fixes bug #366566]
7946
7947 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7948
7949         * PropertyGridView.cs: 
7950          - Subscribe to the listbox only once and not everytime.
7951          - Update the textbox even if SetValue fails.
7952          - Close the listbox before calling TrySetValue just in case.
7953          [Fixes bug #366569]
7954
7955 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
7956
7957         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
7958
7959 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7960
7961         * ListView.cs: Implement support for custom column width based on
7962         Columns collection (we were previously using this collection only
7963         with Details view).
7964         Fixes #364484.
7965
7966 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7967
7968         * ListViewItem.cs: For Tile view, always set bounds for the first
7969         subitem (which is the main one), and also don't let Width be larger
7970         than ListView.TileSize.Width. Improve code readibility also.
7971         * ThemeWin32Classic.cs: When painting the ListViewItem instances
7972         in Tile view, _always_ use the NoWrap flag.
7973         Fixes #360798.
7974
7975 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
7976
7977         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
7978         in case.
7979         * GridEntry.cs: For MS compitability make all child properties 
7980         readonly if the parent is readonly. Ugh.
7981         [Fixes bug #365945 and #365944]
7982
7983 2008-02-29  Andreia Gaita <avidigal@novell.com> 
7984
7985         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
7986           relative to the history
7987
7988 2008-02-29  Andreia Gaita <avidigal@novell.com>
7989
7990         * HtmlElement.cs: More handlers for mouse and key events
7991
7992 2008-02-28  Andreia Gaita <avidigal@novell.com>
7993
7994         * WebBrowserBase.cs: MouseClick sig changed.
7995         * HtmlHistory.cs: Implement history navigation
7996         * HtmlElement.cs: Add event handlers, and connect them.
7997
7998 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
7999
8000         * GridEntry.cs: 
8001          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
8002            so that DisplayNameAttribute doesn't get ignored.
8003          - Check for ParenthesizeNameAttribute and parenthesize the Label.
8004          - Add support for PasswordPropertyTextAttribute
8005         * PropertyGridView.cs: Check if an entry is a password.
8006         [Fixes bugs #365589, #365586, #365588]
8007
8008 2008-02-28  Andreia Gaita <avidigal@novell.com>
8009
8010         * PropertyGridView.cs: Revert the message filtering change, as we
8011         need it to block after all. Remove block parameter, unnecessary.
8012
8013 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
8014
8015         * UserControl.cs: Better implementation of GetPreferredSize.
8016         First step to fixing bug #361441.
8017
8018 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8019
8020         * Binding.cs: Actually implement data binding support for 
8021         classes implementing IBindableComponent.
8022         * ControlBindingsCollection.cs: Likewise.
8023
8024 2008-02-26  Andreia Gaita  <avidigal@novell.com>
8025
8026         * PropertyGridView.cs: Use a message filter to check when to 
8027         close the dropdown
8028
8029 2008-02-26  Andreia Gaita  <avidigal@novell.com>
8030
8031         * Application.cs: Change the message_filters loop so a filter 
8032         can be removed while looping.
8033
8034 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
8035
8036         * GridEntry.cs: Optimization in ToggleValue so that it caches
8037         the current value.
8038         * PropertyGridView.cs: An optimization so that the property isn't 
8039         re-read twice for each StandardValue added to the drop-down menu.
8040         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
8041         license.
8042         [Fixes bug #362755]
8043
8044 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
8045
8046         * Application.cs: Apply patch from Justin Cherniak to match
8047         MS better for ProductName, ProductVersion, and CompanyName.
8048         [Fixes bug #361709]
8049
8050 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8051
8052         * Binding.cs: Actually implement 2.0 NullValue property. Also
8053         when changing the formatting related properties, only update the state
8054         if formatting_enabled is true (we don't mind otherwise).
8055
8056 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
8057
8058         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
8059         [Fixes bug #364486]
8060
8061 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
8062
8063         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
8064         of GetType on the current value as it uses reflection to 
8065         determine the type. This fixes the case where the new value is 
8066         null. 
8067
8068 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
8069
8070         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
8071         past the view.
8072
8073 2008-02-24  Luke Page  <luke.a.page@gmail.com>
8074
8075         * Line.cs, TextControl.cs: Implement offset x and y so that a
8076         document doesn't have to begin  at (0,0) on the viewpoint.
8077         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
8078         bars and switches the text alignment (and therefore is now
8079         implemented for textbox). Fixes #321383.
8080
8081 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8082
8083         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
8084         properties. Also when changing FormattingEnabled update the control
8085         property -as .Net does-.
8086
8087 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
8088
8089         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
8090         * Binding.cs: Add stubs for the overloads of the Add method in
8091         CBCollection.
8092
8093 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8094
8095         * Binding.cs: PullData () returns a false value if we got an exception.
8096         Also when validating the control and we get an error, instead of
8097         setting the value of the previous one, cancel the event (tested in 1.1
8098         and 2.0).
8099
8100 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
8101
8102         * TreeView.cs: Make selected_node and highlighted_node internal.
8103         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
8104         to null when Nodes.Clear is called.
8105         [Fixes bug #363884]
8106
8107 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
8108
8109         * FontDialog.cs: Ensure that when the Font is set in code,
8110         all the gui pieces are updated accordingly.
8111         [Fixes bug #361020]
8112
8113 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
8114
8115         * TextRenderer.cs: Respect proposed size for MeasureString.
8116         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
8117         autosize, use a proposed width to force wrapping for long text.
8118         [Fixes bug #360981]
8119
8120 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
8121
8122         * TreeView.cs: Factor in checkboxes = false and state images in
8123         to HitTest.  [Fixes bug #363360]
8124
8125 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
8126
8127         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
8128         when drawing the selected range.
8129         [Fixes bug #363648]
8130
8131 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
8132
8133         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
8134         ResizeRedraw control styles.
8135         [Fixes bug #363555]
8136
8137 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
8138
8139         * TreeView.cs: StateImages are basically custom checkboxes, so
8140         factor their size the same as real checkboxes when determining
8141         what got clicked.
8142         [Fixes bug #363367]
8143
8144 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
8145
8146         * MessageBox.cs: Make the message box wider if the form caption
8147         is longer than the text in the form.
8148         [Fixes bug #361137]
8149
8150 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
8151
8152         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
8153
8154 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
8155
8156         * TreeNode.cs: Guard against an NRE when the parent's
8157         StateImageList hasn't been set.
8158         [Fixes bug #363353]
8159
8160 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
8161
8162         * SplitContainer.cs: Add SupportsTransparentBackColor and
8163         OptimizedDoubleBuffering control styles.
8164         [Fixes bug #363303]
8165
8166 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
8167
8168         * Application.cs: For the app data paths and the registry key paths,
8169         ensure they are created before returning them to the user.
8170         [Fixes bug #361709]
8171
8172 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
8173
8174         * Application.cs: Guard against an NRE in CompanyName and
8175         ProductName.
8176
8177 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
8178
8179         * Application.cs: For CompanyName, ProductName, and ProductVersion,
8180         make sure we handle all three cases correctly: attribute is present,
8181         attribute is present but is an empty string, and attribute is not
8182         present.
8183
8184 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
8185
8186         * PropertyGridView.cs: 
8187          - Fix a NRE that caused a test failure
8188          - Another performance improvement - cache the standard values
8189          listbox.
8190
8191 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
8192
8193         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
8194         code paths.
8195
8196 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
8197
8198         * PropertyGridView.cs: Fix a big performance bug.
8199
8200 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
8201
8202         * SelectionRange.cs: Apply patch from Andy Hume to make
8203         constructor behavior more accurate.  [Fixes bug #362117]
8204
8205 2008-02-19  Andreia Gaita <avidigal@novell.com> 
8206
8207         * Control.cs: Added a new flag is_disposing to track if the
8208         window is currently in the process of being disposed of.
8209         This is used so that, when firing visibility changes triggered
8210         by unparenting controls during Dispose, the control doesn't
8211         get created again.      
8212
8213 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
8214
8215         * ComboBox.cs: Set height to preferred height when the handle
8216         is created.  [Fixes bug #360862]
8217
8218 2008-02-18  Andreia Gaita <avidigal@novell.com>
8219
8220         * XplatUIX11.cs: Create FosterParent with border width at 0.
8221         With the previous value of 4, everytime a control got reparented
8222         from parent = null, it's location would be shifted right and 
8223         down by 4, since these coordinates would be offset by the 
8224         FosterParent's border width.
8225
8226 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
8227
8228         * Control.cs: During diposing firstly remove ourselfes from
8229         the parent and *then* destroy our handle, because removing
8230         ourselfes from the parent controls collection causes 
8231         VisibilityChange, etc events, which require a handle and end
8232         up recreating the control.
8233
8234 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
8235
8236         * GridEntry.cs: Set expanded state before notifying that the
8237         expansion has taken place.
8238         * PropertyGridView.cs:
8239          - Set the propertygridtextbox text to the selected 
8240          StandardValue before proceeding to setting it.
8241          - Scrolling bugfixes.
8242
8243 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
8244
8245         * GridEntry.cs:
8246          - Fix ValueText to not return null.
8247          - Fix conversion error reporting to actually happen.
8248         * PropertyGridView.cs: Set entry only if the text has changed.
8249         [Fixes bug #362116]
8250
8251 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
8252
8253         * GridEntry.cs: 
8254          - Fix handling of a null current value.
8255          - Swallow editor exceptions.
8256         [Fixes bug #362114]
8257
8258 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
8259
8260         * PropertyGrid.cs: Clear current items first thing before 
8261         repopulating subitems.
8262         * GridEntry.cs: 
8263          - Handle null StandardValuesCollection.
8264          - Mark as not editable if there is no PropertyDescriptor and
8265          if the Converter cannot convert from string.
8266         [Part of fix for bugs #360666 and #358332]
8267
8268 2008-02-15  Luke Page  <luke.a.page@gmail.com>
8269         * MaskedTextBox.cs: Now skips non editable characters after a
8270         character has been entered and we are progressing to the next
8271         position in the MaskedTextBox.
8272
8273 2008-02-15  Luke Page  <luke.a.page@gmail.com>
8274         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
8275         that it changes the selection rather than just repositioning the
8276         cursor. Fixes Bug #360873.
8277
8278 2008-02-15  Luke Page  <luke.a.page@gmail.com>
8279         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
8280         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
8281         correctly. See #359330
8282
8283 2008-02-15  Andreia Gaita <avidigal@novell.com>
8284
8285         * XplatUIX11.cs: If the handle is null when posting a message, use the
8286         current thread queue to post instead. Fixes #332409
8287
8288         * SendKeys.cs: Slight optimization
8289
8290 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
8291
8292         * PropertyGrid.cs, PropertyGridView.cs:
8293         Fix multiple scrolling and sizing issues.
8294         [Fixes bug #359199]
8295
8296 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
8297
8298         * PropertyGridView.cs: Ensure that drop down editors are shown
8299         in the WorkingArea of the screen.
8300         [Fixes bug #359807]
8301
8302 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
8303
8304         * GridEntry.cs: Fail silently when UITypeEditor is missing.
8305         [Fixes bug #360666]
8306
8307 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8308
8309         * Binding.cs: Implement 2.0 DataSourceNullValue property.
8310
8311 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
8312
8313         * PropertyGridView.cs:
8314          - Clear the controls in the drop down form after it is hidden.
8315          - Fix Width sizing of the dropdown editors to match MSFT.
8316
8317 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
8318
8319         * PropertyGridView.cs: 
8320          - Fix height for drawing the grid entry
8321          text value, so that it clips multiline text properly.
8322          - Fix unfocusing to match MSFT.
8323
8324 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
8325
8326         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
8327         Fixes a bug where on repopulation after value changed items become
8328         expandable.
8329
8330 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8331
8332         * Binding.cs: For the 2.0 profile, look for a 
8333         'PropertyChanged' event in the target control, and add checks for
8334         DataSourceUpdateMode property to change -or not- the data source
8335         from validation/control property change.
8336
8337 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
8338
8339         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
8340           not compare struct with null in 2.0).
8341
8342 2008-02-10  Luke Page <luke.a.page@gmail.com>
8343
8344         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
8345         updates the provider and if not using a provider, uses the internal document
8346         class implementation of password char. Also when showing text, uses display string
8347         from the provider, instead of the actual text.
8348
8349 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8350
8351         * Binding.cs: Ooooops, forgot to take into account the data_source
8352         and binding_member_info null case (it was breaking the Binding tests).
8353
8354 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8355
8356         * Binding.cs: Implement support for data source changes exposed by
8357         'PropertyNameChanged' events, and update the control property as
8358         needed.
8359
8360 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8361
8362         * Binding.cs: Implement 2.0 WriteValue method.
8363
8364 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
8365
8366         Commit patch from James Purcell for better AutoScale implementation:
8367
8368         * ScaleControl should call GetScaledBounds with the control's total size rather
8369         than client size.  GetScaledBounds should handle ignoring the borders in its
8370         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
8371         (for the most part they just call the base code now since that is fixed).
8372         * Added ScaleChildrenInternal to allow controls to disable scaling of children
8373         without having to override ScaleChildren (since none of .NET's controls do). 
8374         This is required for most controls in Mono that have scrollbars to prevent the
8375         scrollbars from being moved/resized.
8376         * Nested ContainerControls can have a different scale mode than their parent. 
8377         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
8378         designer produce different results both of which look incorrect).
8379         * Default AutoScaleMode for ContainerControl should be Inherit.
8380         * Simplified workaround for ComboBox scaling issue.
8381         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
8382         1.0 style auto scaling should scale the whole control's size instead of
8383         ignoring the borders (except for Form) and the rounding is done differently to
8384         preserve control alignment.
8385         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
8386         GetAutoScaleSize.
8387         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
8388         * CurrentAutoScaleDimensions should round the estimated character width instead
8389         of truncating.
8390         * ListBox's GetScaledBounds should always use the height it was set to instead
8391         of the height that was passed in.  This prevents rounding errors from
8392         accumulating quickly with IntegralHeight.
8393         [Bug #359098]
8394
8395 2008-02-08  Andreia Gaita <avidigal@novell.com>
8396
8397         * Form.cs: Add a null check (darn it). 
8398
8399 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
8400
8401         * MdiClient.cs: Make sure the requesting form actually owns the
8402         control menu items before removing them.  Also, use
8403         Suspend/ResumeLayout when adding or removing items so we only
8404         layout once.
8405         [Fixes bug #359887]
8406
8407 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
8408
8409         * Control.cs: Guard against an NRE in ShowFocusCues.
8410         [Fixes bug #359830]
8411
8412 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8413
8414         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
8415         property, as well as stubbing DataSourceUpdateMode.
8416
8417 2008-02-08  Andreia Gaita <avidigal@novell.com>
8418
8419         * Form.cs: When closing forms, get focus back to the active control of the
8420         active form. [Fixes #341314, corner case]
8421         
8422 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8423
8424         * MdiClient.cs: After we move the scrollbars, invalidate the NC
8425         area, so any old scrollbar artifacts are cleaned up.
8426         [Fixes bug #336305]
8427
8428 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8429
8430         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
8431         for our menus, display that control box menu instead of the 1.1
8432         menu one.
8433
8434 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8435
8436         * MdiControlStrip.cs: Add property to access the mdi form tied to
8437         each toolstripitem.
8438         * MdiClient.cs: Be smarter about removing and adding toolstripitems
8439         to the implicitly merged menu.  Every time we clicked the form, items
8440         were getting removed and the re-added, causing the form to jump around
8441         as the menu resized.
8442
8443 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8444
8445         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
8446         was being reset by the implicit menu merge for menustrips.
8447         [Fixes bug #336296]
8448
8449 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8450
8451         * Form.cs: Don't do the previous change when WindowState = Normal,
8452         or it messes up where the window is placed.  Fixes test failure.
8453
8454 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8455
8456         * Form.cs: When becoming visible, if we are an MDI child, call
8457         SetWindowState with a dummy old_state so that changes will actually
8458         be made.
8459         [Fixes the 2nd part of bug #325473]
8460
8461 2008-02-07  Andreia Gaita <avidigal@novell.com>
8462
8463         * Control.cs: Reset properties to their pre parent-change values in case
8464         the new parent == null (in which case we're basically removing the control, 
8465         and don't want any events fired due to fake property changes)
8466         [Fixes #355850]
8467
8468 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
8469
8470         * PropertyGridView.cs: 
8471          - Refactor SetValue to allow setting the value
8472         when a custom editor is used, but the entry is not editable.
8473          - Remove the custom editor control on CloseDropDown.
8474         [Fixes #359196]
8475
8476 2008-02-06  Andreia Gaita <avidigal@novell.com>
8477
8478         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
8479         reflection only on 1.1, this property is public on system.drawing on 2.0.
8480         Fixed #359247
8481
8482 2008-02-06  Andreia Gaita  <avidigal@novell.com>
8483         
8484         * WebBrowser.cs: Do a normal page refresh by default.
8485
8486 2008-02-05  Andreia Gaita  <avidigal@novell.com>
8487
8488         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
8489         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
8490         platforms. Fixes #359036
8491         
8492         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
8493         platform-specific flags.
8494
8495 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8496
8497         * Binding.cs: Add 2.0 BindableComponent property - just return control
8498         by now.
8499
8500 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
8501
8502         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
8503         Jonathan for this patch. Fixes #358442.
8504
8505 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
8506
8507         * Form.cs: If we change the active MDI child form, let the others
8508         know they need to repaint their title bar so it will appear inactive.
8509         [Fixes part 1 of bug #325473]
8510
8511 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
8512
8513          * PropertyGridView.cs: Do not trucate custom editors' width
8514          and align them to the left.
8515          [Fixes #358353 and #358349]
8516
8517 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8518
8519         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
8520         Also fix the arguments passed to CollectionChangeEventArgs in the
8521         related methods.
8522
8523 2008-02-04  Geoff Norton  <gnorton@novell.com>
8524
8525         * Hwnd.cs: The conversion to Quartz coordinates happens in
8526         System.Drawing.  Removing this translation from here.
8527
8528 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
8529
8530          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
8531          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
8532          GridItemCollection.cs:
8533          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
8534
8535 2008-02-04  Geoff Norton  <gnorton@novell.com>
8536
8537         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
8538         SYSKEYUP if any other key has been pressed in the mean time.
8539         Fixes #324404
8540
8541 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8542
8543         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
8544         when the item in current position is different than 0. Also, save the
8545         item index in the beginning of the operation, instead of getting the
8546         index of the item when the event is actually performed. Lastly clean
8547         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
8548         triggered.
8549         [Fixes #357873]
8550
8551 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8552
8553         * Form.cs: Alt-Minus for MDI children system menu should work
8554         with both the minus keys on the keyboard.
8555         [Fixes bug #336295]
8556
8557 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8558
8559         * Control.cs: Don't invalidate on region change.  The WM should
8560         take care of this automagically.  Keeps us out of an infinite
8561         paint loop if someone changes the Region in the OnPaint.
8562         [Fixes bug #358327]
8563
8564 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
8565
8566          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
8567
8568 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8569
8570         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
8571         down the MonthCalendar only on F4, not Alt+F4.
8572         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
8573         [Fixes bug #358340]
8574
8575 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8576
8577         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
8578         if its part of a DateTimePicker, else, use the back color.
8579         [Fixes bug #358339]
8580
8581 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8582
8583         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
8584         [Fixes bug #358342]
8585
8586 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8587
8588         * CurrencyManager.cs: When we get a ListChanged event from our source,
8589         always fire our own ListChanged event, as .Net does.
8590
8591 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8592
8593         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
8594         #358379.
8595
8596 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8597
8598         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
8599         property. Removed if for richtext property that was always true.
8600         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
8601
8602 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8603
8604         * TextBoxBase.cs - commited patch from James Purcell that
8605         correctly sets the FixedHeight control style when the MultiLine
8606         property is changed on a TextBox control. Fixes bug 358229.
8607
8608 2008-02-02  Luke Page  <luke.a.page@gmail.com>
8609
8610         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
8611         Fixes bug 351938 - caret is positioned correctly when drawn
8612         and when calculating textual position of caret, no longer
8613         has a NRE in certain situations.
8614         
8615 2008-02-01  Geoff Norton  <gnorton@novell.com>
8616
8617         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
8618         get that region removed from the paint event.
8619         * XplatUICarbon.cs: Remove the window mapping after disposing of 
8620         window.  Prevents a crash with handle reuse.  Optimize exposes
8621         only onto visible windows (rare; but possible).
8622
8623 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8624
8625         * UpDownBase.cs: Make sure the internal textbox calls the base's
8626         OnMouseDown and OnMouseUp so the textbox will function correctly.
8627         There were notes saying it doesn't chain up, but its an internal
8628         class, so our implementation may differ.
8629         [Fixes bug #357482]
8630
8631 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8632
8633         * ListBox.cs: Fix a logic error and don't process MouseDown
8634         for mouse buttons other than Left.
8635
8636 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8637
8638         * Control.cs: Remove HeightInternal.
8639         * ListBox.cs: Commit patch from James Purcell that correctly
8640         calculates heights for ListBoxen.
8641         [Fixes bug #357152]
8642
8643 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8644
8645         * Label.cs: Apply patch from James Purcell that corrects the 
8646         signature of the AutoSize property.
8647         [Fixes bug #357605]
8648
8649 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8650
8651         * ListBox.cs: Don't throw [Mouse]Click events for buttons
8652         other than the left mouse button.
8653
8654 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
8655
8656         * Control.cs: Remove my awesome optimization as it caused some
8657         regressions with control ordering.  :(
8658         [Fixes bug #357467]
8659
8660 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
8661
8662          * PropertyGridView.cs: Fix a NRE on double click when there is no
8663          selected object.
8664
8665 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8666
8667         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
8668
8669 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
8670
8671         * ListBox.cs: Call MouseClick and MouseDoubleClick.
8672         [Fixes bug #357146]
8673
8674 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8675
8676         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
8677         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
8678         instead of Hwnd.bmp_g.
8679
8680 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8681
8682         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
8683         Use the Hwnd one instead.
8684
8685 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8686
8687         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
8688
8689 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8690
8691         * Form.cs: corcompare for RestoreBounds.
8692
8693 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8694
8695         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
8696
8697 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8698
8699         * Form.cs: Handle Alt-Minus for MDI children forms.
8700         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
8701         Add mnemonics to the control menu.
8702         [Fixes bug #336295]
8703
8704 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8705
8706         * Binding.cs: Initial implementation bits of FormattingEnabled
8707         property and BindingComplete event (2.0). 
8708         * BindingCompleteEventArgs.cs: Internal methods for setting error text
8709         and exception.
8710
8711 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8712
8713         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
8714         table.Location.  [Fixes bug #354672]
8715
8716 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8717
8718         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
8719         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
8720
8721 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8722
8723         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
8724         of doing all the re-bound work, just invalidate and call SetControlText 
8725         to set the updated text of selected item to our textbox.
8726         Fixes #333750.
8727
8728 2008-01-28  Andreia Gaita <avidigal@novell.com>
8729
8730         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
8731         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
8732         missing properties and methods. Add Load, Unload, Error, GotFocus, 
8733         LostFocus, Resize, Scroll events (only load and unload are connected)
8734
8735 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
8736
8737         * AccessibleObject.cs: Modified argument names to match MS.
8738         * Button.cs: Modified argument names to match MS.
8739         * BindingContext.cs: Modified argument names to match MS.
8740         * BindingMemberInfo.cs: Modified argument names to match MS.
8741         * ButtonBase.cs: Modified argument names to match MS.
8742         * ComboBox.cs: Modified argument names to match MS.
8743         * Control.cs: Modified argument names to match MS.
8744         * CheckedListBox.cs: Modified argument names to match MS.
8745         * CommonDialog.cs: Modified argument names to match MS.
8746         * DataGrid.cs: Modified argument names to match MS.
8747         * CursorConverter.cs: Modified argument names to match MS.
8748         * ControlPaint.cs: Modified argument names to match MS.
8749         * CheckBox.cs: Modified argument names to match MS.
8750         * ControlBindingsCollection.cs: Modified argument names to match MS.
8751         * BindingSource.cs: Modified argument names to match MS.
8752         * DataFormats.cs: Modified argument names to match MS.
8753         * ContainerControl.cs: Modified argument names to match MS.
8754         * CurrencyManager.cs: Modified argument names to match MS.
8755         * Application.cs: Modified argument names to match MS.
8756         * ContextMenuStrip.cs: Modified argument names to match MS.
8757         * ContextMenu.cs: Modified argument names to match MS.
8758         * BindingManagerBase.cs: Modified argument names to match MS.
8759         * WindowsFormsSection.cs: Fixed line ending.    
8760
8761 2008-01-27  Andreia Gaita <avidigal@novell.com>
8762
8763         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
8764         detecting that the dropdown toolwindow is hidden. EndLoop outside the
8765         while.
8766
8767 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
8768
8769         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
8770         MS. Code formatting.
8771
8772 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8773
8774         * Binding.cs: Don't avoid the Format event if the control 
8775         property type is object. Also, if the value retrieved by 
8776         the data source is null _and_ the control proeprty type 
8777         is object, return Convert.DBNull (match .Net).
8778         Fixes part of #324286.
8779
8780 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8781
8782         * ListControl.cs: Since we are getting two BinginContextChanged events
8783         for the same binding context instance (when the control is added to
8784         form, and when the form is actually shown), take it into account only the
8785         first time for a given binding context instance.
8786         Fixes part of #324286.
8787
8788 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8789
8790          * PropertryGridView.cs: Ops.
8791
8792 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8793
8794          * PropertyGridView.cs: Close dropdown form if the owner form is
8795          moved or minimized.
8796          [Fixes bug #322446]
8797
8798 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
8799
8800          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
8801          RootGridEntry.cs, CategoryGridEntry.cs:
8802          PropertyGrid rewrite.
8803          - Rewrite all of the control logic in PropertyGrid.
8804          - Rewrite all of the ComponentModel logic in GridEntry.
8805          - Rewrite all UI work in PropertyGridView.
8806          - Many bugfixes, etc.
8807
8808 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
8809
8810         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
8811         when all contained controls are autosize or dock-fill.  Also take into
8812         account when the total percentage of column/row sizes is not 100%.
8813         [Fixes bug #354672]
8814
8815 2008-01-24  Andreia Gaita <avidigal@novell.com>
8816
8817         * HtmlDocument.cs:
8818         - Save a reference to the IDocument in the instance and
8819           use that one instead of going to WebHost.Document; the document that the 
8820           WebHost returns might not be the right one (in case of frames).
8821         - Use the hashcode returned from the IDocument interface.
8822         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
8823           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
8824           LinkColor, Url, VisitedColor, Window
8825
8826         * HtmlElement.cs: 
8827         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
8828           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
8829           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
8830           SetAttribute, Equals, equality operators.
8831         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
8832           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
8833         
8834         * HtmlElementCollection.cs: Change implementation to use a generic
8835         collection. Implemented Enumerator and CopyTo
8836
8837         * HtmlHistory.cs: Add constructor, no implementation yet.
8838
8839         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
8840         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
8841         Equals, equality operators.
8842
8843         * HtmlWindowCollection.cs: Implemented. 
8844
8845         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
8846         has been deprecated).
8847
8848         * WebBrowserBase.cs: Use Completed event to track document loading
8849         (Navigated has been deprecated)
8850
8851 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
8852
8853         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
8854         level MenuItems do not respect tabs.
8855         [Fixes bug #355196]
8856
8857 2008-01-23  Geoff Norton  <gnorton@novell.com>
8858
8859         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
8860         FormWindowState.  Finished fixing Fullscreen windows on Carbon
8861
8862 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8863
8864         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
8865         be used as grab_control. Also save status of capture before show ContextMenu
8866         and restore it after close.
8867
8868 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8869
8870         * Control.cs: Internal FindRootParent method added to return high control
8871         in parent tree.
8872
8873 2008-01-23  Geoff Norton  <gnorton@novell.com>
8874
8875         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
8876         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
8877         it work again.  Handle HITTEST events.
8878
8879 2008-01-23  Geoff Norton  <gnorton@novell.com>
8880
8881         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
8882         a crash in certain cases.  Support for fullscreen windows in certain cases.
8883
8884 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
8885
8886         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
8887         [Fixes bug #355703]
8888
8889 2008-01-23  Geoff Norton  <gnorton@novell.com>
8890         
8891         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
8892
8893 2008-01-23  Geoff Norton  <gnorton@novell.com>
8894
8895         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
8896
8897 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8898
8899         * SplitContainer.cs: Remove unused declarations.
8900         * Binding.cs: Remove unused declarations.
8901
8902 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8903
8904         * Form.cs: Remove unused declaration of 'active' in Activate method.
8905         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
8906         prevent compilation warnings.
8907         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
8908         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
8909         * Bindings.cs: Remove unused formatting_enabled declaration.
8910         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8911         warnings.
8912         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8913         warnings.
8914         * PropertyGridView.cs: Remove usused 'ex' declaration.
8915         * DataGridView.cs: Remove unused declarations.
8916
8917 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8918
8919         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
8920         
8921         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
8922         to Control class, it makes possible to grab menu to controls that can't 
8923         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
8924         WmMouseMove removed since it was used only to track menu events.
8925
8926         * Control.cs:
8927         - Moved all active_tracker stuff from Form.
8928         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
8929         can call this method instead of reimplement all necessary code handle for
8930         menu tracker.
8931         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
8932         and WmMouseMove).
8933         
8934         * MenuAPI.cs: 
8935         - Remove special handle to ToolStripOverflow, now we can grab menu to 
8936         controls that can't reach Form using parent tree.
8937         - Change type of grab_control from Form to Control.
8938
8939 2008-01-22  Geoff Norton  <gnorton@novell.com>
8940
8941         * TextBoxBase.cs: Split up the sizing of controls and placing of 
8942         controls.  Fixes a bug where scrollbars in Reflector could be sized
8943         wrong and have non-working thumbers.
8944
8945 2008-01-23  Geoff Norton  <gnorton@novell.com>
8946
8947         * XplatUI.cs: Refactor environment variables to default support to the
8948         Carbon driver on the Mac.
8949
8950 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8951
8952         * Label.cs: Uses new LabelPainter for drawing operations.
8953         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
8954         * Theme.cs: DrawLabel and LabelDefaultSize removed.
8955
8956 2008-01-22  Geoff Norton  <gnorton@novell.com>
8957
8958         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
8959
8960 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8961
8962         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
8963         through the normal flat button code and don't draw the checkbox glyph.
8964         * Theme.cs: Button->ButtonBase signature change.
8965         [Fixes bug #324755]
8966
8967 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8968
8969         * LinkLabel.cs: Uses new class LinkLabelPainter.
8970
8971 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8972
8973         * MessageBox.cs: Adjust right border space, we don't need to add 
8974         "space_border*2" two times.
8975
8976 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8977
8978         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
8979         becomes a wrapper around Padding.
8980         [Fixes a part of bug #354676]
8981
8982 2008-01-22 Geoff Norton  <gnorton@novell.com>
8983
8984         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
8985         acquired.  Also ensure the buffer is large enough to grab the header
8986         we need on linux boxes.
8987
8988 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8989
8990         * Control.cs: Implement a custom enumerator so people can delete
8991         from the Controls collection while in a foreach.
8992         [Fixes bug #355074]
8993
8994 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8995
8996          * PropertyGridView.cs: Fix focusing behavior:
8997          - Tab should focus the grid text box.
8998          - Clicking on the labels shouldn't focus the grid text box.
8999
9000 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
9001
9002          * PropertyGridView.cs: IsValueTypeGridItem should return true 
9003          for Arrays as well.
9004
9005 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
9006
9007          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
9008           - Renamed GridEntry.SelectedObjects to TargetObjects to better
9009           reflect the property name role.
9010           - PropertyGrid.GetTarget is not required as the target is known
9011           (TargetObjects).
9012           - Setting values will handle value types as a special case now and
9013           populate them up in the chain.
9014           [Fixes #354990]
9015
9016 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
9017
9018         * Hwnd.cs: Create a public property for the Graphics we keep around.
9019
9020 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
9021
9022          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
9023          when the current object selection changes. 
9024          Fixes failing test SelectedObject_Null2.B5.
9025
9026 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
9027
9028          * PropertyGrid.cs: Process Browsable properties with 
9029          DesignerSerializationVisibilityAttribute.Content as being expandable.
9030          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
9031          will not be expandable. We should be nested components-friendly now.
9032
9033 2008-01-21  Andreia Gaita <avidigal@novell.com>
9034
9035         * WebBrowserBase.cs: Check if control was loaded properly, 
9036         don't bind if it wasn't.
9037
9038         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
9039         GetElementFromPoint, equality operators, OpenNew, Write.
9040         Remove extra set_Body
9041
9042 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
9043
9044         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
9045         that makes our AutoScale* stuff more tolerant to different orders
9046         of being set.  [Fixes bug #354669]
9047
9048 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
9049
9050          * PropertyGridView.cs, PropertyGridTextBox.cs: 
9051          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
9052          [Fixes #339005 and #348209]
9053
9054 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
9055
9056          * PropertyGridView.cs: Hide the grid text box before adjusting it
9057          for the newly selected GridItem.
9058          [Fixes #338999]
9059
9060 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
9061
9062         * Form.cs: Give MDI children the opportunity to cancel the parent form
9063         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
9064         properly for both the parent and child.
9065         * Application.cs: Signature of internal method changed, pass the previous
9066         default of false.
9067         [Fixes bug #354286]
9068
9069 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
9070
9071         * PropertyGridView.cs: Set the property value only if it has changed.
9072         [Fixes bug #338997]
9073
9074 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
9075
9076         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
9077         If the mouse hasn't actually moved, ignore these messages so the currently
9078         highlighted menuitem isn't reset to the one under the mouse.
9079         [Fixes bug #333668]
9080
9081 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
9082
9083         * PropertyGridView.cs: When the property changes Invalidate the GridItem
9084         in order for the properties with UITypeEditor.GetPaintValueSupported == true
9085         to reflect the change visually.
9086         [Fixes bug #338998]
9087
9088 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
9089
9090         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
9091         to 2.0 button drawing.
9092         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
9093         the button text is tall enough for one line.  LineLimit says it will
9094         always draw at least one line, but it is a lie.
9095         [Fixes bug #324941]
9096
9097 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
9098
9099         * XplatUIStructs.cs, X11Keyboard.cs :
9100           added some more VK_* keys to be handled.
9101
9102 2008-01-16  Andreia Gaita <avidigal@novell.com>
9103
9104         * Control.cs: Check if there is a container before setting or getting
9105         the validation flag.
9106
9107 2008-01-16  Andreia Gaita <avidigal@novell.com>
9108
9109         * ContainerControl.cs: Add flag to track if a control cancels validation, 
9110         so we don't fire click events.
9111
9112         * Control.cs: 
9113         - (HandleClick) Check if validation was cancelled before  firing the click
9114         events (doubleclicks are fired, but not clicks)
9115         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
9116         ContainerControl.set_ActiveControl, but in the case of non-selectable
9117         controls, like a Label, activecontrol is not set. 
9118
9119         * ButtonBase.cs: Only fire clicks if validation passes.
9120         
9121         Fixes #353310
9122
9123 2008-01-16  Geoff Norton  <gnorton@novell.com>
9124
9125         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
9126         trunk
9127
9128 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
9129
9130         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
9131         SelectedPath, just display the default dialog instead of crashing.
9132         [Fixes bug #348989]
9133
9134 2008-01-16  Geoff Norton  <gnorton@novell.com>
9135
9136         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
9137         AddExpose instead of trusting apples compositing manager which doesn't
9138         work for our use case.  Remove some dead code causing warnings and 
9139         redecorate some other code to prevent warnings.
9140
9141 2008-01-16  Geoff Norton  <gnorton@novell.com>
9142
9143         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
9144         carbon signals us to redraw.  Fixes another portion of the flickering bug
9145
9146 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
9147
9148         * Form.cs: Prevent the MdiParent property to be set when value is the same
9149         as value already set. Fixes bug #328019.
9150
9151 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
9152
9153         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
9154         it prevents NRE when closing mdi child windows. Fixes bug #325211.
9155
9156 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
9157
9158         * InternalWindowManager.cs: Invalidade close button after mouse up when 
9159         mdi form is prevented to close.
9160
9161 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
9162
9163         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
9164         thanks to Andy Hume. Fixes bug #325433.
9165
9166 2008-01-16  Andreia Gaita <avidigal@novell.com>
9167
9168         * LinkLabel.cs: Reset focused_index when resellecting the control.
9169         Fixes #323190
9170
9171 2008-01-15  Geoff Norton  <gnorton@novell.com>
9172
9173         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
9174         messages.
9175
9176 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
9177
9178         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
9179         of truncate.
9180
9181 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
9182
9183         * ContainerControl.cs: Setting AutoScaleMode to anything should set
9184         Form.AutoScale to false.
9185         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
9186         AutoScaleBaseSize should be changed on Font change unless it has been
9187         explicitly set.
9188         [Fixes bug #353827]
9189
9190 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
9191
9192         * MenuAPI.cs: On instance of MenuTracker check if source control is
9193         ToolStripOverflow and use properly method to find form.
9194         [Fixes bug #338511]
9195
9196 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
9197
9198         [Fixes bug #323241 Transparent toolbar support]
9199
9200         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
9201         is flat.
9202
9203         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
9204         defined in control style to mimic win32 behavior.
9205
9206         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
9207         it will be transparent.
9208
9209 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
9210
9211         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
9212         CreateParams for ToolBar controls.
9213
9214 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
9215
9216         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
9217         FixedToolWindow, SizeableToolWindow, or None for border styles have
9218         different minimum sizes than regular forms.  Implemented to fix
9219         regression in PDN with toolbox being too wide.
9220
9221 2008-01-14  Andreia Gaita <avidigal@novell.com>
9222
9223         * HtmlElementCollection.cs: Implemented
9224
9225         * HtmlElement.cs: Implemented:
9226           - All
9227           - InnerHtml
9228           - InnerText
9229           - Id
9230           - Name
9231           - FirstChild
9232
9233         * HtmlDocument.cs: Implemented GetElementsByTagName.
9234
9235 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
9236
9237         * Screen.cs: Stub BitsPerPixel to always return 32.
9238
9239 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
9240
9241         * Form.cs: Implement RestoreBounds.
9242
9243 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
9244
9245         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
9246         Sebastien and his fabulous magical problem-finding machine:
9247         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
9248         respect the value set.
9249
9250 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
9251
9252         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
9253         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
9254
9255 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9256
9257         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
9258         messages (to match .Net), we need to remove the capture ourselves.
9259
9260 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
9261
9262         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
9263         will process the message and close our window.
9264         [Fixes bug #324328]
9265
9266 2008-01-10  Geoff Norton  <gnorton@novell.com>
9267
9268         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
9269         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
9270         window manager.
9271
9272 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
9273
9274         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
9275         failing test.
9276
9277 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
9278
9279         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
9280         Linux doesn't care, having a minimum matches MS and keeps the window
9281         from becoming too small to use window decorations.
9282         [Fixes bug #338996]
9283
9284 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
9285
9286         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
9287         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
9288         control.  [Fixes bug #325419]
9289
9290 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
9291
9292         * ComboBox.cs: Guard against an NRE if the user open a new form from a
9293         SelectedIndexChanged event.  This closes the combobox dropdown, and we
9294         were trying to dispose it.  [Fixes bug #352830]
9295
9296 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
9297
9298         * Control.cs, Form.cs: Implement the necessary semantics for
9299         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
9300         to determine if a focus rectangle should be drawn.
9301         * PropertyGrid.cs: Fix property visibility to match override.
9302         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
9303
9304 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
9305
9306         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
9307         [Fixes bug #323552]
9308
9309 2008-01-09  Geoff Norton  <gnorton@novell.com>
9310         
9311         * XplatUICarbon.cs: Scroll windows in the correct direction.
9312
9313 2008-01-09  Geoff Norton  <gnorton@novell.com>
9314
9315         * XplatUICarbon.cs: Track all created utility windows so we can hide them
9316         when the app is deactivated or spaces is enabled.
9317
9318 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9319
9320         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
9321         extra separation pixel for the label rect origin if SmallImageList is
9322         null, and thus we don't need that separation between icon and label
9323         rects.
9324         Patch by Ernesto Carrea.
9325         Fixes # 340195.
9326
9327 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
9328
9329         * StatusStrip.cs: Invalidate after completing a layout.  The base
9330         OnLayout does this, but we don't call the base.
9331         * ToolStripItem.cs: Revert the previous change to invalidate after
9332         the item moves.
9333         [Fixes bug #351341 better.]
9334
9335 2008-01-07  Geoff Norton  <gnorton@novell.com>
9336
9337         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
9338         not a notification to exit the application.  Listen for WM_QUIT
9339         instead.
9340
9341 2008-01-07  Andreia Gaita <avidigal@novell.com>
9342
9343         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
9344
9345 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
9346
9347         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
9348         so it can repaint at the correct location.
9349         [Fixes bug #351341]
9350
9351 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9352
9353         * ListControl.cs: SelectedValue should return a null value if
9354         SelectedIndex is -1. Also, when setting it, it should throw an
9355         ArgumentNullException if the value is null, as well as taking
9356         into account the String.Empty value, instead of ignoring it (we have
9357         tests for that now).
9358         Fixes part of #324286.
9359
9360 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
9361
9362         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
9363         SelectionStart is updated after pressing enter.  Fixes bug #351918.
9364
9365 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9366
9367         * TextControl.cs: Revert a piece r92316 that prevented the fix
9368         from working when there were multiple tags in the text box.
9369         Fixes bug #351881.
9370
9371 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9372
9373         * TextControl.cs: Apply patch from Luke Page that prevents an
9374         NRE when determining the beginning of a paragraph.
9375         Fixes bug #351886.
9376
9377 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9378
9379         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
9380         caret gets moved with clicking away from a selected block of
9381         text.  Fixes bug #351885.
9382
9383 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9384
9385         * TextControl.cs: Apply patch from Luke Page that takes line
9386         alignment into account for mouse selection, so that center and
9387         right aligned text can be selected.
9388         Fixes bug #351881.
9389
9390 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9391
9392         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
9393         issues after loading an RTF file by using the correct line feeds.
9394         Fixes bug #351841.
9395
9396 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9397
9398         * TextControl.cs: When deleting multiple line selections, we need
9399         to invalidate every line beginning at the first line of the selection.
9400         Patch from Luke Page fixes bug #351791.
9401
9402 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9403
9404         * ListControl.cs: When getting a CurrencyManager.PositionChanged
9405         event, don't set SelectedIndex if the number of items is 1. This is
9406         because, for the first item, PositionChanged is fired _before_
9407         ItemChanged (the place where we actually populate the items), and
9408         leave us in a temporary invalid state (since items collection is
9409         empty).
9410         Fixes #349655.
9411
9412 2008-01-04  Geoff Norton  <gnorton@novell.com>
9413
9414         * XplatUICarbon.cs:  Create native toolwindows instead of
9415         the managed drawing ones.
9416
9417 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9418
9419         * LineTag.cs: If the line doesn't have any characters, return
9420         0 for GetCharIndex.  Fixes an AOORE exception after certain
9421         caret movements.  Fixes bug #351683.  Patch by Luke Page.
9422
9423 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9424
9425         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
9426         is hit when there is selected text, only the selected text gets
9427         deleted, not the character in front of the selection as well.
9428         Fixes bug #351578.
9429
9430 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9431
9432         * ComboBox.cs: When the values are displayed, calculate the
9433         ComboListBox scrollbar's LargeChange based on the visible area's
9434         height and  the actuall ItemHeight, instead of calculating it
9435         based on MaxDropItems value, since it's not used by our _current_ 
9436         2.0 profile.
9437         Fixes #332366.
9438
9439 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9440
9441         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9442         Patch from Luke Page that fixes issues with font colors and styles
9443         not showing up in a readonly RichTextBox.  Fixes bug #324354.
9444
9445 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9446
9447         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
9448         from Luke Page.  This one fixes bug #349926.
9449
9450 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9451
9452         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
9453         an item in the IBindingList source changes with
9454         ListChangedType.ItemAdded. Ignore for now firing the event for other
9455         changes, since we want to have tests for those cases as well.
9456
9457 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9458
9459         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
9460         created.
9461
9462 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9463
9464         * TextBoxTextRenderer.cs: Implement a cache for measuring each
9465         character.  This is effective because the typical usage of a
9466         TextBox is with a limited amount of fonts and characters, and
9467         the current implementation of TextBox measures everything one
9468         character at a time.  Another second or two speedup for bug #347238.
9469
9470 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9471
9472         * Control.cs: Rewrite the Font getter to only query the parent's
9473         Font property once instead of twice.  Since this operation is
9474         recursive, the queries were growing exponentially as the control
9475         tree got deeper.  Another second or two speedup for bug #347238.
9476
9477 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9478
9479         * Control.cs: Avoid setting a parent (and more importantly, updating
9480         the zorder of all its children) if the parent is already correct in
9481         WmShowWindow.  Decreases the startup time of the test case on bug
9482         #347238 from 35 seconds to 11 seconds.
9483
9484 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9485
9486         * X11Dnd.cs: When the dnd operation has started and we are 
9487         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
9488         This is done to match .Net, which doesn't send those messages after
9489         dnd operation was completed/cancelled.
9490         Fixes #349922.
9491
9492 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
9493
9494         * ToolStrip.cs: Previous change should be != null, not == null.
9495         Thanks Gert!
9496
9497 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
9498
9499         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
9500         user may have moved the mouse off the current item during the event.
9501
9502 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9503
9504         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
9505         calling GetItemAt for every MouseMove event by also taking into
9506         account whether any mouse button is pressed (probably dragging); 
9507         if so, we can call GetItemAt, and if not, try to not call it 
9508         (GetItemAt can be quite expensive when used with a large number of items).
9509
9510 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9511
9512         * ListView.cs: Implement -finally- support for dnd, by calling
9513         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
9514         authors list ;-).
9515         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
9516         simple calculation of distances for all the items in the owner
9517         listview.
9518
9519 2007-12-21  Geoff Norton  <gnorton@novell.com>
9520
9521         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
9522         for windows that are originally created as invisible.  Fixes missing
9523         main window in paint-mono.
9524
9525 2007-12-21  Geoff Norton  <gnorton@novell.com>
9526
9527         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
9528         subclass handler for com.novell.mwfview subclassing HIView.  Implement
9529         Pasteboard and Dnd methods.
9530
9531 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9532
9533         * ListBox.cs: When we got focus, give focus to first item if there
9534         wasn't any pervious focused item. Also update navigation to depend on
9535         SelectedIndex rather than FocusedItem, just as .Net does.
9536         Fixes #349174.
9537
9538 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9539
9540         * ListBox.cs: Both FindString and FindStringExact methods must do an
9541         case insensitive search, should allow the last valid index to be
9542         passed in the overload taking an initial index, and should also
9543         continue searching from the top back to the specified index when it
9544         reaches the bottom.
9545
9546 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9547
9548         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
9549         redraw issue, and allows RichTextBox to draw colored text even while
9550         disabled or readonly.
9551
9552 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9553
9554         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
9555         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
9556         and doesn't grey text in a disabled RichTextBox.
9557
9558 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9559
9560         * RichTextBox.cs: Apply patch from Luke Page that adds better support
9561         for many RTF commands: quad alignment, separate formatting for blocks
9562         inside groups, and ParDef support.  Makes the test case from bug #324589
9563         look much better.
9564
9565 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9566
9567         * LineTag.cs: Fix an error in the new Draw method that caused
9568         a crash when rendering the document on bug #324589.
9569
9570 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9571
9572         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
9573         TextControl.cs: Apply patch from Luke Page that adds support
9574         for URL links in RichTextBox.
9575         [Fixes enhancement #342516]
9576
9577 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
9578
9579         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
9580         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
9581
9582 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9583
9584         * ListBox.cs: When a key gets pressed, try to find a string
9585         if the key is a character or a digit.
9586         Fixes #343971.
9587
9588 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9589
9590         * TableLayoutPanel.cs: Remove some unused variables.
9591
9592 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9593
9594         * DateTimePicker.cs: Commit patch from Luke Page that ensures
9595         we don't end up at an invalid date when we click the up/down
9596         spinner to change the month or year.  Fixes bug #348682.
9597
9598 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9599
9600         * Application.cs: Calling Exit in 2.0 should chain to the
9601         Exit (CancelEventArgs) version so it can be cancelled.
9602         * Form.cs: Create a flag to allow raising the Closing
9603         events to be skipped.  We raise them once in Application.Exit
9604         and don't want to raise them again when the Form is actually
9605         closed.  [Fixes bug #349073]
9606
9607 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
9608
9609         * ToolStripDropDown.cs: Guard against an NRE when there
9610         hasn't been a mainform set in the application context.
9611         [Fixes bug #349108]
9612
9613 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9614
9615         * ListBox.cs: When SetBoundsCore gets called, besides
9616         calling UpdateScrollBars, update the value of
9617         last_visible_index, since we could need to show more items
9618         than before, and we need to let the paint routines know that.
9619         Fixes #344445.
9620
9621 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9622
9623         * ListView.cs: Add DesignerSerializationVisibility attribute to
9624         InsertionMark property.
9625         * ListViewItem.cs: Add same attribute to Position property.
9626
9627 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9628
9629         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
9630         is 2.0 only.
9631
9632 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
9633
9634         * ThemeWin32Classic.cs: Don't draw the background on a
9635         flat button if there is a background image.
9636         [Fixes bug #348649]
9637
9638 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9639
9640         * ListBox.cs: If we remove the item currently selected,
9641         remove it not only from SelectedItems, but also
9642         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
9643         the items count decreased and focused_item has bigger value than that.
9644
9645 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
9646
9647         * Control.cs: Perform our layout after we resize ourselves
9648         if we had to adjust our AutoSize.  Missed commit for bug
9649         #346246.
9650
9651 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
9652
9653         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
9654         we can provide an implementation of AutoSize.
9655         [Fixes bug #346246]
9656
9657 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9658
9659         * ListBox.cs: Add the internal overload Sort (bool paint),
9660         to indicate whether we actually need a paint or we will
9661         call Refresh ourselves. This way we don't request a paint
9662         _before_ having an updated and valid layout.
9663         Fixes #347233.
9664
9665 2007-12-12  Andreia Gaita <avidigal@novell.com>
9666
9667         * XPlatUIX11.cs: Send paint messages when updating a systray icon
9668         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
9669         properly invalidated. 
9670         Fixes #324237
9671
9672 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9673
9674         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
9675         don't simply assign it to our internal group field, but instead 
9676         use our Group property, which should do all the neccessary work
9677         required to support groups. Fixes an issue reported to me (mail) by a 
9678         guy using this new feature.
9679
9680 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
9681
9682         * Control.cs: Use Scale instead of ScaleControl to ensure the
9683         whole hierarchy gets scaled.
9684         [Fixes bug #347282]
9685
9686 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9687
9688         * DateTimePicker.cs: Don't set the internal MonthCalendar's
9689         Parent property.  Doing this causes the control to be hosted by
9690         the Form instead of being a popup window.
9691         [Fixes bug #347665]
9692
9693 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9694
9695         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
9696         at an index higher than Count, just use Add instead of Insert.
9697         [Fixes bug #347669]
9698
9699 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9700
9701         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
9702         DrawPictureBox, this is handled by Control.PaintBackground.
9703         [Fixes bug #347276]
9704
9705 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
9706
9707         * MenuAPI.cs: When process menu keys return true by default only if menu is
9708         active. Fixes bug #342892.
9709
9710 2007-12-09  Andreia Gaita <avidigal@novell.com>
9711
9712         * Control.cs: check if windows are actually mapped before
9713         trying to zorder. Fixes #342509, #346955
9714
9715 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9716
9717         * ListView.cs:
9718         * ListViewInsertionMark.cs:
9719         * ThemeWin32Classic.cs: Implement the drawing side of the
9720         new 2.0 ListView.InsertionMark property.
9721
9722 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
9723
9724         * CurrencyManager.cs: Silence some debug spew.
9725
9726 2007-12-07  Geoff Norton  <gnorton@novell.com>
9727         
9728         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
9729         masks for our children as well as siblings to avoid having to query
9730         Quartz for this information.
9731         * XplatUICarbon.cs: Implement a delegate based system to pass
9732         information to System.Drawing.  Implement Async methods.  Remove
9733         the hack for the resize thumb and imlpement a transparent Grow Box.
9734         Rework the messaging system to proplery create window's and messages,
9735         fixes TabControl.
9736
9737 2007-12-06  Andreia Gaita <avidigal@novell.com>
9738
9739         * X11Keyboard.cs: Use Xutf8LookupString to support international 
9740         characters under alternate codepages. Patch from #340878
9741
9742 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9743
9744         * ListView.cs: When doing layout computations, set position in the
9745         ListView instances (we cache the position just as .Net does).
9746         * ListViewItem.cs: New internal setter method for Position. Also set
9747         position field as also available in 1.1, since we are going to use it
9748         now in the common case.
9749
9750 2007-12-06  Andreia Gaita <avidigal@novell.com>
9751
9752         * Control.cs: When removing controls, get the actual container
9753         to notify about active control changes. Fixes 341314.
9754
9755 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9756
9757         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
9758
9759 2007-12-05  Andreia Gaita <avidigal@novell.com>
9760
9761         * Control.cs: When updating the zorder, ignore windows that are not
9762         mapped. Fixes #342509
9763
9764 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9765
9766         * ListViewItem.cs: Actually implement serialization on this class.
9767
9768 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
9769
9770         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
9771         LinkCollection. Spaces to tabs, and removed extra tabs.
9772
9773 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9774
9775         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
9776           tests to fail (hopefully).
9777
9778 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9779
9780         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
9781         the image margin so custom renderers can correctly place it.
9782
9783 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9784
9785         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
9786         so custom renderers can correctly place it.
9787
9788 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9789
9790         * Application.cs: Let WM_CHAR messages flow through to controls
9791         hosted in Strips.  [Fixes bug #343972]
9792
9793 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9794
9795         * ToolStripManager.cs: Guard against an NRE I ran into.
9796
9797 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9798
9799         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
9800         a Link is manually added to the Links collection, we need to set
9801         its owner, so it can invalidate properly.
9802         [Fixes bug #344012]
9803
9804 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9805
9806         * ListView.cs: When changing ListViewItem.Position (which calls
9807         ListView.ChangeItemLocation), invalidate not only the area
9808         corresponding to the main item, but also to the area occupied
9809         by the items being moved.
9810
9811 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9812
9813         * ListView.cs: When changing the position of a given item,
9814         don't use item bounds, but item areas (which includes the item spacing
9815         between them). Also, use first/last position if the requested
9816         position is outside bounds (as .Net does). Invalidate the previous and
9817         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
9818         in a specific position, instead of directly accessing Items collection
9819         (this is done to get the right item - remember an Item can have a
9820         different position in the grid than in the Items collection).
9821
9822 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9823
9824         * MessageBox.cs: Calculate text area instead of just top left, this rect 
9825         area will be used in DrawString. Fixes bug #343364.
9826
9827 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9828
9829         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
9830         screen width. Partially fixes bug #343364.
9831
9832 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9833
9834         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
9835         code inside recalculate, it makes code more simple.
9836
9837 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
9838
9839         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
9840         between update or add icon. Fixes bug #324344.
9841
9842 2007-11-21  Andreia Gaita <avidigal@novell.com>
9843
9844         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
9845         window manager, since that stretches the drawing area to include
9846         the window decorations, and they get hidden. Reverts r84444 and fixes
9847         #335849 and #342790 (mdi and pdn3 regression)
9848
9849 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9850
9851         * ListView.cs: When setting focused item, try to give focus to the
9852         previous one _only_ if the previous one remains valid. 
9853         Fixes #342504.
9854
9855 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
9856
9857         * Application.cs: Revert r89650, as it broke a common case to fix
9858         an obscure case.  Fixes bug #342606.
9859
9860 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9861
9862         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
9863
9864 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9865
9866         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
9867         alignment. [Fixes #324228]
9868
9869 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9870
9871         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
9872         [Fixes bug #342123]
9873
9874 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
9875
9876         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
9877         it prevent problems when empty captions. [Fixes #342141]
9878
9879 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9880
9881         * Label.cs: Use Size instead of None.  Fixes bug #342077.
9882
9883 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9884
9885         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
9886
9887 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9888
9889         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
9890         but there isn't a MdiContainer.
9891         [Fixes bug #342358]
9892
9893 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9894
9895         * TextControl.cs: Don't recalculate document if the recalc_start and
9896         recalc_end hasn't changed.
9897         [Fixes bug #342505]
9898
9899 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
9900
9901         * DataGridViewTextBoxCell.cs: Removed CWL.
9902
9903 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9904
9905         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
9906
9907 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9908
9909         * TextControl.cs: Missed some code for bug 341534 to trigger a
9910         recalculation when the font changes.
9911
9912 2007-11-16  Andreia Gaita <avidigal@novell.com>
9913
9914         * Control.cs: When updating the zorder, check if the child to update is
9915         the same control that is set to always be on top (i.e., scrollbars), and 
9916         just put it on top directly. Fixes BadMatch error on pdn3
9917
9918 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9919
9920         * ListView.cs: Throw the needed exceptions for FindNearestItem.
9921
9922 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9923
9924         * Control.cs: Don't perform a new layout when a label changes its text,
9925         cause label handles its own autosizing.
9926         [Fixes bug #342077]
9927
9928 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9929
9930         * ListView.cs: Implement 2.0 FindNearestItem methods.
9931
9932 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9933
9934         * ToolStripPanel.cs: Make Join at least add the control to the panel,
9935         even if the rest of what Join does isn't supported.  Add some more
9936         support for vertical toolbars.
9937         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
9938         [Fixes the application breaking parts of bug #341998]
9939
9940 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
9941
9942         * ToolStripItem.cs: When determining if we have a check/image margin,
9943         we need to look at ShowCheckMargin as well as ShowImageMargin.
9944
9945 2007-11-15  Geoff Norton  <gnorton@novell.com>
9946
9947         * XplatUIOSX.cs: Rename to...
9948         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
9949         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
9950
9951 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9952
9953         * KeysConverter.cs: The default values should be an array of Keys, not
9954         strings.  Also, the array has more values for 2.0.
9955         [Fixes bug #341851]
9956
9957 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9958
9959         * Application.cs: Change ExecutablePath to use 
9960         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
9961         [Fixes bug #323552]
9962
9963 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9964
9965         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
9966         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
9967         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
9968         be ignored.  Create a new GetLineEnding that can specify which types of
9969         line endings to look for.  On Insert, only create new lines for \n and \r\n.
9970         [Fixes bug #324274]
9971
9972 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9973
9974         * TextBoxBase.cs: As we loop through each line changing the font, tell
9975         the document that the line needs to be recalculated.  Fixes bug #341534.
9976
9977 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
9978         [Another round of refactoring]
9979         * Line.cs: Add DeleteCharacters.
9980         * LineTag.cs: Add Delete.
9981         * TextBoxBase.cs: Update to use new methods.
9982         * TextControl.cs: Refactor the Delete* methods.
9983
9984 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
9985
9986         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
9987         the patch. [Fixes #324856]
9988
9989 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9990
9991         * ListView.cs:
9992         * ListViewItem.cs: Add an initial implementation of
9993         2.0 ListViewItem.Position getter.
9994
9995 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9996
9997         * ListView.cs: Add a reordered_items_indices array, to allow us
9998         to have a different sorting than that of Items (the sorting in Items
9999         could not match the actual sorting in screen). This is needed to
10000         implement a pair of 2.0 features.
10001         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
10002         actual position in the ListView grid, since it could have a position
10003         different than its Index (position in ListViewItemCollection). 
10004
10005 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
10006
10007         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
10008         not draw partial lines.
10009         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
10010         LineLimit flag from the base is preserved.
10011         Fixes the windows part of bug #338965.
10012
10013 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
10014
10015         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
10016         so that it can be canceled in KeyPress.
10017         Fixes bug #340078.
10018
10019 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10020
10021         * ListView.cs: In ItemControl, reset mouse-handling related
10022         fields even if we dont' have items (we still should reset them when
10023         we had items but then called Items.Clear). Partially based in a patch
10024         by George Giolfan.
10025         Fixes #338399.
10026
10027 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
10028
10029         * Application.cs: In ProductVersion first try AssemblyFileVersion
10030         before falling back to assembly version. Fixes bug #339787.
10031
10032 2007-11-08  Andreia Gaita <avidigal@novell.com>
10033
10034         * HtmlElement.cs: Implement InnerText setter.
10035         * WebBrowserBase.cs: Implement Navigated event support.
10036         Add flag to track when the browser "document" is ready to be retrieved.
10037         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
10038         Make sure browser document is ready before retrieving it.
10039         Clean up cached objects (document) when moving to a new page through
10040         any of the navigation methods.
10041         Use the new Mono.WebBrowser.INavigation interface to control navigation.
10042         Implement OnNavigated event.
10043
10044 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
10045
10046         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
10047         DrawLinkLabel, this is handled by OnPaintBackground.
10048         Fixes bug #339565, part II.
10049
10050 2007-11-07  Andreia Gaita <avidigal@novell.com>
10051
10052         * Control.cs: Revert r88915. Selecting text on a textbox depends on
10053         getting a Select call on click, so this call needs to be here for now.
10054         Unfixes #325809
10055
10056 2007-11-07  Geoff Norton  <gnorton@novell.com>
10057
10058         * OSXStructs.cs: Add the kEventClassApplication constants.
10059         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
10060         application is deactivated otherwise Menu overlays linger on top of
10061         other application windows.
10062
10063 2007-11-07  Geoff Norton  <gnorton@novell.com>
10064
10065         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
10066         dont support cursors yet anyways.  This allows Reflector to run.
10067
10068 2007-11-07  Geoff Norton  <gnorton@novell.com>
10069
10070         * XplatUIOSX.cs: Implement DragSize.
10071
10072 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10073
10074         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
10075         ItemControl, request the focus, as .Net does. This is needed after 
10076         Control does not request focus anymore when it receives a
10077         WM_LBUTTONDOWN.
10078
10079 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
10080
10081         * Label.cs: Make DrawImage internal so it can be called from Theme code.
10082         Remove the DrawImage call from OnPaint.
10083         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
10084         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
10085         but before we draw the text for DrawLabel and DrawLinkLabel.
10086         Fixes bug #339565.
10087
10088 2007-11-05  Andreia Gaita <avidigal@novell.com>
10089
10090         * Control.cs: Remove select call on click. Fixes #325809
10091
10092 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10093
10094         * ListViewItem.cs: Add 2.0 Position property getter.
10095
10096 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10097
10098         * ListView.cs: Add 2.0 BackgroundImageTiled property.
10099         Also, to make it work properly, change item's BackColor and
10100         BackgroundImageLayout as needed.
10101         * ThemeWin32Classic.cs: Don't fill any background rectangle 
10102         in ListView.ItemControl when drawing items; just let the Control
10103         base implementation fill it.
10104
10105 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10106
10107         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
10108         as well as adding a custom 'dummy' Converter, as .net does.
10109
10110 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10111
10112         * PropertyGridView.cs: When clicking drop-down button,
10113         select an index in the listbox only if our standard values collection 
10114         has one or more items.
10115
10116 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10117
10118         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
10119         property.
10120
10121 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
10122
10123         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
10124         the value is not changed. This ensure a pushed button remains in that
10125         state when clicked again. When switching the value of PropertySort
10126         between Categorized and CategorizedAlphabetical, do not update the
10127         grid items and do not fire a PropertyChangedEvent. When clicking the
10128         sorting buttons, do not modify the PropertySort value when switching
10129         between Categorized and CategorizedAlphabetical but only update the
10130         button state.
10131
10132 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
10133
10134         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
10135         formatting.
10136         * PropertyGrid.cs: Also put Categorized button in pushed state when
10137         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
10138         for help description label.
10139
10140 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10141
10142         * ListView.cs: When calculating the biggest item for a given column,
10143         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
10144         the item's width.
10145
10146 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
10147
10148         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
10149         value for PropertySort on 1.0 profile. PropertySortChanged event
10150         should only be fired on 2.0 profile. Fixed NullReferenceException
10151         in UpdateSortLayout when PropertyGrid contains no items.
10152
10153 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
10154
10155         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
10156         [Fixes bug #338554]
10157
10158 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10159
10160         * ListViewItem.cs: Implement 2.0 IndentCount property.
10161
10162 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10163
10164         * X11Dnd.cs: When sending status in a dnd operation, compare current
10165         effect with the 'allowed' field instead of 'drag_data.Allowed', since
10166         the later is only created when a Winforms application is both the
10167         source and the target, but not when we are the target only.
10168         Fixes part of #324251.
10169
10170 2007-11-01  Geoff Norton  <gnorton@novell.com>
10171
10172         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
10173         order of Z-Order.
10174         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
10175         children out of the drawing view on mac.
10176         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
10177         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
10178         
10179 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
10180
10181         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
10182         on the non-hosted-control part of it shouldn't do anything.
10183         Fixes part of bug #327498.
10184
10185 2007-11-01  Andreia Gaita <avidigal@novell.com>
10186
10187         * WebBrowserBase.cs: revert previous change, resize can be called anytime
10188
10189 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
10190
10191         * Application.cs: When a toolstrip has the keyboard input loop, let messages
10192         it does not use flow through to controls that are hosted in menus.
10193         Same with mouse clicks.
10194         * Form.cs: Don't close all menus on click if the click is on a
10195         control hosted in a menu.
10196         Fixes part of bug #327498, and part of bug #325969.
10197
10198 2007-10-31  Andreia Gaita <avidigal@novell.com>
10199
10200         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
10201
10202 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
10203
10204         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
10205         Addresses an issue raised in bug #336218.
10206
10207 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
10208
10209         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
10210         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
10211
10212 2007-10-30  Andreia Gaita <avidigal@novell.com>
10213
10214         * ContainerControl.cs: Check if the active control is a
10215         child of a removed control and update active_control accordingly.
10216         Fixes #329718
10217
10218 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
10219
10220         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
10221         or the MaxDate.  Fixed bug #337693.
10222
10223 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
10224
10225         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
10226         after calling SetWindowLong for a form, to force an immediate NC refresh.
10227         Fixes first part of bug #325150.
10228
10229 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
10230
10231         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
10232         simple.  Fixes the last part of bug #322668.
10233
10234 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
10235
10236         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
10237         needs to be TopMost as well, or else the MessageBox is under the form.
10238         Patch by George fixes bug #325300.
10239
10240 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10241
10242         * X11Dnd.cs: When starting a new drag operation, reset the static
10243         'dropped' field to false (previously the implementation didn't reset
10244         it and got confused after the first drag).
10245         Fixes #325071.
10246
10247 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10248
10249         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
10250         items instead of re-creating them all. For this purpose we now cache
10251         both CategoryGridEntry items and the GridEntries for the main object's
10252         properties.
10253         * GridItem.cs: Make SetParent method abstract.
10254         * GridEntry.cs: Override the SetParent method (already there, but now
10255         we override it).
10256         Fixes #324866.
10257
10258 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10259
10260         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
10261         depending on its depth (as .Net does). Update the needed values in
10262         MouseDown handler. Also draw the plus/minus rect after the label,
10263         so we don't draw on top of it.
10264
10265 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
10266
10267         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
10268         processed by forms or controls when menu is active. [Fixes #333548]
10269
10270 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
10271
10272         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
10273         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
10274         focus on mouse over.
10275
10276 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
10277
10278         * TextControl.cs: Code cleaning, simplifying.
10279
10280 2007-10-24  Geoff Norton  <gnorton@novell.com>
10281
10282         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
10283         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
10284
10285 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
10286
10287         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
10288         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
10289
10290 2007-10-24  Andreia Gaita <avidigal@novell.com>
10291
10292         * SendKeys.cs: apply jpobst's patch to bug #332409
10293
10294 2007-10-23  Andreia Gaita <avidigal@novell.com>
10295
10296         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
10297         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
10298         for some reason
10299
10300 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10301
10302         * PropertyGridView.cs: If a property has an UIEditor available,
10303         make the drop-down/editor button available only if the property
10304         is _not_ read only.
10305
10306 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10307
10308         * PropertyGridView.cs: Don't make the grid item textbox 
10309         editable when a drop-down control is available, but 
10310         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
10311         true. The same bur the color of the grid item value's label.
10312
10313 2007-10-22  Geoff Norton  <gnorton@novell.com>
10314
10315         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
10316         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
10317         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
10318         driver.  Padd the bottom of all real windows so the resize thumb doesn't
10319         obscure scroll/status bars.
10320
10321 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
10322
10323         * WindowsFormsSection.cs: Implement.
10324
10325 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
10326
10327         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
10328         closed see #325434 patch.
10329
10330 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
10331
10332         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
10333         see #325434 patch.
10334
10335 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10336
10337         * PropertyGridView.cs: When showing the textbox for a grid item,
10338         have two local variables to store the read-only and non-editable
10339         status of a grid item (we were previously using just one variable
10340         to do this, when actually they are slightly different).
10341         Fixes part of #325023.
10342
10343 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10344
10345         * PropertyGridView.cs: When showing a drop-down list, try to get the
10346         values using TypeConverter.ConvertTo (to convert to a string). Fixes
10347         part of #325023.
10348
10349 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10350
10351         * PropertyGrid.cs: When updating a property and populating sub grid
10352         items, remove the previous ones, and invalidate the specific area.
10353         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
10354         area behind a grid item.
10355         * GridItemCollection.cs: Add an internal Clear method, to allow us to
10356         clean the items if needed (specially for controls implementing 
10357         ICustomTypeDescriptor and returning a variable number of properties).
10358         Fixes #324865.
10359
10360 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
10361
10362         * TextControl.cs: Clean up and document the Insert function.
10363
10364 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
10365
10366         * TextControl.cs: Make sure we know our start point for updating the view
10367         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
10368         update the view.
10369
10370 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
10371
10372         * ListView: Couple of corcompare fixes.
10373
10374 2007-10-17  Geoff Norton  <gnorton@novell.com>
10375
10376         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
10377         the title caption of real window.
10378
10379 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
10380
10381         * ErrorProvider.cs: Add the error provider's internal window to a 
10382         containercontrol when the parent changes.  [Fixes bug #329714]
10383
10384 2007-10-17  Geoff Norton  <gnorton@novell.com>
10385
10386         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
10387         When we make a new window; restore the old active window - fixes dialogs.
10388
10389 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10390
10391         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
10392         when modifying a property, and if found then invalidate as
10393         requested.
10394         Fixes part of #324865.
10395
10396 2007-10-17  Geoff Norton  <gnorton@novell.com>
10397
10398         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
10399         highly experimental.  Fixed coordinate translation.  Fixed window locations.
10400         Initial support for clipping. Implemented NC areas and menus.  Support for
10401         launching from command line from Will Johansson (wjohansson@atacomm.com).
10402         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
10403         wjohansson@atacomm.com)
10404         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
10405         Hwnds now track the existence of all of their children for Mac clipping.
10406     * XplatUI.cs: Re-enabled the native driver on the Mac.
10407
10408 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
10409
10410         * Line.cs: Move the InsertString function to here.
10411         * TextControl.cs: Cleanup some duplicate code, move some InsertString
10412         functionality to Line.
10413
10414 2007-10-17  Geoff Norton  <gnorton@novell.com>
10415
10416         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
10417
10418 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
10419
10420         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
10421         always setting value to true.
10422         * Form.cs: When changing AcceptButton, notify new and original button.
10423
10424 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
10425
10426         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
10427         a custom control that implements IButtonControl instead of an actual
10428         button.  [Fixes bug #334244]
10429
10430 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
10431
10432         * Form.cs: Change SelectActiveControl to internal, we need to call it in
10433         MdiWindowManager.
10434         
10435         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
10436         active control when activate a new mdi window.
10437         
10438         [Fixes bug #330495]
10439
10440 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
10441
10442         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
10443         is already added.
10444         [Fixes bug #333617]
10445
10446 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
10447
10448         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
10449         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
10450         so we always recalculate the whole document instead of just the new part.
10451         [Fixes bug #325082]
10452
10453 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
10454
10455         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
10456         when the mouse was to the left of the first character in the line.
10457
10458 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
10459
10460         * TextBox.cs, TextBoxBase.cs: When setting the document's password
10461         character, use the property instead of the variable so that the
10462         UseSystemPasswordChar property is taken into account.
10463         [Fixes bug #333748]
10464
10465 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10466
10467         * FolderBrowserDialog.cs: When a node is right clicked and the "New
10468         folder" contex menu appears, actually add the new folder to it, even
10469         if the node is not currently selected. Still use SelectedNode in case 
10470         there wasn't found a node under the pointer.
10471         Fixes #325452.
10472
10473 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10474
10475         * ListViewItem.cs: When retrieving the focused state, the index check
10476         should be done only when ListView is in virtualmode, as it is an
10477         expensive check for normal mode.
10478
10479 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10480
10481         * ListViewItem.cs: Make the focus state information be stored
10482         in the ListView, not in the items. This is done to match the MS
10483         behaviour for items that are not yet part of a ListView control;
10484         besides that, since just one item can be focused at the same time,
10485         we save a little space in our items.
10486         Fixes part of #331643.
10487
10488 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10489
10490         * ComboBox.cs: When focus is lost, deselect the text. When setting
10491         text of control, select all text. Do not hide selection when control
10492         does not have focus. Fixes bug #333663.
10493
10494 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10495
10496         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
10497         instead of ArgumentException when SelectionLength is set to negative
10498         value. Added same check to SelectionStart. Code formatting.
10499
10500 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10501
10502         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
10503         or SelectionStart. Code formatting.
10504
10505 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10506
10507         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
10508         indicating that there was not a previous drag-and-drop operation going
10509         on.
10510         Fixes part of #325071.
10511
10512 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10513
10514         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
10515         AllowedEffect, don't let the drop operation happen. 
10516         Fixes #32580.
10517
10518 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10519
10520         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
10521
10522 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10523
10524         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
10525         is called.
10526
10527 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10528
10529         * Line.cs: Add a method that finds the tag that contains an x-coord.
10530         * LineTag.cs: Add a method that finds the character at an x-coord using
10531         a binary search, the old way was a linear search.
10532         * TextControl.cs: Change FindCursor to use the above new methods.
10533
10534 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10535
10536         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
10537         value different than AllowedEffect). This should be possible to
10538         indicate that dragging is not possible in some control/area.
10539
10540 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
10541
10542         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
10543         descent internally when font changes instead of outside code being responsible
10544         for setting it.
10545         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
10546         instead of accessing internal variables.
10547
10548 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
10549
10550         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
10551         remove special treatment for ArrangeIcons since it is already arranged.
10552
10553 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10554
10555         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
10556         the Win32 backend uses Color.
10557         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
10558         Refactor to store a Color instead of a Brush for Color.
10559
10560 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10561
10562         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
10563         away.  I didn't realize I needed this when I refactored these earlier.
10564
10565 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10566
10567         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
10568         store a Color structure and use the ResPool for back color instead of
10569         holding onto brushes.
10570
10571 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10572
10573         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
10574         [Fixes bug #325592]
10575
10576 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10577
10578         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
10579         to recalculate its size.  Fixes a part of bug #331052.
10580
10581 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10582
10583         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
10584         button.  Fixes a part of bug #331052.
10585
10586 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10587
10588         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
10589         the CreateParams.
10590         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
10591         decorations.
10592         [Fixes bug #330986]
10593
10594 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10595
10596         * TextBoxTextRenderer.cs: Don't make this a static class, as static
10597         doesn't exist in 1.1.  (Thanks jb!)
10598
10599 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10600
10601         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
10602         class to allow us to use different backends on different platforms.
10603         Linux uses the current [Draw|Measure]String backend.  Windows uses
10604         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
10605         of GDI+.  This leads to better looking text and more accurate measurements
10606         on Windows, fixing many of the reported issues.
10607         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
10608
10609 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10610
10611         * FolderBrowserDialog.cs: When running on Windows,
10612         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
10613         since we must match both "C:" and "C:\" forms. A little hackish, but
10614         works.
10615         Fixes #325247.
10616
10617 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10618
10619         * ListView.cs: When calling EndEdit (after editing an item),
10620         create a new instance of LabelEditEventArgs to keep clean the fields
10621         in case we get a new call to BeginEdit; also do Application.DoEvents
10622         to have focus in synch. This is a fix similar to TreeView's #325244.
10623
10624 2007-10-07  Andreia Gaita <avidigal@novell.com>
10625
10626         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
10627         * WebBrowserBase.cs: Added dialog support, calling the
10628           WebBrowserDialogs classes for each specific dialog type.
10629
10630 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10631
10632         * ListView.cs: When the last item is focused and is removed,
10633         move the focus to the previous item (in Items order). This is what MS
10634         does.
10635         Fixes #330415.
10636
10637 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10638
10639         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
10640         instead of the opposite (RemoveAt call Remove). This is a better
10641         approach since we don't need to to a pair of traversals when using
10642         RemoveAt.
10643
10644 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10645
10646         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
10647         check that the node actually has nodes, and if not, move to the
10648         parent node instead. 
10649         Fixes #325265.
10650
10651 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10652
10653         * TreeView.cs: Move the previous change to the general case (to
10654         call Application.DoEvents in cases where the method was called by
10655         different places).
10656
10657 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10658
10659         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
10660         call Application.DoEvents. This is neccessary when we get a call to
10661         BeginEdit from an AfterLabelEdit handler, because the focus always
10662         goes to the TreeView, even if we try to give it to our
10663         LabelEditTextBox. The call do Application.DoEvents seems to
10664         synchronize the focus, basically.
10665         Fixes #325244.
10666
10667 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10668
10669         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
10670         should be false. This also removes some nasty recursive paths. Fixes
10671         part of #325244.
10672
10673 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
10674
10675         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
10676         state to normal. Also resize window when cascading. Fixes #325433. 
10677
10678 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10679
10680         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
10681         DefaultForeColor, as drawing empty colored lines isn't very useful.
10682         [Fixes the not drawn lines part of bug #324358]
10683
10684 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10685
10686         * TextControl.cs: Move Line and LineTag classes into separate files to
10687         make things easier to find.
10688         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
10689         * RichTextBox.cs: Capitalize LineTag.Length property access.
10690         - This is purely an organizational/formatting change, no logic changed. -
10691
10692 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10693
10694         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
10695         text is empty.
10696
10697 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10698
10699         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
10700         text is empty.
10701
10702 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10703
10704         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
10705         prevent calling of OnBackColorChanged. Fixes #325321.
10706
10707 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10708
10709         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
10710         because control can be disabled because owner is disabled.
10711
10712 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10713
10714         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
10715         string.Empty, test failed from previous change.
10716
10717 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10718
10719         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
10720         is null, not String.Empty.  See bug #323038.
10721
10722 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
10723
10724         * TextControl.cs: Change the margins to match MS a little better.
10725         Still not perfect for X11 due to some DrawString differences, but
10726         is still an improvement over the old stuff.
10727         Partially fixes #324467.
10728
10729 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10730
10731         * FolderBrowserDialog.cs: When using MyComputer as 
10732         RootFolder, let absolute paths be considered as valid ones. Also, use
10733         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
10734         for Windows compatibility.
10735         Partially fixes #325247.
10736
10737 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10738
10739         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
10740         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
10741         method, since it causes the dialog to not select folders directly
10742         under the root path (when setting SelectedPath property).
10743
10744 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10745
10746         * TreeNode.cs: When calling Expand/Collapse and need to call 
10747         ExpandBelow/CollapseBelow respectively, take into account
10748         partially visible nodes (previously Expanding/Collapsing
10749         a partially visible node in the bottom was not updating its +- sign).
10750
10751 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10752
10753         * TreeView.cs: When calling Expand on a TreeNode, and we need to
10754         expand nodes below (ExpandBelow), scroll the entire Viewport
10755         area if the node is above it and not visible (instead of scrolling
10756         the area from node's Bottom, which applies only when the node is
10757         visible).
10758         Fixes #325266.
10759
10760 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10761
10762         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
10763         node in the bottom area (as .Net does). This is done to preserve the
10764         scroll position when ExpandAll is called before handle is created for
10765         the 1.1 profile (bottom area, as opposed to top area in 2.0).
10766         Fixes #324103.
10767
10768 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10769
10770         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
10771         bottom area if we are in fact not using the vertical scroll bar.
10772         Fixes #324824.
10773
10774 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10775
10776         * Control.cs: Comment out a double buffering optimization that doesn't
10777         take into account invalidates created in OnPaint, causing the control
10778         to never be redrawn.  It would take quite a bit of work to work around
10779         this, but I left it commented with an explanation for later possible
10780         optimization.
10781         [Fixes bug #328681]
10782
10783 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10784
10785         * Control.cs: Ask parent to perform a layout if control is AutoSize and
10786         the text changes.
10787         * RadioButton.cs: Implement GetPreferredSizeCore.
10788         [Fixes bug #328672]
10789
10790 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10791
10792         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
10793         corcompare stuffs.
10794
10795 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10796
10797         * Application.cs: Move the sync context stuff to Run instead of RunLoop
10798         so that it doesn't get uninstalled on modal forms.
10799         * Control.cs: Install a sync context when a control is created.
10800         * WindowsFormsSyncronizationContext.cs: Create a private static control
10801         to invoke on.  This is easier than trying to find a created control we
10802         can use.
10803         [Fixes bug #327608]
10804
10805 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
10806
10807         * Application.cs: Install a WindowsFormsSynchronizationContext in the
10808         run loop, and uninstall it when done.
10809         * WindowsFormsSynchronizationContext.cs: Implement.
10810         [Fixes the common case in bug #327608]
10811
10812 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
10813
10814         * DataGridViewCellCollection.cs: Added argument checks for indexers.
10815         Use case-insensitive lookup of column name in indexer. Code
10816         formatting.
10817
10818 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10819
10820         * TreeNode.cs: When collapsing or expanding a node, check whether its
10821         change will affect the visible area (we were previously doing a
10822         IsVisible check, but that check is not enough since children nodes
10823         could be still visible). Fixes part of #325266.
10824
10825 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10826
10827         * TreeView.cs: Always select the first node when the TreeView gets
10828         focus if there is no currently selected node.
10829         [Fixes bug #324279]
10830
10831 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10832
10833         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
10834         node being selected is null.
10835         [Patch from Yves Bastide fixes bug #326858]
10836
10837 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10838
10839         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
10840         whether all the parent nodes are expanded.
10841         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
10842         call RecalculateVisibleOrder if all previous nodes are expanded.
10843         Before that we were doing a IsVisible check, but sometimes the node
10844         is not in the visible area, but _should_already be ready, because of
10845         all previous nodes are expanded. Fixes #325259.
10846
10847 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10848
10849         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
10850         portion of the item is clicked.
10851
10852 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10853
10854         * TextControl.cs: Do not tell the system to move the cursor if the
10855         textbox isn't focused.  Fixes part of bug #322668.
10856
10857 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10858
10859         * ComboBox.cs: When there are no items, do not show the dropdown if
10860         the down arrow is clicked.  Fixes part of bug #322668.
10861
10862 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10863
10864         * ToolStripComboBox.cs: Manually set the size of this control in the
10865         constructor, as it doesn't seem to be the same as DefaultSize.
10866         Fixes a failing monobuild test.
10867
10868 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10869
10870         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
10871         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
10872
10873 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10874
10875         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
10876         Desktop.  This lets it work for people who have moved their desktops
10877         from the default location on windows.  For people who have not, both
10878         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
10879
10880 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10881
10882         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
10883         but when the base constructor sets this, the control is null.  Set it
10884         again in the constructor.  Fixes a failing monobuild test.
10885
10886 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10887
10888         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
10889         get called.
10890         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
10891         called.
10892
10893 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10894
10895         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
10896         will handle it themselves.
10897         * ToolStripItem.cs: When deciding what the text of a tooltip should
10898         be, use the Text property instead of the text field.
10899         * ToolStripTextBox.cs: Handle tooltips.
10900         [Fixes bugs #325417 and #325973]
10901
10902 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10903
10904         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
10905         left click.  Fixes the easy part of bug #325969.
10906
10907 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10908
10909         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
10910         bug #325406, but set a minimum for StatusStrip to 22 to keep
10911         bug #325390 fixed.  I think this minimum would have been figured
10912         up automatically if the grip was actually a ToolStripItem, but it
10913         currently is not.
10914
10915 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10916
10917         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
10918         as this is apparently the actual value used by .Net. Also apply
10919         ItemPadding in Details view only, and decrease the general width padding,
10920         to have only the needed. This should fix #324340 in Windows too.
10921
10922 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10923
10924         * ListViewItem.cs: Don't Invalidate item if parent is inside
10925         a BeginUpdate/EndUpdate block. This prevents to have differences
10926         between the ListView and items state, as well as avoid some exceptions
10927         there.
10928         * ListView.cs: Make 'updating' field internal.
10929
10930 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10931
10932         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
10933         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
10934         size if appropriate.
10935         Fixes reopened bug #325414.
10936
10937 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10938
10939         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
10940         * ToolStripItem.cs: Invalidate before and after our new autosize when
10941         text changes.
10942         Fixes reopened bug #325390.
10943
10944 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10945
10946         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
10947         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
10948         #325044.
10949
10950 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10951
10952         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
10953
10954 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10955
10956         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
10957         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
10958         #82734.
10959
10960 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10961
10962         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
10963         item to select when the ToolStrip is selected.
10964         * ToolStripControlHost: Realign the control when the bounds or visibility
10965         change.
10966         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
10967         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
10968         preferred height.
10969         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
10970         base.OnPaint.  Was causing text not to be drawn.
10971
10972 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10973
10974         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
10975
10976 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10977
10978         * TreeView.cs: When creating the label edit text box,
10979         set is initially to Visible = false. This is done to
10980         prevent a confusion in the layout which makes it to lose
10981         focus when shown the first time. Fixes part of #82592.
10982
10983 2007-09-13 Andreia Gaita <avidigal@novell.com>
10984
10985         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
10986
10987 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10988
10989         * ToolStrip.cs: Take Margin into account when calculating preferred
10990         size.  Also, allow preferred size to get smaller than the explicit
10991         size.
10992         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
10993         First step towards fixing bug #82747.
10994
10995 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10996
10997         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
10998         full row select background over the plus/minus glyph.  Also, turn
10999         off the focus rectangle for full row select since MS doesn't seem
11000         to ever paint it.  [Fixes bug #81839]
11001
11002 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
11003
11004         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
11005         This was causing keyboard opened dropdowns to lose focus.
11006         [Fixes bug #82803]
11007
11008 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
11009
11010         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
11011         ClientRectangle instead.  [Fixes bug #82838]
11012
11013 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
11014
11015         * SplitContainer.cs: We can't reset Visible on every layout because
11016         someone may have set Visible = false explicitly on a SplitterPanel.
11017         Make sure when we switch orientation the SplitterDistance does not
11018         change.  Fixes two failing tests.
11019
11020 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11021
11022         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
11023         TextRenderer, since the latter is only available in 2.0.
11024
11025 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
11026
11027         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
11028         * SplitContainer.cs: Implement FixedPanel layouting.
11029
11030 2007-09-12  Andreia Gaita  <avidigal@novell.com>
11031
11032         * WebBrowserBase.cs: setup shutdown routine
11033
11034 2007-09-12  Andreia Gaita  <avidigal@novell.com>
11035
11036         * Application.cs: Let keyboard events that are targetted 
11037                 to non-mwf windows hosted inside mwf (as in, webbrowser),
11038                 propagate properly. Fixes keyboard handling on the webbrowser.
11039
11040 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11041
11042         * ListView.cs: When handling MouseUp event and we are 
11043         highligting a node with the mouse right button, don't trigger
11044         Before/AfterSelecting event, since we are not actually selecting
11045         the node.
11046
11047 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11048
11049         * TreeView.cs: When editing a node, modify the edit text box
11050         depending on the text length (as you are typing), like MS does.
11051
11052 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
11053
11054         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
11055         Override GetPreferredSizeCore to perform calculations.  Remove custom
11056         autosize logic.  [Fixes bug #82739]
11057
11058 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
11059
11060         * TextBoxBase.cs: Modified should default to false.
11061
11062 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
11063
11064         * Control.cs: Update the anchoring distances even when layout is supspended.
11065         Patch provided by George fixes bug #82805.
11066
11067 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
11068
11069         * Control.cs: Provide a setter for ExplicitHeight.
11070         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
11071         remove the hacks in here for requested_height.
11072         [Fixes bug #82749]
11073
11074 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
11075
11076         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
11077         Maximum to lower that its current Value caused an ArgumentException by setting
11078         the Value to the new Maximum.
11079
11080 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
11081
11082         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
11083         handle moves to the closest tick when it is being dragged.
11084         [Fixes bug #82751]
11085
11086 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
11087
11088         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
11089         can't let them count as real items when calculating where to merge in the
11090         user's items.  [Fixed bug #82786]
11091
11092 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
11093
11094         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
11095         who want to add a menu item directly onto a toolstrip.
11096         [Fixes bug #82775, part II]
11097
11098 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
11099
11100         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
11101         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
11102         don't set it to available.
11103         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
11104         [Fixes bug #82727, part II]
11105
11106 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
11107
11108         * StatusStrip.cs: Change item placement to None if not visible.
11109         * ToolStripItem.cs: Invalidate when InternalVisible changes.
11110         These should have been committed to fix 82723, but I missed them.
11111
11112 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
11113
11114         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
11115         Click, and that it is only called once.
11116         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
11117         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
11118         dropped down.
11119         [Fixes bug #82775]
11120
11121 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11122
11123         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
11124         to match .Net.
11125         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
11126         instead of 8, just like above. Partially fixes #82734.
11127
11128 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11129
11130         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
11131         fixes #82734.
11132
11133         * ListView.cs: Remove extra space between rows in Details view (match
11134         .Net). 
11135         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
11136         the DefaultFont.
11137
11138 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
11139
11140         * Application.cs: Modified ProductVersion to return value of
11141         AssemblyInformationVersion if available, and fallback to assembly
11142         version. Fixes bug #82746. Code formatting.
11143         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
11144         instead.
11145
11146 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11147
11148         * Control.cs: When updating ZOrder for a child control,
11149         take into account the implicit ones (we need it in our controls
11150         using them). Fixes #82642.
11151
11152 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
11153
11154         * ToolStripItem.cs: Add support for animated images.
11155         [Fixes bug #82726]
11156
11157 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
11158
11159         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
11160         visible.  [Fixes bug #82727]
11161
11162 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11163
11164         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
11165         so we repaint using the new size.  [Fixes bug #82723]
11166
11167 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11168
11169         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
11170         option.  [Fixes bug #81779]
11171
11172 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11173
11174         * TreeView.cs: Override HandleClick because the StandardClick style is
11175         set to false.  According to MSDN (and testing), the click events should
11176         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
11177
11178 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11179
11180         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
11181         the border will disappear.  Fixes reopened #82653.
11182
11183 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11184
11185         * Control.cs: If the control is autosize, and its preferred size changes
11186         when it lays out its children, tell its parent so it can be re-layed out.
11187         Fixing some of the fallout from r85433.
11188
11189 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11190
11191         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
11192         and CheckBox share some code.
11193
11194 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11195
11196         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
11197         the TrackBar, not every mouse move.  [Fixed bug #82718]
11198
11199 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11200
11201         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
11202         under 2.0 rendering.  [Fixes bug #82657]
11203
11204 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11205
11206         * TreeView.cs: If we found a TreeNode to display a context menu, but
11207         it doesn't have one to show, let the TreeView display its menu
11208         instead.  [Fixes bug #82680]
11209
11210 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11211
11212         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
11213         OnPaintInternal instead.  Give the internal TextBox a Border property
11214         so it can draw itself more correctly.  [Fixes bug #82653]
11215
11216 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
11217
11218         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
11219
11220 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
11221
11222         * ComboBox.cs: Adjust combobox button state to reflect current state when
11223         back to enabled = true. Fixes first issue of #82654.
11224
11225 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
11226
11227         * Control.cs: Fix last patch regression, prevent forms to update zorder when
11228         setting visible property.
11229
11230 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
11231
11232         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
11233         fix zorder for controls initially created as non visible. Fixes #82667.
11234
11235 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
11236
11237         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
11238         mimic win32 look. Fixes #82656.
11239
11240 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
11241
11242         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
11243         Stubs for new net 3.5 classes.
11244
11245 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11246
11247         * ListViewItem.cs: In ListViewItemCollection operations calculate
11248         Layout for owner as well as invalidate it. Fixes part of #82642.
11249
11250 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
11251
11252         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
11253         when returning Enabled.  [Fixes bug #82651]
11254
11255 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
11256
11257         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
11258
11259 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11260
11261         * ListView.cs: Put item padding info in a single place
11262         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
11263         columns again.
11264         * ThemeWin32Classic.cs:
11265         * Theme.cs: Likewise.
11266
11267 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11268
11269         * ListView.cs: When a ListViewSubItem instance is invalidated,
11270         invoke Invalidate on parent ListViewItem, not parent ListView.
11271         Fixes #81570.
11272
11273 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
11274
11275         * ListView.cs, ListViewItem.cs: corcompare stuffs.
11276
11277 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
11278
11279         * BindingMemberInfo.cs: Implement == and != operators.
11280
11281 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
11282
11283         * HtmlElementEventArgs.cs: Implement properties.
11284
11285 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
11286
11287         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
11288
11289 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
11290
11291         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
11292         Add (string,string,string) to implement the imagekey.  It turns out, we
11293         use the requested imagekey whereas .Net does not.  So I broke ours to match
11294         theirs.  :(
11295
11296 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
11297
11298         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
11299
11300 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
11301
11302         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
11303
11304 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
11305
11306         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
11307         up-to-date. Fixes bug #82618.
11308
11309 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
11310
11311         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
11312         reflect document changes. Fixes #82367.
11313
11314 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11315
11316         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
11317         as well as add new ones. This should make work the BackgroundImage
11318         property for ListView again.
11319
11320 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
11321
11322         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
11323         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
11324         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
11325
11326 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
11327
11328         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
11329         IsKeyLocked.
11330
11331 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
11332
11333         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
11334         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
11335
11336 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
11337
11338         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
11339         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
11340
11341 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
11342
11343         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
11344
11345 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
11346
11347         * GridEntry.cs: Implement GetService.
11348
11349 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
11350
11351         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
11352         for label editting, make sure we focus back on the TreeView.
11353         [Fixes bug #82590]
11354
11355 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11356
11357         * ListView.cs: Add some 2.0 overrides.
11358
11359 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
11360
11361         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
11362         because getter dont returns right value before handle creation. Thanks 
11363         to George. Fixes #82569.  
11364
11365 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
11366
11367         * Theme.cs: Revert last patch, it causes error under win32. 
11368
11369 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
11370
11371         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
11372         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
11373         logical Desktop rather than the physical file system location. Fixes #82603. 
11374
11375 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
11376
11377         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
11378         for the patch. Fixes #82568.
11379
11380 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11381
11382         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
11383         methods.
11384
11385 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11386
11387         * ListViewInsertionMark.cs: New stubbed class.
11388
11389 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
11390
11391         * FolderBrowserDialog.cs: When adding folder, immediately create the
11392         directory with temporary name and rename the directory when editing
11393         finishes. This matches MS. Ensure the node for the new folder is 
11394         selected and LabelEdit is disabled, when editing is either finished
11395         or cancelled.
11396
11397 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
11398
11399         * TreeView.cs: When editing label of node, ensure node is visible.
11400
11401 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
11402
11403         * PropertyGridView.cs: Set the value only if it has changed.
11404
11405 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11406
11407         * ListView.cs: Some more code refactoring to add support sorting
11408         with groups (now for Details view). Remove unused code also.
11409
11410 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11411
11412         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
11413         Not a big fan of reacting immediately to a field in an EventArg, but that's
11414         the way it's done.  (This is part of the previous commit that got left out.)
11415
11416 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
11417
11418         * FolderBrowserDialog.cs: Removed need for separate description field.
11419         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
11420         has focus when dialog box is displayed again, regardless of what
11421         button was pressed the previous time. Set RootFolder and SelectedPath
11422         each time dialog box is displayed. This ensures the treeview is
11423         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
11424         when it does not have focus. Added support for more special folders.
11425
11426 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11427
11428         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
11429         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
11430         it resets the edit_args.
11431         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
11432         [Fixes bug #82577]
11433
11434 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
11435
11436         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
11437         button to match MS. Provide more meaningful exception message for
11438         invalid RootFolder value. Use zero-length string when SelectedPath
11439         is set to null. Allow non-rooted paths in SelectedPath, but ignore
11440         them in FolderBrowserTreeView. Allow folders to be created in
11441         RootFolder. Fixes bug #82576.
11442
11443 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11444
11445         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
11446         since we need to take into account the group headers and the margin
11447         between them.
11448         * ListViewGroup.cs: Add a rows field to store the number of rows per
11449         group.
11450
11451 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11452
11453         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
11454           Anyways, let's just follow the lead.
11455
11456 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11457
11458         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
11459         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
11460         controls in GetPreferredSizeCore.
11461         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
11462         [Fixes bug #82488]
11463
11464 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11465
11466         * PrintDialog.cs: Need to instantiate the form variable here too.
11467
11468 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11469
11470         * ListView.cs: Do some reorganization to support sorting in groups,
11471         by doing the layout sequentially in ListView.Items. Also add support
11472         for the Default Group, which should be available for items with no
11473         group assigned.
11474         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
11475         for storing layout info also.
11476         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
11477         collection, as well as providing internal members to do a traversal
11478         including the default group (needed when doing layout/drawing).
11479         * ThemeWin32Classic.cs: When drawing group headers use internal
11480         ListViewGroupCollection members to take into account the default
11481         group.
11482
11483 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
11484
11485         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
11486
11487 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11488
11489         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
11490         been created.  If handle is created, we want arror keys.  If we are editing
11491         a node, we want things like enter, esc, home, end, page up, page down.
11492         Allows Esc to work for FolderBrowserDialog.
11493
11494 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11495
11496         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
11497         they close when ESC is pressed.  Thanks Andy!
11498
11499 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11500
11501         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
11502         This way we can tell if this is a CommonDialog provided with mono, or one
11503         that is being implemented outside by a developer.  If it is an external one,
11504         the developer is responsible for showing their own form.  We were showing
11505         our blank form after the developer showed his.
11506         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
11507         PageSetupDialog.cs: Instantiate form variable in our constructor.
11508         [Fixes bug #82531]
11509
11510 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11511
11512         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
11513         and always return true.  [Fixes bug #81616]
11514
11515 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11516
11517         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
11518         TextBox.  [Fixes bug #82549]
11519
11520 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
11521
11522         * FileDialog.cs: When Save/Open is clicked and no filename is selected
11523         or entered then do not close the dialog. Fixes bug #82539. Removed
11524         CWLs.
11525
11526 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
11527
11528         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
11529         code to this method. It is calling every time filter changes. This method
11530         will help to fix the bug #80887.
11531
11532 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
11533
11534         * CheckBox.cs: Implement AutoSize calculation.
11535
11536 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
11537
11538         * CheckBox.cs: Use new 2.0 rendering for 2.0.
11539         * Theme.cs: Method declarations for 2.0 rendering path.
11540         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
11541
11542 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11543
11544         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
11545
11546 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11547
11548         * ListViewGroupCollection.cs: Implement AddRange the right way, to
11549         only call Redraw on the parent one time.
11550
11551 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11552
11553         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
11554           GetClipboardContent.
11555         * DataGridViewCell.cs: Implemented GetClipboardContent,
11556           GetEditedFormattedValue, GetFormattedValue.
11557         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
11558
11559 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
11560
11561         * TableLayoutStyleCollection.cs: corcompare fix.
11562
11563 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11564
11565         * DataObject.cs: Implemented retrieval of convertible / not convertible
11566           objects.
11567
11568 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
11569
11570         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
11571         ourselves.  This ensures the entire old bounds are repainted, in case our new
11572         size is smaller.  [Fixes bug #82518]
11573
11574 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
11575
11576         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
11577         flag to make fast handle of mouse events, without this the mouse move is
11578         handled in some manner, whether it is a mouse move or not. Fixes #81588.
11579
11580 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11581
11582         * ListView.cs: When doing layout calculations don't use a ref
11583         param to keep the current item; instead use its Index value (this 
11584         is specially important when doing the layout with Groups
11585         and Items being sparse). Also don't take into account items added to
11586         the Group but not yet added to the main ListView.Items collection.
11587
11588 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11589
11590         * ListViewGroupCollection.cs: Forgot to mimic an issue
11591         in the indexer (don't assign the ListView owner for new values).
11592
11593 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11594
11595         * ListViewGroupCollection.cs: Make the string indexer use
11596         the int based indexer to re-use code, instead of duplicate the code.
11597         Also Redraw as needed and take into account null values.
11598
11599 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
11600
11601         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
11602         [Fixes bug #82481]
11603
11604 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
11605
11606         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
11607         when other buttons are clicked or navigated to.
11608
11609 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11610
11611         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
11612           it's XplatUIX11 that attaches them.
11613
11614 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11615
11616         * DataGridView.cs: If a column has been added, recreate the editing row.
11617           Fixes #82226.
11618
11619 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11620
11621         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
11622           of the tag to draw. Makes disappearing text show up again.
11623
11624 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11625
11626         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
11627           Contents. Fixes #82487.
11628
11629 2007-08-19  Andreia Gaita  <avidigal@novell.com>
11630
11631         * Added HtmlElement.cs, HtmlElementCollection.cs, 
11632           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
11633           
11634 2007-08-19  Andreia Gaita  <avidigal@novell.com>
11635
11636         * BindingSource.cs: Implement this, dispose and getenumerator.
11637         * DataGridViewRowCollection.cs: Move the InvalidOperationException
11638         out of AddInternal, throw it only on public Add calls. The 
11639         UsingWebBrowser sample was blowing up with this when setting the
11640         DataSource after adding DataBindings, so it's likely that .net
11641         only throws this exception when Add is called directly. 
11642         
11643         * ToolStripControlHost.cs: Return the hosted control's text
11644         property, and not the ToolStripItem one (it would always return
11645         the initial value).
11646         
11647         * HtmlDocument.cs: Implement GetElementById and All
11648         * WebBrowser.cs: Remove exception on set_DocumentStream.        
11649
11650 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11651
11652         * Form.cs: Fix the max and min value for opacity (0~1).
11653
11654 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11655
11656         [Fixes #80118]
11657         * DataGridTableStyle.cs: Default header font is now null, on getter it 
11658         returns datagrid font when is null. On setter permits null.
11659
11660         * DataGrid.cs:
11661         - When ResetHeaderFont set header font to null.
11662         - On EndInit set grid_style.DataGrid.
11663
11664 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11665
11666         * TabControl.cs: Fix regression in default padding x.
11667
11668 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11669
11670         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
11671
11672 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11673
11674         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
11675         not 2. Fixes #82229.
11676
11677 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11678
11679         * TabControl.cs: Fix tab size when image height is less than text height.
11680         Partially fixes #81837.
11681
11682 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11683
11684         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
11685         "alt + tab". It works only for Win32, for X11 theres no way to remove window
11686         from taskbar and keep it on "alt_tab". Fixes #81722.
11687
11688 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11689
11690         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
11691         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
11692         Fixes #80877 and #79418.
11693
11694 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11695
11696         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
11697         between position and one of the screen borders. Fixes #82349.
11698
11699 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11700
11701         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
11702         the MessageBox in the taskbar. Fixes #82457.
11703
11704 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11705
11706         * MessageBox.cs: Fix form size when icon is set and text height is bigger
11707         than icon. Fixes #82468.
11708
11709 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11710
11711         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
11712         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
11713           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
11714           Refactored HandleNCCalcSize somewhat to avoid code duplication.
11715         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
11716           FormBorderStyle to decide if we're calculating a new size from the
11717           client size or not. CreateParams: Don't fake tool windows, only the X11
11718           backend manages toolwindows manually.
11719
11720 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11721
11722         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
11723         ObjectDisposedException.
11724
11725 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11726
11727         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
11728         in OnLoad should not have any effect.  [Fixes bug #82470]
11729
11730 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11731
11732         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
11733         paint for controls that create their own ToolTipWindow instead of
11734         going through ToolTip.
11735
11736 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11737
11738         * ToolTip.cs: Make Hide internal instead of public to match MS API.
11739
11740 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11741
11742         * ListViewGroupCollection.cs: Use generic List instead of an
11743         ArrayList, since this collection is 2.0 only.
11744
11745 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
11746
11747         * ToolTip.cs (Hide): Made public to make the build work (should
11748         this not be public?).
11749
11750 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11751
11752         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
11753         ToolTipWindow.
11754         * ToolTip.cs: Add an internal Visible property to facilitate transition.
11755
11756 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11757
11758         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
11759         PopupEventHandler.cs: Make these internal for 1.1.
11760         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
11761         use ToolTipWindow internals.
11762         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
11763         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
11764
11765 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11766
11767         * X11Dnd.cs: Add a null check.
11768
11769 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11770
11771         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
11772           nothing else succeeds. Fixes #82453.
11773
11774 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11775
11776         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
11777           rectangle if we're painting to another window than the one the paint
11778           message was generated on. Simplify the code somewhat, which makes
11779           PaintEventEnd also simpler.
11780
11781 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11782
11783         * Control.cs: When changing parent of a form, let the form decide whether
11784           XplatUI.SetParent should be called or not.
11785         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
11786           recreating the handle. If the new parent's handle isn't created, don't
11787           recreate our handle, just destroy it. CreateParams: Check if the
11788           parent's handle is created before fetching it.
11789
11790 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11791
11792         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
11793           Update calls to PaintEventStart/End to take a Message argument.
11794         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
11795           take a Message argument.
11796         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
11797           Message argument, and handle the case where we don't paint to the window
11798           for which the paint message was generated.
11799
11800 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11801
11802         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
11803           Marshal.GetLastWin32Error. Plug nasty memory leak in
11804           PaintEventStart/End, we were creating a DC we weren't releasing.
11805
11806 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11807
11808         * ListView.cs: Add Groups support in Details view. Also have a small
11809         method to do the layout of the group header. Don't use a separate
11810         method to do the groups calculation in Icons view, since our methods
11811         are now a little simpler.
11812         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
11813         `Bounds'.
11814         * ThemeWin32Classic.cs: Likewise.
11815
11816 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11817
11818         * Application.cs: Add FilterMessage method and rework our message loop
11819         logic to use it.
11820
11821 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11822
11823         * Application.cs: Add some methods and stub a few methods that are
11824         pretty much never used.
11825
11826 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
11827
11828         * TreeNode.cs: Add some serialization methods.
11829
11830 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11831
11832         * ListView.cs: In ListViewItemCollection have a 
11833         'is_main_collection' field to not modify ListViewItem.ListView
11834         when using it as ListViewGroup.Items (and not ListView.Items)
11835         and also don't modify selection state (.Net behaviour). 
11836         Instead, set group for items contained in a ListViewGroup.Items collection.
11837         * ListViewItem.cs: Simplify some code in Group setter.
11838         * ListViewGroup.cs: use the new .ctor to pass the current instance
11839         to the ItemsCollection.
11840         * ListViewGroup.cs: Set the ListView property for ListViewGroup
11841         instances when adding/removing. Also make Remove use RemoveAt, which
11842         should perform better.
11843
11844 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11845
11846         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
11847         that crept into the 1.1 profile.
11848
11849 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11850
11851         * ToolBarButton.cs: Implement ImageKey.
11852
11853 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11854
11855         * ToolBar.cs: Implement ScaleControl/ScaleCore.
11856
11857 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11858
11859         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
11860           created, it might have gotten destroyed since we last checked. Fixes
11861           #82405.
11862
11863 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
11864
11865         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
11866         tooltip will hide when mouse is moved off the control.
11867         [Fixes bug #82407]
11868
11869 2007-08-11 Andreia Gaita <avidigal@novell.com>
11870
11871         * WebBrowserBase.cs, WebBrowser.cs: add implementation
11872         using Mono.Mozilla for loading and navigating webcontrol
11873         with xulrunner.
11874         The initial implementation was done on 
11875         /trunk/mozembed/tests/browser , and copied here.
11876
11877 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
11878
11879         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
11880         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
11881
11882 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11883
11884         * DataGridView.cs: Add support for an editing row. Fixes #82226.
11885           RowTemplateFull: throw an exception if a column doesn't have a template.
11886         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
11887           add the row just before it.
11888         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
11889           selected.
11890         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
11891           DataGridView field to be able to reach the grid's editing row.
11892
11893 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11894
11895         * ToolTip.cs: If the control's handle hasn't been created when it has a
11896         tooltip set on it, don't check to see if we need to show the tooltip.  This
11897         check was causing the control's handle to be created.
11898         [Fixes bug #82399]
11899
11900 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11901
11902         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
11903                                         1.1             2.0
11904         Handle Not Created      -1              0
11905         Handle Created          0               0
11906         [Fixes bug #82371]
11907
11908 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11909
11910         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
11911         [Fixes bug #82348]
11912
11913 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11914
11915         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
11916         * ToolTip.cs: Implement some properties and owner draw.
11917
11918 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11919
11920         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
11921           show them again, since setting visibility causes a paint, causing an
11922           endless loop (instead use a temporary and set it all when it's known if
11923           they should be shown or not). Fixes #79265.
11924
11925 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11926
11927         * DataGridView.cs: Only do a full column/row selection if a header was
11928           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
11929           isn't pressed, deselect everything before selecting something.
11930
11931 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11932
11933         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
11934           behaviour according to bug #81075 - they are returned in the order they
11935           are selected. Fix HitTest to check if the point is within any of the
11936           headers. Allow for row/column selection when in ColumnHeader or
11937           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
11938           the row and column to call when their selected state changes, and
11939           updated selected_[rows|columns] whenever SetSelected* is called.
11940         * DataGridViewBand.cs: Initialize isRow correctly. Call
11941           SetSelected[Row|Column]CoreInternal when the selected state changes, and
11942           add a SelectedInternal to avoid StackOverflows.
11943         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
11944           ReadOnly no matter what.
11945         * DataGridViewSelectedColumnCollection.cs,
11946           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
11947           the items in reverse order (just as MS does...)
11948
11949 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11950
11951         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
11952         itself, not part of a mnemonic.  [Fixes bug #82378]
11953
11954 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11955
11956         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
11957         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
11958           the DGV, the column, the row, or the cell itself is readonly.
11959
11960 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11961
11962         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
11963         OSVersion.Platform.
11964         * FileDialog.cs: Same.
11965         * TextRendered.cs: Same.
11966         * FolderBrowserDialog.cs: Same.
11967         * TextBoxBase.cs: Same.
11968         * Application.cs: Same.
11969         * Cursors.cs: Same.
11970         * ThemeClearLooks.cs: Same.
11971
11972 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11973
11974         * XplatUI.cs: Added RunningOnUnix property to be used by controls
11975         instead of duplicating these checks everywhere.
11976         * FileDialog.cs: Use case-insensitive comparison for populating the
11977         DirComboBox when not running on unix. Fixes bug #82385.
11978         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
11979         "Look in".
11980
11981 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11982
11983         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
11984           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
11985           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
11986           cell and column selection with ctrl and shift pressed. Call the correct
11987           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
11988           the corresponding virtual method (PaintBackground to paint background,
11989           etc).
11990         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
11991           either the column, row or the cell itself is selected.
11992         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
11993           OnRowsAdded.
11994         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
11995           here. When the row is selected, don't select all cells. Each cell now
11996           queries the row to see if the row is selected.
11997
11998 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11999
12000         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
12001           SelectionMode.
12002
12003 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12004
12005         * ListView.cs: In ListViewItemsCollection check that owner is
12006         not null before trying to access it (this happens quite often
12007         using Groups). Also don't duplicate calls by calling CollectionChanged
12008         method.
12009
12010 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
12011
12012         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
12013         when we are dismissed to clear keyboard mnemonics.
12014         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
12015         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
12016         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
12017         was activated by keyboard or the OS tells us to always draw them.
12018         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
12019         [Fixes bugs #82376, #82377]
12020
12021 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
12022
12023         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
12024         shot at having it because Alt was pressed.
12025         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
12026         the first real menu item.
12027         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
12028         a mnemonic if Text is null.
12029         [Fixes bug #82374]
12030
12031 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12032
12033         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
12034         search do check whether the item is already contained in the
12035         collection or not; instead check if the owner of the item is the same
12036         as ours. Also, remove a redundant check in the same method. 
12037
12038 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
12039
12040         * Control.cs: Allow the clip region to be set back to null.
12041         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
12042         [Fixes button still showing up in bug #82370 when Show Through is turned off]
12043
12044 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12045
12046         * GridEntry.cs: Add a null check.
12047         * PropertyGrid.cs: When checking for existing grid entries, ignore category
12048           entries. Fixes #82297.
12049
12050 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
12051
12052         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
12053         for 2.0.
12054
12055 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
12056
12057         * ListBox.cs: Implement ScaleControl.
12058
12059 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12060
12061         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
12062           have a menu strip.
12063         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
12064           parent has a menu strip. Fixes #81689.
12065
12066 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12067
12068         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
12069           moments, so apply some fuzzy logic to determine if the mouse is still
12070           inside a control or not. Fixes #82288 (for the third time).
12071
12072 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12073
12074         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
12075           Don't create the child if it has been disposed already (may happen if
12076           the user closes the form the Load event).
12077
12078 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12079
12080         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
12081           #82288.
12082
12083 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12084
12085         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
12086           might call us after we've been destroyed, in which case our own private
12087           parent field is null. Fixes #82326.
12088
12089 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
12090
12091         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
12092         check for setting the dropdown's owner.
12093
12094 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
12095
12096         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
12097         before removing system menu items.
12098
12099 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
12100
12101         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
12102         folding.
12103         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
12104         folding.
12105         * ToolStrip.cs: Add a null check to mnemonics.
12106         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
12107         no ConnectedArea.
12108         [Fixes most of bug #81689]
12109
12110 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12111
12112         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
12113
12114 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12115
12116         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
12117
12118 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12119
12120         * DataGridViewCell.cs: EditType: returns
12121           DataGridViewTextBoxEditingControl always.
12122
12123 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
12124
12125         * TextRenderer.cs: Remove the LineLimit string format flag from the
12126         DrawString fallback method so that things like buttons that aren't
12127         tall enough to draw a full line will still draw part of the text.
12128         [Fixes part of bug #82272]
12129
12130 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12131
12132         * DataGridView.cs: Implemented AutoResizeColumn(s).
12133         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
12134           according to the Alignment.
12135         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
12136           Implement alignment and padding when painting.
12137         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
12138           exists.
12139         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
12140           way.
12141         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
12142           a column is added.
12143
12144 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
12145
12146         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
12147         which is internal.
12148
12149 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
12150
12151         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
12152         hide GetPreferredSize from public API.
12153         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
12154         * ToolStripItem.cs: Stub out drag and drop methods and events.
12155         * ToolStripManager.cs: Stub out Save/LoadSettings.
12156         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
12157         * ToolStripPanel.cs: Fix corcompare error.
12158         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
12159         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
12160         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
12161
12162 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
12163
12164         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
12165         bounds height instead of PreferredHeight.  Puts things back the way 
12166         they were for height while still fixing the width.  Fixes broken unit
12167         tests.
12168
12169 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12170
12171         * Binding.cs: Implement 2.0 constructors and add a null check.
12172
12173 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12174
12175         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
12176           and fix row index (off by one).
12177
12178 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12179
12180         * PropertyGridView.cs: Remove debug output.
12181
12182 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12183
12184         * Control.cs: We need to reset the is_created flags when the handle is
12185           destroyed. Fixes #82187.
12186         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
12187           client coordinates if the window doesn't have a parent.
12188           Win32GetParent returns the parent or the owner, and for top-level
12189           windows with no parent (but with an owner) we were calculating the
12190           location from the location of the owner.
12191         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
12192           form has been disposed.
12193         * MdiClient.cs: Add a null-check.
12194
12195 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
12196
12197         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
12198         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
12199         so we can provide an implementation that returns the current width
12200         and preferred height.  Allows anchor = right to work with TextBox 2.0.
12201         [Fixes bug #82233]
12202
12203 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12204
12205         * ListView.cs: Add support for navigating items in Groups mode, by
12206         creating a big matrix containing all rows and cols of all groups. When
12207         are in other mode than Details, pressing Up should have a similar
12208         behaviour as that one of Down (moving to the next available column if
12209         current one doesn't have an item in the requested row). Also, don't
12210         proceed to use groups if ShowGroups is false.
12211         * ListViewGroup.cs: Add an internal int field to store the starting
12212         row of the group (used by the big matrix used for navigating the
12213         ListView).
12214         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
12215         false.
12216
12217 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
12218
12219         * ToolStripDropDown.cs: When we do Show, start with the 
12220         DefaultDropDownDirection, but if our popup menu is going to off-screen,
12221         modify the direction to keep it on screen.  [Fixes bug #82210]
12222
12223 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
12224
12225         * FileDialog.cs: Accept any FilterIndex value, and store it
12226         unmodified. When FilterIndex is less than 1, or greater than number
12227         of filters, then default to first filter. Only add filter extension to
12228         file if user did not specifiy an extension. When type of dialog is
12229         OpenFileDialog and DefaultExt is set, then only use filter extension
12230         if: CheckFileExists is true and no file wih the default extension
12231         exists, or CheckFileExists is false, and user specified file does not
12232         exist. When CheckFileExists is true, then add first extension of 
12233         selected filter that matches existing file. Perform checks for
12234         existing file, overwrite and create after extension has been added to
12235         file name. When CheckFileExists is true and type is SaveFileDialog,
12236         then only consider first filter extension if DefaultExt is set.
12237         When CheckFileExists is true, then ignore DefaultExt if file with that
12238         extension does not exist. Also perform check for existing file when
12239         type is SaveFileDialog. Changed some field to constants.
12240
12241 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12242
12243         * ListView.cs: Take into account the region used by header
12244         control when doing the vertical scroll (this way we invalidate
12245         the precise area, and don't get any dirty one).
12246
12247 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
12248
12249         * FileDialog.cs: Check for valid filterIndex on button open/save. 
12250         Fixes #82184.
12251
12252 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12253
12254         * ListView.cs: Update some layout calculations in details view
12255         and clean the code in a pair of assignations.
12256
12257 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
12258
12259         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
12260         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
12261         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
12262         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
12263
12264 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
12265
12266         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
12267         performance of thread-safe Graphic methods.  (Thanks rolf!)
12268
12269 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12270
12271         * ListView.cs: When doing the layout calculations, don't calculate
12272         scroll bars before handle is created. This is unnecessary and also
12273         calculating them before handle creation item causes a number of random
12274         bugs (which begin to appear after Chris' big patch for handle creation
12275         fixes). 
12276
12277 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
12278
12279         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
12280         for things that don't have a Graphics object.  Currently, things just use
12281         the static Hwnd.bmp_g which is not thread safe.
12282
12283 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12284
12285         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
12286           dialog. Fixes #82187.
12287
12288 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12289
12290         * DataGridViewElement.cs: Initialize state.
12291         * DataGridView.cs: Forward a few Mouse events to cells. Add
12292           GetRowInternal and GetCellInternal that doesn't unshare rows.
12293           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
12294           don't use the index, but look it up. Add
12295           DataGridViewControlCollection.RemoveInternal to remove controls
12296           that Remove won't remove (scrollbars, edit control).
12297         * DataGridViewColumn.cs: Initialize State correctly.
12298         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
12299           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
12300           implementing this.
12301         * DataGridViewRowCollection.cs: Implemented shared rows.
12302         * DataGridViewRow.cs: Throw exceptions as MS do.
12303         * DataGridViewCell.cs: A few properties are implemented by a
12304           Get<Property> method, so move implementation there and remove the
12305           NIEX in the method. Add a bunch of OnXInternal that DataGridView
12306           calls when necessary.
12307         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
12308           complicates matters.
12309         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
12310           unshare any rows.
12311
12312 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
12313
12314         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
12315         the children controls.  Instead, we will just set up the proper docking for the
12316         children controls so we don't have to worry about it.  [Fixes bug #82188]
12317
12318 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
12319
12320         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
12321         canceling and correct Before/AfterLabelEdit properties as layed out in bug
12322         81847.  [Fixes bug #81847]
12323
12324 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
12325
12326         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
12327         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
12328         an explicit size based on the design-time size of the text.  Since our fonts
12329         may not match this explicit size, we tend to cut off the ends of people's labels.
12330
12331 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
12332
12333         * Menu.cs: Add some missing methods to MenuItemCollection.
12334
12335 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12336
12337         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
12338         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
12339         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
12340         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
12341         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
12342         * DataGridViewElement.cs: State defaults to Visible.
12343         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
12344         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
12345
12346 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12347
12348         * Control.cs: Minor 1.1 corcompare fix.
12349
12350 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
12351
12352         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
12353         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
12354
12355 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12356
12357         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
12358           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
12359           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
12360           DataGridViewSelectedColumnCollection.cs,
12361           DataGridViewSelectedRowCollection.cs: Corcompare work.
12362
12363 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
12364
12365         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
12366         it is autoset by VS2005 designer and the effect is barely noticeable.
12367
12368 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
12369
12370         * TreeView.cs: Implement HitTest.
12371
12372 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12373
12374         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
12375           manually adding and removing the control from the Controls
12376           collecftion.
12377         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
12378           EditingControlInternal property that tracks the editing control.
12379           Always keeping the scrollbars in the Controls collection, as MS
12380           testing confirms is the right behaviour.
12381
12382 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12383
12384         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
12385           according to MSDN and new test.
12386
12387 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
12388
12389         * TreeNode.cs: Implement ToolTipText.
12390         * TreeView.cs: Implement tooltips, NodeMouse* events.
12391
12392 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
12393
12394         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
12395
12396 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
12397
12398         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
12399         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
12400
12401 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
12402
12403         * Control.cs, Form.cs, ContainerControl.cs,
12404         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
12405         for misc properties.
12406
12407 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
12408
12409         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
12410         * TreeView.cs: Implement StateImageList.
12411
12412 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12413
12414         * Form.cs: Don't check if the current form is the active form before
12415           activating it. Fixes #81904.
12416
12417 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12418
12419         * Form.cs: Don't check if the current form is the active form before
12420           activating it. Fixes #81904.
12421
12422 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12423
12424         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
12425
12426 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12427
12428         * Form.cs: Don't try to position the form after loading if the form was
12429           disposed. Fixes #81969.
12430
12431 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12432
12433         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
12434           properties. Had to change ToolBar into ToolStrip, which required a
12435           few #ifs.
12436
12437 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12438
12439         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
12440           resized, fixes part of #79829 (vertical lines in toolbar).
12441           PropertyGrid: Refactored Populate* to something that's easier to
12442           follow at least for me, as well as splitting it up into several new
12443           methods, required to update only subitems when something has
12444           changed by a popup editor or listbox. Don't use events to check
12445           when any values are changed, since the events are unreliable (we're
12446           changing the objects the events are registered with, and if the
12447           event handling requires the objects to be immutable (objects stored
12448           in hashtables for instance), the events will never be raised).
12449         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
12450           everytime we change a value, since events are unreliable.
12451           DropDownButtonClicked: For the same reason don't compare objects to
12452           check if it has changed or not, it would require all objects to
12453           derive Equals. Fix dialog location on windows, MS is doing weird
12454           things when creating parented forms.
12455         * GridEntry.cs: Add a SelectedObject setter.
12456
12457 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
12458
12459         * TreeNode.cs: Add some corcompare attributes.
12460         * TreeNodeCollection.cs: Implement 2.0 stuffs.
12461         * TreeView.cs: Implement some 2.0 stuffs.
12462
12463 2007-07-18  Andreia Gaita  <avidigal@novell.com>
12464
12465         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
12466         for moma.
12467
12468 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
12469
12470         * ListBox.cs: Implement custom tab offsets.
12471
12472 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12473
12474         * ToolStripContentPanel.cs: Support System renderer.
12475         * ToolStripControlHost.cs: Set RightToLeft to default to No.
12476
12477 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12478
12479         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
12480
12481 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12482
12483         * CheckBox.cs: Chain TextAlign to base implementation instead of
12484         maintaining another one.
12485
12486 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12487
12488         * ButtonBase.cs: Fix an incorrect string constant.
12489
12490 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12491
12492         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
12493         of creating one for measuring strings.
12494
12495 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12496
12497         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
12498         Implement MaxItemSize.
12499
12500 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
12501
12502         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
12503         for DeviceContext.  Instead, use the static one available in Hwnd.
12504         Informal tests show this saves about 500k on formtest.exe.
12505
12506 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
12507
12508         * ContainerControl.cs: Implement 2.0 AutoScaling.
12509
12510 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12511
12512         * ComboBox.cs: Work around bug #82120 (bug in mcs).
12513
12514 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
12515
12516         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
12517         Darken the focus color.
12518
12519 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
12520
12521         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
12522         for the checkbox.
12523         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
12524         X, Y instead of a rect for drawing text.
12525         - For ControlPaint.DrawCheckBox, center the check a little better when the
12526         checkbox is odd width.  When drawing a flat checkbox, use a white background
12527         when state != inactive.
12528         [Fixes bugs #82097, 82100]
12529
12530 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
12531
12532         * ListControl.cs: When changing CurrencyManager, disconnect event
12533         handlers from previous one. Fixes bug #81771. Code formatting.
12534
12535 2007-07-15  Andreia Gaita <avidigal@novell.com>
12536
12537         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
12538         full preview invalidation from layout invalidation, and only invalidate
12539         the layout when setting zoom or other properties. Invalidation should
12540         always be done even when resetting properties with the same values as
12541         what is there. Fixes #81744 and #79830.
12542
12543 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12544
12545         * ListView.cs: Implement initial support for Groups. Split some of the
12546         LayoutIcons code to render a partial list of the items (needed by
12547         items contained in ListViewGroup instances). Let the
12548         ListViewItemsCollection.ListView property be modifiable (needed when
12549         using Groups, too).
12550         * ListViewGroup.cs: Use a Bounds property rather than a Location
12551         one. Also invalidate the bounds when they get changed.
12552         * ThemeWin32Classic.cs: When drawing items, also draw the group header
12553         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
12554         method as well.
12555
12556 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12557
12558         * ListView.cs: When space gets pressed and CheckBoxes is true, 
12559         don't invoke the Begin and EndUpdate methods. We are generating 
12560         a redraw of the entire control without need to do so.
12561
12562 2007-07-13  William Holmes <billholmes54@gmail.com> 
12563
12564         * Control.cs: Changing logic in FindFlatForward and 
12565           FindFlatBackward to handle multiple Controls with 
12566           the same TabIndex.  
12567           This fixes bug 81687.
12568
12569 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
12570
12571         * OSFeature.cs: Enable IsPresent.
12572
12573 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12574
12575         * Control.cs: Don't do anything in WmShowWindow if the control has been
12576           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
12577           control is created, put on a form, the control is disposed (the
12578           form is never shown), and then we get a MapNotify, triggering a
12579           WM_SHOWWINDOW.
12580         * Form.cs: Exclude the current form when sending Deactivate to all
12581           MdiChildren.
12582         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
12583           there was a race condition because assigning the handle raises
12584           events, we can get more messages, therefore trying to assign the
12585           handle again, which would fail if any of those event handlers
12586           closed/disposed the control.
12587
12588 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12589
12590         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
12591
12592 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
12593
12594         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
12595         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
12596
12597 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12598
12599         * DateTimePicker.cs: If there's no part format specifier, return an
12600           empty string.
12601
12602 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
12603
12604         * FlatButtonAppearance.cs: Throw NotSupportedException for a
12605         Transparent BorderColor.
12606
12607 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12608
12609         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
12610           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
12611           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
12612           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
12613           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
12614           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
12615           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
12616           Remove warnings.
12617         * X11Structs.cs: Remove warnings, add ToString implementations.
12618
12619 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12620
12621         * XplatUIX11.cs: Translate min/max size according to the actual min/max
12622           size, and not the current size. Fixes #81798.
12623
12624 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12625
12626         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
12627           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
12628           to the control yet).
12629
12630 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12631
12632         * PropertyGridTextBox.cs: Add a method that sends any forwarded
12633           mousedowns to the contained textbox.
12634         * X11Structs.cs: More ToString implementation.
12635         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
12636           #81791.
12637
12638 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12639
12640         * PropertyGridView.cs: Add a null-check, fixes a few tests.
12641
12642 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
12643
12644         * TableLayoutPanelCellPosition.cs: TypeConverter.
12645
12646 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12647
12648         [ Fixes #79761]
12649         
12650         * PropertyGridTextBox.cs: Propagate any color changes to all contained
12651           controls.
12652         * PropertyGridView.cs: A few color fixes.
12653
12654 2007-07-10  Jackson Harper  <jackson@ximian.com>
12655
12656         * TextControl.cs: Remove some old unused text formatting stuff.
12657
12658 2007-07-10  Jackson Harper  <jackson@ximian.com>
12659
12660         * TreeView.cs: Update full row select invalidation to match the
12661         newer DrawSelection... method.
12662         - Make sure to invalidate the entire width when selecting a new
12663         node, if we have full row selection enabled.
12664
12665 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12666
12667         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
12668           display of properties again.
12669
12670 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
12671
12672         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
12673         to existing collections.
12674
12675 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12676
12677         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
12678         that changed between 1.1 and 2.0.
12679
12680 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12681
12682         * PowerStatus.cs: Added.  This is just a data class, it is filled
12683         in by SystemInformation.
12684
12685 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12686
12687         * Message.cs: Add op_Equality and op_Inequality.
12688
12689 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12690
12691         * MenuStrip.cs: Finish corcompare work.
12692
12693 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12694
12695         * LinkArea.cs: Add op_Equality and op_Inequality.
12696
12697 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12698
12699         * Application.cs: Add MessageLoopCallback delegate.
12700
12701 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12702
12703         * ListBox.cs: First set of 2.0 stuffs.
12704
12705 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12706
12707         * Control.cs: Make an internal Height property we can override
12708         without messing up the public API.
12709         * ListBox.cs: Override HeightInternal to always return the size
12710         the user set.  [Fixes bug #80466]
12711
12712 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
12713
12714         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
12715         paint cell borders if we haven't calculated where they go yet.
12716         [Fixes bugs #82040 and #82041]
12717
12718 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12719
12720         * ListView.cs: In Details view, set the location of item_control
12721         in the (0,0) position (and the header_control is thus on the
12722         item_control). This way the Bounds of the Items are relative to the
12723         ListView control (before this, they had a Bounds value without the
12724         header_control offset, which wasn't matching .Net). Fixes #82004.
12725
12726 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12727
12728         * ListControl.cs: When DataSource is set to null, pass an empty
12729         array of object to SetItemsCore. This is done to clean the items
12730         in the ListContol children. Fixes #81788.
12731
12732 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12733
12734         * ListControl.cs: Add 2.0 stuffs.
12735
12736 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12737
12738         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
12739         Refresh is overkill for just about every repaint request.
12740
12741 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12742
12743         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
12744         so remove my custom Get method and fix the property getter.
12745
12746 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12747
12748         * Label.cs: DefaultMargin for 2.0.
12749
12750 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12751
12752         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
12753         reported issue where other controls with mnemonics would steal strokes
12754         from a selected ComboBox.
12755
12756 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12757
12758         * ScrollOrientation.cs: Make internal for 1.1.
12759         * ScrollEventArgs.cs: Add 2.0 stuffs.
12760
12761 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
12762
12763         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12764         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
12765         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
12766
12767 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12768
12769         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
12770
12771 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12772
12773         * ListView.cs: Implement the so-incredibly broken 2.0 
12774         VirtualItemsSelectionRangeChanged event.
12775
12776 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12777
12778         * ListView.cs: When enter is pressed and selection is non empty,
12779         an OnItemActivate event must be fired.
12780
12781 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12782
12783         * ListView.cs: Store the FocusedItem information as an
12784         int instead of a ListViewItem (needed by VirtualMode).
12785         Update the calls to SetFocusedItem to pass an index instead of
12786         an item.
12787         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
12788         the Focused state from the owner ListView. 
12789
12790 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12791
12792         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
12793         property. Also, invalidate previous focused item in the mentioned
12794         property (match .Net).
12795
12796 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12797
12798         * ListView.cs: Implement 2.0 FocusedItem property setter.
12799
12800 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12801
12802         * ListView.cs: Implement 2.0 TopItem property setter.
12803
12804 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
12805
12806         * StatusStrip.cs: The default renderer is System.
12807         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
12808         if the user specifies it.
12809         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
12810         if we are ManagerRenderMode.
12811         * ToolStripMenuItem.cs: Calculate our text color better.
12812         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
12813         from Professional to the base class based off working with the System renderer.
12814         * ToolStripSystemRenderer.cs: Added.
12815
12816 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12817
12818         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
12819
12820 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
12821
12822         * ToolTip.cs: Implement 2.0 Tag property.
12823
12824 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12825
12826         * ListView.cs: Implement 2.0 HitTest methods.
12827
12828 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12829
12830         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
12831         item is under the pointer or not (sugar). Also remove the TODO
12832         regarding to the cursor changes in OneClick activation.
12833         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
12834         the subitems use the parent's HotFont if UseItemStyleForSubItems is
12835         true; otherwise don't show the underline style.
12836
12837 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12838
12839         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
12840         the code to retrieve the item at position only one time. Also
12841         change cursor when Activation is ItemActivation.OneClick as well
12842         as invalidate the item if HotTracking is true (to show/hide the
12843         underline style). Add an internal HotItemIndex property to retrieve
12844         the current hot item's index.
12845         * ListViewItem.cs: Add an internal HotFont property to cache the
12846         font used when HotTracking is true and the pointer moves within the
12847         item's borders.
12848         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
12849         HotFont depending on the hot state of the item.
12850
12851 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12852
12853         * ListView.cs: Implement 2.0 HotTracking property.
12854
12855 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12856
12857         * ToolStripControlHost.cs: If our hosted control never got created,
12858         don't try to dispose it.  [Fixes bug #81909]
12859
12860 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12861
12862         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
12863
12864 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12865
12866         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
12867
12868 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12869
12870         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
12871         Details view.
12872         * DrawListViewColumnHeaderEventArgs.cs:
12873         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
12874         using the DrawText () methods.
12875
12876 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
12877
12878         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
12879         background which got erased in my changes yesterday.
12880
12881 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12882
12883         * ListViewItem.cs: Actually set bounds for subitems in Details view
12884         (2.0 feature).
12885         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
12886         can invoke from the owner draw routines if we need it. Also, add
12887         support for Owner draw in Details view.
12888
12889 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12890
12891         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
12892         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
12893         ShowImageMargin setting, properly align text in a ToolStripLabel
12894         hosted on a ToolStripDropDown.
12895
12896 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12897
12898         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
12899         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
12900
12901 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12902
12903         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
12904
12905 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12906
12907         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
12908         location to match ToolStripMenuItems.
12909
12910 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12911
12912         * DrawListViewColumnHeaderEventArgs.cs:
12913         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
12914         column headers in ListView. 
12915
12916 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12917
12918         * UserControl.cs: Implement AutoSize.
12919
12920 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12921
12922         * DrawListViewItemEventArgs.cs:
12923         * ListView.cs:
12924         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
12925         ListView.
12926
12927 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12928
12929         * ToolStripDropDownItemAccessibleObject.cs: Added.
12930         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
12931         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12932         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
12933         ToolStripTextBox.cs: corcompare work.
12934
12935 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12936
12937         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
12938         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
12939         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
12940                 corcompare.
12941
12942 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12943
12944         * OSFeature.cs: Add IsPresent.
12945         * PrintPreviewControl.cs: Add RightToLeft.
12946         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
12947         * SplitterPanel.cs: Add AutoSizeMode.
12948
12949 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12950
12951         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
12952         * MdiClient.cs: Add 2.0 ScaleControl.
12953         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
12954         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
12955
12956 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12957
12958         * Form.cs: Implement some scaling methods, stub some RTL methods,
12959         corcompare work.
12960
12961 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12962
12963         * Control.cs: corcompare work.
12964         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
12965
12966 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12967
12968         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
12969         ControlPaint 2.0 stuffs.
12970
12971 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12972
12973         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
12974
12975 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12976
12977         * UpDownBase.cs: Add 2.0 stuffs.
12978
12979 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12980
12981         * NumericUpDown.cs: Add 2.0 stuffs.
12982
12983 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12984
12985         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
12986
12987 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12988
12989         * ErrorProvider.cs: Implement 2.0 stuffs.
12990
12991 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12992
12993         * DomainUpDown.cs: Implement 2.0 stuffs.
12994
12995 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12996
12997         * CheckedListBox.cs: Fix RefreshItems signature.
12998
12999 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
13000
13001         * PictureBox.cs: Implement 2.0 stuffs.
13002
13003 2007-06-12  Andreia Gaita  <avidigal@novell.com>
13004         
13005         * TabControl.cs: Check if there are tabpages before checking
13006         the selected index - fix #81802 (font changes raise a ResizeTabs
13007         call on controls.add, which blew up nicely with no tabpages)
13008
13009 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13010
13011         * ListView.cs:
13012         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
13013
13014 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13015
13016         * ListView.cs:
13017         * ListViewItem.cs: In VirtualMode the selection information
13018         resides in the ListView, rather than in the Items. Also, throw
13019         InvalidOperationExceptions when VirtualMode is being used and
13020         CheckedItemCollection is accessed.
13021
13022 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
13023
13024         * ComboBox.cs: Add ScaleControl.
13025
13026 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
13027
13028         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
13029
13030 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
13031
13032         * GroupBox.cs: Add 2.0 stuffs.
13033
13034 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
13035
13036         * Panel.cs: Add autosize properties/event.
13037
13038 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
13039
13040         * Control.cs:
13041         - When we remove a control, remove it from the collection before performing the layout.
13042         - Setup an internal property for explicit_bounds.
13043         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
13044         - Perform a layout when we set a new AutoSizeMode.
13045
13046 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
13047
13048         * ScrollableControl.cs: Add 2.0 stuffs.
13049
13050 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
13051
13052         * ScrollBar.cs: Add 2.0 stuffs.
13053
13054 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
13055
13056         * Splitter.cs: Add 2.0 stuffs.
13057
13058 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
13059
13060         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
13061         to have BindingContext simply use base implementation.
13062
13063 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
13064
13065         * ColumnHeader.cs: corcompare fix.
13066
13067 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
13068
13069         * Button.cs: corcompare fixes.
13070         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
13071
13072 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
13073
13074         * Button.cs: Override GetPreferredSizeCore.
13075         * ButtonBase.cs: PerformLayout after changing properties that can affect
13076         AutoSize.  Simplify some mouse/keyboard code.
13077         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
13078         * MouseEventArgs.cs: Make Location internal for 1.1.
13079         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
13080         * Theme.cs: Add CalculateButtonAutoSize.
13081         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
13082
13083 2007-06-05  Miguel de Icaza  <miguel@novell.com>
13084
13085         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
13086
13087 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13088
13089         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
13090         since we can get different item instances every time we retrieve it.
13091
13092 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13093
13094         * ListView.cs: Work around for #81602, since an unkown an pretty
13095         infrequent condition appears only in some systems (old linux boxes, it
13096         seems).
13097
13098 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
13099
13100         * Button.cs: Completely reformat and a little refactor to bring
13101         this closer to Mono circa 2007.
13102
13103 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
13104
13105         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
13106         to be ButtonBase.Invalidate.
13107
13108 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
13109
13110         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
13111
13112 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
13113
13114         * ButtonBase.cs: Completely reformat and a little refactor to bring
13115         this closer to Mono circa 2007.
13116
13117 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
13118
13119         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
13120         values for autosize. Fixes #80137.
13121
13122 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
13123
13124         * Control.cs: Don't perform layout when AutoSize changes.
13125         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
13126         directly when autosizing, use SetBounds with BoundsSpecified.None.
13127         Fixes unit tests my last commit broke.
13128
13129 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
13130
13131         * Control.cs: Perform layout when AutoSize changes.
13132         * Form.cs: Implement AutoSizing.
13133
13134 2007-06-01  Chris Toshok  <toshok@ximian.com>
13135
13136         * DataGrid.cs: remove the XXX'ed check at the top of
13137         ProcessGridKey.  fixes #80464.
13138
13139 2007-06-01  Chris Toshok  <toshok@ximian.com>
13140
13141         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
13142         adding idempotent (add/remove in Edit()), and also make sure we
13143         don't add it until after we set the text, so it's not tripped in
13144         Edit().  Fixes unit test regression.
13145
13146 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
13147
13148         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
13149         change is user explicit, not when the layout engine moves stuff.  Fixes
13150         anchoring to bottom and right.  [Fixes bug #81790]
13151
13152 2007-06-01  Andreia Gaita  <avidigal@novell.com>
13153
13154         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
13155
13156 2007-06-01  Andreia Gaita  <avidigal@novell.com>
13157
13158         * ContainerControl.cs: 
13159         Fire enter event for common ancestor if it is not a ContainerControl.
13160         Send focus to the active_control and not the 'value', the active 
13161         control might have been changed in one of the events fired.     
13162         Definitely fixes #80159.
13163
13164 2007-06-01  Andreia Gaita  <avidigal@novell.com>
13165
13166         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
13167
13168 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13169
13170         * PropertyGrid.cs: Anchor the help description to the bottom of the
13171           help panel and refactor SelectGridItem into a
13172           SelectGridItemInternal that can be set to null (and update it to
13173           clear the help texts when it is set to null). Set root item to null
13174           when there's no SelectedObject. Fixes #80438.
13175         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
13176           when we're recalculating after a resize (only).
13177
13178 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13179
13180         * ListView.cs: Implement 2.0 RedrawItems method.
13181
13182 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13183
13184         * ListControl.cs: Disconnect PositionChanged and ItemChanged
13185         handlers from previous data manager when DataSource is set to
13186         null. Fixes #81771.
13187
13188 2007-05-31  Jackson Harper  <jackson@ximian.com>
13189
13190         * TextBoxBase.cs: These seem to be the correct values.
13191
13192 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
13193
13194         * FileDialog.cs: When close dialog with ok set filterindex using combobox
13195         value. Fixes #81784.
13196
13197 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
13198
13199         * Control.cs: Implement 2.0 scaling methods.
13200
13201 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13202
13203         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
13204           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
13205           corcompare issues.
13206
13207 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13208
13209         * ProgressBar.cs: Implemented missing 2.0 members.
13210
13211 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13212
13213         * Control.cs: Corcompare issues.
13214         * MessageBox.cs: Implemented missing 2.0 functions.
13215
13216 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13217
13218         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
13219           Implemented more 2.0 members.
13220
13221 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13222
13223         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
13224           null (strange, but it seems to happen when running unit tests).
13225
13226 2007-05-30  Andreia Gaita  <avidigal@novell.com>
13227
13228         * ContainerControl.cs: Set active_control even earlier, before 
13229         firing any events, and undo it if validation returns false.
13230
13231 2007-05-30  Andreia Gaita  <avidigal@novell.com>
13232
13233         * ContainerControl.cs: Raise Validation and Enter/Leave events
13234         even if there is no Form and set active_control earlier, just
13235         before firing Enter events (toshok's patches). Fixes #80647.
13236
13237 2007-05-30  Jackson Harper  <jackson@ximian.com>
13238
13239         * TextControl.cs: Redid the pageup/pagedown a little to simplify
13240         things and fix bug #81311.
13241
13242 2007-05-30  Jackson Harper  <jackson@ximian.com>
13243
13244         * X11Dnd.cs: Now that we have our own event loop, we need to
13245         cancel when we get a mouseup but it won't be accepted.
13246
13247 2007-05-30  Chris Toshok  <toshok@ximian.com>
13248
13249         * DataGrid.cs (set_CurrentCell): guard against negative
13250         column/row.
13251
13252         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
13253         array index syntax instead of looping over the property names.
13254
13255         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
13256         and set IsInEditOrNavigateMode to false there.
13257
13258 2007-05-30  Jackson Harper  <jackson@ximian.com>
13259
13260         * TreeView.cs: Make sure we don't get a bad visible order when
13261         setting to the top node.  Fixes some misc crashing in
13262         ControlInspector.
13263
13264 2007-05-30  Andreia Gaita  <avidigal@novell.com>
13265
13266         * UserControl.cs: Add 2.0 AutoSizeMode
13267
13268 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
13269
13270         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
13271
13272 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
13273
13274         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
13275         lines. Fixes #80285. 
13276
13277 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
13278
13279         * DataGridColumnStyle.cs: Add char trimming column header text format. 
13280
13281 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
13282
13283         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
13284         Fixes #80147.
13285
13286 2007-05-29  Jackson Harper  <jackson@ximian.com>
13287
13288         * TreeNode.cs: Fix off by one on calculating whether or not a node
13289         is visible.
13290
13291 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
13292
13293         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
13294         * ScrollableControl.cs: Force an UpdateDistances when we move the
13295         scrollbars.
13296         [Fixes bug #80605]
13297
13298 2007-05-29  Andreia Gaita  <avidigal@novell.com>
13299
13300         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
13301         update the page setup screen.
13302
13303 2007-05-29  Andreia Gaita  <avidigal@novell.com>
13304
13305         * PageSetupDialog.cs: Fix landscape mode.
13306
13307 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13308
13309         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
13310         IconSizeHorizontalSpacing.
13311
13312 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13313
13314         * ListView.cs: The declaration of prev_tooltip_item should be inside
13315         a NET_2_0 conditional (avoid a warning).
13316
13317 2007-05-28  Andreia Gaita  <avidigal@novell.com>
13318
13319         * PageSetupDialog.cs: Implement PrintPreview control to display
13320         the preview thumbnail. Change unit conversion to use 
13321         PrinterUnitConvert methods.
13322         
13323         Note: there is a huge bug in ms.net where the default margins are 
13324         interpreted as centimeters (?), when in fact they are set in inches. When 
13325         loading the page setup dialog initially (ms.net), the default margins 
13326         are set to 1 inch, and the dialog shows them with value 10, when in fact 
13327         it should be 25 (properly converted). Our dialog doesn't have this bug.
13328         
13329         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
13330         RectangleF.
13331         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
13332
13333 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13334
13335         * ListView.cs:
13336         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
13337         items.
13338
13339 2007-05-28  Andreia Gaita  <avidigal@novell.com>
13340
13341         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
13342         an IntPtr on csc (it builds fine on mcs, could it be a compiler
13343         bug?), convert the ptr to Int32 first.
13344
13345 2007-05-28  Jackson Harper  <jackson@ximian.com>
13346
13347         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
13348         recieved, we will exit the dnd tracking loop.
13349
13350 2007-05-28  Jackson Harper  <jackson@ximian.com>
13351
13352         * X11Dnd.cs: Keep tracking until the xdnd finished event is
13353         recieved. TODO: I should probably stick a timer on the dropped
13354         event, and finish the drag if the XDND Finished event never shows
13355         (because some apps don't seem to send it).
13356
13357 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
13358
13359         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
13360         #81733.
13361
13362 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13363
13364         * MonthCalendar.cs: Only mark the keypresses we actually handle as
13365           handled.
13366
13367 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13368
13369         * MonthCalendar.cs: Set the size after initializing all the relevant
13370           variables. Fixes #81742.
13371
13372 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13373
13374         * KeyEventArgs.cs: Fix typo.
13375
13376 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
13377
13378         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
13379         to match MS. Fixed MinDate to only accept value less than or equal
13380         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
13381         Removed TODO's that are now verified by unit tests.
13382
13383 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
13384
13385         * TreeNodeCollection.cs: Minor corrections to exceptions to match
13386         MS.
13387
13388 2007-05-25  Jackson Harper  <jackson@ximian.com>
13389
13390         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
13391         it's own message loop.
13392         * XplatUIX11.cs: Remove some of the dnd hooks
13393
13394 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
13395
13396         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
13397         instead of MinimizedWindowSize.
13398
13399 2007-05-25  Jackson Harper  <jackson@ximian.com>
13400
13401         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
13402
13403 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13404
13405         * KeyEventArgs.cs: Added SuppressKeyPress.
13406         * Control.cs: Added support for SuppressKeyPress.
13407
13408 2007-05-24  Andreia Gaita  <avidigal@novell.com>
13409
13410         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
13411         problems with PieChart. suppress_validation should not be a counter,
13412         if there are several BeginInit calls, the first EndInit will 
13413         activate validation. Fix exceptions thrown by set_Value.
13414         * UpDownBase.cs: ValidateText only if it's the user editing it.
13415
13416 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13417
13418         * ListControl.cs: FilterItemOnProperty should return the filtered
13419         item proeprty even if DataSource is null. The same applies for
13420         GetItemText. Fixes #80427.
13421
13422 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
13423
13424         * Control.cs: If a control doesn't have a parent when it's Dock is
13425         set, but it has children, it needs to do a layout.  Fixes some nested
13426         controls issues.  [Fixes bug #81199]
13427
13428 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13429
13430         * ComboBox.cs: If there are few items in the drop down list, make it
13431           the exact size the items need, no bigger. Fixes #81612.
13432
13433 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
13434
13435         * Application.cs: When we have captured the keyboard for a menu,
13436         check for mouse down events in case we need to close the menu.
13437         * Control.cs, Form.cs: Remove mouse down checks for menus.
13438
13439 2007-05-24  Jackson Harper  <jackson@ximian.com>
13440
13441         * TextControl.cs: Handle tabs in non multiline mode a little
13442         differently.
13443
13444 2007-05-24  Jackson Harper  <jackson@ximian.com>
13445
13446         * TextControl.cs: We need to manually break apart tabbed text and
13447         move the tabs, since the system.drawing tabbing mechanism relies
13448         on tab stops.
13449         * TextBoxBase.cs: Move the caret properly when the user enters a
13450         tab.
13451
13452 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
13453
13454         * ContainerControl.cs: Don't check CanSelect before calling
13455         ProcessMnemonic.
13456         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
13457         release a KeyboardActive on click if it's not ours.
13458
13459 2007-05-23  Andreia Gaita  <avidigal@novell.com>
13460
13461         * ColumnHeader.cs: Add TypeConverter
13462
13463 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13464
13465         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
13466
13467 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13468
13469         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
13470
13471 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13472
13473         * LinkLabel.cs: Implement public Padding property.
13474
13475 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13476
13477         * LinkLabel.cs: Implement public FlatStyle.
13478
13479 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
13480
13481         * Control.cs: Apply patch from George to call parent.PerformLayout
13482         when Visible is changed.  [Fixes bugs #81118, 81718]
13483
13484 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13485
13486         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
13487
13488 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13489
13490         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
13491
13492 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13493
13494         * ContextMenu.cs: Implement Collapse.
13495
13496 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
13497
13498         * ToolBarButton.cs: Implement Name.
13499
13500 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
13501
13502         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
13503         use current_item, it prevents some NRE. Fixes #81675.  
13504
13505 2007-05-22  Andreia Gaita  <avidigal@novell.com>
13506
13507         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
13508         without updating the text.
13509
13510 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
13511
13512         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
13513         without calling DeleteObject.  [Should fix bug #81709]
13514
13515 2007-05-22  Jackson Harper  <jackson@ximian.com>
13516
13517         * RichTextBox.cs: Set the line endings correctly, when flushing
13518         RTF text.
13519
13520 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
13521
13522         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
13523          {Width=0,Height=0}.
13524
13525 2007-05-22  Jackson Harper  <jackson@ximian.com>
13526
13527         * TreeView.cs: Setting top with a null node should set to the very
13528         top.
13529
13530 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13531
13532         * Form.cs: ShowDialog: destroy the handle when message loop is
13533           finished, matches MS behaviour. Refactor parts of WmClose into
13534           RaiseCloseEvents, that only raises events if they haven't already
13535           been raised. Fixes #81688 and #81521.
13536         * Application.cs: Don't call close on the form when exiting a modal
13537           loop, it will raise all the (Form)Closed/Closing events again if
13538           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
13539           which doesn'r raise any events it they have been raised before.
13540
13541 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
13542
13543         * Control.cs: Add OnPrint.
13544         * ToolStrip.cs: Add GetChildAtPoint.
13545         * ToolStripContainer.cs: Add OnRightToLeftChanged.
13546         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
13547
13548 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
13549
13550         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
13551
13552 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13553
13554         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
13555           isn't visible anymore. Fixes #81651.
13556
13557 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13558
13559         * Control.cs: WmShowWindow: Update children's z-order after setting
13560           their parent. SetParent may show the window, thereby corrupting
13561           z-order, since the window will be shown on top.
13562         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
13563           multiple (and redundant) WM_SHOWWINDOW messages.
13564         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
13565           event has already been raised.
13566         * Form.cs: Change is_changing_visible_state to a counter, since
13567           SetVisibleCore can be called recursively. CreateHandle: when
13568           creating mdi children, send (De)Activated events.
13569         * MdiClient.cs: Update use of is_changing_visible_state.
13570         * Application.cs: OnThreadException: Surround exception handling with
13571           try/finally to ensure we always reset the error-handling state
13572           before leaving.
13573
13574 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13575
13576         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
13577           (#81704).
13578
13579 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13580
13581         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
13582         SmallIcon views, now that we have a standarized horizontal spacing.
13583
13584         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
13585         4, just like the other views (Match .Net).
13586
13587 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
13588
13589         * Control.cs: Delay calculating anchor distances until we actually layout.
13590         Always query the WM for the actual size and location it put us at instead of
13591         only when we send negative values.
13592         [Fixes bugs #81694, 81695]
13593
13594 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13595
13596         * Application.cs: Avoid a possible stack overflow when trying to exit
13597           the application.
13598
13599 2007-05-19  Marek Safar  <marek.safar@gmail.com>
13600
13601         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
13602         enum value.
13603
13604 2007-05-19  Andreia Gaita  <avidigal@novell.com>
13605
13606         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
13607         * NumericUpDownAcceleration.cs, 
13608           NumericUpDownAccelerationCollection.cs: Added 2.0
13609           implementation.
13610
13611 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
13612
13613         * RichTextBox.cs: Recalculate the document after the ScrollBars
13614         property is changed. Fixes bug #81681.
13615
13616 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
13617
13618         * DataObject.cs: Implement 2.0 methods.
13619
13620 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13621
13622         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
13623         in the center of the checkbox, not in the left-top corner. 
13624         Fixes #80037.
13625
13626 2007-05-18  Jackson Harper  <jackson@ximian.com>
13627
13628         * RichTextBox.cs: Recalculate the document after the scrollbars
13629         property is changed.
13630         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
13631         81486.
13632
13633 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13634
13635         * CreateParams.cs: Make HasWindowManager marginally faster.
13636         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
13637           into Hwnd so that other drivers can use it as well.
13638         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
13639           the default location from Hwnd. Fixes MDI client windows always
13640           showing up at (0,0) in Windows (Win32 won't set the default
13641           location since the window styles aren't correct).
13642
13643 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
13644
13645         * TreeView.cs: Modified DoubleBuffered to just use the base
13646         implementation.
13647
13648 2007-05-18  Jackson Harper  <jackson@ximian.com>
13649
13650         * TreeView.cs: Set the top node to the last child node when
13651         expanding all
13652         - When we get focus, if there is no selected node, use the top
13653         node.
13654
13655 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
13656
13657         * KeysConverter.cs: Add CanConvertTo.
13658         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
13659         * LinkConverter.cs: Added.
13660
13661 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13662
13663         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
13664         it prevents error when file dont have write access. Fixes #81669 and #81667.  
13665
13666 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13667
13668         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
13669         button text. Fixes #79640.  
13670
13671 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13672
13673         * Control.cs: According to MSDN controls created in the designer theres 
13674         keyboard accelerators visible by default. So included check for design
13675         in ShowKeyboardCuesInternal.  
13676
13677 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13678
13679         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
13680         text. Fixes #81621.  
13681
13682 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13683
13684         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
13685         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
13686
13687 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13688
13689         * Control.cs: Finish implementation of UI State using WmChangeUIState
13690         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
13691         in some controls to check for show_keyboard_cues to draw accell keys "_".  
13692
13693 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13694
13695         * ListBox.cs: When calculating the horizontal scrollbar
13696         in single column mode, don't use values less than 0 for
13697         Maximum. Fixes #81474.
13698
13699 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13700
13701         * ListBox.cs: Throw the some missing exceptions in
13702         ListBox.ObjectCollection methods.
13703
13704 2007-05-17  Jackson Harper  <jackson@ximian.com>
13705
13706         * TextBoxBase.cs: Recalculate the document when the word wrap
13707         value has changed. This fixes 81488.
13708
13709 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13710
13711         * Clipboard.cs: Implement missing GetText overload.
13712
13713 2007-05-17  Chris Toshok  <toshok@ximian.com>
13714
13715         * Control.cs (CheckDataBindings): remove the binding_context arg
13716         to binding.Check.
13717
13718         * CurrencyManager.cs (OnItemChanged): fix this now that
13719         BindingManagerBase is fixed. also remove the comment telling where
13720         the fix should go.  We set transfering_data to true/false around
13721         the call to PushData to keep UpdateIsBinding from being called.
13722         (ListChangedHandler): remove the extra OnMetaDataChanged call for
13723         PropertyDescriptorAdded in the 1.1 case.  The extra call is
13724         actually generated by System.Data generating 2 metadata changed
13725         events of its own per column add.  The fix should go there.  Add a
13726         comment to that affect in our test's Assert.Ignore.
13727
13728         * BindingManagerBase.cs: Rework PullData and PushData slightly.
13729         we keep a boolean flag (transfering_data) that keeps us from
13730         calling UpdateIsBinding multiple times if we re-enter either of
13731         them.
13732
13733         * ControlBindingsCollection.cs (AddCore): remove the
13734         binding_context arg to binding.Check.
13735
13736         * Binding.cs (IsBinding): don't check if we're binding here, just
13737         return our cached value.  we update it in UpdateIsBinding.
13738         (Check): don't take the binding_context arg, we'll just use our
13739         control's.  Also, for some reason MS doesn't use the data member
13740         field when getting the bindingmanager for this binding.  it just
13741         uses the datasource.  Make this method callable multiple times,
13742         and only do the is_null_desc stuff if manager.Position != -1 (so
13743         we don't get an exception accessing manager.Current).
13744         (UpdateIsBinding): move the code from IsBinding here.
13745         (PositionChangedHandler): call Check here to we can initialize
13746         things that require a non- -1 position.
13747
13748 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13749
13750         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
13751         control.
13752
13753 2007-05-17  Andreia Gaita  <avidigal@novell.com>
13754
13755         * TabControl.cs: Add 2.0 methods and events, including
13756         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
13757         * TabPage.cs: Add 2.0 methods
13758
13759 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13760
13761         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
13762         keyboard_cues is properly handled by message method.  
13763
13764 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13765
13766         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
13767
13768 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13769
13770         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
13771
13772 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
13773
13774         * Control.cs: 
13775         - WmUpdateUIState added to handle state changes, it make call to
13776         OnChangeUICues event.
13777         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
13778         SystemInformation.
13779
13780 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
13781
13782         * ImageKeyConverter.cs: Added.
13783         * TreeViewImageKeyConverter.cs: Added.
13784
13785 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13786         
13787         * ToolTips.cs: Update Text if SetToolTip is called for a control
13788         already showing the tooltip, as well as restarting its timer; show
13789         tooltip if we are inside the control bounds by the time of calling
13790         SetToolTip. Inside ShowTooltip remove the check to not show the 
13791         tooltip again for the active control (it is allowed by .Net to 
13792         show the tooltip on the same control multiple times).
13793
13794 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13795
13796         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13797
13798 2007-05-16  Andreia Gaita <avidigal@novell.com> 
13799
13800         * ContainerControl.cs: only process tab key if there are no 
13801         modifier keys present, otherwise the control does the 
13802         tab processing, if it needs to. Fixes #81622
13803         * TabControl.cs: Fixes calculation for which tab to select on
13804         shift+ctrl+tab.
13805
13806 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13807
13808         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13809
13810 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
13811
13812         * Control.cs: Make IsInputCharInternal to allow controls to
13813         override it and still match MS API.
13814         * TextBoxBase.cs: Override IsInputCharInternal and always
13815         return true.
13816         [Fixes bug #81616]
13817
13818 2007-05-15  Jackson Harper  <jackson@ximian.com>
13819
13820         * TextBox.cs: Disable some of the menu options when using a
13821         readonly textbox.
13822
13823 2007-05-15  Jackson Harper  <jackson@ximian.com>
13824
13825         * TextBox.cs:
13826         * TextBoxBase.cs:
13827         * RichTextBox.cs: Some new 2.0 methods
13828
13829 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
13830
13831         * FileDialog.cs: On 1.0 profile, do not support multidotted 
13832         extensions.
13833
13834 2007-05-14  Jackson Harper  <jackson@ximian.com>
13835
13836         * TextBoxBase.cs: Implement some of the new 2.0 methods.
13837         * RichTextBox.cs: We need to override these methods on 2.0.
13838         * MaskedTextBox.cs: These are implemented now
13839         * TextControl.cs: This was off by one.
13840
13841 2007-05-14  Jackson Harper  <jackson@ximian.com>
13842
13843         * TextControl.cs: Because the line endings are including in the
13844         text, we don't need to add them in anymore.
13845
13846 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13847
13848         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
13849         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
13850
13851 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13852
13853         * ToolBar.cs: Adjust size to default size when button theres no text and
13854         image, it fixes remaining issues from #81524.
13855
13856 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13857
13858         * ToolBar.cs: 
13859         - When not flat call redraw to recalculate sizes on creare handle to match
13860         win32 behavior.
13861         - Revert 77220 because it causes some regressions in toobar
13862         button.
13863
13864 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13865
13866         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
13867           now actually enters a usable state.
13868
13869 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13870
13871         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
13872         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
13873         3 buttons.
13874
13875 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13876
13877         * ToolBar.cs: Save default_size on create handle to use later for buttons
13878         without text, needed to mimic win32 behavior.
13879
13880 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13881
13882         * ToolBar.cs: Fix button layour to best fit width or height according to
13883         vertical or not. Fixes #81524.
13884
13885 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13886
13887         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
13888         toolbar size info because different styles theres different sizes.
13889         Fixes #81522.
13890
13891 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13892
13893         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
13894         if we are using checkboxes, checked is true, and we have less
13895         than two images in StateImageList; for the 1.1 in the same scenario
13896         draw the first image if we have at least one image in StateImageList.
13897         Fixes part of #81191.
13898
13899 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13900
13901         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
13902         the owner's Items collection on merge.
13903
13904 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13905
13906         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
13907         * ToolStripItemCollection.cs: Lots of fixes to when events get called
13908         and parent/owner gets changed based on gert's unit tests.
13909
13910 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13911
13912         * MaskedTextBox.cs: Started implementing parts of it.
13913
13914 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13915
13916         * ListView.cs: When clicking the checkbox on the items
13917         take into account the double clicks even if we have only
13918         one image in StateImageList (only for 1.0/1.1). Also 
13919         generate an extra change of checked state when we receive
13920         the second click on checkbox (match .Net behaviour). 
13921         Fixes part of #81191.
13922
13923 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13924
13925         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
13926
13927 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13928
13929         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
13930         even if OnLoad is overriden and base.OnLoad is not called.
13931         [Fixes bug #81582]
13932
13933 2007-05-10  Andreia Gaita  <avidigal@novell.com>
13934
13935         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
13936         shame. (I blame my ever-persisting and annoying cold)
13937
13938 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13939
13940         * ListView.cs: Don't eat navigation keys.  Let them flow through to
13941         KeyDown/KeyPress routines.  [Fixes bug #81569]
13942
13943 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13944
13945         * ListView.cs: When handling keys for selecting the item based off
13946         keyboard input, do not consider keys pressed with Alt or Control.  Also,
13947         correctly handle keys when the Shift key is down. [Fixes bug #81578]
13948
13949 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13950
13951         * Control.cs: When using UseWaitCursor, we have to store the requested
13952         Cursor to use when UseWaitCursor is turned off.
13953
13954 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13955
13956         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
13957         to false.
13958         * Application.cs: Use PreProcessControlMessage instead of
13959         PreProcessMessage.
13960         * PreProcessControlMessage.cs: Make internal for 1.1.
13961
13962 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13963
13964         * Control.cs: Add InternalContains focus property, which hast the same
13965         functionality of ContainsFocus, but also including implicit controls.
13966         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
13967         since we need to know if the focus is contained in our implicit
13968         ItemControl when calculating Layout. Fixes part of #80888.
13969
13970 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
13971
13972         * ToolTip.cs: Remove center form string alignment as it must be align to
13973         left.
13974
13975 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
13976
13977         * ToolStripItemCollection.cs: Set the new item's parent and owner
13978         in Insert like we do in Add.  [Fixes bug #81568]
13979
13980 2007-05-08  Jackson Harper  <jackson@ximian.com>
13981
13982         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
13983         - Off by one error in SetTop
13984         - Disable DoubeBuffering
13985         
13986 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13987
13988         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
13989           control as much as necessary in order to make it entirely visible,
13990           instead of centering the control in the container (matches MS
13991           behaviour). CalculateCanvasSize: we need to take the current scroll
13992           position into account when calculating the maximum canvas,
13993           otherwise the following scenario will fail: resize so that the
13994           scrollbars appear, use the scrollbars to scroll, resize again
13995           smaller, and now the canvas size is too small. Recalculate: when
13996           showing scrollbars make sure they start off at 0, and try to scroll
13997           the active control into view. Fixes #79540. HandleScrollBar: don't
13998           scroll anywhere if the scrollbar isn't visible.
13999
14000 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14001
14002         * ListView.cs: When focus changed, call Layout/Invalidate
14003         in the focused item to update the selected state (should show
14004         entire label when ListView is focused, and a part of it if is not).
14005         * ListViewItem.cs: When doing layout for LargeIcon, take into account
14006         for displaying the entire label not only the Focused state of the
14007         item, but also the Focused state of the ListView (match .Net
14008         behaviour).
14009
14010 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
14011
14012         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
14013         Implement UseWaitCursor. 
14014
14015 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
14016         Applying contributed patch from Sergey Volk.
14017
14018         * Clipboard.cs: Implement SetDataObject retry logic and new overload
14019         of SetDataObject.
14020         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
14021
14022 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
14023
14024         * Control.cs: Implement DrawToBitmap.
14025
14026 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
14027         Applying contributed patch from Stefan Noack.
14028         
14029         * Control.cs: Add [Get|Set]AutoSizeMode.
14030
14031 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
14032
14033         * MdiClient.cs: Unmerge menus when the last child is closed.
14034
14035 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
14036
14037         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
14038         * ToolStripManager.cs: Call Merge on DropDowns.
14039         [Fixes bug #81477]
14040
14041 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14042
14043         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
14044           uints.
14045         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
14046           visibility. We can't create forms visible, since we have to set the
14047           owner before making the form visible (otherwise Win32 will do
14048           strange things with task bar icons). The problem is that we set the
14049           internal is_visible to true before creating the control, so
14050           is_changing_visible_state is the only way of determining if we're
14051           in the process of creating the form due to setting Visible=true -
14052           this works because SetVisibleCore explicitly makes the form
14053           visibile afterwards anyways. Fixes #80775.
14054
14055 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14056
14057         * ThemeWin32Classic.cs: When drawing ListViewItems,
14058         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
14059         or LargeIcon _and_ item is not focused (match .Net behaviour).
14060
14061 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
14062
14063         * Control.cs, Form.cs: Fix some obsolete method warnings.
14064
14065 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
14066
14067         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
14068         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
14069
14070 2007-05-04  Andreia Gaita  <avidigal@novell.com>
14071
14072         * ContainerControl.cs: Fix active_control attribution when going
14073         up the parent chain so that the first parent container gets the control
14074         and the rest of the parent containers get the child containers (skips
14075         non-containers). Fixes #80729
14076
14077 2007-05-04  Randolph Chung  <tausq@debian.org>
14078
14079         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
14080         [Fixes bug #81499]
14081
14082 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14083
14084         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
14085           takes a size parameter, since the CreateParam's size isn't true for
14086           minimized forms. Fixes #81518,
14087
14088 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14089
14090         * Form.cs: Add OnDeactivateInternal.
14091         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
14092
14093 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14094
14095         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
14096           accessing the parent. Fixes #81508.
14097
14098 2007-05-03  Chris Toshok  <toshok@ximian.com>
14099
14100         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
14101         2.0 block, pass listposition + 1 to ChangeRecordState when a row
14102         was added before the current listposition.  Fixes the
14103         TestInsertRowBeforeCurrent unit test.
14104
14105 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
14106
14107         * Application.cs: Add RaiseIdle.
14108         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
14109         XplatUIX11.cs: Implement RaiseIdle.
14110
14111 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
14112         corcompare work: N - Z
14113         * NotifyIcon.cs
14114         * ProgressBar.cs
14115         * RadionButton.cs
14116         * ScrollableControl.cs
14117         * SplitContainer.cs
14118         * SplitterPanel.cs
14119         * StatusBar.cs
14120         * SystemInformation.cs
14121         * TabControl.cs
14122         * TableLayoutControlCollection.cs
14123         * TableLayoutPanel.cs
14124         * TabPage.cs
14125         * ToolBar.cs
14126         * ToolBarButton.cs
14127         * ToolStrip.cs
14128         * ToolStripComboBox.cs
14129         * ToolStripContainer.cs
14130         * ToolStripContentPanel.cs
14131         * ToolStripDropDown.cs
14132         * ToolStripDropDownItem.cs
14133         * ToolStripDropDownMenu.cs
14134         * ToolStripItem.cs
14135         * ToolStripItemCollection.cs
14136         * ToolStripMenuItem.cs
14137         * ToolStripPanel.cs
14138         * ToolStripSplitButton.cs
14139         * ToolTip.cs
14140         * TreeNode.cs
14141         * TreeNodeCollection.cs
14142         * TreeNodeMouseHoverEventArgs.cs
14143         * TreeView.cs
14144
14145 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
14146
14147         * ContextMenu.cs: Add public method Show with alignment property to 2.0
14148         stuff. Thanks aatdark for the patch. 
14149
14150 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
14151
14152         * GridItem.cs: Implement 2.0 Tag property.
14153
14154 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
14155
14156         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
14157         count instead of Nodes.Length.  [Fixes bug #81448]
14158
14159 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
14160
14161         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
14162         [Fixes bug #81506]
14163
14164 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
14165         corcompare work: A - M
14166         * BindingNavigator.cs
14167         * Button.cs
14168         * ButtonBase.cs
14169         * CheckBox.cs
14170         * Control.cs
14171         * FlowLayoutPanel.cs
14172         * Form.cs
14173         * Label.cs
14174         * LinkLabel.cs
14175         * ListView.cs
14176
14177 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
14178
14179         * Application.cs: Give toolstrips a chance to process mnemonics.
14180         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
14181         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
14182         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
14183
14184 2007-05-01  Jackson Harper  <jackson@ximian.com>
14185
14186         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
14187         wider area too.
14188         - Don't set the BoundsSpecified
14189
14190 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
14191
14192         * Application.cs: When using the toolstrip shortcut mechanism, allow the
14193         message to pass through to a regular control if it hosted by a toolstrip.
14194         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
14195         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
14196
14197 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
14198
14199         * TextRenderer.cs: Use the flags argument when using the MeasureString
14200         fallback algorithm.
14201
14202 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
14203
14204         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
14205         the MDI menu item.  [Fixes bug #81483]
14206
14207 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
14208
14209         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
14210         string. When setting Name to null, use zero-length string instead.
14211
14212 2007-04-29  Andreia Gaita  <avidigal@novell.com>
14213
14214         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
14215         DeselectTab). Implement missing 2.0 TabPageCollection methods
14216         (Add, ContainsKey, RemoveByKey, IndexOfKey)
14217
14218 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
14219
14220         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
14221
14222 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
14223
14224         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
14225         Fixes bug #81479. Include details of exception when LoadFile fails.
14226
14227 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
14228
14229         * DrawListViewSubItemEventArgs.cs: Added missing setter
14230
14231 2007-04-27  Andreia Gaita  <avidigal@novell.com>
14232
14233         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
14234         Hide methods (not complete). Implement missing 2.0 OnPopup event.
14235
14236 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14237
14238         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
14239         removed in ly last commit (it was breaking the Label edit feature).
14240
14241         * ThemeWin32Classic.cs: When drawing a ListViewItem use
14242         StringAlignment.Near for LineAlignment (match .Net).
14243
14244 2007-04-27  Andreia Gaita  <avidigal@novell.com>
14245
14246         * TabControl.cs: Change SetTab so it adds the tabpage to the list
14247         of controls if it isn't already there - was blowing up when doing
14248         tabcontrol.TabPages[i]=new TabPage(). 
14249         SetTab now does a replace by removing the page at the index. 
14250         Add a new InsertTab method that inserts a page in a given index 
14251         instead of replacing. 
14252         Implements TabPageCollection.Insert(int, TabPage).
14253
14254 2007-04-27  Chris Toshok  <toshok@ximian.com>
14255
14256         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
14257         internal handler that can be invoked from our subclasses.)  Also,
14258         add a comment to PushData about how we need to fix it.
14259
14260         * CurrencyManager.cs: tons of changes here.  trying to get things
14261         matching the behavior of .net wrt event orders (ItemChanged,
14262         CurrentChanged, PositionChanged.)  I've implemented a private .net
14263         symbol (ChangeRecordState) that appears in stack traces because
14264         it's actually easier to do this than to effective inline all its
14265         various behaviors at every call site.
14266
14267         * RelatedPropertyManager.cs: guard against an exception here by
14268         not using parent.Current if the position is set to -1 (if the
14269         parent datasource is cleared, for instance).
14270
14271         * Binding.cs: don't parse data in PushData (this might be wrong,
14272         but it jives with MS's behavior.)  Also, don't call PushData when
14273         we get a CurrentChanged event.
14274
14275 2007-04-27  Andreia Gaita  <avidigal@novell.com>
14276
14277         * WebBrowser.cs,
14278           WebBrowserBase.cs,
14279           WebBrowserSiteBase.cs,
14280           HtmlDocument.cs: Added stubbed out classes, no real implementations 
14281           yet.
14282
14283 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
14284
14285         * MainMenu.cs: In draw method without parameters call draw method with 
14286         PaintEvent, another one (just rect) adjust rectangle and we dont need it
14287         as Rect property is already adjusted. Fixes #80694.
14288
14289 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
14290
14291         * Application.cs: Need to handle keyboard menu deselection here.
14292         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
14293         navigation, allowing keyboard to work on X11.
14294         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
14295
14296 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
14297
14298         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
14299         menu bar. It fixes some drawing issues in menu bar.
14300
14301 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
14302
14303         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
14304         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
14305         when <alt> key is pressed.
14306
14307 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
14308
14309         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
14310         example just set visible to false and make this prevent from other problems.
14311         In SystrayAdd always remove pending expose. Fixes #81072.
14312
14313 2007-04-26  Marek Safar  <marek.safar@gmail.com>
14314
14315         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
14316         value is set.
14317
14318 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
14319
14320         * ListView.cs: Added three missing 2.0 events and corresponding
14321         EventHandlers. Added the OwnerDraw property.
14322         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
14323
14324 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
14325
14326         * DrawListViewItemEventArgs.cs
14327         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
14328
14329 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
14330
14331         * TextControl.cs: Fixed typo in constructor
14332
14333 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
14334
14335         * Application.cs: Create a shortcut path so that currently selected
14336         MenuStrips can intercept keyboard events without having focus.
14337         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
14338         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
14339         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
14340         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
14341         generate WM_SYSCOMMAND message in X11 for other platforms.
14342         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
14343         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
14344         * ToolStripSplitButton.cs: Add DefaultItem property.
14345         
14346 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
14347
14348         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
14349         fixes some menu draw problem on Windows with border diferent from default
14350         it also fixes #81403.
14351
14352 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14353
14354         * Form.cs: Refactor WndProc into separate methods, just like Control is
14355           doing it.
14356
14357 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14358
14359         * Control.cs: set_Text: move the call to the driver into a seperate
14360           virtual method so that Form can override it.
14361         * MaskedTextBox.cs: Corcompare fixes.
14362         * Form.cs: Override UpdateWindowText and only update the styles if the
14363           form has been shown (fixes #81405).
14364
14365 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
14366
14367         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
14368         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
14369         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
14370         the form lost focus or another control was clicked.
14371
14372 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
14373
14374         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
14375         fixed.
14376
14377 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14378
14379         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
14380           DrawListViewItemEventHandler.cs,
14381           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
14382           Added.
14383         * X11Structs.cs: More ToString implementation.
14384
14385 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
14386
14387         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
14388         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
14389
14390 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14391
14392         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
14393           handle.
14394         * FormCollection.cs: Don't add a form if it's already in the
14395           collection.
14396         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
14397           according to behaviour and MSDN. The ownerWin32 is the active
14398           window at the moment when we call ShowDialog, not the context's
14399           main form (the context's main form may open another form that opens
14400           a form with ShowDialog, the win32 owner is the second form). Add
14401           and remove forms to the Application.OpenForms in other places to
14402           better match MS behaviour. Add an IsActive property that raises
14403           On(de)Activated only if the active state has changed (we were
14404           raising OnDeactivated before OnActivated while creating forms).
14405         * Application.cs: Refactor Enabling/Disabling of windows for modal
14406           dialog loops out to separate methods, and restore the thread
14407           context when we quit the method. Fixes #81407.
14408
14409 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14410
14411         * ListView.cs: In ItemControl.HandleClicks, also fire 
14412         2.0 MouseClick or MouseDoubleClick events on the parent,
14413         not only the Click/DoubleClick events.
14414
14415 2007-04-24  Andreia Gaita  <avidigal@novell.com>
14416
14417         * TableLayoutSettings.cs: 
14418         - Added a GetControls method and a support structure to help the 
14419         TypeConverter to enumerate the controls for     serialization. 
14420         - Added a new serialization constructor. 
14421         - Added a isSerialized flag initialized to true on the 
14422         serialization constructor so that the TableLayoutPanel.LayoutSettings 
14423         setter does not throw the designed NotSupportedOperation exception
14424         when the object is built through deserialization.
14425         - Implemented GetObjectData
14426         
14427         * TableLayoutPanel.cs: Added check on LayoutSettings.
14428
14429 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14430
14431         * ListView.cs: Report Click and DoubleClick events to the parent
14432         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
14433         from breaking the click count state when using dialog forms (Control
14434         reports the clicks in a similar fashion). In the previous behaviour
14435         the last WM_LBUTTONUP message in a  double click was sent to the
14436         ListView's form, instead of the ListView, which was breaking the click
14437         count for it. Fixes #80387.
14438
14439 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
14440
14441         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
14442
14443 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
14444
14445         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
14446         us from created dropdowns for menu items that do not have subitems.
14447         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
14448         Check HasDropDownItems before calling DropDown so a dropdown will not be
14449         created if it isn't needed.
14450
14451 2007-04-24  Jackson Harper  <jackson@ximian.com>
14452
14453         * TreeView.cs: Set the first node to the selected node when we get
14454         focus if there is no selected node.
14455
14456 2007-04-24  Andreia Gaita  <avidigal@novell.com>
14457
14458         * MimeIcon.cs: remove using blocks so that image streams are
14459         not disposed of. Fixes #80151
14460
14461 2007-04-24  Jackson Harper  <jackson@ximian.com>
14462
14463         * TextBoxBase.cs: Fixup the height of textboxes when the control
14464         is created.
14465
14466 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
14467
14468         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
14469         for each ToolStripItem when the parent's RightToLeftChanged is called.
14470
14471 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14472
14473         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
14474           Fixes #80163.
14475         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
14476           property, so that the setter can be overriden too.
14477         * TextBox.cs: Change GetContextMenuInternal() to use
14478           ContextMenuInternal.
14479
14480 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14481
14482         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14483           #81406.
14484
14485 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14486
14487         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14488           #81406.
14489
14490 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14491
14492         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
14493           avoid duplicate work. Mostily skeleton code, it's not working at
14494           all yet.
14495
14496 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
14497
14498         * NotifyIcon.cs : stub for MouseClick event
14499         * Application.cs: stub for SetUnhandledExceptionMode
14500
14501 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
14502
14503         * BindingNavigator.cs : Initial (partial) implementation
14504
14505 2007-04-23  Jackson Harper  <jackson@ximian.com>
14506
14507         * TreeView.cs: Do not create the treeview's handle when setting
14508         the scroll position.
14509         - ExpandAll needs to compute the scrollbars so it knows which
14510         position to set the bar too.
14511         * TreeNode.cs: 
14512         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
14513
14514 2007-04-23  Jackson Harper  <jackson@ximian.com>
14515
14516         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
14517         key. Fixes #81408.
14518
14519 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
14520
14521         * ToolStripItem.cs: Make GetImageSize internal.
14522         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
14523         need to draw an item.  Fixes a reported issue where images on menus
14524         that were not 16x16 were drawing incorrectly.
14525
14526 2007-04-21  Miguel de Icaza  <miguel@novell.com>
14527
14528         * Padding.cs: Use the converter, fixes the resgen2 issue with
14529         XMLNotePad. 
14530
14531 2007-04-21  Jackson Harper  <jackson@ximian.com>
14532
14533         * TreeView.cs: Dont try to unhighlight the selected node if there
14534         isn't a selected node.
14535
14536 2007-04-21  Jackson Harper  <jackson@ximian.com>
14537
14538         * UpDownBase.cs:
14539         * TextBoxBase.cs:
14540         * ListView.cs:
14541         * ListBox.cs:
14542         * TreeView.cs: Use the InternalBorderStyle property to set the
14543         initial border style, this forces the client rectangle to be sized
14544         correctly.
14545
14546 2007-04-20  Jackson Harper  <jackson@ximian.com>
14547
14548         * TreeView.cs: Simplify scrolling to the last node after expanding
14549         all.
14550         - Fix some off by ones with setting the bottom.
14551
14552 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
14553
14554         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
14555         that.  We were incorrectly doing it the other way around.  Also,
14556         update ClientSize if we change the BorderStyle before the control
14557         is created.
14558
14559 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
14560
14561         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14562         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14563         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
14564         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14565         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14566         Caption to CaptionHeight.
14567         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
14568         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
14569         and FixedFrameBorderSize to return value from current XplatUI driver.
14570         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
14571         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
14572         and FixedFrameBorderSize using win32 API. Renamed Caption to
14573         CaptionHeight.
14574         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
14575         * SystemInformation.cs: Fixed typo in BorderSize.
14576
14577 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
14578
14579         * XplatUI.cs: Added MenuAccessKeysUnderlined.
14580         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
14581         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
14582         returning false.
14583         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
14584         value from XplatUI driver.
14585         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
14586         SystemParametersInfo.
14587         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
14588         override.
14589         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
14590         returning false.
14591
14592 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14593
14594         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
14595
14596 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14597
14598         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
14599
14600 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
14601
14602         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
14603         MenuStrips that contain ToolStripSeparators.
14604
14605 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14606
14607         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
14608           DefineStdCursorBitmap.
14609         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
14610           has been created off a standard cursor. This is used to get a
14611           bitmap of the standard cursor when Draw or DrawStretched is called
14612           in order to draw the cursor.
14613         * X11Structs.cs: Added XcursorImage and XcursorImages.
14614         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
14615           DefineStdCursorBitmap.
14616         * Cursors.cs: Update all relevant creations of Cursor to use the new
14617           internal constructor.
14618
14619 2007-04-19  Jackson Harper  <jackson@ximian.com>
14620
14621         * TextBox.cs: Move the has_been_focused into the base control, so
14622         some of the text adding methods can manipulate it (probably time
14623         for a better name for this flag too).
14624         - Call a new version of selectall that doesn't scroll
14625         * TextBoxBase.cs: When we append text, if the document is empty,
14626         don't scroll.  If the document has text already, we scroll to the
14627         end of the appended text.
14628         - When the text is changed, we reset the has_been_focused, so the
14629         next time the control gets focused, all the text is selected.
14630
14631 2007-04-19  Jackson Harper  <jackson@ximian.com>
14632
14633         * TextControl.cs: Move the margins to the document, add a method
14634         so the margin sizes can be updated.
14635         * TextBoxBase.cs: When the border style is changed, update the
14636         border sizes.
14637
14638 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
14639
14640         * Control.cs: Respect DefaultPadding.
14641         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
14642         padding into account.
14643         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
14644
14645 2007-04-19  Jackson Harper  <jackson@ximian.com>
14646
14647         * TextControl.cs: Oops, we need to use the ClientRect not the
14648         bounds here.
14649
14650 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14651
14652         * ListView.cs: In ItemControl.ItemsMouseDown, take into
14653         account the double clicks when CheckBoxes are used and
14654         the pointer is inside the checkbox. Fixes part of #81191.
14655
14656 2007-04-18  Jackson Harper  <jackson@ximian.com>
14657
14658         * TextControl.cs: Pressing the end key shouldn't move the caret
14659         past the line ending.
14660         * TextBoxBase.cs: We can still delete if we are in the line
14661         ending and the combine will just kill the existing line ending.
14662
14663 2007-04-18  Jackson Harper  <jackson@ximian.com>
14664
14665         * TextControl.cs: We can't move lines, then invalidate their
14666         bounds, we need to get the old bounds and combine that with the
14667         new bounds.
14668         * TextBoxBase.cs: Before combining two lines for a delete, we need
14669         to invalidate the area of the old line, since that will be moved
14670         in the combine operation.
14671
14672 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
14673
14674         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
14675         with transparent background. Fixes #80482.
14676
14677 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
14678
14679         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
14680         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
14681         [Fixes bug #81391]
14682
14683 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14684
14685         * CreateParams.cs: Add a couple of helper methods and do a less string
14686           concatenation in ToString.
14687         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
14688           overload that takes a Control parameter, since this method may be
14689           called before a control is assigned to the hwnd (from
14690           CreateWindow), and update CreateWindow to use the new overload. In
14691           GetMenuOrigin subtract the title bar from the y position if the
14692           form has a window manager (since we're painting it and not X).
14693         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
14694           CreateParams to calculate the origin (since border sizes may vary).
14695           In ScreenToMenu only subtract the title height if we actually have
14696           a title.
14697         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
14698           mdi children never have menus of themselves.
14699         * InternalWindowManager.cs: Implement menu handling like form does.
14700           Added GetMenuOrigin to calculate the menu origin, can't use the
14701           CreateParams from the form like normally since it's lying.
14702         * Hwnd.cs: Implement GetBorderSize better (in the sense more
14703           windows-like) and add Inflate and comparison operators to the
14704           Borders type. When calculating MenuOrigin and it's a form with a
14705           window manager, use the window manager to calculate it.
14706
14707 2007-04-17  Chris Toshok  <toshok@ximian.com>
14708
14709         * Control.cs (CreateControl): turns out in 2.0 we don't need this
14710         OnBindingContextChanged thing here.  It's only generated from
14711         ContainerControl.OnCreateControl.  Fixes a newly written unit test
14712         - BindingTest.BindingContextChangedTest4.
14713         
14714 2007-04-17  Jackson Harper  <jackson@ximian.com>
14715
14716         * ScrollBar.cs: When setting values, make sure the current
14717         position stays within the new values range.
14718
14719 2007-04-17  Chris Toshok  <toshok@ximian.com>
14720
14721         * Control.cs (CreateControl): talk about a bizarre corner case.
14722         Don't emit OnBindingContextChanged here if we're a parentless
14723         control (i.e. if we're a form.).  Fixes
14724         BindingTest.BindingContextChangedTest2.
14725
14726 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14727
14728         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
14729         from win32. Fixes #81255.
14730
14731 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14732
14733         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
14734         already present in CalculateButtonTextAndImageLayout.
14735
14736 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14737
14738         * XplatUIX11.cs: When setting min/max size for a window we need to
14739           translate the coordinates to x coordinates. Create an overload of
14740           SetWindowMinMax that takes a CreateParams handling this, and change
14741           SetWMStyles to call this function (can't use Control.FromHandle in
14742           the SetWindowMinMax to get the control/CreateParams from the handle
14743           because the handle might not have been assigned to the control
14744           yet). Fixes #81371.
14745
14746 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14747
14748         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
14749         if StateImageList is non-null and it has less than two items (match MS
14750         behaviour). Also, in HandleNavKeys handle the Space key, calling
14751         the new ToggleItemsCheckState method, which tries to change the
14752         checked state of the selected items. Fixes part of #81191.
14753
14754 2007-04-16  Jackson Harper  <jackson@ximian.com>
14755
14756         * RichTextBox.cs: namespace cleanup.
14757
14758 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14759
14760         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
14761
14762 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14763
14764         [Fixes #79447]
14765         * Control.cs: Call invalidate in set_Region.
14766
14767         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
14768         it dont works here.
14769
14770 2007-04-16  Jackson Harper  <jackson@ximian.com>
14771
14772         * TextBoxBase.cs: When enter is pressed, we need to update all
14773         lines below the current.
14774
14775 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
14776
14777         * MdiClient.cs: Implement implicit menu merging for MDI
14778         children.  When a child form is active, if it has a menustrip
14779         and the parent form has a MainMenuStrip, automatically merge
14780         the menus.
14781
14782 2007-04-15  Andreia Gaita  <avidigal@novell.com>
14783
14784         * TabControl.cs: Refactored sizing methods to not repeat
14785         code all over the place. Tab bounds are now calculated
14786         as if alignment is top and single line, and only when 
14787         setting the bounds are the positions adjusted according
14788         to alignment. Replaced hardcoded positions, spacings and
14789         paddings by getting the values the ThemeEngine. 
14790         Fixes #79619.
14791         
14792         * Theme.cs: Change TabControl properties and methods so
14793         that all start with TabControl*. Added more properties
14794         to help remove hardcoded values on tabcontrol.
14795         Add CPDrawBorder3D declaration so the Theming classes
14796         can access it.
14797         
14798         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
14799
14800         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
14801         on the Theming namespace, and call the appropriate methods here.
14802         Change CPDrawBorder3D to public.
14803
14804 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14805
14806         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
14807         the control after firing the OnMouseUp event, instead of sending
14808         the message before the mentioned event. This is so we can match the
14809         MS behaviour. Fixes part of #80385.
14810
14811 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14812
14813         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
14814         RightToLeft property.
14815
14816 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14817
14818         * ToolStrip.cs: Add properties and internal methods to support merging.
14819         * ToolStripItem.cs: Add MergeAction and MergeIndex.
14820         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
14821         not trigger reparenting or layouts.
14822         * ToolStripManager.cs: Add Merge and RevertMerge methods.
14823         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
14824         is hosting the overflow menu.
14825
14826 2007-04-13  Jackson Harper  <jackson@ximian.com>
14827
14828         * TextControl.cs: Set the line ending correctly for the first
14829         inserted line.
14830
14831 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
14832
14833         * Theme.cs: Update GetMethod to get the new definition for 
14834         KnownColors.Update (and fix theme color updates).
14835
14836 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
14837
14838         * MessageBox.cs: Fix some test and button position.
14839
14840 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14841
14842         * Form.cs: Consider the implicit controls in
14843         GetRealChildAtPoint. We need it since this method
14844         is called on Form when handling the some messages in
14845         WndProc, and need to consider those implicit ones too.
14846         Fixes #80385.
14847
14848 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
14849
14850         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
14851         if there are no ShortcutKeys set.
14852         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
14853         set, use it when painting.
14854
14855 2007-04-12  Jackson Harper  <jackson@ximian.com>
14856
14857         * TextControl.cs: Fix some off-by-one issues in line duplication
14858         and insertion in the undo manager. Also, overwrite the first tag
14859         of a line on insert, if it is just a zero lengthed tag. This
14860         prevents us from getting an extra stranded tag at the beginning of
14861         the first line.
14862
14863 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
14864
14865         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
14866         to calculated proper size including when handle was not created yet.
14867
14868 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14869
14870         * MdiWindowManager.cs: When moving a form, allow the form to be moved
14871           when the mouse is outside of it's parent's client rectangle. Fixes
14872           #79982 (take 3, part 2).
14873
14874 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14875
14876         * X11Structs.cs: Add a few ToString() overrides.
14877         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
14878           the window location in a window-manager independent way. Reworked
14879           FrameExtents, it now actually works. Reworked AddConfigureNotify
14880           and ReparentNotify handling to use GetTopLevelWindowLocation
14881           instead of the earlier, more hacky solution. Reworked SetWMStyles,
14882           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
14883           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
14884           for all other windows (fixes #81281 part 1), a toolwindow is hidden
14885           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
14886           and generally refactored to do as few calculations as possible
14887           inside the lock.
14888
14889 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
14890
14891         * Theme.cs: Change "reflective-contract" between MWF and SD to 
14892         minimize # of calls, avoid Color serialization and avoid updating 
14893         every "known colors" each time a single one is updated.
14894
14895 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14896
14897         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
14898         when not readonly and the text is explicitly set. Code style updates.
14899         * DataGridTableStyle.cs: Removed extra line.
14900         * DataGrid.cs: Code style updates. Removed extra whitespace.
14901         * DataGridColumnStyle.cs: Code style updates. Removed extra 
14902         whitespace.
14903
14904 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14905
14906         * XplatUIX11.cs: Added comment that "fixes" #80021.
14907
14908 2007-04-09  Jackson Harper  <jackson@ximian.com>
14909
14910         * TextControl.cs: We don't need this -1 on the line count anymore.
14911
14912 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14913
14914         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
14915         entered value to underlying type, and convert it back to a string to
14916         apply formatting. Modified GetFormattedValue to use TypeConverter
14917         if available.
14918
14919 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
14920
14921         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
14922         Use SubItems property when we want to ensure there's at least one
14923         subitem. Modified SubItems property to ensure there's always at least
14924         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
14925         the NRE's reported by MS.
14926
14927 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
14928
14929         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
14930         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
14931         Spaces to tabs. Removed extra tabs.
14932
14933 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
14934
14935         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14936         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
14937
14938 2007-04-06  Jackson Harper  <jackson@ximian.com>
14939
14940         * TextBoxBase.cs: When a delete removes a line, recalculate all
14941         lines below that line (they need to get offsets setup correctly)
14942         and invalidate.
14943
14944 2007-04-05  Jackson Harper  <jackson@ximian.com>
14945
14946         * TextControl.cs: We need to invalidate across the width of the
14947         document when we are invalidating multiple lines.
14948         * TextBoxBase.cs: Don't delete into the line ending.
14949
14950 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14951
14952         * ListView.cs: Restore the check for the MouseHover event
14953         in ListView. It looks like the ListView fires more than one MouseHover
14954         event when HoverSelection is true  _only_ in weird-corner scenarios, but
14955         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
14956         event.
14957
14958 2007-04-05  Mike Kestner  <mkestner@novell.com>
14959
14960         * ListView.cs : raise MouseDown before updating selection.
14961         [Fixes #80373 tab 1&3]
14962
14963 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14964
14965         * ToolStripRenderer.cs: Add static method to mirror image.
14966         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
14967         and RightToLeftAutoMirrorImage.
14968         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
14969
14970 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14971
14972         * ToolStripSplitStackLayout.cs: Support Alignment property.
14973         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
14974
14975 2007-04-05  Jackson Harper  <jackson@ximian.com>
14976
14977         * TextControl.cs: Move around the line endings when crossing line
14978         boundaries.
14979         - When combining lines, strip the ending text off the first line.
14980
14981 2007-04-05  Jackson Harper  <jackson@ximian.com>
14982
14983         * TextControl.cs:
14984         * TextBoxBase.cs: Try to never move the cursor into the line
14985         ending.
14986         
14987 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14988
14989         * ToolStripItem.cs: Make sure we aren't firing mouse events when
14990         the item is disabled.  Also add a few missing methods.
14991
14992 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14993
14994         * ListView.cs: We don't need the MouseEnter/MouseLeave check
14995         to fire just one MouseHover event when HoverSelection is true, since
14996         .Net does fire more than one MouseHover event in that scenario. Also,
14997         fix the selection in HoverSelection, by invoking UpdateMultiSelect
14998         if MultiSelect is true, instead of only setting ListViewItem.Selected.
14999         Finally, we need to reset the Hover logic in MouseMove, even when we
15000         don't have a selected item.
15001
15002 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
15003
15004         * ToolStrip.cs: Add several missing methods, properties, and events.
15005
15006 2007-04-04  Chris Toshok  <toshok@ximian.com>
15007
15008         * DataGridTextBoxColumn.cs: set the bounds of the text box to
15009         (0,0,0,0) in Commit, as MS does.
15010
15011         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
15012         make sure we set CurrentRow on a row header click *before* calling
15013         Select.  This moves the current cell (and the textbox) to the new
15014         row.  The call to Select then hides the textbox, giving us the
15015         correct behavior.  Fixes #80362.
15016
15017         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
15018         (ListChangedHandler): reorder the position/current changed events,
15019         and call UpdateIsBinding in the ItemAdded case.
15020
15021         * GridColumnStylesCollection.cs: add some columns events, one of
15022         which raises the CollectionChanged event.
15023
15024 2007-04-04  Jackson Harper  <jackson@ximian.com>
15025
15026         * TextControl.cs: When we delete multiple selection lines
15027         invalidate the selection area, don't need to do that for single
15028         lines because the final update view will handle it.
15029
15030 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
15031
15032         * Control.cs: When we CreateControl, we need to also create all of the
15033         control's children.  The child's OnLoad must also fire before the parent's
15034         OnLoad.  Fixes the toolbox size in PDN.
15035
15036 2007-04-04  Jackson Harper  <jackson@ximian.com>
15037
15038         * TextBoxBase.cs: When the user presses enter, insert a line
15039         ending into the text. (Maybe this would be a good spot for
15040         Environment.NewLine).
15041         * TextControl.cs: Remove undo manager hack, line endings get
15042         inserted properly now.
15043         
15044 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
15045
15046         * MenuAPI.cs: 
15047         - Remove unneeded parameters in UpdateCursor.
15048         - Fix UpdateCursor to check if menu is active.
15049         - Call UpdateCursor when menu deactivate my click.
15050         [Fixes remaining issues from #80410]
15051
15052 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
15053
15054         * Control.cs: GetRealChildAtPoint method added, it make an
15055         recursive child control search for the point. 
15056
15057         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
15058         menu.
15059
15060         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
15061
15062 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
15063
15064         * Form.cs: Fix mouse position when send back mouse event after closes
15065         menu.
15066
15067 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
15068
15069         * Form.cs: Simplify the BUTTONDOWN for active tracker.
15070
15071 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
15072
15073         * Control.cs: Fix an issue where if a user resized a control inside
15074         a sizing method like OnResize, we would overwrite their explicit
15075         value.  Also, only call DefaultSize once in the constructor instead
15076         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
15077         nothing actually changed.
15078
15079 2007-04-03  Jackson Harper  <jackson@ximian.com>
15080
15081         * TextControl.cs: Don't attempt to copy text for lines with no
15082         text in them (technically this shouldn't happen, but we aren't
15083         always inserting line endings when we should be).
15084
15085 2007-04-03  Jackson Harper  <jackson@ximian.com>
15086
15087         * TextBoxBase.cs: Calculate the scrollbars before calculating the
15088         document, because this sets some of the document size properties
15089         that are needed.
15090
15091 2007-04-03  Jackson Harper  <jackson@ximian.com>
15092
15093         * TextBoxBase.cs: We need to calculate maximums even if this is
15094         not a multiline control, because the maxs are used for scrolling.
15095         - Display the caret after doing a page up/down, we need to
15096         manually display it because a proper CaretMoved event isn't
15097         triggered (this is because of the way the math is done to
15098         determine how far to scroll).
15099
15100 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
15101
15102         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
15103         (ToolBar was relying on SetBoundsCore to default the values sent 
15104         base off of BoundsSpecified.)
15105
15106 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15107
15108         * DateTimePicker.cs: Change Text so that when a null value or empty
15109           string is assigned to the test we always raise ValueChanged and
15110           TextChanged (earlier implementation would only raise ValueChanged
15111           if the current date value was different from DateTime.Now).
15112
15113 2007-04-03  Andreia Gaita <avidigal@novell.com> 
15114
15115         * ButtonBase: Call update after invalidation, fixes #80194
15116
15117 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15118
15119         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
15120           #79335.
15121
15122 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15123
15124         * XplatUIX11.cs: SetWMStyles: If the control is a form with
15125           FormBorderStyle = None, don't give the window any decorations.
15126           Fixes #81276.
15127
15128 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15129
15130         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
15131         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
15132           to check for is a mix of several styles (such as WS_CAPTION for
15133           instance).
15134         * Control.cs: Don't paint an area bigger than the client area when
15135           painting the background colour. Add an internal GetCreateParams.
15136           Update calls to XplatUI.CalculateWindowRect due to API change.
15137         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
15138           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
15139           the size if it hasn't been handled by any windows. When creating
15140           and moving windows, X wants the location of the entire window, but
15141           the size of the client window, so add
15142           TranslateClientRectangleToXClientRectangle,
15143           TranslateWindowSizeToXWindowSIze and
15144           TranslatedXWindowSizeToWindowSize to cope with this, and call them
15145           before every window creation and move. Update CalculateWIndowRect
15146           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
15147           In AddConfigureNotify don't do anything if the hwnd is a zombie
15148           (fixes the BadWindow we were getting while running the tests),
15149           always calculate the offsets when it's a parentless window, not
15150           only when reparented, and translate the window size, since we're
15151           getting the client size of the whole window, excluding entire
15152           window.
15153         * Theme.cs: Added BorderSizableSize.
15154         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
15155           anymore. Update calls to XplatUI.CalculateWindowRect due to API
15156           chang
15157         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
15158           change. Fake the window styles here instead of in XplatUIWin32 so
15159           that all back-ends get the same window styles (and it's Form that's
15160           deciding when to use wm, not the Win32 backend anyways)
15161         * Hwnd.cs: Completely reworked GetWindowRectangle and
15162           GetClientRectangle - they are now passed a CreateParams and they
15163           only use Style and ExStyle to determine the rectangles (they should
15164           now work just like Win32AdjustWindowRectEx - though quite a few
15165           special cases are probably missing). They should also be 100%
15166           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
15167           == rect), and all numbers (borders, menu sizes) are taken from the
15168           current theme. Added a GetBorders helper function that will return
15169           the borders for any given CreateParams (including captions and
15170           menus), and GetBorderSize that returns the given border size only.
15171         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
15172           Hwnd.GetClientRectangle.
15173
15174 2007-04-02  Chris Toshok  <toshok@ximian.com>
15175
15176         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
15177         logic between the values we present to the user and the values
15178         which are stored in the column's property.  Also, don't call
15179         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
15180
15181 2007-04-02  Jackson Harper  <jackson@ximian.com>
15182
15183         * TextBoxBase.cs: Scroll faster!
15184
15185 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
15186
15187         * StatusStrip.cs: Layout fixes for PDN.
15188         * ToolStrip.cs: Set item's available to true, and placement to main when
15189         added.
15190         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
15191         changing in setter before doing any work, add InternalVisible.
15192         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
15193         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
15194         infinite loop.
15195
15196 2007-04-02  Jackson Harper  <jackson@ximian.com>
15197
15198         * TextBox.cs: LBUTTON does not make the textbox select all of it's
15199         text on focus.
15200
15201 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15202
15203         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
15204           Makes ToolStripComboBoxes show up again.
15205
15206 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15207
15208         * ListView.cs: Add a hover_pending field in ListView
15209         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
15210         cycle (we are resetting the MouseHover logic in XplatUI
15211         to handle HoverSelection). Fixes #80429.
15212
15213 2007-04-02  Jackson Harper  <jackson@ximian.com>
15214
15215         * TextControl.cs: Make sure the attributes get set on the last
15216         tag.
15217         - Still have to do the end tag if we have stepped all the ways to
15218         the end.
15219
15220 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
15221
15222         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
15223         on an internal libgdiplus call when the information is already 
15224         available via the public API.
15225
15226 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15227
15228         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
15229           control is removed from a control collecftion.
15230         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
15231           Fixes FormPropertyTest (failed on rare occasions).
15232         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
15233           of Win32SetParent (when changing from no parent to a parent it
15234           might add the new parent's location in screen coordinates to this
15235           window's location).
15236         * Form.cs: Rework ChangingParent once again, now the handle is
15237           recreated whenever a FormWindowManager is added or removed (that is
15238           whenever a normal form is parented or abandoned). Also change
15239           CreateParams so that all non-toplevel windows always get the
15240           specified sice (StartupPosition is never considered for
15241           non-TopLevel forms).
15242         * ContainerControl.cs: Add ChildControlRemoved, the container control
15243           needs to be notified when a control is removed from it's
15244           collection, in the case the removed control is the active control.
15245
15246 2007-04-02  Jackson Harper  <jackson@ximian.com>
15247
15248         * RichTextBox.cs: Use the new methods for setting the font and
15249         color, these methods set the specified attribute without
15250         overriding the other attributes.
15251
15252 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
15253
15254         * ToolStripPanel.cs: Fixes for better layouts in PDN.
15255
15256 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
15257
15258         * TextBox.cs: Added internal ChangeBackColor method to special-case
15259         Color.Empty. Added check for invalid ScrollBars value.
15260         * TextBoxBase.cs: Added internal ChangeBackColor method.
15261         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
15262         internal ChangeBackColor method to special-case Color.Empty. Added
15263         check for invalid ScrollBars value.
15264
15265 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
15266
15267         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
15268
15269 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
15270
15271         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
15272         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
15273         [Based on submitted patch from Olivier Duff.]
15274
15275 2007-03-30  Jackson Harper  <jackson@ximian.com>
15276
15277         * TextBox.cs: Only select all on initial focus if the user has not
15278         specified a selection area.
15279
15280 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
15281
15282         * UserControl.cs: Override CreateParams.
15283
15284 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15285
15286         [ Fixes #80995 ]
15287
15288         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
15289         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
15290           check for is a mix of several styles (such as WS_CAPTION for instance).
15291         * Control.cs: Don't paint an area bigger than the client area when painting
15292           the background colour. Add an internal GetCreateParams. Update calls to
15293           XplatUI.CalculateWindowRect due to API change.
15294         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
15295           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
15296           hasn't been handled by any windows. When creating and moving windows, X
15297           wants the location of the entire window, but the size of the client
15298           window, so add TranslateClientRectangleToXClientRectangle,
15299           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
15300           to cope with this, and call them before every window creation and move.
15301           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
15302           removing DeriveStyles). In AddConfigureNotify don't do anything if the
15303           hwnd is a zombie (fixes the BadWindow we were getting while running the
15304           tests), always calculate the offsets when it's a parentless window, not
15305           only when reparented, and translate the window size, since we're getting
15306           the client size of the whole window, excluding entire window.
15307         * Theme.cs: Added BorderSizableSize.
15308         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
15309           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
15310         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
15311           Fake the window styles here instead of in XplatUIWin32 so that all
15312           back-ends get the same window styles (and it's Form that's deciding when
15313           to use wm, not the Win32 backend anyways)
15314         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
15315           they are now passed a CreateParams and they only use Style and ExStyle
15316           to determine the rectangles (they should now work just like
15317           Win32AdjustWindowRectEx - though quite a few special cases are probably
15318           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
15319           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
15320           sizes) are taken from the current theme. Added a GetBorders helper
15321           function that will return the borders for any given CreateParams
15322           (including captions and menus), and GetBorderSize that returns the given
15323           border size only.
15324         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
15325           Hwnd.GetClientRectangle.
15326
15327 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15328
15329         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
15330           layout of the mdi children is handled by CreateParams. Fixes
15331           #79964,
15332
15333 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
15334
15335         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
15336         processed.
15337
15338         * Form.cs: When active tracker mouse down is not processed, send event 
15339         back to control inside mouse position. [Fixes #81227]
15340
15341 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
15342
15343         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
15344         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
15345         stealing focus from the active form on Windows.  (Control will be made
15346         visible in ShowWindow.)
15347
15348 2007-03-29  Mike Kestner  <mkestner@novell.com>
15349
15350         * ImageList.cs : add internal Changed event.
15351         * ListView.cs : hook up to StateImageList.Changed to perform
15352         invalidations when the the state icon list changes. [Fixes #81191]
15353
15354 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
15355
15356         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
15357         to prevent tooltips from stealing focus from the active form on Windows.
15358
15359 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
15360
15361         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
15362
15363         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
15364
15365 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
15366
15367         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
15368         balloons.
15369
15370 2007-03-29  Jackson Harper  <jackson@ximian.com>
15371
15372         * TextControl.cs: When deleting text from non multiline textboxes,
15373         we need to update the entire document, because line offsets will
15374         be shifting.
15375
15376 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
15377
15378         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
15379         added to theme, now we can create themes that uses diferent notify engines
15380         like notification-daemon from galago project or growl for Mac OS.
15381
15382 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
15383
15384         * NotifyIcon.cs: Prevent Balloon to show in task bar.
15385
15386 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
15387
15388         * XplatUIX11.cs: Prevent system to open more than one balloon.
15389
15390         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
15391         some compiler warning messages.
15392
15393 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
15394
15395         [Fixes #79149]
15396
15397         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
15398
15399         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
15400         implemented, this methods is used by NotifyIcon.BalloonWindow class.
15401
15402         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
15403         systems.
15404
15405 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15406
15407         * ListViewItem.cs: Forgot to make Invalidate internal.
15408
15409 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15410
15411         * ListView.cs: Add a InvalidateSelection method to
15412         invalidate methods which are currently selected, and call
15413         it when setting FullRowSelect and HideSelection, instead of
15414         calling Redraw.
15415
15416 2007-03-28  Chris Toshok  <toshok@ximian.com>
15417
15418         * XplatUIX11.cs (UnmapWindow): reindent this block.
15419
15420         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
15421         the selection_start if we're moving the selection (that is, not
15422         extending it). Fixes bug #80461.
15423
15424 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15425
15426         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
15427         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
15428         create private ControlCollection.
15429
15430 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15431
15432         * Control.cs: We need to call OnVisibleChanged for our implicit
15433         children as well as our normal children.  Fixes scrollbars in
15434         comboboxes not showing up.
15435
15436 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15437
15438         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
15439         the check for IsHandleCreated first.  The check in CreateHandle is not
15440         good enough because CreateHandle can be overriden, and the override 
15441         should not be called if the handle is already created.
15442
15443 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15444
15445         * ToolStrip.cs: Remove MonoTODO for tooltips.
15446         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
15447         * ToolStripContainer.cs: Add custom ControlCollection class.
15448         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
15449         * ToolStripDropDown.cs: Add some missing properties/methods.
15450         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
15451         * ToolStripItem.cs: Remove MonoTODO for tooltips.
15452         * ToolStripManager.cs: Add IsShortcutDefined.
15453         * ToolStripOverflow.cs: Override LayoutEngine.
15454         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
15455         * ToolStripSeparator.cs: Add ImageKey.
15456
15457 2007-03-28  Jackson Harper  <jackson@ximian.com>
15458
15459         * TextControl.cs: If a char delete removes a line ending, we need
15460         to update the ending style.
15461         - Make sure the line ending calcs get called.
15462
15463 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15464
15465         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
15466           it was making the new code not work. Fixed a typo in the new code
15467           as well. Fixes #79826.
15468
15469 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15470
15471         * XplatUIWin32.cs:
15472         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
15473         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
15474         - SystrayBalloon method implemented.
15475         [Add support for notifyicon balloon on win32, #79149]
15476
15477 2007-03-27  Mike Kestner  <mkestner@novell.com>
15478
15479         * ThemeWin32Classic.cs : update StateImageList selection to mirror
15480         the ms behavior when only one image is added to the list.
15481         [Fixes #81191]
15482
15483 2007-03-27  Jackson Harper  <jackson@ximian.com>
15484
15485         * TextControl.cs: Improvements to non multiline line ending
15486         drawing/measuing.
15487
15488 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15489
15490         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
15491
15492 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15493
15494         * NotifyIcon.cs: 
15495         - Balloon message handling added.
15496         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
15497
15498         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15499         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
15500         to SystrayBalloon to me like other Systray method, also a
15501         handle parameter added.
15502
15503 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15504
15505         * ListView.cs: Show scrollbars even when items.Count == 0
15506         but the columns Width is bigger than the ListView.Width.
15507         Also, when columns.Count == 0 set layout_wd and layout_ht
15508         to the ClientRectangle values, so we don't show any scrollbar
15509         in that case.
15510
15511 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15512
15513         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
15514
15515 2007-03-27  Jackson Harper  <jackson@ximian.com>
15516
15517         * RichTextBox.cs: The RTF library decodes the text properly for us
15518         now.
15519
15520 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15521
15522         * ListView.cs: Display HeaderControl even when columns.Count == 0.
15523         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
15524         ListView header (HeaderControl), instead of Control.BackColor.
15525
15526 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
15527
15528         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
15529         Fixes tab control issues where controls would not show up because they
15530         never received their OnVisibleChanged call.
15531
15532 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15533
15534         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
15535         BalloonTipShown).
15536
15537 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
15538
15539         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
15540         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
15541         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
15542         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
15543         the handle.  Fix WindowState by using the internal variable until we are 
15544         sure that we've been shown.
15545         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
15546         max or min.
15547         [Fixes bug #81198]
15548
15549 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15550
15551         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
15552           (at least borders). Fixes #79386 on Linux (with a small difference
15553           in behaviour: when trying to resize a caption-less window metacity
15554           shows the sysmenu. Resizing is still possible though).
15555         * XplatUIWin32.cs: When setting window styles send request an extra
15556           WM_NCCALCSIZE when it's a form without title (due to no text and no
15557           caption), since Win32 seems to calculate it wrong the first time we
15558           get the message, though the second time things work as they should.
15559         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
15560           newly reparented window might show up unparented. Update
15561           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
15562           there's no title text. Fixes #79386.
15563
15564 2007-03-27  Mike Kestner  <mkestner@novell.com>
15565
15566         * ListBox.cs : don't perform invalidations if the handle hasn't been
15567         created.  [Fixes #80753]
15568
15569 2007-03-27  Mike Kestner  <mkestner@novell.com>
15570
15571         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
15572         [Fixes #80428]
15573
15574 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15575
15576         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
15577         needed to implement Balloon.
15578
15579 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15580
15581         * ListViewItem.cs: In the constructors that take
15582         an array of strings, don't use ListViewSubItemCollection.AddRange
15583         method to add items, since we need to have a different behaviour (in
15584         the constructors we add an item for each null string, opposed to
15585         the behaviour of AddRange, which adds nothing).
15586
15587 2007-03-26  Andreia Gaita  <avidigal@novell.com>
15588
15589         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
15590
15591 2007-03-26  Jackson Harper  <jackson@ximian.com>
15592
15593         * TextControl.cs: Draw and measure line endings when in non
15594         multiline mode.
15595         - When searching the text, count the end of the last line as a
15596         word boundary.
15597
15598 2007-03-26  Jackson Harper  <jackson@ximian.com>
15599
15600         * RichTextBox.cs: The selection_start and selection_end don't
15601         really track the correct tags for the selection. So we'll manually
15602         compute the correct tag here.
15603
15604 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15605
15606         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
15607           and Continuous styles. Fixes #79469.
15608
15609 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
15610
15611         * ToolStrip.cs: Implement Tooltips.
15612         * ToolStripItem.cs: Create internal method for determining tooltip.
15613
15614 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
15615
15616         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
15617
15618 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15619
15620         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
15621         it prevents a problem thak keeps icon visible after application 
15622         closes on win32.
15623
15624 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15625
15626         * NotifyIcon.cs: Balloon properties and methods created.
15627
15628         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15629         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
15630
15631 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
15632
15633         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
15634
15635 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
15636
15637         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
15638         parameter indicates which aspects were explicit/user-set.
15639         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
15640
15641 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
15642
15643         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
15644         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
15645         SmallChange, and Value (2.0).
15646         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
15647
15648 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15649
15650         * ListView.cs: Always set item_control.Width in LayoutDetails
15651         if View is Details. Setting it later in CalculateScrollBars
15652         in a not-so-corner scenario (the sum of columns width is
15653         not bigger than the ListView width when handle is created, and then
15654         that sum gets bigger by increasing the width of the columns)
15655         causes a very weird recursion path (which shouldn't be happening,
15656         since header_control sets it in CalculateScrollBars too). This bug
15657         appeared after Chris' fixes for handle created issues, so probably
15658         it's related to some handle-creation time.
15659
15660 2007-03-23  Chris Toshok  <toshok@ximian.com>
15661
15662         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
15663         case where there's an add row, just so we don't end up in a case
15664         where it's not displayed (this happens when the row is partially
15665         obscured).  Fixes bug #79574.
15666
15667 2007-03-23  Jackson Harper  <jackson@ximian.com>
15668
15669         * TextControl.cs:
15670         * TextBoxBase.cs:
15671         * RichTextBox.cs: Preserve line endings in the lines text buffer,
15672         also added an enum that represents the line ending type. 
15673
15674 2007-03-23  Andreia Gaita  <avidigal@novell.com>
15675
15676         * NumericUpDown.cs: Fix logic so Text and Value properties are not
15677         messed with in every method call, but only from DownButton, 
15678         UpButton, UpdateEditText() and ValidateText. Fixes #80346
15679
15680 2007-03-23  Chris Toshok  <toshok@ximian.com>
15681
15682         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
15683         format objects if the format spec is "".  Fixes bug #80889.
15684
15685 2007-03-22  Miguel de Icaza  <miguel@novell.com>
15686
15687         * ToolStripPanel.cs (Join): added stubs to build PDN3
15688
15689         * Control.cs (AutoScrollOffset): Add.
15690
15691         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
15692         property, its only implemented for Win32, on X11 it defaults to
15693         some hardcoded value.
15694
15695         * ToolStripItem.cs (AllowDrop): Add property
15696
15697 2007-03-22  Mike Kestner  <mkestner@novell.com>
15698
15699         * ListView.cs : in FullRowSelect Details mode, only enable box
15700         selection if the user clicks over the "item" column outside of the
15701         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
15702
15703 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15704
15705         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
15706           handle is not created yet.
15707         * Form.cs: Select: Don't call CreateHandle if the handle is already
15708           created, avoids a stack overflow on Windows when we are recreating
15709           controls.
15710         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
15711           they are made visible, and override AfterTopMostControl to keep
15712           them on top when other controls are brought to front.
15713           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
15714           or force_*scroll_visible is true (old implementation always shows
15715           scrollbars when needed, no matter what auto_scroll was set to).
15716         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
15717           IsHandleCreated check.
15718
15719 2007-03-22  Andreia Gaita  <avidigal@novell.com>
15720
15721         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
15722         row or col separator.
15723         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
15724
15725 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15726
15727         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
15728
15729 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15730
15731         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
15732         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
15733         every time. Fixes #80410.
15734
15735 2007-03-22  Chris Toshok  <toshok@ximian.com>
15736
15737         * BindingSource.cs (AddNew): partially implement.
15738
15739         remove a couple of NotImplementedException's
15740         to get bug #81148 closed.
15741
15742 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15743
15744         [Fixes #80380]
15745         
15746         * Control.cs:
15747         - UpdateCursor method added to update the screen cursor.
15748         - GetAvailableCursor method added to return cursor for enabled tree,
15749         it searches for cursor on control and it's parent's for enabled control.
15750         - Call UpdateCursor method on setter of Cursor property.
15751         - On setter of Enabled call UpdateCursor when it is false, we need to
15752         change cursor to normal (or to this parent cursor) because cursor 
15753         setting theres no effect to disabled controls.
15754         - Some minor source changes to follow the coding style guidelines.
15755
15756         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
15757         controls.
15758
15759 2007-03-22  Chris Toshok  <toshok@ximian.com>
15760
15761         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
15762         generates.
15763
15764 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15765
15766         * XplatUIX11.cs: Implement default locations for forms.
15767         * Form.cs: Completely rework startup location for forms. Fixes #79964.
15768         * Hwnd.cs: Add previous_child_startup_location (to track the current
15769           startup location for any child forms of the current form) and
15770           previous_main_startup_location (to track the startup location for
15771           the current toplevel form).
15772
15773 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15774
15775         * Control.cs: Don't trigger a layout if an implicit control is added
15776         that isn't visible.  Also, don't notify the owner when an implicit control
15777         is added.  (Owners shouldn't even know about their implicit controls.)
15778
15779 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15780
15781         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
15782         to save some re-layouts.
15783
15784 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
15785
15786         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
15787         [Fixes #81203]
15788
15789 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15790
15791         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
15792         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
15793
15794 2007-03-21  Mike Kestner  <mkestner@novell.com>
15795
15796         * ListView.cs : disable selection update for non-left button clicks
15797         with mods and over selected items.  [Fixes #80524]
15798
15799 2007-03-20  Jackson Harper  <jackson@ximian.com>
15800
15801         * TextControl.cs:
15802         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
15803         \r\r\n, \n.
15804
15805 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15806
15807         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
15808           very probably a more complicated calculation there. Update the
15809           textbox' ForeColor and BackColor when the ComboBox' colors are
15810           changed. Change the border change in LayoutComboBox to only affect
15811           the textbox, not all the calculations there. Seems to fix most of
15812           #79436.
15813
15814 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15815
15816         * ComboBox.cs: Handle Home and End keys as well as all combinations of
15817           modifiers + navigation keys as input keys, enables advanced text
15818           selection in the combobox (like Shift+Left Arrow for instance).
15819           ComboTextBox now overrides Focused and returns whatever
15820           ComboBox.Focused returns, since it really should be focused
15821           whenever the ComboBox is. Fixes #80795. Also make the border around
15822           the text box one pixel bigger, as mentioned in #79436.
15823
15824 2007-03-20  Jackson Harper  <jackson@ximian.com>
15825
15826         * TreeView.cs: Don't offset the images, this was causing some
15827         artifacts when expanding/collapsing with images that were the
15828         exact height of the treenode.
15829
15830 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15831
15832         * TrackBar.cs: Query the theme for the correct value when the mouse
15833           moves and the thumb is pressed. 
15834         * Theme.cs: Added TrackBarValueFromMousePosition
15835         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
15836           implementation was updating the trackbar value when drawing, now
15837           the drawing methods only draw. Fixes #80900. Refactored the
15838           calculations out to TrackBarValueFromMousePosition and
15839           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
15840           according to the mouse position whenever it wants to. Changed the
15841           light coloured pen when drawing the thumb from ControlLight to
15842           ControlLightLight, because the ControlLight is the same colour as
15843           the background so the 3D effect is lost. 
15844
15845 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15846
15847         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
15848         defined. Fixes #80784.
15849
15850 2007-03-20  Marek Habersack  <mhabersack@novell.com>
15851
15852         * ContextMenuStrip.cs: align with the change introduced in
15853         revision 74664.
15854
15855 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15856
15857         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
15858         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
15859         in SetTopmost.
15860
15861 2007-03-19  Chris Toshok  <toshok@ximian.com>
15862
15863         * Control.cs (WmPaint): don't make use of the Handle property
15864         after an event is emitted, as the user could have closed the
15865         form/destroyed the control.  Store the Handle in a local variable
15866         and make use of that.  Fixes bug #80768.
15867
15868 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15869
15870         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
15871         behavior in X11 environments.
15872
15873 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15874
15875         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
15876         because on setter of topmost we dont call SetTopmost when handle is not
15877         created.
15878
15879 2007-03-20  Jackson Harper  <jackson@ximian.com>
15880
15881         * TextControl.cs: Need to use SelectionLength () not
15882         selection_length, since that var is reset to -1.
15883         - Draw the caret when we don't have focus.
15884         * TextBox.cs: The selectall actually doesn't occur until the first
15885         focus.
15886         * TextBoxBase.cs: Need to update the caret position after a
15887         selectall.
15888         
15889 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15890
15891         * ListView.cs: Enable scrolling when using Tile view.
15892
15893 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15894
15895         [Fixes #80902]
15896
15897         * XplatUIDriver.cs: Abstract SetOwner method created.
15898
15899         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
15900         must be implemented and was masked as todo.
15901
15902         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
15903         GWL_HWNDPARENT.
15904
15905         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
15906         cheking for null owner to remove transient. The SetTopmost will be change
15907         on a decond step.
15908
15909         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
15910         SetTopmost. Now owned forms will work properly in win32 and X11.
15911
15912 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15913
15914         * MdiWindowManager.cs: Update function name.
15915         * Form.cs: After closing a form MdiParent is always null.
15916         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
15917           better what it should do: necessary book-keeping when the form is
15918           closed, it should not close the form itself.
15919
15920 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15921
15922         * ListViewItem.cs: Fix back and fore color. The subitems only
15923         use their own colors if they are set, otherwise use the listview's
15924         colors. Don't set default colors on constructor for subitem.
15925         Fixes #79315.
15926
15927 2007-03-19  Mike Kestner  <mkestner@novell.com>
15928
15929         * ListView.cs : make box selection for Details views with 
15930         FullRowSelect conform to MS behavior when clicking in the "item" 
15931         column and clicking outside the defined columns.
15932         [Fixes case 5-6 of #80374]
15933
15934 2007-03-19  Chris Toshok  <toshok@ximian.com>
15935
15936         * ScrollableControl.cs: create the controls from within the ctor,
15937         but don't actually add them until our handle is created.  this
15938         fixes a NRE possibility jpobst found (if you override OnLayout in
15939         a subclass, it's called before your ctor).  Also, add a
15940         IsHandleCreated guard to UpdateSizeGripVisibility as well.
15941
15942 2007-03-19  Jackson Harper  <jackson@ximian.com>
15943
15944         * TextBox.cs: Reduce the amount of invalidation we do.
15945         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
15946         some of them are true by default on MS.
15947         - Add some functions to reduce the amount of invalidates we do.
15948         * TextControl.cs: Less invalidation.
15949
15950 2007-03-19  Chris Toshok  <toshok@ximian.com>
15951
15952         [ Fixes #81773, and *seems* to fix #81553 as well ]
15953
15954         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
15955         AccumulateDestroyedHandles.  We need to do it *after* we send
15956         WM_DESTROY, as the user's code can access Control.Handle in
15957         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
15958         move the WM_DESTROY/zombie handling to before the call to
15959         XDestroyWindow.  For some reason without this ordering
15960         FormTest.RecreateHandle hangs.  This ordering is semantically
15961         equivalent, however, as XDestroyWindow is async anyway.
15962
15963 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
15964
15965         * RichTextBox.cs: Reset backcolor_set after setting default.
15966
15967 2007-03-19  Chris Toshok  <toshok@ximian.com>
15968
15969         * ScrollableControl.cs: the scroll position should not effect the
15970         canvas size.  commit patch from georgegiolfan@yahoo.com, which
15971         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
15972         
15973 2007-03-19  Chris Toshok  <toshok@ximian.com>
15974
15975         * ScrollableControl.cs: clean this up a bit.  create the
15976         scrollbars in the ctor and just show/hide them as needed.  Also,
15977         make hscroll_visible/vscroll_visible internal to Recalculate, and
15978         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
15979         everywhere else.  This seems to fix the scrollbars appearing
15980         beneath the content for me (i have *no* idea why that is,
15981         however.)
15982
15983 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15984
15985         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
15986         some redundacy for stuff in Anchor and Dock that base will take care of.
15987         [Fixes #80762]
15988
15989 2007-03-19  Mike Kestner  <mkestner@novell.com>
15990
15991         * ListView.cs : make box selection for Details views without 
15992         FullRowSelect dependent on the text bounds, not item bounds.
15993         * ListViewItem.cs : add an internal property to obtain the TextBounds
15994         in Details view.  [Fixes case 1-4 of #80374]
15995
15996 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15997
15998         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
15999         we're < 2.0. #78448 && #80316
16000
16001 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
16002
16003         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
16004         have the same style available as the previously selected one.  Also,
16005         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
16006
16007 2007-03-19  Jackson Harper  <jackson@ximian.com>
16008
16009         * TextControl.cs: Add an alignment property that all new lines
16010         will be given.
16011         - Make sure to use the align shift when calculating the line's X
16012         position.
16013         * TextBox.cs: Set the alignment on the document as well as on all
16014         the document lines.
16015
16016 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16017
16018         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
16019           throw if setting the parent of an mdichild that already has an
16020           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
16021           AssemblyProductAttribute in the assembly, use the type's namespace (as
16022           MS seems to do). CreateControl: don't create the handle if the control
16023           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
16024           create handle if the control is not a form. Change FocusInternal to
16025           virtual so that it can be overriden by Form.
16026         * TextBox.cs: Update call to FocusInternal.
16027         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
16028           form is not a toplevel form when it's a mdi child, so update is_toplevel
16029           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
16030           hasn't been created. Show (IWin32Window): Don't allow this overload for
16031           toplevel windows. CenterToParent/CenterToScreen/Select: create the
16032           handle as MS does. SetVisibleCore: if called on a MdiChild and the
16033           parent isn't visible yet, save the visibility and restore it when the
16034           parent is made visible.
16035         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
16036           methods, since the visibility of the scrollbars can be changed from
16037           several places, not only from AutoScroll.
16038           [Fixes #81179]
16039
16040 2007-03-19  Jackson Harper  <jackson@ximian.com>
16041
16042         * RichTextBox.cs: Enable shortcuts by default.
16043         * TextBoxBase.cs: Add conditional shortcuts.  
16044
16045 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
16046
16047         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
16048
16049 2007-03-19  Chris Toshok  <toshok@ximian.com>
16050
16051         [ Fixes bug #80604]
16052         
16053         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
16054         swallow the message we're waiting on, instead of delivering it, as
16055         this is only used for the WM_SHOWWINDOW raised from
16056         MapWindow/UnmapWindow, and the message needs to be generated
16057         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
16058         before doing the Map/Unmap.  Also make sure that the Hwnd is still
16059         alive after the message has been handled.
16060
16061         *before* the window is shown.
16062
16063         * Control.cs (CreateControl): guard a few more things inside the
16064         if (!is_created) block, as we might end up being called again -
16065         yay .net.
16066         (WmShowWindow): call CreateControl if we're showing the control.
16067
16068 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16069
16070         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
16071           controls without a handle if they have any parent with a handle. In
16072           Dispose add a check whether the handle is created or not before
16073           calling BeginInvoke, this removes the need of the extra disposing
16074           parameter (which was bogus anyway since it didn't prevent the
16075           invoke from happening, it only skipped the check for an existing
16076           handle, meaning that the invoke would call on an inexistent
16077           handle).
16078
16079 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
16080
16081         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
16082         appears in taskbar.
16083
16084 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
16085
16086         * MessageBox.cs:
16087         - Fixed a problem that dont show help button for messages with 3 buttons.
16088         - Refactory button size and position calculations, now dont use fixed 
16089         values, also fixed button sizes (#80043) and form's border space.
16090         - AddButton method created, now all other AddButton methods call this one.
16091         - Some other source code cosmetic changes.
16092
16093 2007-03-18  Jackson Harper  <jackson@ximian.com>
16094
16095         * RichTextBox.cs: Don't do this all fonts must match check if
16096         there is only one char selected.
16097
16098 2007-03-18  Jackson Harper  <jackson@ximian.com>
16099
16100         * TreeView.cs: ScrollWindow works properly now, so we don't need
16101         to screw around with the scroll area.  This fixes some artifacts
16102         when expanding and collapsing.
16103
16104 2007-03-18  Jackson Harper  <jackson@ximian.com>
16105
16106         * TextBoxBase.cs: Allow updating the selection position when the
16107         cursor is outside the textarea, but we have a capture.
16108         * TextControl.cs: A special case for when the cursor is outside
16109         the bounds of the TB.
16110         
16111 2007-03-18  Jackson Harper  <jackson@ximian.com>
16112
16113         * TextBoxBase.cs: Remove image pasting code for now.  There is no
16114         way to get an image on the clipboard right now anyways.
16115         * TextControl.cs:
16116         * RichTextBox.cs: Use the new RTF Picture class for pictures.
16117
16118 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
16119
16120         * MessageBox.cs:
16121         - Set window properties in constructor intead of on CreateParams.
16122         - Remove topmost from Window ExStyle.
16123         - Set ShowInTaskbar to false.
16124         - Set form border to FixedDialog.
16125         - Some cosmetic changes and remove unneeded comments.
16126         - It fixes itens 2,3 and 4 of bug #80043.
16127
16128 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
16129
16130         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
16131         none was explicitly set. Fixes part of bug #79949.
16132
16133 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
16134
16135         * ToolStripComboBox.cs: Add AutoComplete*.
16136
16137 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
16138
16139         * ToolStripComboBox.cs: Add FlatStyle.
16140
16141 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
16142
16143         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
16144         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
16145
16146 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16147
16148         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
16149           CheckBox.cs, RadioButton.cs, BindingSource.cs,
16150           DataGridColumnStyle.cs: Remove warnings.
16151
16152 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16153
16154         * Menu.cs: MergeMenu: Check menu argument for null before looping over
16155           it.
16156         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
16157           visibility of mdi child forms. FormSizeChangedHandler: update the
16158           maximized size if size has changed while maximized.
16159         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
16160           creating the handle.
16161         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
16162           avoid creating the handle if not created.
16163         * XplatUI.cs: Update debug output.
16164         * XplatUIStructs.cs: Added ToString's for a couple of structs.
16165
16166 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
16167
16168         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
16169         ProcessCmdKey().
16170         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
16171         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
16172         Implement keyboard shortcuts.
16173
16174 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
16175
16176         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
16177         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
16178         ColorDialog and all derived classes.
16179
16180 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
16181
16182         [ Fixes bug #79828 ]
16183
16184         * ToolBar.cs:
16185         - Rename ToolBarButtonInfor to ToolBarItem.
16186         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
16187         - Maintain an array of ToolBarItem, used instead of ToolBarButton
16188         collection to be able add same button more than one time on a toolbar.
16189         - Refactory all properties and methods to use ToolBarItem. 
16190
16191         * ToolBarButton.cs: 
16192         - Remove all propeties and methods that is now in ToolBarItem.
16193         - Rectangle propery now gets the rectangle from first ToolBarItem to
16194         mimic win32 behavior.
16195         - Size calculation and layout methods also removed.
16196
16197         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
16198         ToolBarItem instead of ToolBarButton to right drawing buttons when
16199         same button/separator was added more than one time to ToolBar.
16200
16201         * ThemeNice.cs: Same as above. 
16202
16203 2007-03-15  Andreia Gaita  <avidigal@novell.com>
16204
16205         * XplatUIX11.cs: Fire extra MouseMove events right after
16206         MouseDown and MouseUp, emulating win32's <censored> behaviour
16207         for apps that rely on it.
16208
16209 2007-03-15  Jackson Harper  <jackson@ximian.com>
16210
16211         * TextControl.cs:
16212         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
16213         it is drawn on the controls client window and there is no NC
16214         area.
16215         - Set the background color to gray on 2.0 when we are readonly.
16216
16217 2007-03-15  Chris Toshok  <toshok@ximian.com>
16218
16219         [ Fixes bug #81144 ]
16220         
16221         * XplatUIX11.cs: implement VirtualScreen independently of
16222         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
16223         property.
16224
16225 2007-03-15  Chris Toshok  <toshok@ximian.com>
16226
16227         * Hwnd.cs: add an internal field for the cached_window_state.
16228
16229         * XplatUIX11.cs: cache the window state, invalidating the cache
16230         (and thus re-querying the X server) only when we see an update to
16231         the _NET_WM_STATE property.
16232
16233 2007-03-15  Chris Toshok  <toshok@ximian.com>
16234
16235         * BindingSource.cs: get a lot of the unit tests working.
16236
16237 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
16238
16239         * Control.cs: Modify UpdateStyles to store distances when bounds >=
16240         0 instead of just bounds > 0.  [Fixes bug #80912]
16241
16242 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
16243
16244         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
16245         and methods.
16246
16247 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
16248         
16249         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
16250         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
16251         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
16252         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
16253
16254 2007-03-15  Chris Toshok  <toshok@ximian.com>
16255
16256         [ Fixes #81101 ]
16257         
16258         * Control.cs: add Ivan's fix for 81101, with a slight modification
16259         - you can set control.Target to null.
16260
16261 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
16262
16263         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
16264         HideDropDown, use Hide instead to prevent an NRE.
16265         [Fixes bug #81147]
16266
16267 2007-03-14  Jackson Harper  <jackson@ximian.com>
16268
16269         * TextBoxBase.cs: Mess with the creation stuff a little. We need
16270         to calculate the document before the handle is created, in some
16271         cases. (Actually just one case).
16272
16273 2007-03-14  Jackson Harper  <jackson@ximian.com>
16274
16275         * TextBoxBase.cs: Need to display the caret after letting the base
16276         wndproc handle the focus methods, because the caret display
16277         methods check the focus state.
16278         - Try to display the caret after updating it's position with SelectWord.
16279         - Don't need to do an immediate update on this recalc, since there
16280         will be an invalidate anyways.
16281
16282 2007-03-14  Jackson Harper  <jackson@ximian.com>
16283
16284         * TreeView.cs: Some workarounds so that we can match event order a
16285         little better.
16286
16287 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
16288
16289         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
16290         #80803. Avoid NullReferenceException when Control does not have
16291         parent. Fixed different blinkstyle issues. Only subscribe to Tick
16292         event a single time. Only draw error icon when control is created and
16293         visible. Fixes failing unit tests.
16294
16295 2007-03-14  Andreia Gaita  <avidigal@novell.com>
16296
16297         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
16298         Selecting events. Fire Leave and Enter events when changing tabs.
16299
16300 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
16301
16302         * TreeView.cs: Add TreeViewNodeSorter.
16303         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
16304
16305 2007-03-14  Chris Toshok  <toshok@ximian.com>
16306
16307         * Form.cs: go ahead and remove the RecreateHandles that jpobst
16308         removed earlier and I had him add back it.  It turns out metacity
16309         *does* in fact handle the MOTIF_WM_HINTS property changing, it
16310         just doesn't redraw the window titlebar until you resize the
16311         window.  This also means we aren't recreating the entire window
16312         hierarchy on X when you change this property.  And it looks better
16313         on windows, too.
16314
16315 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16316
16317         * ListViewItem.cs:
16318         * ListView.cs: Collecting selection information
16319         is now done in SelectedIndexCollection rather than in
16320         SelectedListViewItemCollection. This is done so we can
16321         have the selection information code in one single place
16322         (virtual mode selection information entirely depends on
16323         SelectedIndexCollection).
16324
16325 2007-03-13  Miguel de Icaza  <miguel@novell.com>
16326
16327         * ErrorProvider.cs: Add stubs for ISupportInitialize
16328
16329 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16330
16331         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
16332         in the right order with the right values, from the Checked property, 
16333         just as MS does (instead of triggering them from ListView).
16334
16335         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
16336
16337 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16338
16339         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
16340         the correct handler in OnItemCheck method (ItemCheckEventHandler 
16341         instead of EventHandler). This used to throw an InvalidCastException.
16342
16343 2007-03-13  Jackson Harper  <jackson@ximian.com>
16344
16345         * TextBoxBase.cs: Calculate the document before the handle is
16346         created, so there isn't an extra invalidate called.
16347
16348 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
16349
16350         * Form.cs: Don't set owner in ShowDialog until we are sure
16351         that we aren't going to throw an exception.  [Fixes bug #80773]
16352
16353 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
16354
16355         * TreeView.cs: Make it compile.
16356
16357 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
16358
16359         * Control.cs: Another place we don't call SizeFromClientSize.
16360         * Form.cs: Another place we don't call SizeFromClientSize.
16361         [Fixes bug #81125]
16362
16363 2007-03-12  Jackson Harper  <jackson@ximian.com>
16364
16365         * TreeView.cs: Basically emulating some strangness here with
16366         exanding nodes and setting node positions when windows aren't
16367         created.
16368         - Also attempting to walk the node tree less than previously, and
16369         just use visible order calculations for determining offsets.
16370         - oops made scrolling backwards.
16371         * TreeNode.cs: We need to start nodes with a zero visible order,
16372         because the order calcs are based on the first nodes order.
16373
16374 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
16375
16376         * Form.cs: Don't exit the program if RecreateHandle is called on
16377         the main form.
16378
16379 2007-03-12  Chris Toshok  <toshok@ximian.com>
16380
16381         * XEventQueue.cs: remove the use of PostQuitState.
16382
16383         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
16384         WM_QUIT message in GetMessage, return false (and if we're in the
16385         nested WaitForHwndMessage, repost the WM_QUIT message).
16386
16387 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
16388
16389         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
16390         or the MaximizeBox properties.  [Part of bug #80640]
16391
16392 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
16393
16394         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
16395         no links.
16396
16397 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
16398
16399         * ToolStripItem.cs: Fix some tests I broke by checking Visible
16400         instead of visible.
16401
16402 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
16403
16404         * FileDialog.cs: Use text of File name combobox to determine what
16405         files the user selected. Added tokenizer to parse the file names.
16406         Fixes bug #81123.
16407
16408 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
16409
16410         * Control.cs: We can't call SizeFromClientSize in the constructor,
16411         but we still need to do the same work, so make an internal version.
16412         [Fixes bug #80621]
16413
16414 2007-03-12  Jackson Harper  <jackson@ximian.com>
16415
16416         * TreeView.cs:
16417         * TreeNode.cs:
16418         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
16419         IsExpanded.
16420
16421 2007-03-12  Jackson Harper  <jackson@ximian.com>
16422
16423         * TextBoxBase.cs: Now that the handles are being created a little
16424         later, we need to make sure that the document is recalculated when
16425         the handle is created.
16426
16427 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
16428
16429         * Theme.cs: GetLinkFont abstract method added.
16430         
16431         * LinkLabel.cs: 
16432         - Remove CalcTrimRectangle, no longer needed.
16433         - Factor also remove, position issues must be fixed in libgdiplus.
16434         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
16435         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
16436         care about font used to draw links.
16437         - Set TabStop to true when control is "Selectable", control is selectable
16438         when have one or more links. Fixes #80501 (test case is also added).
16439         - Set the LinkArea values after links change, LinkArea values must be
16440         based in first link position and size, a test case was created.
16441         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
16442         the attribute must be true LinkArea.Length > 0. The same was applied to
16443         TabStop.
16444         
16445         * ThemeWin32Classic.cs: 
16446         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
16447         in draw method.
16448         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
16449         color change.
16450         - Draw focus rectangle for every parts focused, including parts that 
16451         is on another line, its because regions returns various rectangles
16452         and not only one. Needed to mimic W32 look.
16453         - Uses Graphics.Clip to delimite region painted, it mean that now 
16454         complete text is passed to DrawString, with this we solve layout
16455         issues without create another text renderer.
16456         - Uses Region.Intersect to fix some flickers problems, now only needed
16457         parts will redrawed.
16458         - This changes fixes #79614 and some other unreported issues, on Linux 
16459         some layout problems still remain, the problem is under 
16460         MeasureCharacterRanges but it is an libgdiplus bug.
16461
16462 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
16463
16464         * TextBox.cs: Set for foreground color.
16465         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
16466         this is already done in Control.
16467
16468 2007-03-10  Jackson Harper  <jackson@ximian.com>
16469
16470         * TextBox.cs: Set the background color, but reset the
16471         backcolor_set flag which is just for the user setting the
16472         background color.
16473
16474 2007-03-09  Chris Toshok  <toshok@ximian.com>
16475
16476         * Control.cs: really remove the call to XplatUI.SetVisible from
16477         CreateHandle(), like I said I did when I merged the branch.
16478
16479         * BindingSource.cs: implement some more of this stuff.
16480
16481 2007-03-09  Jackson Harper  <jackson@ximian.com>
16482
16483         * TextBox.cs: Don't explicitly set our background colors.
16484         * TextControl.cs:
16485         * TextBoxBase.cs: Draw readonly text.
16486         - Need to invalidate when backcolor or readonly are changed.
16487         
16488 2007-03-09  Jackson Harper  <jackson@ximian.com>
16489
16490         * TextBoxBase.cs: Don't set the forecolor until the handle is
16491         created.
16492         - Do not raise OnPaint, and removed some old debug code.
16493
16494 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
16495
16496         * ScrollableControl.cs: Fix mouse wheel scrolling.
16497
16498 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
16499
16500         * Control.cs: Wire up MouseDoubleClick event.
16501
16502 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
16503
16504         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
16505         top or bottom.
16506         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
16507         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
16508         item is added.  This logic was moved to ToolStrip.OnItemAdded.
16509         [Fixes bug #81090]
16510
16511 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16512
16513         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
16514
16515 2007-03-08  Jackson Harper  <jackson@ximian.com>
16516
16517         * TreeView.cs: Show the correct image for selected node (this used
16518         to work, not sure how the code got deleted). Also implemented 2.0 feature
16519         SelectedImageKey.
16520
16521 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16522
16523         * ListView.cs:
16524         * ListViewItem.cs: Cache index in items when retrieving them
16525         in VirtualMode.
16526
16527 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16528
16529         * ToolStripItem.cs: Don't return the explicit_size if we are using 
16530         AutoSize.  Fixes invalidation issue when user has explicitly set a
16531         size and has AutoSize = true.
16532
16533 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16534
16535         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
16536
16537 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16538
16539         * DataGridView.cs: Remove event handler from DataView when a
16540         DataTable is used as DataSource.
16541
16542 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16543
16544         * Control.cs: Create internal setter for client_size to allow it to be
16545         set without triggering resizing code.
16546         * Form.cs: Calculate client_size in constructor, only change client_size
16547         in FormBorderStyle property if Handle has been created.
16548         [Fixes #80574, #80791]
16549
16550 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
16551
16552         * SystemInformation.cs: Add TerminalServerSession.
16553
16554 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16555
16556         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
16557         TreeView code.
16558
16559 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16560
16561         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
16562         Handle before we were supposed to.  Now checks ActivateOnShow property
16563         in Control.
16564         * Control.cs: Add internal ActivateOnShow property.
16565         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
16566         for ActivateOnShow.
16567         * Hwnd.cs Remove no longer needed no_activate field.
16568
16569 2007-03-07  Jackson Harper  <jackson@ximian.com>
16570
16571         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
16572         2.0 properties
16573         * DrawTreeNodeEventHandler.cs: Add
16574         * DrawTreeNodeEventArgs.cs: Correct default value.
16575         
16576 2007-03-07  Chris Toshok  <toshok@ximian.com>
16577
16578         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
16579         to be called before NativeWindow.WndProc.  Put the HwndCreating
16580         magic there to hook up our Hwnd's to handles.
16581
16582 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
16583
16584         * DataGridView.cs: Comment out debug code.
16585
16586 2007-03-07  Chris Toshok  <toshok@ximian.com>
16587
16588         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
16589         to make the rest of the world happy]
16590
16591         * Control.cs (CreateHandle): there's no need to call
16592         XplatUI.SetVisible here, it's effectively done by
16593         XplatUI.CreateWindow on X now, and always was on windows.
16594
16595         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
16596         shortcircuit out of the loop if we have a message loop running on
16597         this thread.
16598
16599         [Changelog from merge]
16600
16601         2007-03-05  Chris Toshok  <toshok@ximian.com>
16602
16603                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
16604                 causes handle creation.
16605
16606         2007-02-28  Chris Toshok  <toshok@ximian.com>
16607
16608                 * ApplicationContext.cs: Add a flag to make sure we only raise the
16609                 ThreadExit event once (ExitThreadCore can be indirectly called
16610                 from a few places.)  I don't like the additional flag, but it
16611                 makes the event ordering/count correct.
16612
16613                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
16614                 without locking the collection.  An enumerator doesn't give us any
16615                 protection from modification anyway.  Lock the thread hash and
16616                 replace the complicated enumerator loop with a foreach.
16617                 (Application.CloseForms): make internal so it can be called from
16618                 ApplicationContext.  This should probably be moved to MWFThread.
16619                 (Application.ExitThread): don't call MWFThread.Current.Exit()
16620                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
16621                 when the runloop exits (in response to WM_QUIT.)
16622                 (Application.RunLoop): add a comment (and check) for
16623                 context.MainForm being null after setting context.MainForm.Visible
16624                 = true.  This is because you're perfectly free to dispose of a
16625                 form in VisibilityChanged.  Chalk this up to another case where we
16626                 need to synchronously generate WM_ACTIVATE from Control.Show.
16627                 Also, add handling for WM_QUIT here so we'll exit the loop.
16628                 
16629                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
16630                 fact that we don't wait if we're only unmapping the whole_window
16631                 makes me a bit nervous, but it doesn't seem to cause any problems
16632                 yet.
16633
16634                 also, add a comment about the stupid, broken and wrong resetting
16635                 of PostQuitState to false in GetMessage().
16636
16637                 In PostQuitMessage, we need to add a WM_QUIT message to the
16638                 thread's queue.  We use the FosterParent to get the right
16639                 handle/hwnd/queue.
16640
16641                 Lastly, in SetVisible, we need to unmap both windows, since the
16642                 waiting only happens when we're unmapping the client window.  So
16643                 now, the *only* time we unmap just the whole_window is in the hack
16644                 for resizing a control to 0,0.
16645                 
16646         2007-02-21  Chris Toshok  <toshok@ximian.com>
16647
16648                 * Application.cs (CloseForms): rewrite this so that we don't
16649                 modify the list while we're traversing it.
16650
16651         2007-02-20  Chris Toshok  <toshok@ximian.com>
16652
16653                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
16654                 of OnHandleCreated.
16655                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
16656                 handle is created.  otherwise we'll create it here.
16657                 (VerticalScrollEvent): same here.
16658
16659                 * Application.cs (CloseForms): call Form.Dispose, don't post
16660                 WM_CLOSE_INTERNAL.
16661
16662                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
16663                 here. Application should Dispose() of the Form's.
16664
16665                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
16666                 WM_DESTROY as well.
16667                 (MapWindow,UnmapWindow): only actually do the waiting for
16668                 SHOWWINDOW if the control we're dealing with is a Form.
16669                 (CreateWindow): if the control isn't a form, SendMessage
16670                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
16671
16672                 * Control.cs (SetVisibleCore): always use is_visible here, not
16673                 value.  If we use value, we can end up re-setting something
16674                 visible if, for instance, you do Control.Hide() in a delegate
16675                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
16676
16677         2007-02-20  Chris Toshok  <toshok@ximian.com>
16678
16679                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
16680                 the message we need.  PeekMessage returning false should not be a
16681                 condition under which we exit the loop.
16682
16683         2007-02-15  Chris Toshok  <toshok@ximian.com>
16684
16685                 * Control.cs (Refresh): only refresh if we've got a handle and are
16686                 visible.
16687                 (CreateAccessibilityInstance): CreateControl() here.
16688                 (UpdateChildrenZOrder): complicate the code loop even more by
16689                 taking into account controls that haven't had their handle
16690                 created, and those that aren't visible.  But on the flip side,
16691                 simplify the code by splitting it into two loops.  one which
16692                 builds up the list of child controls we're interested in, and the
16693                 other that sets the z order of those children.
16694
16695         2007-02-14  Chris Toshok  <toshok@ximian.com>
16696
16697                 * Control.cs: Control.AccessibilityObject causes the control to be
16698                 created, not just the handle.
16699
16700         2007-02-14  Chris Toshok  <toshok@ximian.com>
16701
16702                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
16703                 problem on X where a window might have its handle created (and be
16704                 visible) while the window is unmapped.  calling XConfigureWindow
16705                 on an unmapped window is bad, and generates X errors.
16706
16707         2007-02-13  Chris Toshok  <toshok@ximian.com>
16708
16709                 * Control.cs (CreateHandle): don't loop over our children setting
16710                 their parent here.  do it when in WndProc when we're shown.
16711                 (UpdateChildrenZOrder): make this internal so we can call it from
16712                 ScrollableControl.
16713                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
16714                 creating its handle.  Also, remove the calls to PerformLayout from
16715                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
16716                 OnVisibleChanged only seems to be called directly here for the
16717                 toplevel control.  It's propagated down the window hierarchy by
16718                 calls to child.OnParentVisibleChanged.
16719                 (OnVisibleChanged): don't do layout here - it's done (oddly
16720                 enough, according to a glance at stack traces on ms.net..) in
16721                 ScrollableControl.
16722                 
16723                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
16724                 z order of our children before calling PerformLayout.
16725
16726         2007-02-12  Chris Toshok  <toshok@ximian.com>
16727
16728                 [big change, fixes #80020]
16729                 
16730                 * AccessibleObject.cs: we need to make owner internal again to fix
16731                 some of ControlAccessibleObject.
16732
16733                 * Control.cs: lots of changes here.  add support for WM_CREATE,
16734                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
16735                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
16736                 we create child controls.  leave the MonoTODO's for the
16737                 accessibility calls, but fix the exceptions so the tests pass.
16738
16739                 Add the InvalidOperationExceptions to Invoke methods, and remove a
16740                 couple of InvokeInternal methods we aren't using.
16741                 
16742                 Also, add a couple of CreateHandle calls in places where we know
16743                 the handles are being created but our code doesn't reference
16744                 .Handle.
16745
16746                 Make SetVisibleCore call OnVisibleChange if the handle isn't
16747                 created.  If the handle is created, we rely on XplatUI.SetVisible
16748                 generating the event synchronously.
16749                 
16750                 Lastly, make sure we don't use this.Handle inside CreateHandle,
16751                 because we can call back into client (and that code can dispose of
16752                 the control).
16753
16754                 * XplatUIStructs.cs: misc/cleanup.
16755
16756                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
16757                 although we don't populate the wParam properly.
16758                 (CreateWindow): generate WM_CREATE.
16759                 (MapWindow,UnmapWindow): make these calls synchronous, at great
16760                 performance expense (particularly in the unmap case), to match
16761                 win32 behavior.
16762
16763                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
16764                 to call it.
16765                 (set_MdiParent): don't recreate the handle unless it's been
16766                 created already.
16767                 
16768                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
16769                 it's created.
16770
16771                 * NativeWindow.cs: this is probably the weirdest part of the
16772                 patch.  We need a way to link up the window being created to the
16773                 WM_CREATE message.  Since we can only be creating one window at a
16774                 time on a given thread, we keep track of a per-thread reference so
16775                 we can dispatch it properly.  We also need to keep track of the
16776                 Hwnd currently being created so that the win32 backend doesn't
16777                 have problems.
16778                 
16779                 * XplatUIWin32.cs: a similar change to the one we made in
16780                 NativeWindow.cs.
16781
16782 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16783
16784         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
16785         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
16786         to draw the menu shortcut string.
16787
16788 2007-03-07  Jackson Harper  <jackson@ximian.com>
16789
16790         * TreeNode.cs: Add the 2.0 collapse method.
16791
16792 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16793
16794         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
16795
16796 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16797
16798         * DataGridView.cs: Change DataSource will clear column and row
16799         lists. Call Invalidate() to reflect DataSource change.
16800
16801 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16802
16803         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
16804         and a new row is added to it.
16805
16806 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16807
16808         * DataGridView.cs: Add columns when DataSource is en empty list but
16809         is a System.Data.DataView (from a System.Data.DataTable).
16810
16811 2007-03-06  Andreia Gaita  <avidigal@novell.com>
16812
16813         * Label.cs: Implement AutoEllipsis (2.0)
16814
16815 2007-03-06  Jackson Harper  <jackson@ximian.com>
16816
16817         * TreeView.cs: Implement 2.0 TopNode setter property.
16818         - Use a local var instead of the skipped_nodes field for computing
16819         how many nodes to skip.  Otherwise we won't scroll because the
16820         valuechanged handler checks if skipped_nodes is equal to the new
16821         value.
16822         - Implement 2.0 Sort method.
16823         - Add useless 2.0 DoubleBuffer property
16824         - Implement 2.0 LineColors property.  Lets you change the color of
16825         the lines in the tree. Terribly useful for creating non cohesive
16826         desktops.
16827         - Implement 2.0 image key feature.
16828
16829 2007-03-06  Jackson Harper  <jackson@ximian.com>
16830
16831         * TreeView.cs: We can't get the bounds of the nodes before raising
16832         the AfterSelect event, because that event could change the node's
16833         bounds (scrolling, font change, etc).
16834
16835 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16836
16837         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
16838         * Form.cs: Don't recreate handle when creating FormWindowManager, just
16839           update window styles. In CreateParams us VisibleInternal instead of
16840           VIsible to get the actual visible flag set for this form.
16841         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
16842           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
16843           handle the case when the form is already maximized, in which case
16844           it should be restored. Fixes #81043.
16845
16846 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16847
16848         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
16849
16850 2007-03-05  Jackson Harper  <jackson@ximian.com>
16851
16852         * TreeViewHitTestInfo.cs: implement.
16853
16854 2007-03-05  Jackson Harper  <jackson@ximian.com>
16855
16856         * InternalWindowManager.cs: class status fix.
16857
16858 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16859
16860         * InternalWindowManager.cs: All windows that have a parent
16861         are confined to their parent when they're being moved.
16862         Fixes #80822.
16863
16864 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
16865
16866         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
16867         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
16868
16869 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16870
16871         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
16872           buttons invisible before deciding which ones should be visible
16873           (fixes minimize/maximize buttons showing up in toolwindows). Remove
16874           an unused variable.
16875         * InternalWindowManager.cs: Remove warning.
16876
16877 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16878
16879         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
16880         to throw an InvalidOperationException is virtual mode is being used.
16881
16882 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16883
16884         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
16885         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
16886         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
16887         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
16888         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
16889         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
16890
16891 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16892
16893         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
16894           driver.KeyboardDelay from XplatUI.KeyboardDelay 
16895         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
16896           (patch by Sergey Volk)
16897
16898 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16899
16900         * ToolWindowManager.cs: Added, contains logic for
16901           tool windows.
16902         * CreateParams.cs: Add a few helper methods and an
16903           internal variable to know which control the CreateParams belongs
16904           to.
16905         * Control.cs: Call Form.ChangingParent when the
16906           parent is about to be changed.
16907         * XplatUIX11.cs: DeriveStyles (): Set
16908           caption_height for all windows that have captions and are children.
16909           Update to use ToolWindowManager instead of InternalWindowManager
16910           for ToolWindows.
16911         * XplatUIWin32.cs: Set fake window styles for all
16912           windows that have window managers.
16913         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
16914           now duplicated for mdi windows when they are
16915           maximized, first for the buttons the window itself has, then for
16916           the buttons that appear in the menu bar. Makes things a little
16917           easier). Updated UpdateWindowDecorations, SetWindowState and the
16918           mouse eventhandlers accordingly.
16919         * Form.cs: Add ChangingParent (), contains the
16920           logic of what should happen when the parent changes. In MdiParent
16921           don't set things that ChangingParent () is doing. When handling
16922           WM_CLOSE, we can close the form if there are any other modal forms
16923           and the current form is a descendent of the modal form.
16924         * InternalWindowManager.cs: A lot of refactoring,
16925           the title buttons are now extracted to a separate container class
16926           that takes care of all button code (clicks, tooltips, etc). Moved
16927           Iconic|Maximized|Normal Bounds properties to this class from
16928           MdiWindowManager, so that the window state logic can succeed for
16929           other than mdi wm's. Implemented general window state change logic.
16930           Moved CreateButtons to ThemeWin32Classic, since the theme might
16931           override which buttons are available when as well as the exact
16932           location.
16933         * FormWindowManager.cs: Added, contains logic for
16934           normal forms.
16935         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
16936           which buttons go where (and if they are at all visible). 
16937           Removed special handling of maximized windows, since they aren't special. 
16938           In DrawManagedWindowDecorations don't try to draw the text if it is
16939           empty.
16940         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
16941           use whatever the wm gives us.
16942
16943 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16944
16945         * ButtonBase.cs: Add 2.0 properties.
16946         * Button.cs: Override Draw for 2.0.
16947         * Control.cs: Add Entered and Selected properties.
16948         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
16949         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
16950         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
16951         buttons.
16952         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
16953
16954 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16955
16956         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
16957
16958 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16959
16960         * XplatUIWin32.cs: Register a new class with Windows each time we get
16961         a new ClassStyle.  [Fixes bugs #79432, #80817]
16962         * Controls.cs: Set the correct ClassStyle in CreateParams.
16963         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
16964
16965 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
16966
16967         * ListView.cs: Add fireEvent argument to ReorderColumn since the
16968         ColumnReordered event must not be signaled when modifying DisplayIndex
16969         of a ColumnHeader. Added internal ReorderColumns method which takes
16970         care of drawing, and updating the internal DisplayIndex of the
16971         ColumnHeader. Added AddColumn method which is invoked from
16972         ColumnHeaderCollection when adding or inserting columns, and which
16973         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
16974         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
16975         Recalculated dispay indices after removing a ColumnHeader.
16976         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
16977         match MS. Allows last display index to be returned after ListView
16978         is disposed. Update actual location of ColumnHeader when DisplayIndex
16979         is modified.
16980
16981 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
16982
16983         * LinkLabel.cs: Improve CalcTrimRectangle.
16984         
16985         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
16986
16987 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16988
16989         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
16990         get rectangle as a result value.
16991
16992 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16993
16994         * LinkLabel.cs: Theres some diferences between rectangle return from 
16995         MeasureCharacterRanges and the area used for DrawString to fix this 
16996         CalcMeasurementFactor method was created, it calcules the diferences
16997         to be use later to adjust rectangle in draw operations. Fixes #80473.
16998         
16999         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
17000         to adjust draw rectangle.
17001
17002 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
17003
17004         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
17005         text and some other changes to reduce and optimize source code.
17006
17007 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
17008
17009         * RadioButton.cs: Implement 2.0 event.
17010         * RelatedImageListAttribute.cs: Implement new class.
17011
17012 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
17013
17014         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
17015
17016 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
17017
17018         * CheckBox.cs: Implement 2.0 functionality.
17019
17020 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17021
17022         * ListView.cs: Refactor Add and AddRange methods of
17023         ListViewItemCollection, to not update the ListView
17024         everytime an item is added in AddRange. Also move the update
17025         code to a new CollectionChanged method, and call it
17026         from other methods that need it as well (this should also fix some
17027         bugs when Sorting is used).
17028
17029 2007-02-27  Jackson Harper  <jackson@ximian.com>
17030
17031         * TextControl.cs: Try to never let the caret stay in a non-text
17032         tag.
17033         * TextBoxBase.cs: Update the caret.
17034
17035 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
17036
17037         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
17038         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
17039         delete POINT structure, duplicate of one in XplatUIStructs.
17040         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
17041
17042 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
17043
17044         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
17045         edit box since otherwise the Label would immediately be set (even if
17046         the user did not modify the label). In OnKeyDown set Handled to true
17047         if Return or Escape was pressed. In ColumnHeaderCollection unlink
17048         columns that are to be removed. In ListViewItemCollection unlink items
17049         that are to be removed.
17050
17051 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
17052
17053         * TextRenderer.cs: If we set a GDI clip region, we need to clear
17054         it when we are done.  [Fixes bug #80949]
17055
17056 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
17057
17058         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
17059
17060 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17061
17062         * ListView.cs: I forgot to commit the changes for ListView 
17063         in my previous patch.
17064
17065 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
17066
17067         * Clipboard.cs: Partially implement an overload of SetDataObject.
17068         * Form.cs: Implement ShowWithoutActivation.
17069         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
17070
17071 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17072
17073         This is a first set of changes to make the Virtual mode works,
17074         by avoiding the retrieval of ListViewItem instances until
17075         draw time.
17076
17077         * ListView.cs: Store item position in the ListView instead of the
17078         ListViewItem, this way we don't request the Bounds property of
17079         ListViewItem inside the ListView calculations, as well as cache the item
17080         size in item_size field. Store indexes instead of ListViewItem
17081         instances in the matrix used by icon view. Add a ItemMatrixLocation
17082         struct to hold the row and col info of the matrix info.
17083
17084         * ListViewItem.cs: Don't store the location anymore, and only cache
17085         the rectangles for GetBounds. Use the ListView.GetItemLocation
17086         method to retrieve the actual location.
17087
17088 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
17089
17090         * TextRenderer.cs: Add clipping support, thanks to George.
17091         [Fixes bug #80949]
17092
17093 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
17094
17095         * ListViewItem.cs: Cancel label edit when item is removed from 
17096         ListView.
17097         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
17098         event before the edit textbox is displayed.  Added CancelEdit method
17099         which is used end to editing while ignoring the value set by the
17100         user. In EndEdit, set focus to ListView to avoid losing focus to
17101         other controls. In ListViewItemCollection.Clear, cancel editing of
17102         any of the items.  In Remove, cancel editing of item being removed.
17103         Avoid udplicate code by modifing RemoveAt to invoke Remove.
17104
17105 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
17106
17107         * FileDialog.cs: Update FSEntry when move is successful. Fixes
17108         bug #80948.  
17109
17110 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
17111
17112         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
17113         compatible with non X11 systems. Fixes #80901.
17114
17115 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
17116
17117         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
17118         whether the item should be unselected and reselect. We do no want this
17119         when we're starting to edit the label. Do not fire the 
17120         SelectedIndexChanged event from ListView when its already been fired
17121         by modifying ListViewItem.Selected. Fixes bug #80943.
17122
17123 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
17124
17125         * TextRenderer.cs: Previos commit logic was backwards.
17126
17127 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
17128
17129         * TextRenderer.cs: Don't add padding on MeasureText if we were
17130         sent the NoPadding flag.
17131
17132 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
17133
17134         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
17135         after DrawButton. To prevent image overlaps button borders SetClip and 
17136         ResetClip added before and after draw image. Fixes #79129.
17137
17138 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
17139
17140         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
17141         window size, it fix problem when you run under win32 that theres
17142         Size diferent than ClientSize. Also fix controls size and positions
17143         to mimic Win32. Fixes #80837.
17144
17145 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
17146
17147         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
17148         menu area to fix some problems for non X11 systems. Fixes #80613.
17149
17150 2007-02-22  Jackson Harper  <jackson@ximian.com>
17151
17152         * TreeNode.cs: When a node is expanded, set its is_expanded flag
17153         even if it doesn't have any children.
17154
17155 2007-02-22  Jackson Harper  <jackson@ximian.com>
17156
17157         * TreeView.cs: Calculate the top node 'on the fly', this
17158         eliminates issues where you need to click on the tree before
17159         scrolling it to get the top node computed correctly.
17160         * TreeNodeCollection.cs: We don't need to mess with the top node
17161         anymore.
17162
17163 2007-02-22  Jackson Harper  <jackson@ximian.com>
17164
17165         * DataGridViewRow.cs: Fix typo so height can actually be set.
17166         Patch by Peter Grimm.
17167
17168 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
17169
17170         * FileDialog.cs: Fixed support for renaming files and directories.
17171         * ListView.cs: Do not lose focus when edit is canceled. Process
17172         Escape as regular key (to prevent closing of dialogs).
17173
17174 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
17175
17176         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
17177         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
17178
17179 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
17180
17181         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
17182         did not modify label.
17183         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
17184         modified the text. Reset Label when user presses Escape in edit mode.
17185         Move focus to ListView after having cancelled or finished editing the
17186         label.
17187
17188 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
17189
17190         * ComboBox.cs: Removed unnecessary initializations. Marked items field
17191         private. Clear textbox when Text is set to null and SelectedIndex is
17192         already -1.
17193         * FileDialog.cs: Removed unnecessary initializations. Removed 
17194         workarounds for ComboBox bugs that are now fixed. Modified
17195         DefaultExt, InitialDirectory and Title property to change null to
17196         zero-length string in getters. Avoid directly accessing fields.
17197
17198 2007-02-20  Jackson Harper  <jackson@ximian.com>
17199
17200         * TextControl.cs: Remove RecalAlignments call, that was some
17201         debugging leftovers.
17202         - Don't use the line indent when we shouldn't.
17203         * RichTextBox.cs: Add support for paragraph left indents.
17204
17205 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17206
17207         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
17208         Seems like the class status pages doesn't catch params differences.
17209
17210 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
17211
17212         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
17213
17214 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
17215
17216         * ComboBox.cs: Setting Text should have no effect if item text of
17217         selected item exactly matches value. First lookup text using
17218         case-sensitive comparison, and fallback to case-insensitive comparison.
17219         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
17220         allow startIndex to be last index. Changed ArgumentOutOfRangeException
17221         paramname to match MS. Restart from first item if string is not found
17222         after startIndex. Fixed paramname of ArgumentNullException that is
17223         thrown for null value in ObjectCollection.Contains.
17224
17225 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
17226
17227         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
17228
17229 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17230
17231         * ListControl.cs: In SelectedValue use value.Equals to compare for
17232         equality instead of ==, otherwise it will fail for strings.
17233         Fixes #80794.
17234
17235 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17236         
17237         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
17238         since the caret won't show up unless ShowSelection is true. 
17239         Fixes #80795.
17240
17241 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17242
17243         * Application.cs: When disabling all forms but the main form, do not
17244           disable any descendants of the main form (such as mdi children or
17245           other parented forms). Fixes #80822 on Windows.
17246         * Form.cs: If we have a parent, set the WS_CHILD style.
17247         * Control.cs: Update the window styles if the control whose parent has
17248           changed is a form (the WS_CHILD style has to be switched).
17249
17250 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
17251
17252         * XplatUIStructs.cs: MsgUIState structure added.
17253
17254 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
17255
17256         * FileDialog.cs: Removed need for separate fileName field. On 2.0
17257         profile, do not check filename(s) for illegal character if filename(s)
17258         were set non-interactively but always check on 1.0 profile. Fixed NRE
17259          in DefaultExt and only strip off first leading dot. Improve exception
17260         message when invalid Filter is set. Do not ignore InitialDirectory if
17261         it does no exist. Store specified Title, and if empty use default
17262         title (depending on type of dialog). Added an internal DialogTitle 
17263         property for retrieving dialog title. Fixed logic of displayed dir to
17264         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
17265         string as its buggy.
17266         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
17267         FileName is a zero-length string (it can never be null). Override 
17268         DialogTitle property to set default title of dialog box.
17269         * SaveFileDialog.cs: Override DialogTitle property to set default
17270         title of dialog box.
17271
17272 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
17273
17274         * FileDialog.cs: Modify default text of filename and filetype labels
17275         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
17276         after we've updated the SelectedIndex. Fixes part of bug #80887.
17277         * SaveFileDialog.cs: Set text of filetype label.
17278
17279 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17280
17281         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
17282         label field. Needed by latest Jackson's fixes for ListView.
17283
17284 2007-02-16  Andreia Gaita  <avidigal@novell.com>
17285
17286         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
17287         print preview images.
17288
17289 2007-02-16  Jackson Harper  <jackson@ximian.com>
17290
17291         * ListView.cs: Make AfterLabelEdit work correctly.
17292         * FileDialog.cs: After changing the name of the folder, we have to
17293         make sure that it is created, or that we pop up an error because
17294         it already exists.
17295
17296 2007-02-16  Jackson Harper  <jackson@ximian.com>
17297
17298         * X11Dnd.cs: Implement aliases on mime handlers, so things like
17299         System.String are mapped to text.
17300         - Handle dataobjects, getting all the possible formats out of them
17301         - We dont need the drag event args before we give feedback. This
17302         allows feedback cursors to be immediate before selections have
17303         been converted.
17304
17305 2007-02-16  Jackson Harper  <jackson@ximian.com>
17306
17307         * TextBoxBase.cs: Modified the method for inserting images to
17308         taking a line and position instead of tag and position.
17309         * RichTextBox.cs: Handle PngBlip data by inserting the png image
17310         into the RTF file.
17311         * TextControl.cs: Allow images to be inserted as the first tag of
17312         a line.
17313         - Fix some off by one issues when we assume the first tag is a
17314         text tag, not an image tag.
17315
17316 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17317
17318         * ListView.cs: Set focus to ListView when ItemControl gets a
17319         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
17320         Fixes part of #80467.
17321
17322 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17323
17324         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
17325           validate Text input (if null or empty string reset Value to default
17326           value). Fixes #80830.
17327
17328 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17329
17330         * ListView.cs: Set owner as null for columns and items when
17331         Dispose is invoked. Fixes #80607.
17332
17333 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
17334
17335         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
17336         showing DropDowns, don't show a Grip when doing Flow layout.
17337         [This fixes the toolbox in PDN 2.72.]
17338         * ToolStripItem.cs: Add Anchor property and some internal properties to
17339         reduces needed changes to FlowLayout.
17340         * ToolStripOverflow.cs: Remove unused variable.
17341         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
17342         use it in the layout calculations.
17343
17344 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
17345
17346         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
17347         reported in #79640.
17348         
17349         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
17350         size calculation.
17351
17352 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
17353
17354         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
17355         MeasureString format, it can make button very large in some cases, it is
17356         strange but is what win32 do.
17357
17358 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
17359
17360         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
17361         size calculation.
17362
17363         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
17364         rendering, the value is based on MenuAccessKeysUnderlined.
17365
17366 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
17367
17368         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
17369         for most themes.
17370         
17371         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
17372         
17373         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
17374         and use MenuAccessKeysUnderlined instead.
17375
17376 2007-02-13  Andreia Gaita  <avidigal@novell.com>
17377
17378         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
17379         A selected control would not get a Focus call if:
17380                 - the default active control of the container is the same as
17381                   the one that was selected
17382                 - we are switching from one container to another
17383         Under these conditions, the container being selected already has
17384         an active_control, which is the same as the one being activated, 
17385         so set_ActiveControl would always return and not send the Focus
17386         call. Fix to check if the currently active control of the container
17387         is actually focused.
17388
17389 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
17390
17391         * StatusStrip.cs: Implement the spring layout.
17392         * ToolStripControlHost.cs: Make sure the hosted control's visibility
17393         always matches the host.
17394         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
17395         and TextAfterImage.
17396
17397 2007-02-13  Andreia Gaita  <avidigal@novell.com>
17398
17399         * Control.cs: Code reorganization only.
17400           - Reorganize the WndProc cases so that each case has it's own handling method, 
17401           to help with the no-line-numbering stack traces.
17402           - Formatting changes (it's vstudio's fault, really :p)
17403
17404 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17405
17406         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
17407           Thread.CurrentUICulture to match DateTimePicker's (and MS)
17408           behaviour.
17409
17410 2007-02-12  Jackson Harper  <jackson@ximian.com>
17411
17412         * RichTextBox.cs:
17413         * TextBox.cs: By default we have a non multiline document
17414         - use the multiline property instead of the internal variable
17415         * TextBoxBase.cs: Treat multiline and non multiline the same in
17416         most places.
17417         - Use the documents multiline flag instead of tracking it ourself
17418         * TextControl.cs: Attempt at getting multiline to match MS
17419         behavior.  Lines now track an offset, which is either their X or Y
17420         offset depending on whether or not we are in multiline mode.
17421         - Update all the methods to understand that lines have an X value.
17422         - Fix crash in Undo::Duplicate when empty lines are deleted.
17423
17424 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
17425
17426         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
17427         code moved to properties PreferredHeight and PreferredWidth. It solve the
17428         all problems when preferred sizes must be recalculated. Fixes #80801.
17429
17430 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
17431
17432         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
17433         font height when compatible_text_rendering is false. Partially fix #80801.
17434
17435 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
17436
17437         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
17438
17439 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
17440
17441         * Form.cs: Improved exception messages in ShowDialog.
17442
17443 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
17444
17445         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
17446         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
17447         if not set. Fixes bug #80764. Avoid accessing current_settings field
17448         directly.
17449
17450 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
17451
17452         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
17453         false.
17454
17455         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
17456         public in 2.0 and for easy maintenance and dont break compatibility it is 
17457         internal in 1.1.
17458         
17459 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17460
17461         * ToolStripItem.cs: Implement using images from ImageList.
17462
17463 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17464
17465         * DateTimePicker.cs: Change default date-formatting culture from
17466           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
17467           seems to be the way MS does it.
17468
17469 2007-02-08  Andreia Gaita  <avidigal@novell.com>
17470
17471         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
17472         (the 6 was cut off on the right side)
17473
17474 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17475
17476         * Form.cs: Tell MenuStrips to close when the form is clicked.
17477         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
17478         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
17479         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
17480         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
17481         support for Overflow, where items that do not fit are automatically
17482         reparented to a drop down menu.
17483         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
17484         Also: fixes bug #80747.
17485
17486 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17487
17488         * ComboBox.cs: Remove warning (unused code).
17489         * ScrollableControl.cs: Remove warning for 1.1 profile.
17490
17491 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17492
17493         * Form.cs: Remove a warning.
17494
17495 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17496
17497         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
17498           'g' specifier, not documented anywhere, but seems to always show up
17499           as a single space (might have something to do with the DateTime 'g'
17500           specifier, which is the era format, but since DateTimePicker can't
17501           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
17502           won't crash if the format has an unmatched quote. Now shows
17503           single-character formats correctly. Fixes #80744.
17504
17505 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17506
17507         * StatusStrip.cs: Stretch property needs to call base.Stretch,
17508         not this.Stretch to fix stack overflow. [Fixes bug #80760]
17509
17510 2007-02-07  Chris Toshok  <toshok@ximian.com>
17511
17512         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
17513         background color.  it overwrites the background image we've
17514         already painted.  Fixes #80599.
17515
17516 2007-02-07  Chris Toshok  <toshok@ximian.com>
17517
17518         * DataGrid.cs: return immediately from Edit() when there are no
17519         columns.  Fixes #80662.
17520
17521 2007-02-07  Chris Toshok  <toshok@ximian.com>
17522
17523         * MessageBox.cs: fix #80625.  don't always show the Help button in
17524         2.0.  use the displayHelpButton parameter to determine if we
17525         should show it. Also, make the internal show_help field private.
17526
17527 2007-02-07  Chris Toshok  <toshok@ximian.com>
17528
17529         * Control.cs (SetVisibleCore): check in the proposed patch for
17530         80604, and set is_visible before calling CreateControl.
17531
17532 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
17533
17534         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
17535         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
17536         on it.
17537
17538 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
17539
17540         * MenuAPI.cs: hotkey_active internal field added, it is required because
17541         we need to know when hotkeys must be draw, before this change a keystate
17542         Navigating was used but we can have menu in navigating state without
17543         hotkeys. Fixes #80694.
17544         
17545         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
17546
17547 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17548
17549         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
17550           corresponding events and methods to be internal for 1.1 profile and
17551           public for 2.0 profile (required by SizeGrip).
17552         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
17553           implicit control list). Don't set the size nor the location of the
17554           SizeGrip anymore as it's not needed.
17555         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
17556           draw directly on the captured control (fixes #80656). Removed
17557           ShowGrip (it wasn't used anywhere), redraw (always true), added
17558           GetDefaultSize and GetDefaultRectangle to calculate defaults.
17559         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
17560           be called from SizeGrip.
17561
17562 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17563
17564         * Timer.cs: Throw ArgumentException if Interval <= 0.
17565
17566 2007-02-05  Jackson Harper  <jackson@ximian.com>
17567
17568         * TreeView.cs: We need to check scrollbar visibility when window
17569         visibility is updated, because non visible trees don't ever add
17570         scrollbars.
17571         * Cursor.cs: We want the override cursor to be reset to NULL when
17572         we set current cursor to the default cursor.
17573
17574 2007-02-05  Jackson Harper  <jackson@ximian.com>
17575
17576         * TextControl.cs: Don't have crlfs when we are non multiline.
17577         - Consolidate the line position.
17578
17579 2007-02-05  Jackson Harper  <jackson@ximian.com>
17580
17581         * X11Keyboard.cs: BACK+CTRL gets a special char code.
17582
17583 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17584
17585         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
17586           handling LeaveNotify->NotifyUngrab in order to send
17587           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
17588           after calling XUngrabPointer, so we call WindowUngrabbed directly
17589           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
17590         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
17591           MouseCaptureChanged correctly. Also create handles if changing
17592           Capture (matches MS behaviour).
17593
17594 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17595
17596         * SizeGrip.cs: Make the last change 2.0 only.
17597
17598 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17599
17600         * SizeGrip.cs: If resizing and the capture is lost, revert any size
17601           changes to initial size (fixes #80597).
17602
17603 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17604
17605         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
17606
17607 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17608
17609         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
17610           background) and only allow dragging if enabled. This way the
17611           sizegrip can be used to fill the open square that otherwise would
17612           have been shown in the bottom right corner of ScrollableControl
17613           when ScrollableControl is not suppose to support sizing.
17614         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
17615           sizegrip is shown and enabled, and hook up with necessary events.
17616
17617 2007-02-01  Chris Toshok  <toshok@ximian.com>
17618
17619         * DataGridTextBoxColumn.cs: clean up the
17620         GetFormattedString/GetColumnValueAtRow combination of functions.
17621         Also fix UpdateUI, and the initial state of
17622         IsInEditOrNavigateMode.
17623
17624         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
17625         aren't supposed to scroll the textbox here, we're supposed to
17626         scroll the datagrid.
17627
17628 2007-02-01  Chris Toshok  <toshok@ximian.com>
17629
17630         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
17631         setting the position.
17632
17633 2007-02-01  Chris Toshok  <toshok@ximian.com>
17634
17635         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
17636         here, since the most recent focus fixes keep us from generating
17637         the Leave event when our textbox gets focus.
17638         (Edit): we should be passing null for the column style's
17639         instantText parameter.
17640         
17641 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
17642
17643         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
17644         raised.  Fixes menu text/icons not showing up in PDN.
17645
17646 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17647
17648         * Control.cs: Remove code in constructor that makes every
17649         control with WS_CHILD set have initial location -1, -1.
17650
17651 2007-01-31  Jackson Harper  <jackson@ximian.com>
17652
17653         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
17654         XplatUIX11.
17655         * XplatUIX11.cs: Give teh keyboard to teh dnd.
17656
17657 2007-01-31  Jackson Harper  <jackson@ximian.com>
17658
17659         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
17660         - Remove some debug code.
17661
17662 2007-01-31  Jackson Harper  <jackson@ximian.com>
17663
17664         * XplatUIX11.cs: If you set the override cursor during a grab, it
17665         should actually override the grab cursor.  This comes into play
17666         when you are setting custom cursors in a DND feedback method.
17667
17668 2007-01-31  Jackson Harper  <jackson@ximian.com>
17669
17670         * X11Dnd.cs: Add support for handling the QueryContinue and
17671         GiveFeedback events.
17672         - Cancel drag and drop actions when the escape key is clicked.
17673         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
17674         can handle the ESCAPE key.
17675         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
17676         done when dnd events are continued after the button is released.
17677         - Add a new helper method so that dnd can translate key events.
17678
17679 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
17680
17681         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
17682         make it more obvious what is happening.
17683
17684 2007-01-30  Jackson Harper  <jackson@ximian.com>
17685
17686         * XplatUIX11.cs: Don't break when handling button release in drag
17687         and drop operations. We need that BUTTONUP message to get through
17688         so capture is released.
17689         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
17690         this is handled automatically when the mouse is down.
17691
17692 2007-01-30  Jackson Harper  <jackson@ximian.com>
17693
17694         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
17695         is closed, so we need to make sure that we aren't changing the
17696         dialog result when the OK (Open or Save) button has been clicked
17697         and we are closing the window ourselves.  Note we don't need to
17698         worry about the cache being written in this case, because it was
17699         already done in the previous FilOk call.
17700
17701 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17702         
17703         * DateTimePicker.cs: Remove a warning.
17704         * ComboBox.cs: Remove a couple of warnings.
17705
17706 2007-01-29  Chris Toshok  <toshok@ximian.com>
17707
17708         * XplatUIX11.cs: don't crash, and remove the icon if the user has
17709         set one, if SetIcon is passed a null icon.
17710
17711 2007-01-29  Andreia Gaita  <avidigal@novell.com>
17712
17713         * TextBox.cs: Redraw when the password characters changes
17714         * TextControl.cs: Check if textbox has a password char and draw 
17715         a line of password chars instead of the text in the line. LineTag gets 
17716         an extra Draw() method which allows document.Draw to override the text 
17717         that will be drawn. Removes 1024 char limitation on length of passworded 
17718         lines.
17719
17720 2007-01-29  Jackson Harper  <jackson@ximian.com>
17721
17722         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
17723         single chars is not.
17724
17725 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
17726
17727         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
17728         one pixel.  Fix a StackOverflowException caused by an overload wrongly
17729         calling itself.
17730
17731 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
17732
17733         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
17734         also remove ProcessArrowKey and put the code inside ProcessKeys.
17735
17736 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
17737
17738         * PaddingConverter.cs: Added.
17739
17740 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17741         
17742         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
17743         ShowPanels is false (fixes #80600). Only draw up to 127 characters
17744         of text (fixes #80601). For panels clip the text to draw to the
17745         panel (fixes #80603).
17746
17747 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17748
17749         * ComboBox.cs: Fixed implementation of ResetText.
17750
17751 2007-01-25  Jackson Harper  <jackson@ximian.com>
17752
17753         * TextControl.cs: For the last char of a line we need to use the
17754         line size, not that chars width, since it won't actually be
17755         computed since the right side of a char is based on the start of
17756         the left side of the next char, and the next char does not exist.
17757
17758 2007-01-25  Chris Toshok  <toshok@ximian.com>
17759
17760         * Splitter.cs: fix the new unit tests, and reindent some switch
17761         statements.
17762
17763 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17764
17765         * ComboBox.cs: Implemented 2.0 methods and events.
17766         * TextBoxBase.cs: Added OnTextUpdate, so that
17767         ComboBox.ComboTextBox can inform ComboBox of it.
17768
17769 2007-01-25  Jackson Harper  <jackson@ximian.com>
17770
17771         * TextControl.cs: Respect ShowSelection when deciding whether or
17772         not to display the caret, this allows comboboxes to have carets
17773         when the combotextbox does not have focus.
17774
17775 2007-01-25  Jackson Harper  <jackson@ximian.com>
17776
17777         * TextControl.cs: Add a Suspend/Resume for updating, basically the
17778         same as the Suspend/Resume for recalc, except this will do actual
17779         Invalidates.
17780         - New Undo manager, works much like the MS version.
17781         - Implemented Redo
17782         * TextBoxBase.cs: The Cut operation is undoable.
17783
17784 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17785         
17786         * TextBoxBase.cs: Don't antialias text. Makes it look way better
17787         on Windows (no difference on Linux).    
17788
17789 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17790
17791         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
17792         we don't want to activate any windows. Fixes #79433.
17793
17794 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
17795
17796         - ButtonBase.cs: Fix capitalization of parameter: disposing.
17797         [Fixes bug #80609]
17798
17799 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
17800
17801         * FileDialog.cs:
17802         - Move to using System.ComponentModel.EventHandlerList
17803         - Replace Refresh with Invalidate
17804         - Clear the mime filecache on closing
17805         - Some other memory reducing work. After beeing closed FD now uses
17806           only about 300 KB for the fdo mime stuff plus the memory of the
17807           cached icons.
17808         * Mime.cs: Changed coding style and removed unnecessary commented
17809         code. Some more memory memory reducing work.
17810
17811 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17812
17813         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
17814         a few other missing 2.0 properties.
17815         * Theme.cs: Added DrawFlatStyleComboBox.
17816         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
17817
17818 2007-01-24  Chris Toshok  <toshok@ximian.com>
17819
17820         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
17821         wake_waiting flag, not just when there's data to be read.  if we
17822         don't, then future wakeup's won't reach us and we'll be doomed to
17823         wait for the entire 1 second timeout forever (unless there are X
17824         events to be had).
17825
17826 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17827
17828         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
17829         until you pass Items.Count, not Items.Count - 1 like 1.1.
17830
17831 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
17832
17833         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
17834
17835 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17836
17837         * ToolStripContainer.cs: The recent Dock fix exposed that I was
17838         adding the panels in the wrong order.
17839
17840 2007-01-24  Jackson Harper  <jackson@ximian.com>
17841
17842         * TextBoxBase.cs: When we move the caret we also need to move the
17843         selection, this fixes some random crashing after doing select
17844         text, unselect, delete a char, paste.
17845
17846 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17847
17848         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
17849
17850 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17851
17852         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
17853         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
17854         * ToolBar.cs: Force redraw in BackgroundImageChanged.
17855
17856 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17857
17858         * ToolBar.cs:
17859         - Implement support for vertical toolbars. Fixes #80539;
17860         - Call LayoutToolBar when resize, it fix some other problems in layout.
17861         - Rename requested_height to requested_size, as we can have width on it
17862         when toolbar is vertical.
17863         - Create a private property "Vertical" that uses Dock to verify when 
17864         toolbar is vertical or not.
17865         - Set ControlStyles when change Dock property.
17866         - Refactory in LayoutToolBar to have better variables names and to support
17867         vertical toolbars.
17868         - Fixes default value for ButtonSize when button count is equal zero, size
17869         must be (39, 36) test case writed.
17870
17871 2007-01-23  Chris Toshok  <toshok@ximian.com>
17872
17873         * Control.cs: fix the checks so that they work correctly for mdi
17874         parents/children.
17875
17876 2007-01-23  Chris Toshok  <toshok@ximian.com>
17877
17878         * Control.cs: ControlCollection seems to have super-secret
17879         abstraction breaking knowledge of Mdi containers.  allow MdiClient
17880         to add toplevel controls.
17881
17882 2007-01-23  Chris Toshok  <toshok@ximian.com>
17883
17884         * Control.cs: throw an ArgumentException if a toplevel control is
17885         added to our control collection from ControlCollection.Add, as
17886         well as from ControlCollection.IList.Add.  This fixes the
17887         ControlSetTopLevelTest.TestTopLevelAdd unit test.
17888
17889         Also, in ControlCollection.IList.Add, don't through an
17890         ArgumentNullException, throw an ArgumentException, when value ==
17891         null.  This matches MS.
17892
17893 2007-01-23  Chris Toshok  <toshok@ximian.com>
17894
17895         * BindingSource.cs: initial, incomplete, implementation of
17896         BindingSource.
17897
17898 2007-01-23  Jackson Harper  <jackson@ximian.com>
17899
17900         * TextControl.cs:
17901         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
17902         that I can fix a broken unit test (TextBoxTest::ClearUndo)
17903         
17904 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17905
17906         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
17907
17908 2007-01-23  Andreia Gaita  <avidigal@novell.com>
17909
17910         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
17911         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
17912         IndexOfKey() for 2.0
17913
17914 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17915
17916         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
17917         to prevent it from changing z-order.
17918         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
17919         leave UI updates in MdiWindowManager.
17920         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
17921         1 sized (NC handling goes weird on Linux otherwise).
17922         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
17923         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
17924         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
17925         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
17926         and SetWindowState(s) to allow for changing the size of an activated child
17927         before activating it (reduces a lot of flicker).
17928
17929 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17930
17931         * Form.cs: Changing FormBorderStyle has different semantics based
17932         on whether the Form is visible or not.  If not visible, don't change
17933         the Size.  But InvalidateNC needs to be called to force the window
17934         to pick up the changes and redraw itself.  [Fixes bug #80574]
17935
17936 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17937
17938         [Moma work]
17939         * ContainerControl.cs: ProcessCmdKey.
17940         * ErrorProvider.cs: new constructor.
17941         * Form.cs: fix AutoValidateEvent compiler warning.
17942         * Label.cs: fix OnAutoSizeChanged compiler warning.
17943         * MenuStrip.cs: fix CanOverflow compiler warning.
17944         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
17945         * TextBox.cs: Dispose.
17946         * ToolStrip.cs: CanOverflow, re-enable double buffering.
17947         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
17948         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
17949         * ToolStripItem.cs: Overflow, RightToLeft properties.
17950
17951 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17952
17953         * Form.cs: Move the layout of the main form to MdiWindowManager.
17954         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
17955         do a layout of the main window to update MdiClient's client area to
17956         the right area. Fixes #80533. Remove the calculation of nc size, 
17957         it was just wrong and the correct one is the same as for 
17958         InternalWindowManager. 
17959
17960 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
17961
17962         * Control.cs: Setting Anchor or Dock needs to reset the other
17963         to its default.  [Fixes bug #80556]
17964
17965 2007-01-20  Chris Toshok  <toshok@ximian.com>
17966
17967         * CheckedListBox.cs: class status changes.
17968
17969         * ScrollableControl.cs: same.
17970
17971         * RichTextBox.cs: same.
17972
17973         * ContainerControl.cs: same.
17974
17975         * ListView.cs: same.
17976
17977         * NotifyIcon.cs: same.
17978
17979         * MenuStrip.cs: same.
17980
17981         * RadioButton.cs: same.
17982
17983         * CheckBox.cs: same.
17984
17985         * PrintPreviewDialog.cs: same.
17986
17987         * Form.cs: same.
17988
17989 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
17990
17991         * TreeNode.cs: Apply Alan's patch for Name property.
17992
17993 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17994         
17995         * Form.cs: Implemented SizeGripStyle.
17996         * SizeGrip.cs: Check for minimum and maximum size for the
17997         control being resized and only resize if size has actually
17998         changed.
17999
18000 2007-01-19  Chris Toshok  <toshok@ximian.com>
18001
18002         * DataGridColumnStyle.cs: stop setting _readonly in the
18003         PropertyDescriptor setter.  fixes a unit test failure.
18004
18005         also, rename ParentReadOnly to TableStyleReadOnly, and have it
18006         just consult our table style (if we have one).  We don't need to
18007         consult the datagrid readonly attribute because that's passed in
18008         as the _ro arg to Edit.  this simplifies things a little.
18009         
18010         * DataGrid.cs: use CurrentColumn instead of
18011         current_cell.ColumnNumber just to simplify some of the code.
18012
18013         switch the order of some things in the CurrentCell setter to keep
18014         the previous cell from getting a textbox again -
18015         EnsureCellVisibility causes scrolling to happen, which calls Edit.
18016         So we need to set the new cell before calling it.
18017         
18018         call Edit in OnEnter, as does Microsoft.
18019         
18020         also, make sure the current table style isn't the one we create
18021         initially when checking to see if it's different than the one
18022         we're setting it to in BindColumns (this fixes #80421).
18023
18024         * GridTableStylesCollection.cs: table styles can have "" for a
18025         mapping name.  part of the fix for #80421.
18026
18027         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
18028         Edit significantly.
18029
18030 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
18031
18032         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
18033         and less GDI object leaky-er.
18034
18035 2007-01-18  Andreia Gaita  <avidigal@novell.com>
18036
18037         * LinkLabel.cs: Add opaque control style
18038
18039 2007-01-18  Jackson Harper  <jackson@ximian.com>
18040
18041         * TextControl.cs: Calculate width properly.
18042         - Don't store the tag's X offset, this can be figured out very
18043         easily.
18044         - When getting the caret tag make sure to get the last empty tag.
18045
18046 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
18047
18048         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
18049         [Fixes bug #79959]
18050
18051         * Control.cs: Color.Empty shouldn't count for previous transparent
18052         redraw changes.
18053
18054 2007-01-18  Jackson Harper  <jackson@ximian.com>
18055
18056         * TextBox.cs:
18057         * RichTextBox.cs:
18058         * TextControl.cs: Starting to merge in some pieces of my older
18059         undo work.  Basically just some slight cleanup of the undo API.
18060
18061 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18062
18063         * TrackBar.cs: Fix signature of RightToLeftLayout.
18064         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
18065         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
18066         * Application.cs: Implemented UseWaitCursor.
18067
18068 2007-01-18  Jackson Harper  <jackson@ximian.com>
18069
18070         * TextControl.cs: We can't skip tags if any part of the tag is
18071         visible.
18072
18073 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
18074
18075         * ContainerControl.cs: Override OnLayout.
18076
18077 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
18078
18079         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
18080
18081         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
18082         everything else.
18083
18084 2007-01-18  Chris Toshok  <toshok@ximian.com>
18085
18086         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
18087         (leftover from the container_selected days, I'd wager).  fixes bug
18088         #80546.
18089
18090 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
18091
18092         * Control.cs: Apply patch from George to fix the new testcase on
18093         bug #80451.  We can't just check for Color.Transparent, we need 
18094         to check if the back color's alpha channel is < 255.
18095
18096 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
18097
18098         * Form.cs: Move setting show_icon = true to before the constructor
18099         so that the base constructor has that information when it calculates
18100         the form's size.  Was causing forms to be (6, 6) bigger than they
18101         were supposed to be.  Thanks for catching this Rolf!
18102
18103 2007-01-18  Jackson Harper  <jackson@ximian.com>
18104
18105         * TextControl.cs: When replacing a selection we need to invalidate
18106         from the initial selection start, because selection start is moved
18107         to the end of the replacement.
18108
18109 2007-01-18  Andreia Gaita  <avidigal@novell.com>
18110
18111         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
18112
18113 2007-01-18  Chris Toshok  <toshok@ximian.com>
18114
18115         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
18116         I just added.
18117
18118 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
18119
18120         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
18121         layout methods and properties from ToolBarButton must be available
18122         into ToolBarButtonInfo.
18123
18124 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
18125
18126         * Control.cs: If the control has a transparent background, we
18127         need to refresh it when it moves and when it's parent's background
18128         image changes.  [Fixes bug #80451]
18129
18130 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
18131
18132         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
18133
18134 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
18135
18136         * XplatUIWin32.cs: Implement proper double buffering for Windows.
18137         [Fixes bug #80447, and probably speeds up things as well]
18138
18139 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18140
18141         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
18142         * XplatUIWin32.cs: We need to recalculate NC size after changing 
18143         window style to toolwindow (otherwise the client rectangle will be
18144         3 pixels to small for some reason).
18145         * MdiWindowManager.cs: Revert NC size calculations to match how
18146         they are calculated only based on window styles (to match
18147         Win32AdjustWindowRectEx, since otherwise when setting size or 
18148         location, Control will call Win32AdjustWindowRectEx to update client 
18149         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
18150         calculate a different value of client size causing another paint 
18151         (and flickering))
18152         * InternalWindowManager.cs: When moving or resizing a window only
18153         update size or location if they actually changed.
18154         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
18155         (seems to match Windows behaviour better). Cleaned up 
18156         ManagedWindowDecorations to draw what's needed and nothing else
18157         (was drawing borders and lines where they shouldn't be)
18158         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
18159         (style = 0xFFFF) and takes into account caption height when 
18160         calculating window rectangle.   
18161
18162 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
18163
18164         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
18165         can be added to toolbar multiple times, we need to maintain a list of 
18166         button information for each positions.
18167
18168 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
18169
18170         * ToolBar.cs: Some small stetic changes.
18171
18172 2007-01-16  Jackson Harper  <jackson@ximian.com>
18173
18174         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
18175         that allow us to have nested recalc = false blocks.
18176         - Add paste support for images in the RichTextBox
18177         * RichTextBox.cs: flush the text after the color is changed, so
18178         the change takes effect.
18179         - Use SuspendRecalc
18180         - Some extra debugging info
18181         * TextControl.cs: Tags no longer track their length, it is just
18182         computed from the next tags length, this makes things a little
18183         simpler and reduces places that we have to track length changes.
18184         - Refactored the linetag class a little so we could make it
18185         a base class for different kinds of tags
18186         - Created a image tag, a tag that can have a single image inserted
18187         into it
18188         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
18189         that we can call suspend multiple times.
18190         - Add some debugging methods
18191
18192 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18193
18194         * MdiClient.cs: Add ActivatePreviousChild for 
18195         mdi child window navigation.
18196         * Form.cs: Use MdiClient.ActivateNextChild/
18197         ActivatePreviousChild instead of Form.SelectNextControl
18198         to select the next/previous child since 
18199         SelectNextControl doesn't do it in the same order
18200         as mdi children should do it.
18201
18202 2007-01-16  Chris Toshok  <toshok@ximian.com>
18203
18204         * Control.cs: remove container_selected field.
18205
18206 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18207
18208         * MdiClient.cs: Update main form's ActiveChild when
18209         updating keyboard focus for the mdi child.
18210
18211 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
18212
18213         * Control.cs: PreferredSize fix.
18214
18215         * Form.cs: Add several 2.0 events, properties, and methods.
18216
18217 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
18218
18219         * Form.cs: Provide meaningful message when MdiParent is assigned a
18220         Form that is not an MdiContainer.
18221
18222 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18223
18224         * MdiClient.cs: Update main form's ActiveChild when
18225         activating a mdi child.
18226
18227 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18228
18229         * MdiWindowManager.cs: Fix NRE when merging menus and main form
18230         doesn't have a menu.
18231
18232         * Form.cs: Request NCRecalc after creating a mdi child window.
18233         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
18234         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
18235         
18236         * MdiClient.cs: Add new method SendFocusToActiveChild that either
18237         sends keyboard focus to the active child, or to the MdiClient
18238         if there are no child forms.
18239         
18240 2007-01-15  Chris Toshok  <toshok@ximian.com>
18241
18242         * ListView.cs: drop the *Internal overrides, just do our work in
18243         ItemControl's WndProc instead.
18244
18245         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
18246         of the various controls, and forward the events properly (in the
18247         same manner as MS) from the textbox to the UpDown.  Also the
18248         ActiveControl of the UpDownBase gets set properly now.  Finally,
18249         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
18250
18251         * NumericUpDown.cs: set Text in the ctor.
18252
18253         * DomainUpDown.cs: call UpdateEditText in the ctor.
18254         
18255         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
18256         so even a Selectable = false textbox can be focused if you click
18257         in it.  Go figure.
18258
18259         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
18260         just add their handling in their respective WndProc's.  Also add
18261         an explicit FocusInternal method that doesn't consult CanFocus
18262         before calling Select(this).
18263
18264         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
18265         do our work in WndProc instead.
18266
18267         * TabControl.cs: same.
18268
18269         * ComboBox.cs: same.
18270
18271 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
18272
18273         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
18274         Fixes #80006.
18275
18276 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18277
18278         * ListViewItem.cs:
18279         * ThemeWin32Classic.cs: Don't draw the item text outside
18280         item bounds in Details view, as well as use trimming.
18281         Fixes bug #80376.
18282
18283 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
18284
18285         * Form.cs: Implement Form.ShowIcon.
18286         
18287         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
18288         null, which when combined with the DlgModalFrame window style removes
18289         the icon from the title bar.
18290
18291 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
18292
18293         * Control.cs: Call OnMouseClick after OnClick. (2.0)
18294
18295 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
18296
18297         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
18298         menu when mdi child windows theres a menu, uses insert to get icon
18299         at first position. Partially fix #80006.
18300
18301 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
18302
18303         * Clipboard.cs: Implement 2.0 methods.
18304
18305 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
18306
18307         * Menu.cs: Implement Insert method of MenuItemCollection class
18308         to fix MenuMerge.
18309
18310 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18311
18312         * ListView.cs: Implement 2.0 FindItemWithText method.
18313
18314 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
18315
18316         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
18317         to calculate menu bar size. Fixes #80290.
18318
18319 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
18320
18321         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
18322
18323 2007-01-11  Chris Toshok  <toshok@ximian.com>
18324
18325         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
18326         initial form.
18327
18328 2007-01-11  Chris Toshok  <toshok@ximian.com>
18329
18330         * LinkLabel.cs: make sure to call base.Select in our Select method
18331         if it turns out we're going to be selected (i.e. if we have a link
18332         that is going to receive focus).  That way our container's
18333         ActiveControl is updated properly.
18334
18335 2007-01-11  Chris Toshok  <toshok@ximian.com>
18336
18337         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
18338         they have 1 or more links.  this fixes the crash gert reported.
18339
18340 2007-01-11  Andreia Gaita  <avidigal@novell.com>
18341
18342         * ContainerControl.cs: Remove ContainerSelected flag, not needed
18343         anymore.
18344
18345         * Control.cs (Controls.Add): Check if control to be added to the collection
18346         is a top level control, and throw an ArgumentException if it is.
18347         Remove ContainerSelectedFlag, not needed anymore.
18348
18349         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
18350         top most control doesn't activate the form. This fixes a problem in the
18351         MessageBox, where the default button wouldn't get focus because the form
18352         was activated before being Loaded - when the Owner is set, SetTopMost is
18353         called, and it would activate it.
18354
18355 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
18356
18357         * Button.cs: When clicked and setting the parent form's DialogResult,
18358         use FindForm instead of Parent, since parent could be a container
18359         control and not the Form.  Fixes bug #80495.
18360
18361 2007-01-10  Chris Toshok  <toshok@ximian.com>
18362
18363         * Form.cs: move the call to SendControlFocus into the same
18364         is_loaded check.
18365
18366 2007-01-10  Chris Toshok  <toshok@ximian.com>
18367
18368         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
18369         It breaks in the face of the new ActiveControl stuff, and should
18370         be unnecessary.
18371
18372         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
18373         activecontrol's focus if it's not already set, after we set
18374         ActiveControl, but before we call OnActivated.  Re-fixes #79667
18375         after the previous focus/active control fixes regressed it.
18376
18377         * Control.cs: reindent some code.
18378         
18379 2007-01-10  Chris Toshok  <toshok@ximian.com>
18380
18381         * Splitter.cs: clearing some outstanding changes from my tree.
18382         Replace all accesses (not writes) to the internal dock_style field
18383         with the Dock property.
18384
18385 2007-01-10  Chris Toshok  <toshok@ximian.com>
18386
18387         * Control.cs: make FireEnter, FireLeave, FireValidating, and
18388         FireValidated virtual.
18389
18390         * Form.cs: override and don't chain up calls to FireEnter and
18391         FireLeave.
18392
18393 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18394
18395         * ListView.cs: Add more text padding space when using
18396         auto resize for columns (the previous value didn't work fine).
18397
18398         * ThemeWin32Classic.cs: Update text position inside columns,
18399         to match the appeareance of .Net.
18400
18401         * ColumnHeader.cs: When using auto resize, only the Width should
18402         depend on the sub items, not the Height. Also, set width after
18403         auto resizing (the value of Width should never remain as -1 or -2).
18404
18405 2007-01-10  Chris Toshok  <toshok@ximian.com>
18406
18407         * Application.cs: fix compilation errors when debug is enabled.
18408
18409 2007-01-10  Chris Toshok  <toshok@ximian.com>
18410
18411         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
18412         add some nice ascii art pictures and explanation of the process).
18413         (GetMostDeeplyNestedActiveControl): new utility function we need
18414         because our ActiveControl can refer to a child container with its
18415         own ActiveControl.
18416
18417         * Form.cs (OnActivated): remove the call to SelectActiveControl
18418         from here, since you can override this method and not chain up,
18419         and winforms still sets the active control.
18420         (OnCreateControl): also remove the unnecessary SelectActiveControl
18421         call from here.
18422         (WndProc): it's actually called from the WM_ACTIVATE block, just
18423         before calling OnActivated.
18424
18425         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
18426         inside the else.  the ActiveControl setter will end up setting
18427         focus on @control.  This keeps us from setting it again (and
18428         generating an extra LostFocus/GotFocus pair).
18429         (Select (bool, bool)): reindent.
18430
18431 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
18432
18433         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
18434         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
18435         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
18436         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
18437         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
18438         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
18439         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
18440         ToolStripTextBox.cs: Another wave of corcompare work.
18441
18442 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18443
18444         * ColumnHeader.cs: Implement 2.0 AutoResize method using
18445         the Width property.
18446
18447         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
18448         methods by callling Column.AutoResize method on columns.
18449
18450 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
18451
18452         * Control.cs: Provide proper implementations of PreferredSize
18453         and GetPreferredSize (2.0).
18454
18455 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
18456
18457         * Form.cs: Remove one character (!) to make my previous OnClosing
18458         stuff work for modal windows like MessageBox.
18459
18460 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18461
18462         * ListView.cs:
18463         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
18464         ListView.Columns to get the last displayed column. Fixes #80452.
18465
18466 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
18467
18468         * Label.cs, LinkLabel.cs: Source code identation fixes.
18469
18470 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
18471
18472         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
18473         we dont need to invalidate only borders because when we invalidate four
18474         border lines the invalidate's generates a complete redraw of button, 
18475         because it now invalidate a complete rect some other redraws operations
18476         are fixed. Fixes #80196.
18477         
18478         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
18479         Remove ToolBarInvalidateEntireButton as it is not used.
18480
18481 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
18482         
18483         * Form.cs: Make sure that both OnClosing and OnFormClosing are
18484         called for 2.0 profile.
18485         * CloseReason.cs: Make class internal for 1.1.
18486
18487 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
18488
18489         * ToolStripManager.cs: Implement FindToolStrip functionality.
18490         * ToolStrip.cs: Register and unregister with ToolStripManager.
18491
18492 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
18493
18494         * Control.cs: This was messy.  2.0 moves much of ControlCollection
18495         to ArrangedElementCollection.  Implemented this with as few #if's as 
18496         possible (which is still too many).
18497
18498 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
18499
18500         * Control.cs: Implement SizeFromClientSize() [2.0].
18501
18502 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
18503
18504         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
18505         use Theme.BorderSize to calculate area instead of static value 1, 
18506         by the way use new BorderStaticSize instead     Border3DSize when 
18507         border_static is true. Fixes #79537.
18508         
18509         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
18510         
18511         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
18512         it is not needed.
18513
18514 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
18515
18516         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
18517
18518 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
18519
18520         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
18521         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
18522         
18523         * Hwnd.cs: 
18524         - border_static field added, it will used to define when a control 
18525         theres 3D border but it must be static (thin).
18526         - In GetWindowRectangle use Theme.BorderSize to calculate area 
18527         instead of static value 1, by the way use new BorderStaticSize instead
18528         Border3DSize when border_static is true.
18529
18530         * XplatUIX11.cs, XplatUIOSX.cs: 
18531         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
18532         
18533         * Theme.cs: BorderStaticSize field added.
18534
18535 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
18536
18537         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
18538
18539 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
18540
18541         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
18542         mimic same behavior than win32 that set border only in CreateParams,
18543         it fix problems under CreateParams overrides. Fix #79442 and partial
18544         fix #79537.
18545         
18546         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
18547         of thi control you must call recreate handle. 
18548         
18549         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
18550         need to do anything as RecreateHangle will take care about borders.
18551
18552 2007-01-05  Mike Kestner  <mkestner@novell.com>
18553
18554         * ListView.cs: hack to eliminate Lost/Got focus notifications on
18555         cycles between the ItemControl and parent.  Fixes #80388.
18556
18557 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
18558
18559         * Control.cs: Lazy init layout engine. Do not directly use 
18560         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
18561
18562 2007-01-05  Chris Toshok  <toshok@ximian.com>
18563
18564         * DataGrid.cs: don't forceably rebind columns in SetDataSource
18565         unless our list manager has changed (i.e. unless we have reason to
18566         believe our columns have changed).  Fixes #80422.
18567         
18568         also, disable the call do BindColumns in
18569         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
18570         1.1 the event isn't raised in response to a column addition on a
18571         table.)
18572
18573 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
18574
18575         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
18576         that inheritors can not call it if they choose.  Fixes bug #80456.
18577
18578 2007-01-05  Andreia Gaita  <avidigal@novell.com>
18579
18580         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
18581         doesn't blow up with a null exception on marshalling.
18582         
18583 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
18584
18585         * Control.cs: Implement several 2.0 protected properties and methods.
18586         Ensure that all necessary events are being called when properties
18587         are set.
18588
18589 2007-01-05  Mike Kestner  <mkestner@novell.com>
18590
18591         * ListView.cs: implement PgUp/PgDn for Details view.  Also
18592         fixes First/LastVisibleIndex to use the item_control.ClientRect 
18593         instead of the parent control.  Fixes #80378.
18594
18595 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
18596
18597         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
18598           determine whether to use yard-pound or not (bug #78399).
18599
18600 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
18601
18602         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
18603         problems. So it is time to bring back the old popupbutton colors.
18604
18605 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18606
18607         * ColumnHeader.cs:
18608         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
18609         property by using the internal information of the
18610         columns order in ListView.
18611
18612 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
18613
18614         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
18615         Add 2.0 Tag properties.
18616
18617         * LinkArea.cs: Add 2.0 ToString method.
18618
18619 2007-01-03  Chris Toshok  <toshok@ximian.com>
18620
18621         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
18622         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
18623         when we're editing, which fixes #80047.
18624
18625 2007-01-03  Chris Toshok  <toshok@ximian.com>
18626
18627         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
18628         #80404.
18629
18630 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
18631
18632         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
18633         property and implementation.
18634
18635         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
18636         for MdiWindowListItem property.
18637
18638         * ToolStripDropDown.cs: Don't consider hidden menu items while
18639         laying out the menu.
18640
18641 2007-01-03  Andreia Gaita  <avidigal@novell.com>
18642
18643         * SendKeys.cs: window handle is not needed in win32, so just
18644         get the active window for X after parsing keys and don't use
18645         it when building the message; it is passed by parameter to the 
18646         Xplat method and used there to build the message instead. Also,
18647         wait for events to be processed on SendWait, as opposed to Send,
18648         which doesn't wait :) Playing with threads and Send() completely 
18649         hangs on ms.net, only SendWait() works.
18650         
18651         XplatUIX11.cs
18652         X11Display.cs: Check for valid window handle.
18653
18654 2007-01-03  Jackson Harper  <jackson@ximian.com>
18655
18656         * TextControl.cs: Need to prevent wrap calculations when replacing
18657         text (this was there before i removed it accidently).
18658         - Don't update the cursor during the positioning, just set it to
18659         selection_start at the end of the operaion.
18660
18661 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18662
18663         * Control.cs:
18664         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
18665         
18666 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18667
18668         * MonthCalendar.cs: Added Click and DoubleClick events again,
18669         but this time they only hide Control's Click and DoubleClick.
18670         
18671 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
18672
18673         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
18674         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
18675
18676 2007-01-02  Jackson Harper  <jackson@ximian.com>
18677
18678         * TextBoxBase.cs: We move the caret with the split now, so we
18679         don't need to explicitly move the caret after splitting.  This
18680         fixes the caret bumping down an extra line on Enter.
18681
18682 2007-01-02  Miguel de Icaza  <miguel@novell.com>
18683
18684         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
18685         2.72). 
18686
18687         * ScrollableControl.cs: Add Scroll event.
18688
18689 2007-01-02  Mike Kestner  <mkestner@novell.com>
18690
18691         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
18692         to fix all hdr height padding codepaths.  Fixes #80207.
18693
18694 2007-01-02  Chris Toshok  <toshok@ximian.com>
18695
18696         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
18697         setting it to the Control defaults anyway, and it being after the
18698         Dock set was screwing up layout.
18699         (set_Dock): don't short circuit out of setting base.Dock.  Also,
18700         no need to call UpdateStatusBar here, as it'll be re-layed out if
18701         it needs to be.
18702
18703 2007-01-02  Mike Kestner  <mkestner@novell.com>
18704
18705         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
18706         to header height for width == -1. Fixes the rest of #80207.
18707
18708 2007-01-02  Mike Kestner  <mkestner@novell.com>
18709
18710         * ListView.cs: rework the mouse event forwarding everaldo added
18711         to translate the coordinates to the parent control not
18712         raise the parent events until after we've done our work. Hover
18713         needs more work, in the case where HoverSelection is on, because
18714         the item control receives more than one MouseHover per Enter
18715         event, so we need to ensure only the "first" hover gets forwarded.
18716         Opening a minor bug for that.
18717
18718 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
18719
18720         * CheckedListBox.cs: Fixed SelectionMode to match MS.
18721         * ListControl.cs: Implemented AllowSelection property. Removed extra
18722         tabs.
18723         * ListBox.cs: Implemented AllowSelection property.
18724
18725 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18726
18727         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
18728         SelectedItem, it prevent for errors when you must disable item
18729         before perform click. Fixes #80409.
18730
18731 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18732
18733         * MenuAPI.cs: Prevent second level and beyond submenus to close
18734         until first level when move out side of popup.
18735         
18736 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18737
18738         * MenuAPI.cs:
18739         - Down submenu positin in three pixels.
18740         - Closes sub menu when mouse leaves from menu. Fixes #80402.
18741
18742 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18743
18744         * ThemeWin32Classic.cs:
18745         - Fix popup menu size adding one pixel on the top.
18746         - Down menu item border from two to one to mimic Win32.
18747         - Some source identation fixes. 
18748
18749 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18750
18751         * ThemeWin32Classic.cs: Use float numbers to calculate size and
18752         position of menu arrows, it fix wrong arrow size.
18753
18754 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18755
18756         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
18757         instead of line, it simplify draw operation and fix it using 3D
18758         borders to mimic Win32.
18759
18760 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
18761
18762         * StatusStrip.cs: Add implementation of the sizing grip.
18763
18764         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
18765         StatusStrip rendering.
18766
18767 2006-12-31  Chris Toshok  <toshok@ximian.com>
18768
18769         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
18770         override the layout style (anchor/dock) of the control.  assign to
18771         Dock instead.  Fixes bug #80416.
18772
18773         * ToolStrip.cs: same.
18774
18775 2006-12-31  Andreia Gaita  <avidigal@novell.com>
18776
18777         * ContainerControl.cs: Use ContainerSelected flag to check if 
18778         a Container is directly selected, or if Select is called on a 
18779         non-container. If a container is directly selected, focus events 
18780         should not be raised.
18781         Apply #80411 patch to throw exception on set_ActiveControl if 
18782         control is the same as the current one.
18783         
18784         * Control.cs: Use ContainerSelected flag (see above).
18785         Add invalidation check to raise event but not invalidate if 
18786         dimensions are 0.       
18787         Apply #80411 patch.
18788         
18789
18790 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
18791
18792         * MenuAPI.cs: After click, dont close popup menu when menu is
18793         ContextMenu. Fixes #80399.
18794
18795 2006-12-30  Chris Toshok  <toshok@ximian.com>
18796
18797         * ContainerControl.cs: make sure we throw the exception if the
18798         container control doesn't contain the control we're setting
18799         ActiveControl to.
18800
18801 2006-12-30  Chris Toshok  <toshok@ximian.com>
18802
18803         * Control.cs (SetTopLevel): fix the exception raised by
18804         SetTopLevel for child controls.
18805         (set_Anchor): call UpdateDistances when setting the anchor type.
18806         This fixes bug #80336.
18807
18808 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18809
18810         * Theme.cs: For now, revert back to 8pt font.
18811
18812 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
18813
18814         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
18815         Fixes #80395.
18816
18817 2006-12-29  Chris Toshok  <toshok@ximian.com>
18818
18819         * Control.cs: reorder the code in OnResize to give the same event
18820         ordering as MS.
18821
18822 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18823
18824         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
18825         TileHorizontally and TileVertically.
18826         
18827 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
18828
18829         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
18830         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
18831         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
18832         Corrected copyright and email adress.
18833
18834 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18835
18836         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
18837         of Exception in FullPath property if no TreeView is associated with
18838         the TreeNode.
18839
18840 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18841
18842         * Theme.cs: Marked default_font as private, and initialize it in ctor
18843         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
18844         on 2.0 profile.
18845         * ThemeGtk.cs: Removed default_font intialization.
18846         * ThemeWin32Classic.cs: Removed default_font initialization.
18847
18848 2006-12-28  Chris Toshok  <toshok@ximian.com>
18849
18850         * Control.cs: fix a couple of place where we were creating handles
18851         more aggressively than we should be.  Fixes ControlRefresh unit
18852         tests.
18853
18854 2006-12-28  Chris Toshok  <toshok@ximian.com>
18855
18856         * Control.cs: contrary to what the comment said, Control.Dock does
18857         not supercede Control.Anchor - the last one you assign to decides
18858         the layout behavior.  so we need to keep track of which was the
18859         last set.  Also, fix some of the affected property arguments in
18860         PerformLayout calls, and remove an redundant parent.PerformLayout
18861         call in OnResized.
18862
18863         Add a VisibleInternal property, which returns is_visible.  We
18864         can/should get rid of all the usage of this field elsewhere.
18865
18866 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18867         
18868         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
18869         control style, not DoubleBuffer. Added UseDoubleBuffering property
18870         that indicates whether doublebuffering is enabled and supported.
18871         (comment from and code based on Gert Driesen's patch in #80324).
18872         Fixes #80324.
18873
18874 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18875         
18876         * Control.cs: Fixed a NRE.
18877
18878 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18879
18880         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
18881         for 2.0.
18882
18883 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18884
18885         * Control.cs: Rewrote double buffering, now a seperate
18886         class handles all the buffering, no Graphics is disposed of
18887         until the painting is finished (earlier implementation 
18888         would crash if the control was resized in the OnPaint, 
18889         since it would cause the double buffer to be recreated
18890         and the old one disposed), a separate Graphics is 
18891         created for every paint (MS behaviour and anyways the state
18892         of the Graphics would have to be saved and restored otherwise)
18893         
18894         * XplatUIDriver.cs: 
18895         * XplatUIX11.cs:
18896         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
18897         so that we can get the graphics for the back buffer without
18898         having to create a new one and remove the offscreen_dc parameter
18899         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
18900         
18901 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18902
18903         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
18904         Also make virtual all the key-related methods.
18905
18906         * ListViewItem.cs: Make virtual the key related methods for
18907         ListViewSubItemCollection.
18908
18909 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18910
18911         * ListView.cs:
18912         * ListViewItem.cs:
18913         * ThemeWin32Classic.cs:
18914         * Theme.cs: Initial support for Tile view in ListView,
18915         as well as the implementation of the required bits for it (Item
18916         and Subitem).
18917
18918 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18919
18920         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
18921         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
18922         Provide useful exception messages.
18923
18924 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18925
18926         * TrackBar.cs: Remove a warning.
18927         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
18928         when used by DateTimePicker, fixes #80287. This also requires that 
18929         MonthCalendar implements it's own drawing for the yearly updown control,
18930         otherwise the Capture tracking would be too complicated. Removed the Click 
18931         and DoubleClick events (according to comments they were hiding the base class
18932         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
18933         raise these events, not that they cannot be raised. It is possible to raise 
18934         them by calling OnClick and OnDoubleClick). Added two internal fields in 
18935         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
18936         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
18937         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
18938         event, no longer needed.
18939         
18940 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18941
18942         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
18943         true if new value differs from current value.
18944
18945 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18946
18947         * Control.cs: ControlCollection.Count must be public. Fixed build of
18948         unit tests.
18949
18950 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18951
18952         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
18953
18954 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18955
18956         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
18957
18958 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18959
18960         * Control.cs: Invalidates control including when Width and Height is 
18961         equal zero or is not visible, only Paint event must be care about 
18962         this. Fixes #79913.
18963
18964 2006-12-26  Chris Toshok  <toshok@ximian.com>
18965
18966         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
18967         more corcompare work.
18968
18969         * DataGridView.cs: fix compiler warning.
18970
18971         * ColumnHeader.cs: some corcompare work, and also take the
18972         opportunity to make the internal fields private.
18973
18974         * ListView.cs: fix the fallout from the above field change.
18975
18976 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18977
18978         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
18979         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
18980         ToolStripTextBox.cs: Fixes to events and corcompare.
18981
18982 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18983
18984         * ListView.cs: Call owner.OnMousexx event to propagate events from
18985         item to ListView. Fixes #80367.
18986
18987 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18988
18989         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
18990         if value is less than one. ItemHeight should not be set to a value
18991         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
18992         Removed extra tabs.
18993
18994 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18995
18996         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
18997         * ToolStripStatusLabel.cs: Add Spring for Moma.
18998
18999 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
19000
19001         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
19002         Fixed code formatting. Removed debug code.
19003         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
19004
19005 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
19006
19007         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
19008         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
19009         ArgumentOutOfRangeException if ColumnCount is negative. In 
19010         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
19011         less than 4 or higher than 32768.
19012         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
19013         Fixed FormatProvider to return CurrentCulture unless explicitly set.
19014         Fixed IsFormatProviderDefault to return true if FormatProvider has
19015         not been explicitly set.
19016
19017 2006-12-25  Chris Toshok  <toshok@ximian.com>
19018
19019         * Application.cs: add a couple of 2.0 events.
19020
19021 2006-12-25  Chris Toshok  <toshok@ximian.com>
19022
19023         * Control.cs: fix compiler warning.
19024
19025         * AxHost.cs: corcompare fixes.
19026
19027         * ApplicationContext.cs: corcompare fixes.
19028
19029 2006-12-25  Chris Toshok  <toshok@ximian.com>
19030
19031         * Control.cs: only update dist_right/dist_bottom if the
19032         width/height is > 0.  this fixes anchored controls being resized
19033         smaller until they disappear and then resized larger again.
19034
19035 2006-12-25  Chris Toshok  <toshok@ximian.com>
19036
19037         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
19038         since they're nothing more than X/Left and Y/Top, respectively.
19039
19040         Also, move back to a per-control Bitmap/Graphics for
19041         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
19042         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
19043         Height.
19044
19045 2006-12-25  Miguel de Icaza  <miguel@novell.com>
19046
19047         * MessageBox.cs: Implemented overload that takes a new "bool
19048         displayHelpButton" by adding a new internal field "show_help".
19049         When clicked this will raise the HelpRequested on the owner or the
19050         main form. 
19051
19052         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
19053         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
19054
19055         * ListView.cs: Add support ColumnWidthChanged and
19056         ColumnWidthChanging. 
19057
19058         Add support for ColumnReordered event.
19059         (ReorderColumn): Add NET_2_0 specific support for cancelling the
19060         reorder.
19061
19062         Very nice codebase!
19063
19064         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
19065
19066         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
19067
19068 2006-12-24  Chris Toshok  <toshok@ximian.com>
19069
19070         * GridTablesFactory.cs: 2.0 corcompare work.
19071
19072         * ToolStripContainer.cs: add "override" to
19073         ContextMenuStripChanged, and remove the local event object.
19074
19075         * ToolStripDropDown.cs: same with a couple properties.
19076
19077         * ToolStripPanel.cs: same with AutoSizeChanged event.
19078
19079         * TextBoxBase.cs: add "override" to AutoSizeChanged.
19080
19081         * Form.cs: add the remaining 2.0 events, and do some corcompare
19082         attribute work.
19083
19084         * DateTimePicker.cs: add "new" to padding.
19085
19086         * ButtonBase.cs: use Control's use_compatible_text_rendering.
19087
19088         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
19089
19090         * DataGridView.cs: PaddingChanged is overridden.
19091
19092 2006-12-24  Chris Toshok  <toshok@ximian.com>
19093
19094         * Control.cs: corecompare work here too.
19095
19096         * DataGridViewElement.cs, DataGridView.cs,
19097         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
19098         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
19099         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
19100         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
19101         work.
19102
19103 2006-12-24  Miguel de Icaza  <miguel@novell.com>
19104
19105         * Control.cs: Switched the error message on the console for a
19106         todo.  A review of the code will have to cope with this anyways
19107         (since its a large feature, it is in our radar) and it was
19108         producing too much output when running PDN.
19109
19110         * ToolStripComboBox.cs: Set the text when the SelectedIndex
19111         changes.  Applications depend on this (PDN 2.72)
19112
19113 2006-12-23  Chris Toshok  <toshok@ximian.com>
19114
19115         * TableLayoutSettings.cs: finish up the corcompare work for this
19116         class.
19117
19118 2006-12-23  Chris Toshok  <toshok@ximian.com>
19119
19120         * Control.cs: make SetImplicitBounds internal, do some futzing
19121         with LayoutEngine so that it's available in 1.1, and remove the
19122         entire duplicated code mess from PerformLayout.  Use
19123         System.Windows.Forms.Layout.DefaultLayout instead.
19124
19125         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
19126
19127 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
19128
19129         * Form.cs: Add MainMenuStrip property.
19130
19131 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
19132
19133         * Control.cs: Add ContextMenuStrip property and implementation.
19134         Fix ContextMenu implementation to show menu centered on control when
19135         activated using the keyboard instead of showing at screen (0,0).
19136
19137         * ToolStripDropDown.cs: Fix needed overload of Show ().
19138
19139 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
19140
19141         * Menu.cs: Name property added for 2.0 profile.
19142         
19143 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
19144
19145         * Menu.cs: Update information about FindMenuItem, method to be
19146         implemented soon.
19147
19148 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
19149
19150         * MenuAPI.cs: When deselect items deselect also selected subitems.
19151         
19152 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
19153
19154         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
19155         FindSubItemByCoord to found itens that is not active, also an
19156         cheking added to FindSubItemByCoord to search for items only 
19157         in visible popup windows. Fixes #80274.
19158
19159 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
19160
19161         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
19162         internal property, it be care about change ExStyle. 
19163
19164 2006-12-22  Andreia Gaita  <avidigal@novell.com>
19165
19166         * ContainerControl.cs: set activeControl for parent forms up the 
19167         tree when the new activecontrol is a container.
19168         When validating the active control, if it is a container, also
19169         raise up the validation for it's active control. Fixes #80280
19170         
19171         * Control.cs: Add internal property flag and check to prevent
19172         Focus events from getting raised when Select() is called for
19173         a ContainerControl. There are still too many focus events being
19174         raised at the moment though.
19175         Cleaned up the code a bit.
19176
19177 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19178
19179         * Control.cs: Added all missing 2.0 events.and
19180         fixed a couple of corcompare issues.
19181         * TrackBar.cs: Implemented missing 2.0 bits.
19182         * MonthCalendar.cs, 
19183         * DateTimePicker.cs, 
19184         * MdiClient.cs: Fixed some corcompare issues.
19185
19186 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
19187
19188         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
19189         SplitterPanel.cs: corecompare work.
19190
19191 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
19192
19193         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
19194         Clean up warnings for BackgroundImageChanged and PaddingChanged
19195         events now that they are implemented in Control.cs.
19196
19197 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
19198
19199         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
19200         
19201         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
19202         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
19203         of TableLayoutPanel and supporting cast.
19204
19205 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19206
19207         * XplatUIWin32.cs: 
19208         - GrabWindow now confines the mouse pointer to the confine window.
19209         - Added Win32ClipCursor and Win32GetClipCursor.
19210
19211         * Control.cs: 
19212         - Added CaptureWithConfine to be able to capture and confine 
19213         mouse pointer.
19214         
19215         * InternalWindowManager.cs: 
19216         - Call CaptureWithConfine instead of Capture if we're an
19217         MdiChild (fixes #79982).
19218
19219 2006-12-21  Chris Toshok  <toshok@ximian.com>
19220
19221         * DataGrid.cs: guard against the initial state of selection, where
19222         selection_start == -1.  make sure we only select from index >= 0.
19223         Fixes bug #80291.
19224
19225 2006-12-21  Chris Toshok  <toshok@ximian.com>
19226
19227         * Control.cs: we don't need to be so draconian with
19228         UpdateDistances, and we thusly don't need to call it before
19229         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
19230
19231 2006-12-21  Daniel Nauck  <dna@mono-project.de>
19232
19233         * ComboBox.cs,
19234         TextBox.cs: Implemented AutoComplete properties.
19235
19236 2006-12-20  Chris Toshok  <toshok@ximian.com>
19237
19238         * DataGridView*.cs: some corecompare work.
19239
19240 2006-12-20  Jackson Harper  <jackson@ximian.com>
19241
19242         * XplatUIX11.cs: We need to hide the caret when deleting it,
19243         otherwise you get carets left lying around everywhere.
19244         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
19245         prevents getting some weird half drawn caret tracers when
19246         scrolling.
19247         * TextControl.cs: Attempt to reduce the number of times we need to
19248         recreate the caret.
19249
19250 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
19251
19252         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
19253
19254 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19255
19256         * DateTimePicker.cs:
19257         - Implemented missing 2.0 bits.
19258         - Changed some default values to match MS.
19259         
19260 2006-12-20  Jackson Harper  <jackson@ximian.com>
19261
19262         * TextBoxBase.cs: When changing the font across the document we
19263         can't recalculate after changing each line, since that will cahnge
19264         the line count.
19265         - PreferredHeight is a little different than i thought.
19266         - When backspacing, move the caret before we do the actual char
19267         delete, because when that delete crosses a wrap boundary the
19268         positional information will change.
19269
19270 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19271
19272         * Control.cs: Added some missing 2.0 bits: 
19273         BackgroundImageLayout, BackgroundImageLayoutChanged, 
19274         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
19275         add IBindableComponent and IDropTarget implementation.
19276         
19277         * MonthCalendar.cs: 
19278         - Added all missing 2.0 features:
19279         BackgroundImageLayout, RightToLeftLayout, 
19280         OnHandleDestroyed, RightToLeftLayoutChanged, 
19281         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
19282         PaddingChanged.
19283         - Rewrote all the BoldDate code, it was completely broken.
19284         - Fixed all the tests (the tests can now be re-enabled, the
19285         problems were not with the tests, but with the control, it was
19286         mostly broken).
19287         
19288         * DateTimePicker.cs: Changed the location where the 
19289         MonthCalendar is shown.
19290         
19291 2006-12-19  Chris Toshok  <toshok@ximian.com>
19292
19293         * DataGridView.cs: add IDropTarget implementation.
19294
19295         * ToolStripPanel.cs: add IDropTarget implementation.
19296
19297 2006-12-19  Jackson Harper  <jackson@ximian.com>
19298
19299         * TextControl.cs: soft now means something different than what it
19300         used to mean, we want to move the caret regardless of whether or
19301         not this break was soft (would we really have wanted the caret
19302         to not move with the break in the old context?)
19303         * TreeView.cs: Make sure we factor in the vert scrollbar when
19304         calculating the horizontal scrollbar's maximum.
19305
19306 2006-12-19  Andreia Gaita  <avidigal@novell.org>
19307
19308         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
19309         check for keywords in alternate casing, close bug #80049.
19310
19311 2006-12-19  Chris Toshok  <toshok@ximian.com>
19312
19313         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
19314         methods (which all do nothing).
19315
19316         * IDropTarget.cs: add the 4 missing methods.
19317
19318 2006-12-19  Chris Toshok  <toshok@ximian.com>
19319
19320         * TableLayoutRowStyleCollection.cs: corcompare work.
19321         
19322         * TableLayoutSettings.cs: same.
19323
19324         * TableLayoutStyle.cs: same.
19325
19326         * TableLayoutColumnStyleCollection.cs: same.
19327
19328 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
19329
19330         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
19331         TableLayoutPanel I've had in my local tree for way too long.
19332
19333 2006-12-19  Miguel de Icaza  <miguel@novell.com>
19334
19335         * TableLayoutSettings.cs: Finish the public API (still needs all
19336         the logic to update on changes). 
19337
19338         * TableLayoutPanelCellPosition.cs: new file.
19339         
19340         * TableLayoutRowStyleCollection.cs,
19341         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
19342         TableLayoutSettings.cs: Track the final 2.0 table api.
19343
19344 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19345
19346         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
19347         and Image List 2.0 members for ColummnHeader.
19348         * ListView.cs: Add key-related 2.0 methods for
19349         ColumnHeaderCollection.
19350
19351 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
19352
19353         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
19354         ArgumentNullException if items argument is null. Ignore null item in
19355         arrays. Removed extra tabs.
19356
19357 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
19358
19359         * MonthCalendar.cs: Fixed InvalidCastException.
19360
19361 2006-12-19  Jackson Harper  <jackson@ximian.com>
19362
19363         * TextControl.cs: Don't increment the position here.
19364         - When calculating char positions only add in the line break size
19365         for hard line breaks.
19366
19367 2006-12-19  Andreia Gaita  <avidigal@novell.org>
19368
19369         * SendKeys.cs: Changed some things to match ms.net behaviour
19370         when parsing shifted capital letters.
19371         
19372         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
19373         Add window handle as parameter to SendInput. X11 needs the 
19374         window handle, and the handle being passed      to it in the keys 
19375         queue is the active control handle (which windows needs), not 
19376         the window handle.
19377         
19378         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
19379         to support SendKeys on X.       
19380         
19381         * X11Keyboard: Implement helper method to lookup a linux keycode
19382         given the virtual keycode. Added table of keycode-2-virtualkey
19383         values to support this.
19384
19385 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19386
19387         * ListView.cs: Add support for SelectedIndexCollection
19388         and SelectedItemCollection 2.0 methods. Implement support
19389         for ImageKey too.
19390         * ListViewItem.cs: Add support for ListViewSubItemCollection
19391         2.0 methods. Also, fix an incorrect behavior of AddRange method
19392         (it shouldn't call Clear).
19393         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
19394
19395 2006-12-19  Jackson Harper  <jackson@ximian.com>
19396
19397         * RichTextBox.cs: 
19398         * TextBoxBase.cs: New args for FormatText
19399         * TextControl.cs: Rewrote the main drawing method, this version
19400         feels a little easier to understand and debug to me.  Hopefully it
19401         does to others also
19402         - Fix FormatText to OR in the new formating values.  Added
19403         FormatSpecified param, basically this works in the same way as
19404         BoundsSpecified in Control.
19405         - Set the caret properties when the caret is positioned.
19406         - When wrapping text make sure that we calculate the width of the
19407         last character
19408         - when calculating alignments we might have wrapped down to the
19409         next line, so don't search for an individual tag, search for the
19410         end of the line
19411         - We need to invalidate the selection area when we replace the
19412         selection.
19413         
19414 2006-12-19  Daniel Nauck  <dna@mono-project.de>
19415
19416         * Application.cs: add Restart () 2.0 support
19417
19418 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19419
19420         * MenuItem.cs: Invalidate menu item rectangle after change Enable
19421         property. Fixes #80268.
19422         
19423 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19424
19425         * MenuAPI.cs: Dont trigger select event when closes top menu
19426         item. Fixes #80270.
19427
19428 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19429
19430         * MenuAPI.cs: When you click on menuitem only trigger onselect
19431         event for top menu itens. Fixes #80271.
19432         
19433 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19434
19435         * MdiWindowManager.cs: Make IconicBounds depend on
19436         the bottom of MdiClient, not the top (fixes #80267)
19437         
19438 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19439
19440         * MdiClient.cs: Added missing 2.0 attribute
19441
19442 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19443
19444         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
19445         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
19446
19447 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19448
19449         * MenuAPI.cs: Fix click when menuitem is not popup,
19450         this regression was caused by last commit (#80272).
19451
19452 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
19453
19454         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
19455         fire click event or close menu. Fixes #80272.
19456
19457 2006-12-17  Daniel Nauck  <dna@mono-project.de>
19458
19459         * ListViewHitTestInfo.cs: add
19460
19461 2006-12-17  Daniel Nauck  <dna@mono-project.de>
19462
19463         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
19464         * FlatButtonAppearance.cs: add
19465         * DockingAttribute.cs: add
19466
19467 2006-12-17  Chris Toshok  <toshok@ximian.com>
19468
19469         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
19470         and rebind our columns when it does - this way, if you make
19471         changes to the DataTable (or set the Table attribute on a DataView
19472         after setting it as the DataGrid's DataSource, the changes are
19473         made visible.)  Fixes bug #80107.
19474
19475 2006-12-17  Daniel Nauck  <dna@mono-project.de>
19476
19477         * ListViewGroup.cs: add internal Location property for layouting.
19478         * Theme.cs: add abstract ListViewGroupHeight function.
19479         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
19480
19481 2006-12-16  Andreia Gaita  <avidigal@novell.com>
19482
19483         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
19484         Added reset of selected index to 0 when adding first tab page.
19485         Fixes #80264
19486         
19487         * NumericUpDown.cs: Fix NET_2_0 check
19488
19489 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19490
19491         * ListViewGroup.cs: fixed DefaultValueAttribute value
19492
19493 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19494
19495         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
19496
19497 2006-12-15  Miguel de Icaza  <miguel@novell.com>
19498
19499         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
19500         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
19501         ScrollableControl.cs: Add a handful of methods that are
19502         overwritten in 2.0 
19503
19504 2006-12-15  Chris Toshok  <toshok@ximian.com>
19505
19506         * XplatUIWin32.cs: initial implementation of the Reversible
19507         drawing functions.  there are some problems.  DrawReversibleFrame
19508         doesn't seem to work at all for Dashed FrameStyle, and in the
19509         Thick case there are drawing errors at the corners (we probably
19510         need to bind Rectangle instead of doing moveto/lineto's.)
19511
19512 2006-12-16  Andreia Gaita  <avidigal@novell.com>
19513         
19514         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
19515         to send blocks of key messages. Send accumulates keys to send with Flush, 
19516         while SendWait sends all keys immediately.
19517                 
19518         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
19519         XplatUIX11.cs,  XplatUIX11-new.cs:
19520         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
19521         to Win32 SendInput.
19522         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
19523         
19524         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
19525         testing for ms.net on this class is very tricky, as the tests run too fast 
19526         to allow the hook to release, essentially freezing the keyboard and the 
19527         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
19528         category :p
19529
19530 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19531
19532         * Padding.cs: fixed serialization compability to MS ("_var" field names),
19533                         added missing attributes.
19534  
19535 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19536
19537         * ListViewGroup.cs: Added missing attributes.
19538         * ListViewGroupCollection.cs: Added missing attributes.
19539
19540 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19541
19542         * ListViewItem.cs: fixed ListViewSubItem text property.
19543
19544 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19545         
19546         * Control.cs: Added missing 2.0 attributes
19547         
19548 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19549         
19550         * MdiClient.cs: Added missing 2.0 attribute.
19551         * MonthCalendar.cs: Added some missing 2.0 attributes 
19552         and properties.
19553         
19554 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19555
19556         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
19557
19558 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
19559
19560         * MainMenu.cs: Add the new 2.0 constructor to help out people
19561         using the MainMenu in VS2005.
19562
19563 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19564         
19565         * MdiChildContext.cs: Removed it, no longer used.
19566         * MdiClient.cs: Added missing 2.0 attributes.
19567         
19568 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19569         
19570         * InternalWindowManager.cs: Fix a NullRef with previous 
19571         changes for toolwindows.
19572         
19573 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19574
19575         * Control.cs: 
19576         - Added AfterTopMostControl to allow for certain controls 
19577         to always stay on top when normal controls are brought to 
19578         front.
19579         
19580         * XplatUIWin32.cs: 
19581         - (DrawInversibleRectangle): Get window rectangle from Win32 
19582         in stead of from control, since Win32 doesn't calculate
19583         screen coords correctly from control's Location if it 
19584         have docked siblings.
19585         
19586         * MdiWindowManager.cs:
19587         - Correct the control menu popup location when clicked on
19588         the maximized form icon. (fixes #80223.1)
19589         - Don't show moving rectangle if mouse hasn't moved from
19590         the original clicked point.
19591         - Removed FormGotFocus handler (not used).
19592         - Calculate the control buttons location from the main
19593         window's size and not client size (fixes #79770).
19594         - Form is now closed when the form icon is double-clicked
19595         (fixes #79775). 
19596         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
19597         
19598         * InternalWindowManager.cs:
19599         - Moved some MDI-only methods to MdiWindowManager.
19600         - Removed unused properties and methods.
19601         - Unified method naming for methods handling wm messages.
19602         - Moved all message handling to seperate methods for
19603         each message.
19604         
19605         * ThemeWin32Classic.cs:
19606         - DrawManagedWindowDecorations now draws the title bar 
19607         with a gradient brush.
19608         - Add a CPDrawButtonInternal that allows us to specify
19609         light, normal and dark colors for the buttons (control 
19610         buttons for MDI children were drawn with the same light
19611         color as the background, therefore loosing the 3D effect).
19612         
19613         * SizeGrip.cs:
19614         - Add a CapturedControl property that is used to 
19615         determine the control to resize (defaults to parent). 
19616         Needed for MdiClient, since its SizeGrip's parent is
19617         MdiClient, but the control to resize is the main form.
19618         
19619         * MdiClient.cs:
19620         - Set SizeGrip's CapturedControl to the main form in order
19621         to resize the main form and not the MdiClient.
19622         - Override AfterTopMostControl to leave the scrollbars 
19623         always on top.
19624
19625 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19626
19627         * ListView.cs: fixed ListViewItemCollection AddRange and
19628                         implemented ListViewItemCollection AddRange 2.0 support.
19629
19630 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19631
19632         * ListViewGroup.cs: Add.
19633         * ListViewGroupCollection.cs: Add
19634         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
19635         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
19636                                 stub for ImageKey 2.0 support.
19637
19638 2006-12-14  Mike Kestner  <mkestner@novell.com>
19639
19640         * ListView.cs: add text padding to the autocalculation for columns
19641         of width -2.  Fixes #80207.
19642  
19643 2006-12-14  Mike Kestner  <mkestner@novell.com>
19644
19645         * ListView.cs: add some index guarding for partial row navigation 
19646         logic.  Fixes #80250.
19647
19648 2006-12-14  Mike Kestner  <mkestner@novell.com>
19649
19650         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
19651         are added or inserted to the collection.  Fixes #81099.
19652
19653 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
19654
19655         * MenuAPI.cs: Closes menu when right click out side of popup
19656         it fix problem in ContextMenu and MainMenu. Fixes #80252.
19657
19658 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19659
19660         * ListViewItem.cs: Fix dumb error.
19661
19662         * ListView.cs: Add Find and ContainsKey methods in 
19663         ListViewItemCollection, and also return true for IsReadOnly
19664         and IsFixedSize (changes for 2.0). 
19665
19666 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
19667
19668         * Control.cs: Allow Region to be set to null.
19669
19670 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19671
19672         * MdiWindowManager.cs: Remove unused (commented out) code.
19673         * Form.cs: When the MdiChild is maximized, the form needs 
19674         WM_NCMOUSELEAVE, so request it.
19675         * InternalWindowManager.cs: 
19676         - Added tooltips to control buttons.
19677         - Removed duplicated control button handling code.
19678         - Removed unused (commented out) code.
19679         
19680 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
19681
19682         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
19683         was used because we must set cursor without trigger ChangeCursor event
19684         and without change Cursor control property. Fixes #79963.
19685
19686 2006-12-12  Andreia Gaita  <avidigal@novell.com>
19687         
19688         * Control.cs: Check if Region setter value is null, and ignore
19689
19690 2006-12-12  Jackson Harper  <jackson@ximian.com>
19691
19692         * TextControl.cs: We were almost always drawing one more line then
19693         needed, since the GetLineByPixel will return the last line found
19694         at that pixel. In most cases though, we were invalidating up to
19695         the junction between two lines.
19696         - Improve debug code.
19697
19698 2006-12-12  Chris Toshok  <toshok@ximian.com>
19699
19700         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
19701         and FillReversibleRectangle.
19702
19703         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
19704         and FillReversibleRectangle.
19705
19706         * XplatUIWin32.cs: add stubs which do nothing for
19707         DrawReversibleFrame, DrawReversibleLine, and
19708         FillReversibleRectangle.
19709
19710         * XplatUIOSX.cs: add stubs which raise NIE for
19711         DrawReversibleFrame, DrawReversibleLine, and
19712         FillReversibleRectangle.
19713
19714         * XplatUIX11.cs: add working implementation for
19715         DrawReversibleFrame, DrawReversibleLine, and
19716         FillReversibleRectangle.
19717         
19718         * ControlPaint.cs: implement DrawReversibleFrame,
19719         DrawReversibleLine, and FillReversibleRectangle, by calling into
19720         the appropriate XplatUI method.
19721
19722 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19723
19724         * Form.cs: Make MdiClient have the focus even if it's
19725         not selectable, since it should receive WM_KEY* and WM_MOUSE 
19726         messages. Fixes #79907.
19727         
19728 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19729
19730         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
19731         queried after the window is created.
19732         
19733         * XplatUIX11.cs: Added SendParentNotify to implement 
19734         WM_PARENTNOTIFY logic. Fixes #79965.
19735         
19736         * Control.cs: Added MakeParam.
19737         
19738 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19739
19740         * MdiClient.cs: Resume Layout before setting window
19741         states (fixes #80201).
19742
19743 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19744
19745         * MenuAPI.cs: Deselect a menu item after performing
19746         the click (fixes #80197).
19747
19748 2006-12-11  Jackson Harper  <jackson@ximian.com>
19749
19750         * TextBoxBase.cs: We need to cap this value, since Maximum -
19751         ViewPortHeight can be less than zero.
19752         - Only do selection with the left mouse button.
19753         * TextBox.cs: Don't tell the world that we have a context menu.
19754         * Control.cs: New method so that we can control whether or not the
19755         context menu is visible outside MWF.
19756
19757 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19758
19759         * ToolBarButton.cs: Fix text positon. 
19760
19761 2006-12-11  Miguel de Icaza  <miguel@novell.com>
19762
19763         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
19764
19765         * Control.cs (DoubleBuffered): Add implementation.
19766
19767         * Application.cs (OpenForms): Add.
19768
19769 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19770
19771         * Form.cs: Use opacity instead of Opactiy to determine if we need
19772         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
19773
19774 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19775
19776         * Control.cs: Fix NRE if Control.Site was set to null.
19777
19778 2006-12-11  Chris Toshok  <toshok@ximian.com>
19779
19780         * Control.cs: ControlCollection.Remove should return if the arg is
19781         null, and ControlCollection.SetChildIndex should raise a ANE.
19782
19783 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
19784
19785         * Control.cs: Verify value set for Dock property. Code formatting
19786         updates.
19787
19788 2006-12-11  Jackson Harper  <jackson@ximian.com>
19789
19790         * TextControl.cs: Draw the caret and the selection when a flag is
19791         set on the owner.
19792         * TextBoxBase.cs: We want to draw the caret and the selection for
19793         TextBox but not for TextBoxBase.
19794         - If the window is resized and scrolling is no longer needed (the
19795         whole doc is visible) set the scroll position to zero.
19796         - The default SelectWord (the one TextBox uses) should move the
19797         caret to the end of the word.
19798         - SelectAll moves the caret to the end of the selection.
19799         * TextBox.cs: We don't selectall on focus, we just do it when the
19800         control is created.
19801         
19802 2006-12-11  Mike Kestner  <mkestner@novell.com>
19803
19804         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
19805
19806 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19807
19808         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
19809         2.0 support.
19810         * ListViewItem.cs: Add Name 2.0 property.
19811
19812 2006-12-11  Andreia Gaita  <avidigal@novell.com>
19813
19814         * TabControl.cs: Set visibility on selected or default tab 
19815         when tabcontrol handle is created, so that it's contents
19816         actually show up (duh). Fixes #80193
19817         Don't redraw the control if there is no handle created, as
19818         the selected index might be completely invalid. Added some tests
19819         to check for this.
19820
19821 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19822
19823         * ToolBar.cs: Uses maximun width and height of all buttons as 
19824         button rectangle when ButtonSize specified, it looks strange but
19825         is what happens in Win32. Fixes #80189.
19826
19827 2006-12-11  Jackson Harper  <jackson@ximian.com>
19828
19829         * TextControl.cs: Need to track undo levels ourself, since
19830         compound actions will mess them up.
19831
19832 2006-12-10  Andreia Gaita  <avidigal@novell.com>
19833
19834         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
19835         SelectedIndex value is changed (even if it's not valid).
19836         Reset SelectedIndex to 0 when the handle is created and if
19837         the current index is invalid.
19838         Fixes SelectdeIndex unit tests and #80128
19839
19840 2006-12-08  Chris Toshok  <toshok@ximian.com>
19841
19842         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
19843         calls EndEdit, it needs to be called before we set current_cell to
19844         its new value.  Otherwise, we end up committing the value in the
19845         textbox to the new cell as well.  Fixes bug #80160.
19846
19847 2006-12-08  Chris Toshok  <toshok@ximian.com>
19848
19849         * Form.cs (set_CancelButton): if the button's DialogResult is
19850         None, set it to Cancel.  Fixes bug 80180.
19851
19852 2006-12-08  Jackson Harper  <jackson@ximian.com>
19853
19854         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
19855         to watch ourselves when setting the canvas size and setting the
19856         scrollbar values.
19857
19858 2006-12-08  Chris Toshok  <toshok@ximian.com>
19859
19860         * DataGrid.cs: comment out the two MakeTransparent calls for the
19861         time being so people using trunk (and not 1.2.2) on windows can
19862         actually use the datagrid.  This deals with bug #80151.
19863
19864 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19865
19866         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
19867         Graphics.DrawImage (image, int, int, int, int) overload instead
19868         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
19869         the dpi difference and was blurring images it drew.
19870         [Fixes bug #79960]
19871
19872 2006-12-08  Chris Toshok  <toshok@ximian.com>
19873
19874         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
19875         rowcnt is 0 (such as with an empty datasource), and make sure we
19876         initialize not_usedarea.Y to cells.Y, so we don't draw over the
19877         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
19878
19879 2006-12-08  Chris Toshok  <toshok@ximian.com>
19880
19881         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
19882         grid.
19883
19884 2006-12-08  Chris Toshok  <toshok@ximian.com>
19885
19886         [ Fixes bug #80167 ]
19887         
19888         * ThemeWin32Classic.cs: don't draw the image if the button's flat
19889         style is FlatStyle.System.
19890
19891         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
19892         ButtonBase.flat_style private, and switch uses of it to the public
19893         property.
19894         
19895 2006-12-08  Chris Toshok  <toshok@ximian.com>
19896
19897         [ Fixes bug #80121 ]
19898         
19899         * ThemeWin32Classic.cs: center the caption text in the datagrid
19900         when we draw it.
19901
19902         * DataGrid.cs: lessen the amount we add to the caption height from
19903         6 to 2.  6 was making it huge.
19904
19905 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19906
19907         * UpDownBase: Handle MouseWheel call directly instead of capturing
19908         the inner textbox's OnMouseWheel. Fixes #80166
19909
19910 2006-12-08  Jackson Harper  <jackson@ximian.com>
19911
19912         * TextControl.cs: We need to invalidate the textbox when we empty
19913         it (how had this not been discovered before?)
19914
19915 2006-12-08  Jackson Harper  <jackson@ximian.com>
19916
19917         * TextBoxBase.cs: Reworked the mouse down code so I could get it
19918         to behave like MS, we now ignore the eventargs.Click and just
19919         track state ourself, which we were already doing anyways.
19920         - Constrain the double click handler to the double click size.
19921         
19922 2006-12-08  Chris Toshok  <toshok@ximian.com>
19923
19924         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
19925         direction if that scrollbar isn't shown.  fixes bug #80158.
19926
19927 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19928
19929         * NumericUpDown.cs: Update value on getter. Fixes #79950
19930
19931 2006-12-08  Chris Toshok  <toshok@ximian.com>
19932
19933         * MenuItem.cs: add back in the event cloning code.  I didn't know
19934         how to do it in the face of the EventHandlerList work i'd done
19935         last week.  Fixes bug #80183.
19936
19937 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19938
19939         * Control.cs: Add an invalidate to the BackgroundImage setter.
19940         [Fixes 80184]
19941
19942 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19943
19944         * ToolStrip*: Add some small properties reported by MoMA, fix event
19945         firing and default properties based off of unit tests, and add some
19946         attributes based off of the class status page.
19947
19948 2006-12-07  Jackson Harper  <jackson@ximian.com>
19949
19950         * TextBoxBase.cs: Take HideSelection into account when determining
19951         whether or not to show the selection.
19952         * RichTextBox.cs: After inserting the RTF into the document move
19953         the cursor to the beginning of the document.
19954
19955 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19956
19957         * Control.cs: Remove static ArrayList "controls" which maintained
19958         a reference to every control created.
19959         * Application.cs: Create a static FormCollection to maintain a reference
19960         to every form created.  Use it in places that formerly enumerated through
19961         the controls one looking for forms.
19962         * Form.cs: Add and remove self from above FormCollection.
19963
19964 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
19965
19966         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
19967           not libgdk (though it makes me wonder why I didn't have any
19968           problems)
19969
19970 2006-12-07  Chris Toshok  <toshok@ximian.com>
19971
19972         [ you had to know this was coming after that last commit...]
19973         
19974         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
19975         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
19976         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
19977         XCopyArea).
19978
19979 2006-12-07  Chris Toshok  <toshok@ximian.com>
19980
19981         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
19982         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
19983         all the behavior we need for double buffering.
19984
19985         * XplatUIDriver.cs: implement the 3 double buffer methods using a
19986         client side Bitmap, just like the old Control-based double buffer
19987         code did.  The methods are virtual, so each XplatUI driver
19988         subclass can replace the implementation to use a faster, platform
19989         specific approach.
19990
19991         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
19992         double buffer code, and clean things up a bit in the process.
19993
19994 2006-12-06  Chris Toshok  <toshok@ximian.com>
19995
19996         * Control.cs: reindent WndProc.
19997
19998 2006-12-06  Chris Toshok  <toshok@ximian.com>
19999
20000         [ I wanna be like BenM when I grow up ]
20001         
20002         * Hwnd.cs: create a single static Graphics object on the static
20003         Bitmap we create.  use this for our text measurements.
20004
20005         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
20006         This was causing us to allocate a backbuffer for every control,
20007         even when it wasn't flagged as double buffered.  Instead use the
20008         single graphics instance.  This might have implications for
20009         multithreaded applications.  If we run into problems we can switch
20010         to creating 1 Graphics per control, on the static Hwnd bitmap.
20011
20012         this change nets us a 7M savings in private dirty mappings when
20013         running FormsTest.exe.
20014
20015 2006-12-06  Chris Toshok  <toshok@ximian.com>
20016
20017         * ListView.cs: the BackgroundImage override is just to set
20018         attributes.  chain up to base.BackgroundImage.
20019
20020         * RichTextBox.cs: same.
20021
20022         * ToolBar.cs: same, but we need to also redraw the toolbar when it
20023         changes, so instead a handler for BackgroundImageChanged.
20024         
20025         * Control.cs: make background_image private.
20026
20027 2006-12-06  Chris Toshok  <toshok@ximian.com>
20028
20029         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
20030         sure we even need this assignment, but roll with it for now.
20031
20032         * Control.cs: make the cursor field private.
20033
20034 2006-12-06  Chris Toshok  <toshok@ximian.com>
20035
20036         * Form.cs: we don't need to explicitly set ImeMode to
20037         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
20038         behavior in the face of ImeMode.Inherit.
20039
20040         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
20041         change the ctor's assignment to use ImeMode instead of ime_mode.
20042
20043         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
20044         ImeModeInherit.  Only check for the parent's imemode (and return
20045         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
20046         This fixes the button unit test, which sets both ImeMode and
20047         DefaultImeMode to ImeMode.Disable.
20048
20049         also make the ime_mode field private.
20050
20051 2006-12-06  Chris Toshok  <toshok@ximian.com>
20052
20053         * Control.cs: make control_style private.
20054
20055         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
20056         setting the styles to true, then setting them to false instead of
20057         reverting to their previous values.
20058
20059         also, call SetStyle on the scrollbars instead of using
20060         control_style directly.
20061
20062 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
20063
20064         * FormCollection.cs: Implement. [2.0]
20065
20066 2006-12-06  Chris Toshok  <toshok@ximian.com>
20067
20068         * Control.cs: make tab_stop private.
20069
20070         * Label.cs: set TabStop, not tab_stop.  reformat some event
20071         add/remove methods to make them more compact.
20072
20073 2006-12-06  Chris Toshok  <toshok@ximian.com>
20074
20075         * RadioButton.cs: fix TabStop handling.
20076
20077 2006-12-06  Chris Toshok  <toshok@ximian.com>
20078
20079         * TextBox.cs: remove the explicit assignments to has_focus.
20080         Control does that.
20081
20082         * ButtonBase.cs: remove the assignment to has_focus.  Control will
20083         manage that.
20084         
20085 2006-12-06  Chris Toshok  <toshok@ximian.com>
20086
20087         * ButtonBase.cs: remove all uses of is_enabled from this code.
20088         it's always true when any of the code containing the checks is
20089         executed.
20090
20091 2006-12-06  Chris Toshok  <toshok@ximian.com>
20092
20093         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
20094         with different semantics (some are present in both 1.1 and 2.0
20095         profiles) so that we match MS's behavior in our unit tests.
20096
20097 2006-12-06  Jackson Harper  <jackson@ximian.com>
20098
20099         * TextControl.cs: Make this operation undoable.
20100         * TextBoxBase.cs: Factor the border width into the preferred
20101         height.
20102         - implement Modified as per the spec.
20103
20104 2006-12-06  Chris Toshok  <toshok@ximian.com>
20105
20106         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
20107
20108 2006-12-06  Chris Toshok  <toshok@ximian.com>
20109
20110         * Control.cs: make right_to_left and context_menu fields private.
20111
20112 2006-12-06  Chris Toshok  <toshok@ximian.com>
20113
20114         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
20115         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
20116         Control.child_controls private.  switch all uses over to
20117         Control.Controls.
20118
20119 2006-12-06  Chris Toshok  <toshok@ximian.com>
20120
20121         * System.Windows.Forms/GroupBox.cs,
20122         System.Windows.Forms/AccessibleObject.cs,
20123         System.Windows.Forms/ErrorProvider.cs,
20124         System.Windows.Forms/Control.cs,
20125         System.Windows.Forms/UpDownBase.cs,
20126         System.Windows.Forms/ScrollBar.cs,
20127         System.Windows.Forms/DateTimePicker.cs,
20128         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
20129         System.Windows.Forms/ToolTip.cs,
20130         System.Windows.Forms/RadioButton.cs,
20131         System.Windows.Forms/LinkLabel.cs,
20132         System.Windows.Forms/Splitter.cs,
20133         System.Windows.Forms/TextBoxBase.cs,
20134         System.Windows.Forms/ToolStripTextBox.cs,
20135         System.Windows.Forms/ContainerControl.cs,
20136         System.Windows.Forms/ThemeWin32Classic.cs,
20137         System.Windows.Forms/SizeGrip.cs,
20138         System.Windows.Forms/ToolStripDropDown.cs,
20139         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
20140         private.  switch all uses over to Control.Parent.
20141
20142 2006-12-06  Chris Toshok  <toshok@ximian.com>
20143
20144         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
20145         Control does this before calling emitting these events.
20146
20147         * TabControl.cs: same.
20148
20149         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
20150         Control.client_rect.
20151
20152         * ButtonBase.cs: use the ClientSize property instead of the
20153         client_size field.
20154
20155         * ScrollableControl.cs: same.
20156
20157         * Control.cs: another pass at making properties private.  also,
20158         move the initialization of tab_stop to the ctor.
20159
20160 2006-12-05  Andreia Gaita <avidigal@novell.com>
20161
20162         * TabControl.cs: Let the selected index be set freely if the 
20163         control handle is not yet created.
20164
20165 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
20166
20167         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
20168         internal until I can rewrite DefaultLayout.
20169         * ToolStrip.cs: Fix build error and some general cleaning.
20170         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
20171         Fix build errors caused by making some of Control's fields private.
20172
20173 2006-12-05  Jackson Harper  <jackson@ximian.com>
20174
20175         * TextControl.cs: Redo Insert a little so that it use IndexOf
20176         instead of Split, this prevents it from messing up on things like
20177         \n\n\n. Also more effecient since the split array doesn't need to
20178         be created.
20179         * TextBoxBase.cs: AppendText doesnt handle multiline and non
20180         multiline text differently, this is the first of many fixes that
20181         will make multiline/non-multiline the same thing as far as the
20182         TextBoxBase is concerned.
20183         - Don't split the text and insert lines, this can lose some line
20184         endings (like is the last line a soft or hard break). Instead use
20185         the new Insert.
20186         - Fix an off by one when combining all the lines in the Text
20187         getter.
20188         - Remove separate multiline handling from the Text getter/setter.
20189
20190 2006-12-05  Chris Toshok  <toshok@ximian.com>
20191
20192         * ButtonBase.cs: a few changes:
20193
20194         - don't reinitialize internal Control fields in the ctor when they
20195         have the same values as Control sets them.
20196
20197         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
20198         this before calling those methods.
20199
20200         - we don't need to call Refresh for anything.  use Invalidate
20201         instead.
20202
20203         - OnEnabledChanged doesn't need to redraw at all - Control.cs
20204         calls Refresh in its OnEnabledChanged.
20205         
20206         - several of the events we were registered for in the ctor to
20207         redraw ourselves already include calls to Invalidate in the
20208         property setters that raise the events.  remove the extra
20209         invalidation.
20210
20211         - reformat a switch statement that was 83274658 columns wide.
20212         
20213 2006-12-05  Mike Kestner  <mkestner@novell.com>
20214
20215         * ComboBox.cs: fix a unit test regression from a TextBox
20216         SelectionLength return of -1 when there's no selection.  
20217
20218 2006-12-05  Chris Toshok  <toshok@ximian.com>
20219
20220         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
20221         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
20222         cleaning up some of the internal Control fields being used by
20223         subclasses.
20224
20225 2006-12-05  Mike Kestner  <mkestner@novell.com>
20226
20227         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
20228         listbox after AddImplicit calls since it defaults to hidden. Add a 
20229         hack to preserve requested heights across DropDownStyle changes.
20230
20231 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
20232
20233         * PropertyGrid.cs: Hide FindFirstItem method from public API.
20234
20235 2006-12-05  Chris Toshok  <toshok@ximian.com>
20236
20237         * DataGridView.cs: fix compiler warnings.
20238
20239         * PrintControllerWithStatusDialog.cs: same.
20240
20241         * ToolBar.cs: same.
20242
20243         * FolderBrowserDialog.cs: same.
20244
20245         * Splitter.cs: same.
20246
20247         * DataGridViewComboBoxCell.cs: same.
20248
20249         * XplatUIWin32.cs: same.
20250
20251         * PictureBox.cs: same.
20252
20253         * Win32DnD.cs: same.
20254
20255         * PageSetupDialog.cs: same.
20256
20257         * FileDialog.cs: same.
20258
20259         * PrintDialog.cs: same.
20260
20261         * DataGridTextBoxColumn.cs: same.
20262
20263         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
20264
20265 2006-12-05  Chris Toshok  <toshok@ximian.com>
20266
20267         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
20268         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
20269         System.ComponentModel.EventHandlerList work.
20270
20271 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
20272
20273         * DrawTreeNodeEventArgs.cs: Added.
20274
20275 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20276         
20277         * InternalWindowManager.cs: Remove an unused field.
20278         
20279 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20280
20281         * InternalWindowManager.cs:
20282         - Save the point where the title bar is clicked.
20283         
20284         * MdiWindowManager.cs:
20285         - Only allow moving of the window as long as the 
20286         clicked point on the title bar does not get out of
20287         MdiClient's rectangle. Fixes #79982.
20288         
20289         * MdiClient.cs:
20290         - Added Horizontal/VerticalScrollbarVisible.
20291         - Simplified the scrollbar sizing algorithm.
20292         - Cache the difference in scrolled value in
20293         H/VBarValueChanged and move the calculation out
20294         of the for loop.
20295
20296 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20297
20298         * Control.cs: Make the Console.WriteLine in WndProc 
20299         write more info.
20300
20301 2006-12-05  Chris Toshok  <toshok@ximian.com>
20302
20303         * ToolStripManager.cs, ToolStripButton.cs,
20304         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
20305         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
20306         ToolStripSplitButton.cs, ToolStripSeparator.cs,
20307         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
20308         ToolStripProgressBar.cs, ToolStripContainer.cs,
20309         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
20310         to using System.ComponentModel.EventHandlerList.
20311
20312 2006-12-04  Chris Toshok  <toshok@ximian.com>
20313
20314         * LinkLabel.cs: fix up compiler warnings.
20315
20316         * TableLayoutSettings.cs: same.
20317
20318         * TreeView.cs: same.
20319
20320         * ToolBar.cs: same.
20321
20322         * TabControl.cs: same.
20323
20324         * RichTextBox.cs: same.
20325
20326         * ListViewItem.cs: same.
20327
20328         * PropertyGrid.cs: same.
20329
20330         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
20331
20332         * ToolTip.cs same.
20333
20334         * TextRenderer.cs: fix up compiler warnings.
20335
20336         * Label.cs: same.
20337
20338         * Form.cs: corcompare fixes.
20339
20340         * PictureBox.cs: fix up compiler warnings.
20341
20342         * ImageListStreamer.cs: same.
20343
20344         * TrackBar.cs: corcompare fix.
20345
20346         * Control.cs: fix up compiler warnings.
20347
20348         * SplitterPanel.cs: same.
20349
20350         * NumericTextBox.cs: same.
20351
20352         * ImageList.cs: same.
20353
20354         * StatusStrip.cs: same.
20355
20356         * ProgressBar.cs: corcompare fix.
20357
20358         * ToolStripButton.cs: fix up compiler warnings.
20359
20360         * ToolStripStatusLabel.cs: same.
20361
20362         * ToolStripSplitButton.cs: same.
20363
20364         * ToolStripSeparator.cs: same.
20365
20366         * ToolStripProgressBar.cs: same.
20367
20368         * ToolStripDropDownMenu.cs: same
20369
20370         * ToolStripDropDown.cs: same.
20371
20372         * ToolStripDropDownButton.cs: same.
20373
20374         * ToolStrip.cs: same.
20375
20376         * ToolStripControlHost.cs: same.
20377
20378         * ToolStripContentPanel.cs: same.
20379
20380         * ToolStripDropDown.cs: same.
20381
20382         * ToolStripContainer.cs: same.
20383
20384         * ToolStripPanel.cs: same, and add "new" where we need it to work
20385         with the new ArrangedElementCollection.
20386
20387         * ToolStripItemCollection.cs: add "new" where we need it to work
20388         with the new ArrangedElementCollection.
20389
20390 2006-12-04  Andreia Gaita <avidigal@novell.com>
20391
20392         * TabControl.cs: Fix default tab selection to after TabControl
20393         gets focus and not before. Fixes #80128
20394
20395 2006-12-04  Chris Toshok  <toshok@ximian.com>
20396
20397         * DataGridTableStyle.cs: remove the gross calling of
20398         datagrid.Refresh from here.  It's a broken idea and it doesn't
20399         work anyway.
20400
20401         * DataGrid.cs: instead, just register/unregister from the
20402         DataGridTableStyle events in CurrentTableStyle.  we play it
20403         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
20404         even though some would most likely not require it.  Fixes bug
20405         #80115 (and one portion of #80117 as a side effect).
20406
20407 2006-12-04  Chris Toshok  <toshok@ximian.com>
20408
20409         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
20410         so the textbox (if any) goes away.  Fixes bug #80117.
20411
20412 2006-12-04  Chris Toshok  <toshok@ximian.com>
20413
20414         * DataGridColumnStyle.cs: set the column's readonly property
20415         initially based on the property descriptor's IsReadOnly.  Fixes
20416         bug #80044.
20417
20418 2006-12-04  Chris Toshok  <toshok@ximian.com>
20419
20420         * ComboBox.cs: wrap the dropdown style changing work in
20421         SuspendLayout/ResumeLayout.  Fixes bug #79968.
20422
20423 2006-12-04  Jackson Harper  <jackson@ximian.com>
20424
20425         * TextBoxBase.cs: Fix off by one, since these are one-based.
20426         * TextBox.cs: Select all the text when we get focus.  The TextBox
20427         does this but the RTB does not.
20428
20429 2006-12-04  Chris Toshok  <toshok@ximian.com>
20430
20431         * DataGridTextBoxColumn.cs: remove some spew.
20432
20433         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
20434         but some part of me is saying "it shouldn't be here.."  At any
20435         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
20436         setting the value.
20437
20438 2006-12-04  Chris Toshok  <toshok@ximian.com>
20439
20440         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
20441         to reassign the propertydescriptor.
20442
20443 2006-12-04  Jackson Harper  <jackson@ximian.com>
20444
20445         * TextBoxBase.cs:
20446         * TextControl.cs: Remove some unused variables.  Maybe this will
20447         patch things up between mike and I.
20448         - don't split lines less then one char wide, if the viewport is
20449         that small text won't be visible anyways.
20450         
20451 2006-12-04  Jackson Harper  <jackson@ximian.com>
20452
20453         * TextBoxBase.cs: Default selection length is -1, need to do some
20454         more testing on windows to see when this is used for the property.
20455         - Redid the Lines [] property to that we properly remove soft line
20456         breaks
20457         - added support for preserving carriage returns
20458         -  CanUndo is not a variable like 'is undo enabled' it just returns
20459         true if there is undo operations available.
20460         - AppendText doesn't need to grab the last tag itself anymore,
20461         this happens automatically when we move the cursor.
20462         * TextControl.cs: Add CompoundActions to the undo class. This
20463         allows combining the other operations into one big option.  ie a
20464         paste will combine { delete old, insert new, move cursor }
20465         - Add InsertString undo operation
20466         - New method for deleting multiline text
20467         - Add carriage returns to lines. So we can preserve carriage
20468         returns when text is 'roundtripped'
20469
20470 2006-12-04  Chris Toshok  <toshok@ximian.com>
20471
20472         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
20473         minimum 0.  Fixes the scrollbar exception in bug #80136.
20474
20475 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20476
20477         * MdiClient.cs: 
20478         * MdiWindowManager: Removed unused fields and methods.
20479         
20480 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20481         
20482         * StatusBar.cs: Update all panels when a AutoSize=Contents
20483         panel needs updating.
20484         
20485         * StatusBarPanel.cs: Remove twidth and only use initialize.
20486         Fixes #80031.
20487                 
20488 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20489
20490         * Form.cs: When a form's MdiParent is set add it directly
20491         on top of the z-order in stead of relying on MdiClient's
20492         ActivateChild to do it. Fixes #80135.
20493         
20494         * MdiClient.cs: 
20495         - Remove original_order, mdi_child_list is already doing
20496         the same thing.
20497         - Create mdi_child_list on construction in
20498         stead of first use (avoids a few null checks).
20499
20500         * MenuItem.cs: Use an already existing list of mdi children
20501         to get the correct order of children and remove the other
20502         redundant list.
20503
20504 2006-12-04  Chris Toshok  <toshok@ximian.com>
20505
20506         * PropertyGridView.cs: cached_splitter_location is only used in
20507         !DOUBLEBUFFER code.
20508
20509         * PropertyGrid.cs: implement the ComComponentNameChanged event
20510         using Events, hoping that would fix the warning.  Looks like a
20511         compiler bug instead (#80144).
20512
20513         * PropertyManager.cs: remove unused method.
20514
20515 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
20516
20517         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
20518         include parentesis to fix expression evaluation. Fixes #79634.
20519
20520 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
20521         
20522         * MenuAPI.cs:
20523         - Changes to fix behavior in Menu control, some reported in #80097
20524         and other detected during behavior refactory like a select event
20525         problems.
20526         - Remove unneded "if's" conditions.
20527         - Created an internal to flag when popup is active in control, we need 
20528         it because in .NET you can have menu active but without popup active
20529         when you active menu using popup without visible items.
20530         - Mimic win32 behavior for Select and Popup events.  
20531         - Dont open popup menu when you dont have visible subitems.
20532         - Do nothing when click on disabled menu item.
20533         - Some small changes to follow the coding style guidelines.
20534         - Unselect menu only when another control gives focus. Fixes #80097.
20535         - Remove unused code.
20536         
20537         * MenuItem.cs: internal VisibleItems method to check if menu
20538         theres visible subitems, it will be usefull to fix some 
20539         behavior in Menu control.
20540         
20541 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
20542         
20543         * Timer.cs: Tag property for 2.0 profile.
20544         
20545 2006-12-01  Chris Toshok  <toshok@ximian.com>
20546
20547         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
20548         
20549         * Win32DnD.cs: comment out some unused fields.
20550
20551         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
20552         some unused properties/methods.
20553
20554         * XplatUIX11.cs: fix MousePosition so we override the base class's
20555         property instead of conflicting with it.
20556
20557         * PictureBox.cs: comment out some unused fields
20558
20559         * OSXStructs.cs: make some struct fields public.
20560
20561         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
20562         MousePosition so we override the base class's property instead of
20563         conflicting with it.
20564
20565         * X11Dnd.cs: comment out some unused fields
20566
20567         * X11DesktopColors.cs: fix some struct field visibility to quiet
20568         the compiler.
20569
20570         * X11Dnd.cs: remove some debug code.
20571
20572         * ThemeClearlooks.cs: comment out unused field.
20573
20574         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
20575
20576         * ThemeGtk.cs: comment out some unused pinvokes.
20577
20578         * Timer.cs: remove some unused fields.
20579
20580         * ThemeClearlooks.cs: comment out unused field.
20581
20582         * UpDownBase.cs: comment out unused field.
20583
20584         * DataObject.cs: comment out unused field.
20585
20586         * DataGridBoolColumn.cs: reomve unused field.
20587
20588         * DataGrid.cs: remove unused field.
20589
20590         * Cursor.cs: remove old ToBitmap code.
20591
20592         * ControlPaint.cs: remove unused method.
20593
20594         * ScrollBar.cs: remove unused fields.
20595
20596         * ComboBox.cs: remove unused field, and chain up to
20597         AccessibleObject ctor.
20598
20599         * ListBox.cs: remove unused field.
20600
20601         * ButtonBase.cs: wrap a couple fields in NET_2_0.
20602
20603         * GridEntry.cs: remove unused fields.
20604
20605         * Binding.cs: remove unused fields.
20606
20607         * AxHost.cs: remove unused method.
20608
20609         * ContainerControl.cs: remove unused field.
20610
20611         * ScrollableControl.cs: remove unused fields.
20612
20613 2006-12-01  Chris Toshok  <toshok@ximian.com>
20614
20615         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
20616         the Where/WhereString stuff.  it's easy enough to CWL
20617         Environment.StackTrace.
20618
20619         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
20620         unused private fields.
20621
20622 2006-12-01  Jackson Harper  <jackson@ximian.com>
20623
20624         * TextControl.cs: Do not update the view while inserting multiline
20625         text. If we update the view we might wrap lines, before entering
20626         the new lines, which causes the new line insertion calculations to
20627         be totally fubared.
20628         - Remove an old TODO
20629         - Make debug output a little nicer
20630         
20631 2006-12-01  Chris Toshok  <toshok@ximian.com>
20632
20633         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
20634
20635 2006-12-01  Chris Toshok  <toshok@ximian.com>
20636
20637         [ fix the majority of the CS0108 warnings we've been suppressing ]
20638         
20639         * TreeView.cs: mark BackgroundImageChanged as 'new'.
20640
20641         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
20642         to "LayoutToolBar" to quiet mcs.
20643         
20644         * TabControl.cs: mark our ControlCollection class as 'new'.
20645
20646         * TextBoxBase.cs: mark some events as 'new'.
20647
20648         * Splitter.cs: TabStop is 'new'.
20649
20650         * ControlBindingsCollection.cs: mark a few methods as new since
20651         they change the visibility from protected to public.
20652
20653         * RadioButton.cs: DoubleClick -> base class, and remove unused
20654         HaveDoubleClick.
20655
20656         * MonthCalendar.cs: ImeMode property -> base class, and mark many
20657         events as new.
20658
20659         * NumericUpDown.cs: TextChanged -> base class.
20660
20661         * CheckedListBox.cs: mark our ObjectCollection class as new to
20662         quiet mcs.
20663
20664         * FolderBrowserDialog.cs: make HelpRequest event new and have it
20665         muck with the base class.
20666
20667         * StatusBar.cs: fix some mcs warnings about Update being the same
20668         name as a base class method.
20669
20670         * RichTextBox.cs: mark some events as new, and make them do things
20671         to the base class impl.
20672
20673         * UserControl.cs: mark TextChanged as new, and have it manipulate
20674         base.TextChanged.
20675
20676         * UpDownBase.cs: mark some things new.
20677
20678         * CheckBox.cs: mark DoubleClick "new", and add some text about
20679         what we need to look at.
20680
20681         * Panel.cs: make the events "new", and manipulate the base
20682         version.  these are just here for attributes.
20683
20684         * AccessibleObject.cs: make owner private.
20685
20686         * Control.cs: deal with AccessibleObject.owner being private.
20687         cache our own copy if we need it.
20688
20689         * Button.cs: add "new" to the DoubleClickEvent.
20690
20691         * ListBox.cs: no need to track our own has_focus here.  let
20692         Control.has_focus do it for us.  Also some other work to clear up
20693         warnings about not overriding base class methods of the same name.
20694         
20695         * ComboBox.cs: clear up some warnings about not override base
20696         class methods of the same name.
20697
20698 2006-12-01  Chris Toshok  <toshok@ximian.com>
20699
20700         * Form.cs: flag a few things as "new" to quiet some of the mcs
20701         warnings.
20702
20703         * AxHost.cs: same.
20704
20705         * PrintPreviewDialog.cs: same.
20706
20707         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
20708         now DGV isn't so horrible on the class status page.  also, move
20709         all events to using System.ComponentModel.EventHandlerList.  my
20710         wrists hurt.
20711
20712 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20713
20714         * MdiWindowManager.cs:
20715         - Set form to active mdi child if shown,
20716         and update the active mdi child to the next 
20717         remaining child in the z-order if the form is hidden.
20718
20719         * Form.cs: 
20720         - Track if the form has been visible and if its 
20721         visibility is beeing changed, so that the MdiClient
20722         can properly decide the ActiveMdiChild. The MdiClient 
20723         cannot track this since the form can change visibility 
20724         before MdiClient is created.
20725
20726         * MdiClient.cs:
20727         - Don't activate anything of the parent form is changing
20728         its visibility.
20729         - Rework ActiveMdiChild to only return visible mdi 
20730         children and take into account several other corner 
20731         cases.
20732
20733 2006-12-01  Chris Toshok  <toshok@ximian.com>
20734
20735         * IBindableComponent.cs: new 2.0 interface.
20736
20737 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
20738
20739         * DataGrid.cs: Font for caption area is bold by default.
20740
20741 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
20742
20743         * Menu.cs: Tag property for 2.0.
20744         
20745 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
20746
20747         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
20748         
20749 2006-12-01  Chris Toshok  <toshok@ximian.com>
20750
20751         * TreeView.cs: doh, the Begin* events should be
20752         TreeViewCancelEventHandler.
20753
20754 2006-12-01  Chris Toshok  <toshok@ximian.com>
20755
20756         * Form.cs: Form.ControlCollection already stores off the
20757         form_owner field.  don't access the base class's internal "owner"
20758         field.
20759
20760         * Control.cs: make all the fields in Control.ControlCollection
20761         private.  there's no need for any internal fields here.
20762
20763 2006-12-01  Chris Toshok  <toshok@ximian.com>
20764
20765         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
20766         OnHandleCreated.  Fixes bug #80109.
20767
20768 2006-12-01  Chris Toshok  <toshok@ximian.com>
20769
20770         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
20771         SplitContainer.cs, Control.cs, StatusStrip.cs,
20772         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
20773         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
20774         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
20775         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
20776         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
20777         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
20778         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
20779         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
20780         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
20781         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
20782
20783         do most of the work to convert our code over to use
20784         System.ComponentModel.Component.Events for
20785         adding/removing/dispatching events.
20786
20787
20788 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20789
20790         * DataGridView.cs: Fix an ArgumentNullException reported 
20791         twice today in IRC.
20792
20793 2006-11-30  Mike Kestner  <mkestner@novell.com>
20794
20795         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
20796         grabbed listbox.  Fixes #80036 and #80101.
20797
20798 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20799
20800         * Message.cs: Changed ToString() to match MS.
20801         
20802 2006-11-30  Jackson Harper  <jackson@ximian.com>
20803
20804         * TextBoxBase.cs: You can still change the selected text on a read
20805         only textbox.
20806         * TextControl.cs: Lower magic number for wrap calculations. This
20807         lets text get closer to the right (far) edge.
20808
20809 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20810
20811         * Control.cs: Tweak 2.0 layout properties.
20812         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
20813         * TextRenderer.cs: Add a new overload.
20814         * ToolStrip*: Huge amount of changes and new features.
20815
20816 2006-11-30  Mike Kestner  <mkestner@novell.com>
20817
20818         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
20819         scroll range correct.  Fixes #79994.
20820
20821 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20822
20823         * MdiWindowManager.cs: Update main form's text when
20824         a form is closed. (fixes #80038)
20825         
20826 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
20827
20828         * ToolBar.cs:
20829         - Fix an regression in ButtonSize.
20830         - Get ImeMode default value change to "Disable".
20831         - Get ShowTooltips default value change to true, default value is 
20832         "false" but after make a test in .NET we get "true" result as default.
20833         
20834 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
20835
20836         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
20837
20838 2006-11-29  Chris Toshok  <toshok@ximian.com>
20839
20840         * XplatUIWin32.cs (GetWindowTransparency): check return value of
20841         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
20842         SetWindowTransparency hasn't been called.
20843
20844 2006-11-29  Chris Toshok  <toshok@ximian.com>
20845
20846         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
20847         if it's supported.
20848         (set_AllowTransparency): reorder things a little so that the
20849         WS_EX_LAYERED style is removed properly.
20850
20851 2006-11-29  Chris Toshok  <toshok@ximian.com>
20852
20853         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
20854         
20855         * Form.cs: only call the XplatUI transparency method (get/set) if
20856         SupportsTransparency says it's supported. Otherwise fallback to
20857         doing nothing (in the set case) or returning the instance field we
20858         cache (in the get case).
20859
20860         * XplatUIStructs.cs: add TransparencySupport flag enum.
20861         
20862         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
20863         change to SupportsTransparency.
20864
20865         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
20866         TransparencySupport.None from SupportsTransparency.
20867
20868         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
20869         TransparencySupport.Set from SupportsTransparency.
20870
20871         * XplatUIWin32.cs: implement GetWindowTransparency calling
20872         GetLayeredWindowAttributes, and implement SupportsTransparency by
20873         checking whether or not both
20874         GetWindowTransparency/SetWindowTransparency are available
20875         entrypoints.  We need to do this since SetWindowTransparency is
20876         available as of win2k, but GetWindowTransparency requires winxp.
20877         yay win32 api.
20878
20879         * XplatUI.cs: Add GetWindowTransparency, and change
20880         SupportsTransparency to allow for either/both Get/Set.
20881
20882 2006-11-29  Chris Toshok  <toshok@ximian.com>
20883
20884         * DataGrid.cs: keep from going into an infinite loop redrawing a
20885         datagrid that has no datasource.  Fixes bug #80033.
20886
20887 2006-11-29  Chris Toshok  <toshok@ximian.com>
20888
20889         * MenuItem.cs: fix the NRE when we assign text (and therefore call
20890         Invalidate) before the mainmenu has been assigned to a control.
20891
20892 2006-11-29  Chris Toshok  <toshok@ximian.com>
20893
20894         * DataGrid.cs: detect when we should be double the double click
20895         row/column autosize stuff, although that codepath has yet to be
20896         written.  part of the work for bug #79891.
20897
20898 2006-11-29  Chris Toshok  <toshok@ximian.com>
20899
20900         * Binding.cs (SetControl): fix unit test.
20901
20902 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20903
20904         * PageSetupDialog.cs: Validate the margins and set them in
20905         PageSettings. 
20906         * NumericTextBox.cs: New class to mimic the behavior of the
20907         textboxes used in the printing dialogs.
20908
20909 2006-11-29  Andreia Gaita  <avidigal@novell.com>
20910         
20911         * Form.cs: Revert previous change (remove call UpdateBounds
20912         from form constructor), because it messes with the handle creation
20913         order, and that one needs lots and lots of love.
20914         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
20915         for valid printer and throw InvalidPrinterException if document
20916         is set but printer not valid), adding a MonoTODO. Once 
20917         handle creation is done properly, we can put this back in.
20918
20919 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20920
20921         * MenuItem.cs: Create a invalidate method for menu item, to be
20922         calling from set text, it make text changes to imadiate update
20923         on screen. Fixes #80013. 
20924         
20925 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20926
20927         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
20928         fixes bug #80070 and some other problem on toolbar buttons
20929         layout.
20930
20931 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20932
20933         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
20934         with dotted brush.      Fixes #79564
20935         
20936 2006-11-28  Andreia Gaita  <avidigal@novell.com>
20937
20938         * Form.cs: Removed call to UpdateBounds on Form
20939         constructor, it was causing a call to CreateHandle
20940         before it was supposed to.
20941         * PrintControllerWithStatusDialog: Applied patch
20942         by Chris Toshok to hide controller when there are
20943         no printers available.
20944         PrintDialog.cs: initialize printer settings to 
20945         null - correct DefaultValues test #5
20946         * PrintPreviewControl.cs: Move PrintController
20947         initialization to GeneratePreview
20948         * PrintPreviewDialog.cs: 
20949         - Remove Preview generation     from Document_set(). It is 
20950         called on OnPaint
20951         - Throw InvalidPrinterException on CreateHandle if
20952         a Document is set but there are no printers or 
20953         printer is not valid.
20954         * ThemeWin32Classic: don't paint PrintPreviewControl
20955         if there is nothing to paint    
20956
20957 2006-11-28  Miguel de Icaza  <miguel@novell.com>
20958
20959         * Form.cs: Add another popular method.
20960
20961         * TabPage.cs: ditto.
20962
20963 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20964
20965         * MenuItem.cs: Fixed a warning.
20966         * InternalWindowManager: Fixed a warning.
20967
20968 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20969
20970         * MenuItem.cs:
20971         - When cloning a menu also clone MdiList and clone the 
20972           window menu items properly (as the forms and menuitems
20973           are kept in an internal hashtable, these need updating 
20974           as well)
20975         - Rewrote the window menu code, menu items are added in the
20976           order the forms were added to their parent, and they are
20977           updated every time the window menu is shown (before the
20978           list was only generated once, in the current order of the
20979           forms, and would never be updated). A checkmark is shown
20980           next to the item corresponding to the active mdi child.
20981
20982 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20983
20984         * XplatUIStructs.cs: 
20985         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
20986         
20987         * XplatUIWin32.cs: 
20988         - Added TME_NONCLIENT to TMEFlags.
20989         - Handles WM_NCMOUSEMOVE in GetMessage to 
20990           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
20991
20992         * MdiWindowManager:
20993         - Now merges mdi child menu to parent menu when maximized.
20994         - Recalculate NC areas of both mdi child and mdi parent. 
20995           Fixes #79757 (4).
20996           on window state and size changes.Fixes #79844 (3).
20997         - Handle WM_NCCALCSIZE to properly calculate borders.
20998
20999         * Form.cs:
21000         - Add/remove to the mdi containers list of mdi children 
21001           in the order they are added.
21002         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
21003           to the maximized mdi child.
21004         
21005         * InternalWindowManager.cs:
21006         - Only execute a click on the control buttons on the mouse up,
21007           not on the mouse down. Show the state of the button 
21008           (was only showing Normal state, never Pressed state). The
21009           pressed button now follows the mouse (if you click the Close 
21010           button and move the mouse over the Maximize button, the 
21011           Maximize button will be shown as pressed). Since Win32 does
21012           not generate WM_NCLBUTTONUP if you release the button outside
21013           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
21014           it as a mouse up.
21015         
21016         * ThemeWin32Classic.cs:
21017         - Draw a missing border around mdi child forms. Fixes #79844 (2).
21018
21019         * MdiClient.cs:
21020         - Added a list of forms which contains the order the forms are
21021           added to the mdi parent.
21022         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
21023         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
21024         - If the active form changes set the scrollbars to the top
21025           of the Z order, otherwise the form could hide them.
21026         - Scrollbars are now sized according to ClientSize, not 
21027           to Size, and they take into account the other scrollbar
21028           to determine maximum.
21029         
21030 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
21031         
21032         * XplatUI.cs:
21033         * XplatUIDriver.cs:
21034         * XplatUIX11.cs:
21035         * XplatUIWin32.cs:
21036         * XplatUIOSX.cs:
21037         - Added RequestAdditionalWM_NCMessages for windows to 
21038           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
21039           Currently only implemented in XplatUIWin32.
21040
21041 2006-11-27  Chris Toshok  <toshok@ximian.com>
21042
21043         * Hwnd.cs: only add the hwnd to the windows hash in
21044         set_WholeWindow and set_ClientWindow if whole_window/client_window
21045         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
21046
21047 2006-11-27  Mike Kestner  <mkestner@novell.com>
21048
21049         * ComboBox.cs: remove redundant OnDropDown call.  It is called
21050         from the ComboListBox.ShowWindow code. Fixes #79969.
21051
21052 2006-11-27  Chris Toshok  <toshok@ximian.com>
21053
21054         * Hwnd.cs: remove the setters for ExposePending and
21055         NCExposePending - noone uses them.
21056
21057 2006-11-27  Jackson Harper  <jackson@ximian.com>
21058
21059         * TextControl.cs: new param for ReplaceSelection which determines
21060         whether we select the new selection, or set the cursor to the end
21061         of the new selection.
21062         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
21063         pasting, select the new text.
21064         * RichTextBox.cs: Use new param for ReplaceSelection.
21065
21066 2006-11-27  Jackson Harper  <jackson@ximian.com>
21067
21068         * TextBoxBase.cs: Set the selection to the caret after the caret
21069         is moved, otherwise they get out of sync.
21070
21071 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
21072
21073         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
21074         it fixes #80015
21075
21076 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
21077
21078         * ThemeWin32Classic.cs: 
21079         - Fix toolbar drop down arrow position.
21080         - Fix drop down appearance when ToolBar.Appearance is normal,
21081         it fixes #80018.
21082         
21083 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
21084
21085         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
21086         * Control.cs: Same.
21087         * UpDownBase.cs: Same.
21088         * ButtonBase.cs: Same.
21089         * ScrollBar.cs: Same.
21090         * TrackBar.cs: Same.
21091         * PictureBox.cs: Same.
21092         * UserControl.cs: Same.
21093         * Label.cs: Same.
21094         * ListControl.cs: Same.
21095         * TextBoxBase.cs: Same.
21096         * ListView.cs: Same.
21097         * RichTextBox.cs: Same.
21098         * TreeView.cs: Same.
21099
21100 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
21101
21102         * PrintDialog.cs:
21103         - Text label for where 
21104         - Text label comment was not shown
21105
21106 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
21107
21108         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
21109
21110 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
21111
21112         * InternalWindowManager.cs: 
21113         - Handle WM_PARENTNOTIFY to activate the form
21114         if any child control is clicked.
21115         - The form is only sizable if not minimized.
21116
21117         * MdiWindowManager.cs:
21118         - Save the IconicBounds if the form is moved.
21119         - Rework SetWindowState, now the window bounds 
21120         are stored only if the old window state is Normal.
21121         
21122         * MdiClient.cs:
21123         - In SetWindowStates store the old window state if 
21124         the window is maximized and restore window state if
21125         the window looses focus.
21126         - Don't handle any scrollbar value changes if 
21127         initializing the scroll bars. Fixes #79771.
21128         - Reworked ArrangeIconicWindows. Current algorithm
21129         tests bounds agains all other minimized windows, if
21130         any intersections create new bounds (going left to 
21131         right, bottom to top) and then test again. When 
21132         successful the bounds are saved and never computed
21133         again. Fixes #79774.
21134
21135 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
21136
21137         * InternalWindowManager.cs: Added HandleTitleBarUp.
21138
21139 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
21140
21141         * NumericUpDown.cs: In .NET 1.1, user entered text is still
21142         hexadecimal in ParseUserEdit.
21143
21144         
21145 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
21146
21147         * MdiWindowManager.cs: 
21148         - Handle a click on the form's icon to show the 
21149         system menu (when maximized). Fixes #79775.
21150         - Change the existing click handler for the form's
21151         icon when not maximized to show on MouseUp.
21152         Fixes #79776.
21153
21154         * Form.cs: In OnResize only layout the mdi child's
21155         parent if it actually has a parent. Might not if
21156         the window is closing.
21157
21158
21159 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
21160
21161         * MdiClient.cs: Ignore active MDI client for text of parent, if
21162         child has no text set.
21163
21164 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
21165
21166         * ToolBar.cs: Fixed ToString to match MS.
21167
21168 2006-11-22  Andreia Gaita  <avidigal@novell.com>
21169
21170         * NumericUpDown: 
21171         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
21172         update inner values on set. Fixes #79966.
21173         - Override OnLostFocus to update value on NET 2. Fixes #79950.
21174         - Fix hexadecimal parsing.
21175         
21176         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
21177         parent. Fixes #79957
21178
21179 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21180
21181         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
21182         the actual size has to be queried, since if height /
21183         width is negative Win32 changes it to 0. 
21184         Fixes #79999 on Windows.
21185         
21186         * XplatUIX11.cs: Set height / width to 0 if negative
21187         in SetWindowPos. Fixes #79999 on Linux.
21188         
21189 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
21190
21191         * ThemeWin32Classic.cs: Fix text redenring when button is
21192         pressed.
21193
21194 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
21195
21196         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
21197         and later navigate by mouse. Fixes #79528.
21198
21199 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
21200
21201         * ToolBar.cs: Set default value for TabStop to false in
21202         constructor, it fixes remaining behavior of bug #79863.
21203
21204 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21205
21206         * MdiWindowManager.cs:
21207         * InternalWindowManager.cs:
21208         - Moved a few methods specific to Mdi from 
21209         InternalWindowManager to MdiWindowManager.
21210         Fixes #79996.
21211         
21212 2006-11-21  Chris Toshok  <toshok@ximian.com>
21213
21214         * XplatUIOSX.cs: stub out InvalidateNC.
21215
21216         * XplatUIWin32.cs: implement InvalidateNC using the call I found
21217         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
21218
21219         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
21220
21221         * XplatUIDriver.cs: add InvalidateNC abstract method.
21222
21223         * XplatUI.cs: add InvalidateNC.
21224
21225 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
21226
21227         * ToolBar.cs: Invalidate complete button area when pressed status 
21228         was changed.
21229         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
21230         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
21231         by 1 when button is pressed.
21232
21233 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
21234
21235         * ToolButton.cs: Invalidate middle of DropDown button when
21236         ToolBar theres DropDownArrows.
21237         * ThemeWin32Classic.cs: Change position of DropDown arrow and
21238         fix DropDown drawing operations.
21239
21240 2006-11-20  Chris Toshok  <toshok@ximian.com>
21241
21242         * NativeWindow.cs: fix the formatting of functions ('{' on the
21243         following line), and enable the thread exception dialog.
21244
21245         * Application.cs: remove the duplicate exception catching from
21246         here.
21247
21248 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
21249
21250         * Toolbar.cs: Triggers button click event when click on icon
21251         of dropdown ToolBarButton. Fixes #79912.
21252         
21253 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21254
21255         * Theme.cs:
21256         * ThemeWin32Classic.cs:
21257         - Added a property WindowBorderFont to enable themeing
21258           of mdi child windows' Text.
21259           
21260 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21261
21262         * InternalWindowManager.cs:
21263         * Form.cs:
21264         * MdiClient.cs:
21265         * MdiWindowManager.cs: 
21266         - If mdi child is maximized, set mdi parent's
21267           text to "Parent - [Child]". Fixes #79770.
21268         - If there is any maximized mdi child windows, only the active 
21269           window (and any new windows) is maximized, the rest are normal.
21270         - On a WindowState change only save mdi child's window bounds 
21271           if the old window state was normal. Fixes #79774.
21272         - The scroll bars are now calculated on hopefully all
21273           necessary events. Fixed #79771 / #79844->6 / #79906.
21274         - MdiClient.SizeScrollBars() now takes into account docked 
21275           controls in the parent when calculating available space.
21276         - InternalWindowManager now always repaints the entire title
21277           area. Fixes #79844->1/4/5.
21278         - Added RequestNCRecalc on mdi child windowstate changes.
21279           Fixes #79772.
21280
21281 2006-11-20  Mike Kestner  <mkestner@novell.com>
21282
21283         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
21284         in the MouseUp handler of the listbox and move the return handling
21285         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
21286
21287 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
21288
21289         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
21290
21291 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
21292
21293         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
21294           working in 1.2.x anymore. So, updated.
21295
21296 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
21297
21298         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
21299         NumberGroupSeparator of current culture instead of assuming en-US.
21300         Fixed bug #79967.
21301
21302 2006-11-17  Mike Kestner  <mkestner@novell.com>
21303
21304         * Control.cs: Add the concept of implicit bounds setting so that
21305         dock/undock round trips preserve explicitly set size/locations.
21306         Fixes #79313.
21307
21308 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
21309
21310         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
21311           can't handle those filters. (Fixes bug #79961)
21312
21313 2006-11-17  Chris Toshok  <toshok@ximian.com>
21314
21315         [ fixes the exit/crashes associated with #79835.  it's clearly
21316         suboptimal though, we need to figure out a better way to solve
21317         this. ]
21318         
21319         * PrintPreviewControl.cs: deal with the new invalid printer
21320         exceptions.
21321
21322         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
21323         and return false (so CommonDialog.ShowDialog doesn't actually show
21324         the form.)
21325
21326         * PrintDialog.cs: enable/disable the Ok button depending on
21327         whether or not the printer is valid.
21328
21329         * CommonDialog.cs (ShowDialog): only actually show the form if
21330         RunDialog returns true.
21331
21332 2006-11-17  Jackson Harper  <jackson@ximian.com>
21333
21334         * TextControl.cs: When soft splitting a line, mark it as a soft
21335         split line. Also carry over the current line break to the next
21336         line.
21337
21338 2006-11-17  Chris Toshok  <toshok@ximian.com>
21339
21340         * XplatUIX11.cs: when scrolling a window with an invalid area, we
21341         only want to shift the part of the invalid area that overlaps the
21342         area we're scrolling.  we also don't want to clear the invalid
21343         area unless the invalid area was entirely contained within the
21344         scrolling area.
21345
21346 2006-11-16  Chris Toshok  <toshok@ximian.com>
21347
21348         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
21349         also make sure to free the memory returned by XGetWindowProperty
21350         in GetText().
21351
21352         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
21353
21354 2006-11-16  Chris Toshok  <toshok@ximian.com>
21355
21356         * XplatUI.cs: add a new super secret way to get at the totally
21357         unsupported X11 backend.
21358
21359 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
21360
21361         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
21362
21363 2006-11-16  Jackson Harper  <jackson@ximian.com>
21364
21365         * TreeView.cs: Allow more explicit setting of top node position
21366         for scrollbars. Slower algo, but more accurate.
21367         - CollapseAll should maintain the current top node.
21368         * TextBoxBase.cs: When positioning the caret, use the line, pos
21369         method, since the x, y method does not grab the correct tag, and
21370         the caret height never gets set correctly. (Maybe I should just do
21371         away with the caret having its own height, and always use the
21372         carets current tag for height).
21373
21374 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
21375
21376         [Fixes 79778, 79923]
21377
21378         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
21379         Parent to the FosterParent instead.
21380
21381 2006-11-16  Jackson Harper  <jackson@ximian.com>
21382
21383         * TreeView.cs: Need to recalc the topnode when we expand or
21384         collapse. The scrolling methods can't handle this on their own,
21385         since they use differences between the last scroll position, and
21386         those difference get completely messed up since we are expanding
21387         nodes.  This problem should probably be fixed in the scrolling
21388         methods, so they can figure out exactly where they are, but this
21389         will slow things down a little.
21390         * ThemeWin32Classic.cs: Special case for groupboxes with empty
21391         strings, makes nunit-gui look a lot nicer.
21392
21393 2006-11-16  Chris Toshok  <toshok@ximian.com>
21394
21395         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
21396         the broken multithreaded event handling we have in here.  File
21397         this entry under "Why we should move to the new X11 backend".
21398
21399         Any thread can make it into UpdateMessageQueue, which gets events
21400         from the X socket - some of which could belong to hwnds being
21401         managed by a different thread.  We can also have multiple threads
21402         in UpdateMessageQueue at the same time, with each one reading from
21403         the X socket.  This leads to many problems, with the following
21404         solutions:
21405
21406         We can't use hwnd.Queue.Enqueue anywhere in here and must use
21407         EnqueueLocked.
21408
21409         The MotionNotify compression we do can't work across threads
21410         (without locking the entire queue, perhaps) since we call
21411         hwnd.Queue.Peek, so we just punt and don't compress motion events
21412         unless the owning thread is the one which got the X event.
21413
21414         ConfigureNotify is another fun one, since it modifies the hwnd's
21415         bounds and then enqueues the event.  We add a lock to Hwnd which
21416         is held when setting configure_pending to true (and enqueuing the
21417         event).
21418
21419         There is a race wrt the wake socket.  we need to make sure that
21420         only 1 thread is waiting on that socket, or else a thread could
21421         sleep waiting for data that never comes.  It's difficult (but not
21422         impossible) to make happen, because it seems to require something
21423         like the following:
21424
21425             1. Thread 1 polls on wake_receive
21426         
21427             2. poll returns saying there's data to be read on
21428                wake_receive.
21429         
21430             3. Thread 2 polls on wake_receive and immediately returns
21431                saying there's data to be read.
21432
21433             4. Thread 2 reads the wakeup byte from wake_receive
21434
21435             5. Thread 1 attempts to read the wakeup byte from
21436                wake_receive.
21437
21438             6. Thread 2 exits (due to a form closing, perhaps).
21439
21440             7. Thread 1 blocks forever.
21441         
21442         Fun, eh?
21443
21444         Fixing the Expose handling isn't done yet, and the races inherent
21445         in that piece of code are responsible for the drawing mistakes you
21446         see when generating expose events in a MT app (like NPlot).  This
21447         one is the likely to be the hardest to bandaid, and it doesn't
21448         appear to cause anything but drawing problems.  The other issues
21449         caused apps to exit or hang.
21450
21451         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
21452         called from a different thread than the one that should be calling
21453         these functions.
21454
21455         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
21456
21457 2006-11-15  Chris Toshok  <toshok@ximian.com>
21458
21459         * Application.cs: null out the context's MainForm when we exit
21460         RunLoop.  Fixes a newly checked in unit test as well as the last
21461         ODE from bug #79933.
21462
21463 2006-11-15  Chris Toshok  <toshok@ximian.com>
21464
21465         * Form.cs (set_Owner): allow a null value so we can clear the
21466         form's owner.
21467         (Dispose): set all our owned_form's Owner properties to null, and
21468         clear the owned_forms collection.
21469         (WM_CLOSE): clean up this a little bit.. still not right though.
21470
21471         * ApplicationContext.cs: OnMainFormClosed should only call
21472         ExitThreadCore if the main form isn't recreating.  Fixes unit
21473         test.
21474
21475 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21476
21477         [Fixes 78346]
21478
21479         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
21480
21481 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21482
21483         [Fixes 79433]
21484
21485         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
21486         keep popup window types from stealing focus from the main form
21487         on Windows.
21488
21489         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
21490
21491         * MenuAPI.cs: Set above flag to true.
21492
21493 2006-11-15  Chris Toshok  <toshok@ximian.com>
21494
21495         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
21496         the button being released is not in wParam.
21497
21498 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21499
21500         * Form.cs: Add the released button to MouseEventArgs.Button
21501         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
21502         on Win32.
21503
21504 2006-11-15  Chris Toshok  <toshok@ximian.com>
21505
21506         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
21507         GetText().  untested because it's unused in our implementation.
21508         Control.Text always caches the text, even if
21509         ControlStyles.CacheText is not set.
21510
21511         fixes bug #79939.
21512
21513 2006-11-15  Chris Toshok  <toshok@ximian.com>
21514
21515         [ fixes #79933 ]
21516         
21517         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
21518         message.  no hiding, no disposing.
21519
21520         in the WM_CLOSE handler, hide the form if it's modal.
21521
21522 2006-11-15  Chris Toshok  <toshok@ximian.com>
21523
21524         * XplatUIX11.cs: use AddExpose instead of sending a message.
21525         fixes textbox border drawing.
21526
21527 2006-11-15  Chris Toshok  <toshok@ximian.com>
21528
21529         * PropertyGridView.cs: keep from crashing on mouse move/down when
21530         the property grid is empty.
21531
21532 2006-11-14  Jackson Harper  <jackson@ximian.com>
21533
21534         * TextControl.cs: Make PageUp and PageDown more like the MS
21535         versions.
21536         * TextBoxBase.cs: When we set the text property position the
21537         cursor at the beginning of the document.
21538
21539 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21540
21541         * Form.cs: if a mdi child's WindowState has changed
21542         before it's creation, it would display wrong control
21543         buttons.
21544         
21545 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
21546
21547         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
21548           (Fixes bug #79927)
21549
21550 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
21551
21552         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
21553         the window gets to paint its borders even if the window is
21554         getting smaller.
21555         
21556         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
21557         otherwise the old control buttons would still be painted 
21558         if the window gets bigger.
21559         
21560         * PaintEventArgs.cs: add an internal method so that the clip 
21561         rectangle can be changed.
21562         
21563 2006-11-13  Chris Toshok  <toshok@ximian.com>
21564
21565         [ fixes bug #79745 ]
21566         
21567         * NotifyIcon.cs: lots of cleanup.
21568
21569         * X11Structs.cs: add an enum for XEMBED messages.
21570
21571         * XplatUIX11.cs: reindent one of the giant switch statements, it
21572         was taking up an additional tab stop, and this file is already way
21573         too wide for my laptop's screen.
21574
21575         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
21576         we get it, resize the hwnd to the WMNormalHints max_width/height.
21577
21578 2006-11-13  Jackson Harper  <jackson@ximian.com>
21579
21580         * TextBoxBase.cs: Compute the value changes for the mouse wheel
21581         teh simple way.
21582
21583 2006-11-13  Chris Toshok  <toshok@ximian.com>
21584
21585         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
21586         #79898.  force a reference to the Region to stick around so the
21587         unmanaged object isn't collected (rendering our handle in the MSG
21588         stale).
21589
21590 2006-11-13  Chris Toshok  <toshok@ximian.com>
21591
21592         * XplatUIX11.cs: fix #79917 for window managers which support
21593
21594         using XStoreName on the raw utf8, and we need to convert to
21595         COMPOUND_TEXT if it's non-latin1.
21596
21597 2006-11-13  Chris Toshok  <toshok@ximian.com>
21598
21599         * Form.cs (set_DialogResult): we need to set closing to false if
21600         we're setting our result to None.  fixes bug #79908.
21601
21602 2006-11-13  Jackson Harper  <jackson@ximian.com>
21603
21604         * TextControl.cs: When formatting text, compute the adjusted tag
21605         lengths correctly, using FindTag for the end tag instead of trying
21606         to figure it out outselves.
21607         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
21608         the item, ItemHeight doesn't work, because trees with large
21609         imagelists use those for their height
21610         * TreeView.cs: ActualItemHeight factors in the image height
21611         - compute left edge of checkboxes correctly
21612         - when expanding/collapsing move the bottom down one pixel, so we
21613         aren't moving part of the node
21614
21615 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21616
21617         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
21618         stack in PaintEventStart so that it won't get disposed by the gc
21619         before reaching PaintEventEnd.
21620
21621 2006-11-13  Jackson Harper  <jackson@ximian.com>
21622
21623         * TextBoxBase.cs: Don't select the word if we are on a line with
21624         no text.
21625         - We don't need to position the caret on mouse up, since the mouse
21626         move handler should be doing this
21627         - When double clicking a blank line, the caret is advanced to the
21628         next line.
21629
21630 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
21631
21632         * TreeNodeCollection.cs: Avoid duplicating indexer code.
21633
21634 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
21635
21636         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
21637         Fixes part of bug #79910.
21638
21639 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
21640
21641         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
21642           (bug #79903). Some minor string updates to match ms.
21643
21644 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21645
21646         * FileDialog.cs: Don't add an extension if the filename
21647           already ends with that extension.
21648
21649 2006-11-10  Jackson Harper  <jackson@ximian.com>
21650
21651         * TreeView.cs: Use the currently highlighted node for the
21652         BeforeSelect event.
21653         * TextBoxBase.cs: There is no need to expand selection on
21654         MouseMove.
21655         - CanUndo means 'is there any undo operations', not 'is undo
21656         allowed on this textcontrol. Fixed ClearUndo unit test.
21657
21658 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
21659
21660         * Button.cs: only perform click when button is Selectable (so as 
21661         not to activate default buttons when they're disabled)
21662         
21663         * Control.cs: Rewrite of the SelectNextControl and related 
21664         methods. HandleClick now selects next control if the current one
21665         is being disabled.
21666         
21667         * Form.cs: OnActivated selects next active control only if Load 
21668         has already occurred. If Load hasn't run, there's no point in 
21669         selecting here, Load might change the state of controls.
21670         
21671         * FocusTest.cs: Tests marked as working again for these fixes
21672
21673 2006-11-10  Chris Toshok  <toshok@ximian.com>
21674
21675         * XplatUIX11.cs: a couple of fixes.
21676
21677         - use XInternAtoms with almost all the atoms we need to register,
21678         instead of many, many calls to XInternAtom.  should help a bit on
21679         startup time, at the expense of making the code look a little
21680         worse.
21681
21682         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
21683         isn't reparented (which seems to be a clue that we're running fon
21684         compiz) and they have an Owner form.  This fixes the tool windows
21685         in paint.net when running under compiz.
21686
21687         - when setting the opacity of a window, support both the case
21688         where the window has been reparented and also when it hasn't been.
21689         Since compiz/beryl doesn't seem to reparent windows, and these are
21690         the only window managers which support translucency, I'm not sure
21691         why we need the hwnd.reparented case at all.. but leave it in.
21692         now we get translucent windows in paint.net under compiz/beryl.
21693
21694 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21695
21696         * FileDialog.cs: Always return the value for FilterIndex that
21697           was set. Internally convert it to values that make sense.
21698
21699 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21700         
21701         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
21702
21703 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21704
21705         * Toolbar.cs: Change default value of DropDownArrows to true, the 
21706         signature still using false to make it compatible with MS but the 
21707         initial value is true. Fixes #79855.
21708
21709 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21710
21711         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
21712           only available on Linux.
21713
21714 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
21715
21716         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
21717         reduce number of calls to redraw method during toolbar creation.
21718
21719 2006-11-09  Mike Kestner  <mkestner@novell.com>
21720
21721         * ListView.cs : raise SelectedIndexChanged when an item is selected
21722         programmatically via the Item.Selected property.  Gert's nice 
21723         ListViewSelectedIndexChanged test fixture now runs clean.
21724
21725 2006-11-09  Mike Kestner  <mkestner@novell.com>
21726
21727         * ListView.cs : raise SelectedIndexChanged when a selected item is
21728         removed from the item collection using Remove or RemoveAt.
21729
21730 2006-11-09  Mike Kestner  <mkestner@novell.com>
21731
21732         * ListView.cs : raise SelectedIndexChanged once per selected item
21733         for compat with MS.  Fixes #79849+.
21734
21735 2006-11-09  Chris Toshok  <toshok@ximian.com>
21736
21737         * TabControl.cs: initialize row_count to 0, and set it to 1 when
21738         we need to (if we have any tab pages).  Fixes unit test.
21739
21740 2006-11-09  Chris Toshok  <toshok@ximian.com>
21741
21742         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
21743         width is 0, not 3.  Fixes a unit test.
21744
21745 2006-11-09  Mike Kestner  <mkestner@novell.com>
21746
21747         * ListView.cs : use Implicit scrollbars so that focus isn't 
21748         stolen from the listview when they are clicked. Fixes #79850.
21749
21750 2006-11-09  Chris Toshok  <toshok@ximian.com>
21751
21752         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
21753         have a root item.  Fixes #79879.
21754
21755 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
21756
21757         * FileDialog.cs:
21758           - Fix ToString ()
21759           - An ArgumentException is now thrown if a wrong filter
21760             is applied (matches ms). The previous filter doesn't change
21761             anymore if an exception is thrown.
21762           - Changing the FileName property also affects FileNames
21763         * ColorDialog.cs: The length of the CustomColors array is always
21764           16. It doesn't matter if we use a smaller array or null to update
21765           or change the custom colors property.
21766         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
21767           for RootFolder if we get a undefined value.
21768
21769 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21770
21771         * StatusBarPanel.cs: 
21772         - Width is set to MinWidth if Width is smaller than
21773         MinWidth. Fixes #79842.
21774         - MinWidth now always overrides Width (MSDN says MinWidth
21775         is set to Width when AutoSize = None, but they do not 
21776         behave like that).
21777         - Style has now the the correct default value.
21778         
21779 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21780  
21781         * TrackBar.cs: 
21782         - The control is completely invalidated on 
21783         Got/LostFocus to draw the focus rectangle correctly.
21784         - When AutoSize then height is always 45 (width for 
21785         vertical controls).
21786         
21787         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
21788         on the mouse when moved and it doesn't move when grabbed
21789         until the mouse moves as well. Also fixed some wrong 
21790         calculations when clicking on the thumb (control thought
21791         click was outside of thumb and didn't grab it).
21792         Fixes some of the issues in #79718.
21793
21794 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
21795
21796         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
21797
21798 2006-11-08  Chris Toshok  <toshok@ximian.com>
21799
21800         * PropertyGridView.cs: only call ToggleValue if the item is not
21801         readonly.
21802
21803 2006-11-08  Jackson Harper  <jackson@ximian.com>
21804
21805         * TextBoxBase.cs: The RichTextBox and textbox have very different
21806         word selection methods.  Implement the textbox's simple word
21807         selection here, and let the RichTextBox override and provide it's
21808         own.
21809         - Don't do extra selection on mouseup
21810         * RichTextBox.cs: Use the documents word selection algorithm, I
21811         think ideally, this function will be pulled into the
21812         RichTextBox.cs code someday.
21813
21814 2006-11-08  Chris Toshok  <toshok@ximian.com>
21815
21816         * RootGridEntry.cs: new class to represent GridItemType.Root.
21817
21818         * CategoryGridEntry.cs: reformat, and add boilerplate.
21819         
21820         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
21821         returns the UI parent anyway, and we need special handling to
21822         implement the GetTarget method in the face of it.  Also, implement
21823         Select().
21824
21825         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
21826         a root grid item, and use that instead of PropertyGrid.grid_items.
21827         Also, make use of TypeConverters (and add limitted support for
21828         ICustomTypeDescriptors) when initially populating the grid.
21829         Arrays now show up more or less properly.
21830
21831 2006-11-08  Chris Toshok  <toshok@ximian.com>
21832
21833         * Application.cs: set the modal dialog to non modal after we close
21834         it.  Fixes bug #79866.
21835
21836 2006-11-08  Jackson Harper  <jackson@ximian.com>
21837
21838         * TextControl.cs: When combining lines carry over the line end
21839         style from the end line.
21840         - Invalidate the selected area when setting it, if it is visible.
21841         * TextBoxBase.cs: Only rich text box can do full line selects.
21842         - Make sure to set the cursor position when there is a click,
21843         otherwise two clicks in separate areas could cause a large chunk
21844         to be selected.
21845
21846 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21847
21848         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
21849         Fixes #79863.
21850
21851 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21852
21853         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
21854         time. Remove tooltips when ToolButton click events.  Fixes #79856.
21855
21856 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21857
21858         * MenuAPI.cs: Ignore right click for menu actions and fixes
21859         menu border when clicked.  Fixes #79846.
21860
21861 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21862
21863         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
21864         MouseState after create wParam for message, this fixes mouse button 
21865         equal none in mouse up events.
21866         
21867 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
21868
21869         * Control.cs : Focus() now calls Select to set the Container's
21870         Active Control and to give it focus. To avoid infinite recursion
21871         (because ActiveControl also calls Focus at one point), a check 
21872         is made in Focus with the help of a new internal variable
21873         is_focusing.
21874
21875 2006-11-07  Mike Kestner  <mkestner@novell.com>
21876
21877         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
21878         if there's a selection.  Fixes #79849.
21879
21880 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
21881
21882         * PropertyGrid.cs: Avoid fixed height of help description label.
21883         Fixes part of bug #79829.
21884
21885 2006-11-07  Chris Toshok  <toshok@ximian.com>
21886
21887         * XplatUIX11.cs: fix #79790 again, by using the
21888         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
21889
21890 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21891
21892         * ToolBar.cs: Fix left click checking.
21893
21894 2006-11-07  Chris Toshok  <toshok@ximian.com>
21895
21896         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
21897
21898 2006-11-07  Chris Toshok  <toshok@ximian.com>
21899
21900         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
21901         PropertyManager unit tests.
21902
21903         * PropertyManager.cs: make property_name internal.
21904
21905 2006-11-07  Chris Toshok  <toshok@ximian.com>
21906
21907         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
21908         pass a unit test.  Also, don't set image_index to anything in
21909         response to setting the ImageList property.
21910
21911 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21912
21913         * ToolBar.cs: Ignore click events when mouse button is not a
21914         left button, only accepts other button for dropdown menus.  
21915         Fixes #79854.
21916
21917 2006-11-07  Chris Toshok  <toshok@ximian.com>
21918
21919         * DataGrid.cs: make the back and parent row buttons a little less
21920         ugly.
21921
21922 2006-11-07  Jackson Harper  <jackson@ximian.com>
21923
21924         * TextBoxBase.cs: When converting to Text don't put line breaks in
21925         for soft line breaks.
21926         * TextControl.cs: There is an initial "fake" line in the document,
21927         this is now a soft break line, so that an extra line feed doesn't
21928         get added to the end of documents.
21929
21930 2006-11-07  Chris Toshok  <toshok@ximian.com>
21931
21932         [ fix bug #79778 ]
21933         
21934         * CurrencyManager.cs: if the list is readonly, don't bother
21935         checking if IBindingList.AllowNew is true.
21936
21937         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
21938         for non-DataRowView datasources..  or rather, make it not crash.
21939         (DataGridPaintRelationRow): make sure we limit the row painting to
21940         the area not covered by the row header, and make our cell width at
21941         least large enough to cover the relation area.  This allows grids
21942         that have relations but no rows to render correctly.
21943         (DataGridPaintRowContents): same type of changes here.
21944         (SetDataSource): move back to always calling
21945         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
21946         navigating back through relations.
21947         (HitTest): handle the case where we have no cells but have
21948         relations.  Right now we generate a hit in cell 0 of whatever the
21949         row is, not sure if this is strictly correct, but it works for our
21950         purposes.
21951         
21952         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
21953         bother doing anything.
21954
21955 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
21956
21957         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
21958         early version of StatusStrip.  Not responsible for eaten
21959         application or firstborn children.
21960
21961 2006-11-06  Chris Toshok  <toshok@ximian.com>
21962
21963         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
21964         call GetTabRect with a -1 index.  Fixes #79847.
21965
21966 2006-11-06  Jackson Harper  <jackson@ximian.com>
21967
21968         * TreeNodeCollection.cs: Update scrollbars after clearing.
21969
21970 2006-11-06  Chris Toshok  <toshok@ximian.com>
21971
21972         * NumericUpDown.cs: fix the ToString method for some unit test
21973         love.
21974
21975 2006-11-06  Chris Toshok  <toshok@ximian.com>
21976
21977         * PropertyGrid.cs:
21978         - set the initial SelectedGridItem if we can.
21979
21980         - Exclude non-mergable properties only if we're merging > 1
21981         object.  Merging 1 object isn't really merging, obviously.
21982
21983         - Handle PropertySort.NoSort just like Alphabetical, which is
21984         wrong of course, but at least gets things on the screen.
21985         
21986         * PropertyGridView.cs:
21987         - Add method "FindFirstItem" which finds the first property grid
21988         item, so we can select it by default.
21989
21990         - make use of GridEntry.CanResetValue.
21991
21992         - Don't call RedrawBelowItemOnExpansion here anymore, the
21993         individual GridEntry's will do that.
21994
21995         - Remove the ITypeDescriptorContextImpl internal class.
21996         
21997         * GridEntry.cs:
21998         - this class needs to implement ITypeDescriptorContext, as it's
21999         what MS's PropertyDescriptorGridEntry does, which means we can
22000         remove the ITypeDescriptorContextImpl internal class from
22001         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
22002
22003         - keep a reference to our PropertyGridView, and move the call to
22004         RedrawBelowItemOnExpansion here from PGV.  This means
22005         programmaticly setting Expanded actually does something visible.
22006
22007         - add a CanResetValue() function which takes into account our
22008         possibly multiple "selected_objects" in the merged case.  Shifting
22009         PropertyGridView to use this method fixes another unreported
22010         crasher found running the test for #79829.
22011
22012         - when Top or Bounds is updated, make sure the PropertyGridTextBox
22013         is updated to reflect this.
22014
22015         * CategoryGridEntry.cs: the ctor takes the PGV now.
22016         
22017 2006-11-06  Jackson Harper  <jackson@ximian.com>
22018
22019         * TextControl.cs: These are 1 based.
22020         * TextBoxBase.cs: When setting the selected text, don't change the
22021         selected text tags, this is done by ReplaceText, just position the
22022         cursor at the end of the new text.
22023
22024 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
22025
22026         * ListView.cs: Allow label edit only when, when LabelEdit is
22027           set to true.
22028
22029 2006-11-06  Jackson Harper  <jackson@ximian.com>
22030
22031         * TextControl.cs: If a suitable wrapping position isn't found,
22032         just wrap right in the middle of a word.
22033
22034 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
22035
22036         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
22037           bug #79820.
22038
22039 2006-11-06  Jackson Harper  <jackson@ximian.com>
22040
22041         * TreeView.cs: Can't use the VisibleCount property when setting
22042         scrollbar heights, because this doesn't take into account whether
22043         or not the horz scrollbar just came visible.
22044
22045 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
22046
22047         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
22048         activated.  Fixes #79369, #79832.
22049
22050 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
22051
22052         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
22053           had to remove support for links that point to a directory. FileInfo
22054           returns no usefull information (means, the directory they point to)
22055           for such links. Replaced some empty string ("") with String.Empty.
22056
22057 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
22058
22059         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
22060         NullReferenceException when attempting to remove node that is not in
22061         collection. Throw NullReferenceException when null is passed to 
22062         Remove. Allow first element of the collection to be removed. Fixes
22063         bug #79831.  In GetEnumerator ().Current return null if positioned 
22064         before the first element of the collection. In GetEnumerator ().Reset,
22065         position before first element of the collection.
22066
22067 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
22068
22069         * PropertyGrid.cs: To match MS, remove default title and description
22070         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
22071         buttons.
22072
22073 2006-11-04  Chris Toshok  <toshok@ximian.com>
22074
22075         * Theme.cs: add a Clamp method, just for kicks.
22076
22077         * ThemeWin32Classic.cs: clamp all color components to [0..255].
22078
22079 2006-11-04  Chris Toshok  <toshok@ximian.com>
22080
22081         * Form.cs: if the form isn't visible, Close() does nothing.
22082
22083 2006-11-03  Chris Toshok  <toshok@ximian.com>
22084
22085         * Form.cs (Close): if the form is modal, don't Dispose of it, only
22086         Hide it.
22087         (WndProc): don't Dispose after handling the WM_CLOSE message.
22088
22089         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
22090         them as such, instead of using casts from Control to Form.  Also,
22091         don't Dispose of the modal dialog when we fall out of the loop -
22092         Close() it instead.
22093
22094         fixes bug #79813.
22095
22096 2006-11-03  Chris Toshok  <toshok@ximian.com>
22097
22098         * Control.cs (Dispose): only go through the dispose thing if we're
22099         @disposing, and we haven't already been disposed.  Fixes bug
22100         #79814.
22101
22102         * Form.cs: no reason to call "base.Dispose()" here instead of
22103         "Dispose()".
22104
22105 2006-11-03  Mike Kestner  <mkestner@novell.com>
22106
22107         * ComboBox.cs : use ToString instead of casts in AddItem for
22108         sorting functionality.  Fixes #79812.
22109
22110 2006-11-03  Chris Toshok  <toshok@ximian.com>
22111
22112         * Application.cs: pave the way for actually using the thread
22113         exception dialog.  it's ifdefed out at the moment.
22114
22115 2006-11-03  Chris Toshok  <toshok@ximian.com>
22116
22117         * ThreadExceptionDialog.cs: until we get a better layout, actually
22118         hide the details textbox and label when we shouldn't see them.
22119
22120 2006-11-03  Jackson Harper  <jackson@ximian.com>
22121
22122         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
22123         multiline textboxes anymore.  This method also determines the
22124         width/height of a textboxes canvas area.
22125         - Sorta a revert of the last patch.  For multiline just position
22126         the controls, then bail.  This way the scrollbar width won't be
22127         altered.
22128
22129 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
22130
22131         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
22132         it dont need.  Fixes #79537.
22133
22134 2006-11-02  Jackson Harper  <jackson@ximian.com>
22135
22136         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
22137         send the status after firing the DndOver event.
22138
22139 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
22140
22141         * TrackBar.cs: Now orientation only switches height / width if
22142         the control's handle is created (Win32 does it like this). Also 
22143         fixed a typo in ToString() for a test to pass, changed the 
22144         exception thrown in set_LargeChange and set_SmallChange to 
22145         match Win32 behaviour, and added TrackBar tests to the unit 
22146         tests.
22147
22148 2006-11-02  Chris Toshok  <toshok@ximian.com>
22149
22150         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
22151         not _NET_WM_STATE_NO_TASKBAR.
22152
22153 2006-11-02  Jackson Harper  <jackson@ximian.com>
22154
22155         * TextControl.cs: Increment count by one, since in the update view
22156         count - 1 is used.
22157
22158 2006-11-02  Jackson Harper  <jackson@ximian.com>
22159
22160         * TextBoxBase.cs: Use client rectangle not bounds for checking if
22161         the mouse is in the client rectangle (duh).
22162
22163 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
22164         
22165         * TrackBar.cs: Fixed trackbar jumping around when clicking
22166         on it - the trackbar was not detecting correctly at which
22167         side of the thumb the click was done. (fixes #79718)
22168
22169 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
22170
22171         * ListBox.cs: scroll visible area when change SelectedIndex to
22172         a non visible area.  Fixes #79481.
22173
22174 2006-11-01  Jackson Harper  <jackson@ximian.com>
22175
22176         * TextControl.cs: When replacing the selection move the selection
22177         start/end/anchor to the end of the new text.
22178
22179 2006-11-01  Jackson Harper  <jackson@ximian.com>
22180
22181         * XplatUIWin32.cs: When setting the parent change the controls
22182         visibility to it's visibility flag, not to it's old parents
22183         visibility (.Visible walks the parent chain).
22184
22185 2006-11-01  Chris Toshok  <toshok@ximian.com>
22186
22187         * XplatUIX11.cs: revert the #79790 fix, as the simple.
22188         XSetTransientForHint fix breaks paint .net's tool windows.  more
22189         work needed for that one.
22190
22191 2006-11-01  Chris Toshok  <toshok@ximian.com>
22192
22193         * ScrollBar.cs: throw ArgumentException instead of Exception in
22194         LargeChange/SmallChange setters.  fixes unit tests.
22195
22196 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
22197
22198         * ContainerControl.cs: reverted rev.67183 (which was itself
22199         a reversion of rev.66853... eh).
22200         
22201         * Control.cs: Fixes Reflector hang by changing Focus() call
22202         to what it was before rev.66643 (calling Select() here sets 
22203         ActiveControl, which in some situations calls back Focus and 
22204         eventually does a stack overflow). Temp fix.    
22205         Changes to GetNextControl() to not look for children to select when
22206         parent cannot be selectable (so it looks for siblings instead)  
22207         
22208 2006-10-31  Mike Kestner  <mkestner@novell.com>
22209
22210         * CheckedListBox.cs : off by one error in returned index from
22211         ObjectCollection.Add.  Fixes #79758.
22212
22213 2006-10-31  Chris Toshok  <toshok@ximian.com>
22214
22215         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
22216         calls for the textbox/spinner, to keep from recursing to the point
22217         where we crash.  Fixes #79760.
22218
22219 2006-10-31  Chris Toshok  <toshok@ximian.com>
22220
22221         * ListControl.cs (set_SelectedValue): don't throw exceptions on
22222         null/"" value, just return.  matches ms's behavior and fixes some
22223         failing tests.
22224
22225 2006-10-31  Chris Toshok  <toshok@ximian.com>
22226
22227         * Control.cs (set_Capture): make a logic a little easier to
22228         follow.
22229
22230         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
22231         if it's being destroyed.  A necessary fix surely, but a bandaid
22232         also, to fix the stuck capture problem in bug #78413.
22233
22234 2006-10-31  Chris Toshok  <toshok@ximian.com>
22235
22236         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
22237         convention of clearing hwnd.ClientRect when we set the
22238         width/height (so it'll be recalculated by Hwnd).
22239
22240 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
22241
22242         * ContainerControl.cs: reversed Contains check from
22243         ActiveControl due to hanging problems. This fix
22244         partly regresses #79667 (button does not have
22245         initial focus), so this might be a symptom for 
22246         a larger parenting problem (set_ActiveControl
22247         is being called but the child control does
22248         not have the parent set yet?)   
22249         
22250 2006-10-31  Mike Kestner  <mkestner@novell.com>
22251
22252         * MenuAPI.cs : fix keynav when menu is click activated.
22253
22254 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
22255
22256         * ToolStrip*: Version 0.2.
22257
22258         * MenuStrip.cs: Version 0.1.
22259
22260         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
22261
22262 2006-10-30  Chris Toshok  <toshok@ximian.com>
22263
22264         [ fixes the oversized notify icon issue in bug #79745 ]
22265         
22266         * NotifyIcon.cs: scale the icon down to the size we're given by
22267         the XplatUI layer (this would be faster if we did it once instead
22268         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
22269         since it's never invoked.
22270
22271         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
22272         pixels high by default, so let's hardcode our systray icon to that
22273         size.  The SYSTEM_TRAY protocol should really have a way for
22274         client apps to query for the correct icon size.. but oh well.  A
22275         couple of patches to deal with the screwy client_window ==
22276         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
22277         instance, and also make sure we don't XSelectInput twice).
22278
22279 2006-10-30  Chris Toshok  <toshok@ximian.com>
22280
22281         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
22282         recreating forms.  Control recreation is the bane of my existence.
22283         Fix it in a way that keeps everyone happy.
22284
22285 2006-10-30  Chris Toshok  <toshok@ximian.com>
22286
22287         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
22288         just non-CHILD ones.  otherwise sometimes scrollbars end up with
22289         client_windows not being resized to the proper size (ReportBuilder
22290         shows this extremely well).
22291
22292 2006-10-30  Chris Toshok  <toshok@ximian.com>
22293
22294         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
22295         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
22296         showing up in the gnome taskbar.  Fixes bug #79790.
22297
22298 2006-10-30  Chris Toshok  <toshok@ximian.com>
22299
22300         * ApplicationContext.cs: guard against a NRE.
22301
22302         * Application.cs: null out the old MainForm for the context, so we
22303         don't try to use it again once it's disposed.  Fixes bug #79783.
22304
22305 2006-10-30  Chris Toshok  <toshok@ximian.com>
22306
22307         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
22308         BindingContext, set the data source directly, otherwise do the
22309         lazy approach - the actual ListManager will be created when we get
22310         a BindingContext. Fixes bug #79700.
22311
22312 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
22313
22314         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
22315           XplatUIX11.cs: Remove old 2 parameter SetVisible.
22316
22317         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
22318
22319 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
22320
22321         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
22322         of SetVisible that allows a window to be shown, but not activated.
22323         This is needed on Windows for MenuStrip, and can probably be used
22324         with MainMenu and ComboBox to fix the focus stealing issues on
22325         Windows.
22326
22327         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
22328
22329 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
22330
22331         * PictureBox.cs: Fix the output of the ToString method.
22332
22333 2006-10-29  Chris Toshok  <toshok@ximian.com>
22334
22335         * Control.cs (get_TopLevelControl): fix bug #79781.
22336
22337 2006-10-29  Chris Toshok  <toshok@ximian.com>
22338
22339         * ListControl.cs (set_DataSource): throw Exception here, not
22340         ArgumentException, to match MS behavior.
22341
22342 2006-10-29  Chris Toshok  <toshok@ximian.com>
22343
22344         * Form.cs: remove the try-catch's around calls to GetWindowState.
22345         We can just check the return value.
22346
22347         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
22348         Instead return -1.
22349
22350         * XplatUI.cs: Add note about additional return value for
22351         GetWindowState.
22352
22353 2006-10-29  Chris Toshok  <toshok@ximian.com>
22354
22355         * Control.cs (CreateHandle): when we create our handle, we also
22356         create the handles of our child controls.  Fixes one of the
22357         Control unit tests (CH11).
22358
22359 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
22360
22361         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
22362
22363 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
22364
22365         * ThemeClearlooks.cs: A little speedup.
22366
22367 2006-10-27  Chris Toshok  <toshok@ximian.com>
22368
22369         * Control.cs: implement Control.FromChildHandle in a way that
22370         matches the docs (and fixes the failed test.)
22371
22372 2006-10-27  Chris Toshok  <toshok@ximian.com>
22373
22374         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
22375         comments).
22376
22377         * DataGrid.cs: implement ResetForeColor such that the tests
22378         succeed.
22379         
22380 2006-10-27  Chris Toshok  <toshok@ximian.com>
22381
22382         * ToolBarButton.cs: setting text/tooltiptext to null results in it
22383         being set to "".  Fixes bug #79759.
22384
22385 2006-10-27  Jackson Harper  <jackson@ximian.com>
22386
22387         * TextControl.cs: We need to clear the entire selection area when
22388         setting the start, otherwise multiline selections are still
22389         visible.
22390
22391 2006-10-26  Chris Toshok  <toshok@ximian.com>
22392
22393         * PropertyGridView.cs: 
22394
22395         - ifdef all the code specific to the double
22396         buffer case, and provide some alternatives in the non-doublebuffer
22397         code, which makes heavy use of XplatUI.ScrollWindow to move things
22398         around without having to invalidate (and cause flicker).  There
22399         are still some drawing problems in the non-doublebuffered case, so
22400         DOUBLEBUFFER is defined by default.
22401
22402         - Fix the way dropdowns are handled.  now we explicitly watch for
22403         the events which might cause the dropdown to close, and break out
22404         of the nested event loop there.  This gets rid of all Capture
22405         code, at the expense of the Msg special casing.  Seems to work,
22406         though, and fixes bug #79743.
22407
22408 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
22409         * Control.cs: SetIsRecreating now recreates implicitly added
22410         child controls as well. Finally fixes #79629. The flag passed to 
22411         SetIsRecreating has also been removed since it wasn't used.
22412         
22413 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22414
22415         * PageSetupDialog.cs: Clean some code, fix some bits, 
22416         add some checks, and add a printer sub-dialog.
22417
22418 2006-10-26  Chris Toshok  <toshok@ximian.com>
22419
22420         * PropertyGrid.cs: make set_SelectedObject call
22421         set_SelectedObjects, and move the duplicate logic to the
22422         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
22423
22424         * PropertyGridView.cs: hide the textbox when we get a
22425         SelectedObjectsChanged event.
22426
22427         Fixes bug #79748.
22428
22429 2006-10-26  Chris Toshok  <toshok@ximian.com>
22430
22431         * PropertyGridView.cs: deal with the type converter not supporting
22432         GetStandardValues() or GetStandardValues() returning null, which
22433         is does in the default case.  Fixes #79742.
22434
22435 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
22436
22437         * CheckedListBox.cs: nunit no longer crashes when selecting 
22438         Project/Edit menu option
22439         
22440 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
22441
22442         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
22443         is no menu selected. fixes #79739
22444
22445 2006-10-25  Chris Toshok  <toshok@ximian.com>
22446
22447         * PropertyGridView.cs: factor out the splitter invalidation code
22448         into the SplitterPercent setter, and for kicks implement the
22449         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
22450         amount in either direction.
22451
22452 2006-10-25  Chris Toshok  <toshok@ximian.com>
22453
22454         * PropertyGridView.cs: do some cleanup of the brush used to draw
22455         text - read only fields should be grayed out.  not sure how to do
22456         this with the textbox, though.  but the textbox's should also be
22457         readonly now at least.  Also, hide/show the textbox when resizing
22458         the control.
22459         
22460         * CursorConverter.cs: use System.Reflection when getting the
22461         properties of Cursors, as TypeDescriptor.GetProperties isn't
22462         returning static properties.
22463
22464 2006-10-25  Chris Toshok  <toshok@ximian.com>
22465
22466         * PropertyGridView.cs: factor out the up/down handling, and reuse
22467         it for page up/down.  also add End/Home support.
22468
22469 2006-10-25  Chris Toshok  <toshok@ximian.com>
22470
22471         * PropertyGridView.cs:
22472
22473         - ensure the selected grid item is visible in the scrolled area,
22474         fixes bug #79572.
22475
22476         - fix Keys.Down handling when you're on the last item in the
22477         propertygrid.
22478
22479 2006-10-25  Mike Kestner  <mkestner@novell.com>
22480
22481         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
22482         clicks too.  Fixes #79725.
22483
22484 2006-10-24  Chris Toshok  <toshok@ximian.com>
22485
22486         * PropertyGrid.cs: use property.Converter instead of
22487         TypeDescriptor.GetConverter(property.PropertyType), so we catch
22488         TypeConverters declared on the property as well as on the
22489         PropertyType.  Fixes bug #79678.
22490
22491 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
22492
22493         * MimeIcon.cs, Mime.cs:
22494           Fallback to the default platform handler if no shared mime info
22495           stuff exists (fixes #79693).
22496
22497 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22498         * ContainerControl.cs: Incorrect contains check in ActiveControl 
22499         from previous fix (duh).
22500
22501 2006-10-20  Chris Toshok  <toshok@ximian.com>
22502
22503         * PropertyGridView.cs: the dropdown should be MIN(number of items
22504         in list, 15).  Fixes #79551.
22505
22506 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22507         Fixes #79384, #79394, #79652, #79667
22508         * Application.cs: 
22509         
22510         - Modal windows are now destroyed in the proper order for windows
22511         
22512         * ContainerControl.cs:
22513         
22514         - ActiveControl setter has more conditions on when to return:
22515                 - if we're reselecting the active control, but it actually
22516                 didn't have focus (window hidden or some such), it runs
22517                 - if the active control being selected doesn't actually 
22518                 exist in the container, it returns
22519         
22520         * Form.cs
22521         
22522         - The ShowDialog now gets the current form as the owner when
22523         invoking without parameters, and correctly activates the owner 
22524         when returning
22525         
22526         * MessageBox.cs
22527         
22528         - MessageBox now catches the Escape key to exit
22529
22530 2006-10-20  Chris Toshok  <toshok@ximian.com>
22531
22532         * PropertyGridView.cs: fix a number of issues (bug #78565, and
22533         most of bug #79676):
22534
22535         - you can navigate around the property grid with the arrow keys.
22536
22537         - the dropdown is sized properly when the pg has a vertical
22538         scrollbar.
22539
22540         - fix the indentation for subentries, and properly select the
22541         entire label rect.
22542
22543         - fix the gray bar's drawing (only draw it to the last element,
22544         not for the height of the control.  Also make sure we draw that
22545         last horizontal grid line.
22546
22547         - use the same mechanism the datagrid uses wrt the editing textbox
22548         when scrolling/resizing/etc.  Namely, we hide it first, do the
22549         operation, then show it again (if it's still visible).
22550         
22551         - aggressively remove a lot of unnecessary refreshes (and also
22552         calls to Invalidate(). call more limited variants, and only redraw
22553         what we need.)
22554         
22555         * PropertyGrid.cs:
22556
22557         - when we're populating the merged collection, fill in the UI
22558         parent with either the passed in item, or the category item we
22559         create.
22560
22561         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
22562
22563         * GridItem.cs: drop some fully qualified names.
22564         
22565         * GridEntry.cs: add a "UIParent", which is basically the parent
22566         treenode.
22567
22568         * GridItemCollection.cs: add an IndexOf method.
22569
22570 2006-10-20  Mike Kestner  <mkestner@novell.com>
22571
22572         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
22573         a working win32 NC invalidation mechanism, we can't invalidate
22574         menus.  [Fixes #79705]
22575
22576 2006-10-20  Mike Kestner  <mkestner@novell.com>
22577
22578         * ListBox.cs : don't update the VScrollbar if the list is empty,
22579         just hide it.  [Fixes #79692]
22580
22581 2006-10-20  Jackson Harper  <jackson@ximian.com>
22582
22583         * RichTextBox.cs: Handle some special chars better, and don't skip
22584         the entire group when we encounter a special char that we don't
22585         handle correctly.
22586
22587 2006-10-18  Chris Toshok  <toshok@ximian.com>
22588
22589         * PropertyGridView.cs: address a number of issues from bug #79676,
22590         mostly of the cosmetic variety.
22591
22592         - The highlight rectangle for indented items not extends all the
22593         way to the left.
22594
22595         - Indented items aren't indented so much.
22596
22597         - the dropdown is properly sized width-wise if the pg has a
22598         vertical scrollbar.
22599
22600 2006-10-18  Chris Toshok  <toshok@ximian.com>
22601
22602         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
22603         systray stuff is rather convoluted to begin with.
22604
22605         systray icons are a single window for some reason (that I haven't
22606         figured out yet), and for them, client_window == whole_window.
22607         Given the way the tests are structured elsewhere to determine
22608         which paints are pending (client vs. nc), that situation will
22609         always yield PAINT, not NCPAINT.  So, if we have a pending
22610         nc_expose and no pending expose, remove the hwnd from the paint
22611         queue, and also set nc_expose_pending to false, to keep us from
22612         blocking further expose's adding the hwnd to the paint queue.
22613
22614         phew.  like i said, a rather convoluted change.  Fixes the
22615         notifyicon repaint issues in bug #79645.
22616
22617 2006-10-18  Chris Toshok  <toshok@ximian.com>
22618
22619         * Form.cs: when getting the backcolor of the form, don't get
22620         base.BackColor, as this allows parents to influence the background
22621         color.  This breaks mdi forms.  Instead, if the background_color
22622         is empty, return the default.
22623
22624 2006-10-18  Chris Toshok  <toshok@ximian.com>
22625
22626         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
22627         to being private instead of internal static.
22628
22629         * Control.cs: remove all the stupid ParentWaitingOnRecreation
22630         crap, it wasn't working for more deeply nested controls anyway,
22631         and we already have the is_recreating flag - use that instead.
22632         Before calling DestroyHandle in RecreateHandle, recurse through
22633         the control tree setting it to true.  this returns the recreate
22634         code to much of its original simplicity, while now guaranteeing we
22635         actually recreate everything we're supposed to.  This change gets
22636         fyireporting actually showing mdi children.
22637
22638 2006-10-17  Chris Toshok  <toshok@ximian.com>
22639
22640         * Form.cs: remove some debug spew, and collapse some duplicate
22641         code at the end of SetClientSizeCore.
22642
22643         * XplatUIX11.cs: 
22644         - add some more debug spew here too wrt Destroy handling.
22645         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
22646         in Control's handling of WM_DESTROY.
22647         - Remove the handling of zombie window DestroyNotifies from the
22648         event loop - we don't need it.  Now the only DestroyNotifies we
22649         actually handle are ones generated by X.
22650         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
22651         match gtk's (functioning) handling of this. This keep metacity
22652         from leaving droppings in the form of wm borders with no window
22653         contents all over the place.
22654
22655         * Control.cs:
22656         - add a bunch of debug spew wrt control recreation.
22657         - fix a bug where we weren't tracking Visible properly on
22658         recreated hwnds.
22659         - fixed the WM_PAINT double buffer handling to support re-entrant
22660         calls (yes, i know it's gross, but it's happening to us).
22661
22662 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22663         * ThemeWin32Classic.cs: changed drawing of selected days
22664         to make them look better.
22665
22666 2006-10-16  Chris Toshok  <toshok@ximian.com>
22667
22668         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
22669         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
22670
22671         * XplatUIX11.cs: move away from using hwnd.client_dc and
22672         hwnd.non_client_dc and on to a stack of dc's (and in window's
22673         case, PAINTSTRUCT's), so we can deal with nested Paint calls
22674         without puking or not disposing of Graphics objects.
22675
22676         * XplatUIOSX.cs: same.
22677
22678         * XplatUIWin32.cs: same.
22679
22680 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22681
22682         * FileDialog.cs: Don't call on_directory_changed inside
22683           OnSelectedIndexChanged (it changes the SelectedIndex too).
22684           Instead move it to OnSelectionChangeCommitted.
22685
22686 2006-10-13  Chris Toshok  <toshok@ximian.com>
22687
22688         * XplatUIX11.cs: more Destroy work.  the current code does the
22689         following things, in order:
22690
22691         1. Enumerates all handles of all controls at or below the one
22692         being destroyed, in pre-order.  As it is doing this, it marks the
22693         handles as zombie and clears all references to them.
22694         
22695         2. calls XDestroyWindow on the window passed in.
22696
22697         3. SendMessage's WM_DESTROY to all he handles in the accumulated
22698         list.
22699
22700 2006-10-13  Chris Toshok  <toshok@ximian.com>
22701
22702         * XplatUIX11.cs: set hwnd.zombie to true before calling
22703         SendMessage (WM_DESTROY).  this keeps us from marking the new
22704         window a zombie, and also keeps us from calling sendmessage at
22705         all.
22706
22707 2006-10-13  Jackson Harper  <jackson@ximian.com>
22708
22709         * TextControl.cs: Do not show the caret and selection at the same
22710         time.  Reduces ugliness by 35%.
22711
22712 2006-10-13  Chris Toshok  <toshok@ximian.com>
22713
22714         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
22715         zombie after we do the recursive call, so we actually do call
22716         SendMessage on the children controls.
22717         (GetMessage): if we find a pending paint event for a zombie hwnd,
22718         remove the hwnd from the paint queue, or else it will always be
22719         there (and we'll effectively loop infinitely)
22720
22721 2006-10-13  Mike Kestner  <mkestner@novell.com>
22722
22723         * MenuItem.cs : add Selected format under keynav too.
22724         Fixes #79528.
22725
22726 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
22727
22728         * PropertyGrid.cs: Fixed some NRE's and small difference between our
22729         implementation and that of MS.
22730
22731 2006-10-13  Chris Toshok  <toshok@ximian.com>
22732
22733         * Control.cs (OnInvalidated) only futz with the invalid_region if
22734         the control is double buffered.  this fixes the apparent hang in
22735         the ListView unit tests.  Someone needs to make the
22736         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
22737
22738 2006-10-13  Chris Toshok  <toshok@ximian.com>
22739
22740         * PropertyGridView.cs:
22741
22742         - do a little refactoring so that only one place calls
22743         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
22744         else call that.  Also make it Refresh, since there are redraw bugs
22745         otherwise (we should take a look at that...)
22746
22747         - do a little more refactoring work to share the body of code
22748         involved with the drop down.  it was duplicated in the code
22749         dealing with the listbox handling and in the code dealing with the
22750         UITypeEditors.
22751
22752         - add a Capture to the dropdown form's control once it's
22753         displayed, and add a MouseDown handler that checks to make sure
22754         the position is inside the control.  If it's not, close the
22755         dropdown.  This fixes #78190.
22756
22757         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
22758         if the value is different than the initial value.
22759         
22760 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
22761
22762         * Control.cs: see #78650
22763         - Fixed GetNextControl for several cases:
22764                 - Changed FindFlatForward to return 
22765                 correct sibling control when more than one
22766                 control has same TabIndex as the currently 
22767                 focused one.
22768                 - Changed FindFlatBackward to loop children
22769                 from last to first and apply same logic as in
22770                 FindFlatForward
22771                 - Changed FindControlForward to search for
22772                 children when control is not a container
22773                 but has children, or search for siblings if
22774                 control is a container...
22775                 - Changed FindControlBackward   to continue
22776                 searching for child controls when hitting 
22777                 Panel-like parents
22778                 
22779         - Fixed Focus method to update ActiveControl
22780         (FocusTest.FocusSetsActive failure)
22781         
22782         * TabControl.cs:
22783         - Focus rectangle now refreshes when gaining
22784         or losing focus
22785         - Removed grab for Tab key on IsInputKey that 
22786         was keeping tab navigation from working (#78650)
22787
22788 2006-10-13  Chris Toshok  <toshok@ximian.com>
22789
22790         * PropertyGridView.cs:
22791         - Rewrite SetPropertyValue to loop over SelectedGridItem's
22792         SelectedObjects.
22793
22794         - Deal with GridItem.Value == null a few places.
22795
22796         * PropertyGrid.cs: 
22797         - replace the PopulateGridItemCollection with a pair of methods
22798         which compute the intersection of all the properties in the
22799         SelectedObjects array.  Fixes #79615.
22800
22801         - Throw ArgumentException from set_SelectedObjects if there's a
22802         null in the array.
22803
22804         - Add GetTarget method which can be used to traverse up the
22805         GridItem.Parent chain.  It depends on the assumption that
22806         selected_objects for different GridEntries are always in the same
22807         order (a safe assumption).  Use this method and loop over all the
22808         selected objects in the entry when calling RemoveValueChanged and
22809         AddValueChanged.
22810         
22811         * GridEntry.cs: Make this handle multiple selected objects.
22812         .Value returns null if not all the selected objects share the same
22813         value.
22814
22815 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
22816         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
22817           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
22818           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
22819           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
22820           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
22821         add additional functionality.
22822
22823 2006-10-12  Mike Kestner  <mkestner@novell.com>
22824
22825         * ErrorProvider.cs : new ToolTipWindow ctor sig.
22826         * HelpProvider.cs : new ToolTipWindow ctor sig.
22827         * ToolTip.cs : remove ToolTip param from Window sig since it is
22828         not used.
22829         * ToolBar.cs : add tooltip support.  Fixes #79565.
22830
22831 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22832
22833         * ComboBox.cs: move the events in set_SelectedIndex to 
22834         after the call to HighlightIndex in order to avoid 
22835         possible recursion and subsequent problems with the call
22836         to HighlightIndex and include a range check in 
22837         set_HighlightIndex. Fixes #79588
22838         
22839 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22840
22841         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
22842         to ui thread's settings instead of sunday. 
22843         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
22844
22845 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22846
22847         * DateTimePicker.cs
22848         * MonthCalendar.cs
22849         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
22850         and implement missing functionality (selecting different parts 
22851         of the date and edit them individually with the keyboard).
22852         
22853 2006-10-11  Chris Toshok  <toshok@ximian.com>
22854
22855         * Control.cs (OnInvalidated): fix NRE relating to last change.
22856
22857 2006-10-11  Chris Toshok  <toshok@ximian.com>
22858
22859         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
22860         atoms in _NET_WM_STATE here if the window is maximized.  We need
22861         to do this because we're *replacing* the existing _NET_WM_STATE
22862         property, so those atoms will be lost otherwise, and any further
22863         call to GetWindowState will return Normal for a window which is
22864         actually maximized.  Fixes #79338.
22865
22866 2006-10-11  Jackson Harper  <jackson@ximian.com>
22867
22868         * TextControl.cs: Special case for setting selection end to
22869         selection start, we basically kill the anchor.
22870         - some todo comments.
22871
22872 2006-10-11  Chris Toshok  <toshok@ximian.com>
22873
22874         * Control.cs: switch to using an "invalid_region" to track which
22875         parts of the image buffer need updating.  This is more code than
22876         the simple fix from r66532.  That version just attempted to always
22877         fill the entire buffer on redraw, which turns out to be
22878         inefficient when invalidating small rectangles.  This version
22879         simply adds the invalid rectangle to the invalid region.  When we
22880         get any WM_PAINT message we see if it can be filled using the
22881         image buffer, and if it can't (if the paint event's clip rectangle
22882         is visible in the invalid region) we first fill the image buffer.
22883         So, the image buffer is still a cache, we just fill it lazily.
22884
22885         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
22886         need it any longer.
22887
22888 2006-10-11  Chris Toshok  <toshok@ximian.com>
22889
22890         * XplatUIX11.cs (SetWindowPos): we need to update both position as
22891         well as size after calling XMoveResizeWindow.  This keeps us from
22892         ignoring future SetWindowPos calls.  Fixes the disappearing
22893         DateTimePicker in the ToolBarDockExample from bug #72499.
22894
22895 2006-10-11  Chris Toshok  <toshok@ximian.com>
22896
22897         * TextBoxBase.cs: reorder things a bit when it comes to
22898         resizing-causing-recalculation.  we were recalculating the
22899         document when our position was changed, which shouldn't happen.
22900         We only care about size changes.  Clear up some more redundant
22901         recalculation calls while I'm at it.  This makes the toolbar dock
22902         example snappy when you're just dragging toolbars around (since it
22903         causes a relayout whenever you move one.)
22904
22905 2006-10-11  Chris Toshok  <toshok@ximian.com>
22906
22907         * ToolBarButton.cs (get_Rectangle): this only returns
22908         Rectangle.Empty if Visible == false, or Parent == null.
22909         Parent.Visible doesn't matter.
22910
22911 2006-10-10  Chris Toshok  <toshok@ximian.com>
22912
22913         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
22914         by .net 1.1, so switch to an internal method instead.
22915
22916 2006-10-10  Chris Toshok  <toshok@ximian.com>
22917
22918         * Control.cs (WM_PAINT): when a control is double buffered we draw
22919         initially to the ImageBuffer and then copy from there.  But when a
22920         parent control which has child controls is double buffered, the
22921         initial drawing doesn't encompass the entire ClientRectangle of
22922         the parent control, so we end up with uninitialized bits (this is
22923         easily seen by dragging the top toolbar in
22924         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
22925         manually set the ClipRectangle of the paint_event (only the one we
22926         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
22927         of the nastiness in bug #72499.
22928
22929         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
22930         which we use in Control.cs's WM_PAINT handling.
22931
22932 2006-10-10  Jackson Harper  <jackson@ximian.com>
22933
22934         * TextBoxBase.cs: Finish off the autoscrolling stuff.
22935
22936 2006-10-10  Chris Toshok  <toshok@ximian.com>
22937
22938         * Cursor.cs: Apply a slightly different patch to the one suggested
22939         in #79609.
22940
22941 2006-10-10  Jackson Harper  <jackson@ximian.com>
22942
22943         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
22944         not the parent form.
22945         * TextControl.cs: use difference in old line count vs new count to
22946         calculate how many lines were added, this takes into account soft
22947         line breaks properly.
22948
22949 2006-10-10  Chris Toshok  <toshok@ximian.com>
22950
22951         * LinkLabel.cs: don't call MeasureCharacterRanges against a
22952         rectangle located at 0,0 and the size of the text.  Use
22953         ClientRectangle instead.  This fixes rendering of non-left aligned
22954         link labels.
22955
22956 2006-10-10  Jackson Harper  <jackson@ximian.com>
22957
22958         * TextBoxBase.cs: When we set the selection start position the
22959         caret.
22960         * TextControl.cs: Need to update the caret when we decrement it to
22961         zero.
22962         - Make sure that the selection_visible flag gets reset to false if
22963         the selection isn't visible.  Before this you could get it set to
22964         visible by changing the selection start, then changing the end to
22965         equal the start.
22966
22967 2006-10-09  Jackson Harper  <jackson@ximian.com>
22968
22969         * TreeView.cs: Don't update scrollbars when we aren't visible.
22970         * TreeNodeCollection.cs: Only need to update scrollbars if being
22971         added to an expanded visible node or the root node.
22972
22973 2006-10-09  Chris Toshok  <toshok@ximian.com>
22974
22975         * XplatUIX11.cs (SendMessage): fix NRE.
22976
22977 2006-10-09  Jackson Harper  <jackson@ximian.com>
22978
22979         * TextBoxBase.cs: Implement horizontal autoscrolling.
22980         * TextControl.cs: Add a movement types that allows moving forward
22981         and backwards without wrapping.
22982
22983 2006-10-09  Mike Kestner  <mkestner@novell.com>
22984
22985         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
22986         with focus "expansion" of labels.  Fixes #79532 and then some.
22987         * ThemeWin32Classic.cs : add LineLimit to ListView label format
22988         when wrapping.
22989
22990 2006-10-09  Jackson Harper  <jackson@ximian.com>
22991
22992         * TextBoxBase.cs: Set the default max values to MaxValue since
22993         we use the scrollbar for autoscrolling and the default value is
22994         100.  If we don't do this the caret won't keep up with typing
22995         after about 18 characters.
22996         * TextControl.cs: Make sure the selection is offset by the
22997         viewport x.  This fixes selection when using auto scrolling.
22998
22999 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
23000         
23001         * Form.cs: The active control should be selected after the 
23002         OnLoad so that any child control initialization that affects
23003         the selection is done. Fixes #79406
23004
23005 2006-10-06  Chris Toshok  <toshok@ximian.com>
23006
23007         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
23008         to have no evil effects.
23009
23010         - Stop selecting StructureNotifyMask on non-toplevel windows.
23011
23012           The only way children should be resized is by using the SWF api,
23013           and we already send WM_WINDOWPOSCHANGED messages in those cases.
23014           Toplevel windows can be interacted with via the window manager,
23015           and so we keep the input mask there.
23016
23017           The other event StructureNotifyMask gives us (that we care
23018           about) is DestroyNotify.  The code is already structured such
23019           that it assumes we won't be getting a DestroyNotify event for
23020           the window we pass to XDestroyWindow (which is what
23021           StructureNotifyMask is supposed to guarantee.)  So, that code
23022           shouldn't be affected by this either.
23023
23024         - Stop selecting VisibilityChangeMask altogether.
23025
23026           We weren't doing anything with the resulting events anyway.
23027         
23028         This vastly reduces the number of X requests and events we see
23029         when resizing/laying out a large ui.
23030
23031 2006-10-06  Chris Toshok  <toshok@ximian.com>
23032
23033         * ScrollableControl.cs (DisplayRectangle): we need to take into
23034         account the DockPadding regardless of whether or not auto_scroll
23035         == true.  rework this slightly to this effect, and fix bug #79606,
23036         and part of #72499 (you can now see the drag handles and drag
23037         toolbars around).
23038
23039 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
23040
23041         * ListViewItem.cs: Collections of selected and checked items are now
23042         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
23043         we mark the collection "dirty".
23044         * ListView.cs: Marked collections readonly. Modified UpdateSelection
23045         to only clear SelectedItems when a new item is selected and MultiSelect
23046         is enabled. CheckedItems and SelectedItems now subscribe to Changed
23047         event of ListViewItemCollection, and mark its list dirty whenever
23048         that event is fire. This allows us to return selected/checked items 
23049         in the same order as they are in the Items collection. This matches
23050         the MS behavior.
23051
23052 2006-10-06  Chris Toshok  <toshok@ximian.com>
23053
23054         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
23055         right mouse clicks.  Fixes bug #79593.
23056
23057 2006-10-06  Chris Toshok  <toshok@ximian.com>
23058
23059         * Splitter.cs: doh, fix splitters that don't want to cancel the
23060         movement when you drag them.  Also, impose the limits on the
23061         values we send to the SplitterMovingEvent.  Fixes #79598.
23062
23063 2006-10-06  Jackson Harper  <jackson@ximian.com>
23064
23065         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
23066         since we use this for auto scrolling also.
23067
23068 2006-10-05  Chris Toshok  <toshok@ximian.com>
23069
23070         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
23071         beginning to think that most datagrid column types don't need this
23072         method.  Fixes bug #79392.
23073
23074 2006-10-05  Chris Toshok  <toshok@ximian.com>
23075
23076         * DataGrid.cs: move back to a more lazy scheme for creating the
23077         CurrencyManager, so we aren't updating it every time you set
23078         either DataSource or DataMember.  Also, don't call
23079         RecreateDataGridRows if the currency manager hasn't changed.
23080
23081 2006-10-05  Chris Toshok  <toshok@ximian.com>
23082
23083         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
23084         emitted, SelectedIndex should already be updated.  Fixes bug
23085         #78929.
23086
23087 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
23088
23089         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
23090           ToolStripTextBox.cs: Initial commit.
23091         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
23092
23093 2006-10-05  Jackson Harper  <jackson@ximian.com>
23094
23095         * TabControl.cs: We need to invalidate the tab control area when
23096         new ones are added (duh).
23097
23098 2006-10-03  Chris Toshok  <toshok@ximian.com>
23099
23100         * Form.cs (ProcessDialogKey): if the focused control is in this
23101         form and is a button, call its PerformClick method here.  Fixes
23102         #79534.
23103
23104 2006-10-04  Jackson Harper  <jackson@ximian.com>
23105
23106         * TabPage.cs: Ignore setting of Visible, and add an internal
23107         method for setting the controls visibility.  TabPage's Visible
23108         property is a little strange on MS, this seems to make us
23109         compatible, and fixes cases where people set all the tab pages to
23110         visible.
23111         * TabControl.cs: Use the new internal setting on tab pages
23112         visibility.
23113
23114 2006-10-03  Mike Kestner  <mkestner@novell.com>
23115
23116         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
23117
23118 2006-10-03  Mike Kestner  <mkestner@novell.com>
23119
23120         * ListView.cs : use is_visible instead of Visible to check if 
23121         scrollbars should be placed/sized.  Also some max_wrap_width
23122         love for LargeIcon view.  [Fixes #79533]
23123
23124 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
23125
23126         * TextControl.cs :
23127           Make set_TextAlign() do actually update the align. Fixed #78403.
23128
23129 2006-10-03  Chris Toshok  <toshok@ximian.com>
23130
23131         * DataGrid.cs: fix a crash when switching datasources if the
23132         vertical scrollbar is at someplace other than Value = 0.  Also,
23133         reduce the number of recalculation passes we do in SetDataSource
23134         from 2 to 1.
23135
23136 2006-10-03  Jackson Harper  <jackson@ximian.com>
23137
23138         * TextBoxBase.cs: Move the if value the same bail check up, we
23139         don't want to empty the document if it is already empty, this
23140         seems to severly mess up the caret.  TODO: I should probably fix
23141         the empty statement to update teh caret somehow.
23142
23143 2006-10-03  Chris Toshok  <toshok@ximian.com>
23144
23145         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
23146         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
23147         reflection, an internal row type, properties on said type, etc.)
23148         will work with our datagrid.  Fixes #79531.
23149
23150 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
23151
23152         * FileDialog.cs: Don't crash if a path is not accessible
23153           (System.UnauthorizedAccessException). Fixes #79569.
23154         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
23155           a ':' too. Return unknown icon for those paths/files.
23156
23157 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
23158
23159         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
23160         GetContainerControl returns null.
23161
23162 2006-10-02  Chris Toshok  <toshok@ximian.com>
23163
23164         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
23165         call to XGetWindowAttributes instead of "handle".  fixes an X
23166         error using notifyicon after the NotifyIconWindow to Form base
23167         class switch.
23168
23169 2006-10-02  Chris Toshok  <toshok@ximian.com>
23170
23171         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
23172         server grab and looping we need to do to get down to the most
23173         deeply nested child window.
23174         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
23175         QueryPointer again after the WarpPointer so we can generate a
23176         proper (fake) MotionNotify event to be enqueued in the destination
23177         window's queue.
23178         (GetCursorPos): call QueryPointer.
23179
23180         Fixes #79556.
23181
23182 2006-10-02  Jackson Harper  <jackson@ximian.com>
23183
23184         * NotifyIcon.cs: Derive the notify icon from a form, so things
23185         like FindForm work on it.
23186         - Swallow the WM_CONTEXTMENU message, since that is generated on
23187         mouse down, and context menu is a mouse up kinda guy.  I believe
23188         the correct fix here is probably to make the notify icon entirely
23189         NC area, but this seems to work fine for anyone not manipulating
23190         WndProc.
23191
23192 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
23193
23194         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
23195           ToolStripItemCollection.cs, ToolStripLabel.cs,
23196           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
23197           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
23198           Initial implementation.
23199         * TextRenderer.cs: Provide padding to MeasureText.
23200
23201 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
23202
23203         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
23204         of ButtonBaseAccessibleObject. Fix bug #79552.
23205
23206 2006-10-02  Jackson Harper  <jackson@ximian.com>
23207
23208         * MdiWindowManager.cs: When maximizing use the containers client
23209         rect, not it's bounds, so nc area is accounted correctly.
23210         - Use the parent form's size for the menu position, since the
23211         client isn't always the full form size.
23212
23213 2006-10-01  Chris Toshok  <toshok@ximian.com>
23214
23215         * ScrollableControl.cs: make sure neither right_edge or
23216         bottom_edge are < 0, since they're used as LargeChange for the
23217         horiz/vert scrollbars respectively.  Fixes #79539.
23218
23219 2006-10-01  Chris Toshok  <toshok@ximian.com>
23220
23221         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
23222         the xplatuix11 code can cause us to destroy/recreate our handle.
23223
23224         * XplatUIX11.cs
23225         (SystrayAdd):
23226         - this code can be invoked many times for the same Hwnd.  Make
23227           sure we only destroy the client window once (the first time this
23228           method is called).  This fixes bug #79544.
23229         - Remove the call to the improperly bound XSync.  why we had two
23230           bindings to this, I will never know, but this call resulted in
23231           events being discarded from the queue(!).
23232         - correct a misunderstanding of _XEMBED_INFO - the second atom is
23233           not our current state but the state we wish to be in.  So, 0 if
23234           we don't want to be mapped.  Change it to 1.
23235         (SystrayRemove): The XEMBED spec makes mention of the fact that
23236         gtk doesn't support the reparent of client windows away from the
23237         embedder.  Looking at gtksocket-x11.c seems to agree with this.
23238         The only avenue we have for removing systray icons is to destroy
23239         them.  We don't want the handle to go away for good, though, so
23240         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
23241         #79545.
23242         
23243 2006-10-01  Chris Toshok  <toshok@ximian.com>
23244
23245         * Form.cs (WndProc): inline the native_enabled variable usage into
23246         the cases in which it's used.  Fixes #79536.
23247
23248 2006-09-29  Mike Kestner  <mkestner@novell.com>
23249
23250         * ListView.cs : toggle the selection state for ctrl clicks in 
23251         multiselect mode. [Fixes #79417]
23252
23253 2006-09-29  Mike Kestner  <mkestner@novell.com>
23254
23255         * ListView.cs : kill CanMultiSelect and refactor the selection
23256         code to support multiselection in the absence of mod keys. Steal
23257         arrow/home/end keys by overriding InternalPreProcessMessage to
23258         restore regressed keynav behavior.
23259         [Fixes #79416]
23260
23261 2006-09-29  Jackson Harper  <jackson@ximian.com>
23262
23263         * MdiClient.cs: Repaint the titlebars when the active window is
23264         changed.
23265
23266 2006-09-29  Chris Toshok  <toshok@ximian.com>
23267
23268         * Application.cs: when entering a runloop with a modal, make sure
23269         the hwnd is enabled.  Fixes #79480.
23270
23271 2006-09-29  Chris Toshok  <toshok@ximian.com>
23272
23273         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
23274         when ListManager.CanAddRows == false, bump us back one.
23275
23276         * DataGridColumnStyle.cs (ParentReadOnly): remove the
23277         listmanager.CanAddRows check.  This makes ArrayLists uneditable
23278         using a datagrid, which is not right.
23279         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
23280         is an IEditable, but call property_descriptor.SetValue regardless.
23281         fixes #79435.
23282
23283 2006-09-29  Chris Toshok  <toshok@ximian.com>
23284
23285         * DataGridBoolColumn.cs: we need to test equality in the face of
23286         possible null values (as is the case with the default NullValue).
23287         This patch keeps us from crashing in that case.
23288
23289 2006-09-29  Jackson Harper  <jackson@ximian.com>
23290
23291         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
23292         here, since it will get called for every node collection in the
23293         tree. This is now done in the treeview once the sorting is
23294         finished.
23295         * TreeView.cs: Recalculate the visible order, and update the
23296         scrollbars after sorting, set the top nope to the root so that the
23297         recalc actually works.
23298
23299 2006-09-29  Chris Toshok  <toshok@ximian.com>
23300
23301         * LinkLabel.cs: more handling of the default link collection in
23302         the face of LinkArea manipulation.  The default link collection
23303         contains 1 element (start=0,length=-1).  If the user sets LinkArea
23304         to anything and the links collection is the default, clear it.
23305         Then only add the link if its nonempty.  Fixes #79518.
23306
23307 2006-09-29  Chris Toshok  <toshok@ximian.com>
23308
23309         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
23310         piece correctly when we hit a '\n'.  Fixes #79517.
23311
23312 2006-09-29  Chris Toshok  <toshok@ximian.com>
23313
23314         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
23315         change the binding of gdk_init_check to take two IntPtr's, and
23316         pass IntPtr.Zero for both of them.  Fixes #79520.
23317
23318 2006-09-29  Mike Kestner  <mkestner@novell.com>
23319
23320         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
23321         [Fixes #78779]
23322
23323 2006-09-28  Jackson Harper  <jackson@ximian.com>
23324
23325         * XplatUIX11.cs: When translating NC messages make sure we go from
23326         whole window to screen, not client window to screen.
23327         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
23328         method doesn't exist
23329         - Skip over controls that aren't forms when arranging.
23330
23331 2006-09-28  Jackson Harper  <jackson@ximian.com>
23332
23333         * XplatUIWin32.cs: Clip the rect to the parent window.
23334         * XplatUIStructs.cs: Add clipping modes struct.
23335         * InternalWindowManager.cs: New private method that factors title
23336         bar heights in when calculating the pos of an NC mouse message.
23337         - Use SendMessage to force a paint when the form's size is changed
23338         instead of painting the decorations immediately.
23339         - Don't let the NC button click messages get to DefWndProc,
23340         because they will attempt to handle windowing themself, and this
23341         messes up z-order (it will put them in front of the scrollbars).
23342         * XplatUIX11.cs: Make sure that we don't reset window managers if
23343         we already have one (ie the window is an MDI window).
23344
23345 2006-09-28  Chris Toshok  <toshok@ximian.com>
23346
23347         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
23348         menu code really needs going over.
23349
23350 2006-09-27  Chris Toshok  <toshok@ximian.com>
23351
23352         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
23353         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
23354         window is maximizable.  So, we need to make sure that even if we
23355         clear the border/wm frame of those functions, they're still
23356         available (basically, we remove the decoration without removing
23357         the function).  Half the fix for #79338.
23358
23359 2006-09-27  Chris Toshok  <toshok@ximian.com>
23360
23361         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
23362         Fixes bug #79515.
23363
23364 2006-09-27  Chris Toshok  <toshok@ximian.com>
23365
23366         * Splitter.cs: reorder things a bit so that we don't actually
23367         draw/move the splitter until after calling OnSplitterMoving.  This
23368         lets users cancel/disallow the movement by explicitly setting
23369         event.SplitX/SplitY.  Fixes #79372.
23370
23371 2006-09-27  Jackson Harper  <jackson@ximian.com>
23372
23373         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
23374         because it is most likely on a window being destroyed, and that
23375         will give us an X11 error.
23376
23377 2006-09-27  Chris Toshok  <toshok@ximian.com>
23378
23379         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
23380         the dropdown button now toggles between showing and hiding the
23381         dropdown.  Also, get rid of dropdown_form_showing and just use
23382         dropdown_form.Visible.  We still don't do a grab, but I'll leave
23383         that part to someone who has handled Capture-fu before.
23384
23385 2006-09-27  Chris Toshok  <toshok@ximian.com>
23386
23387         * DataGrid.cs: return false if alt isn't pressed when '0' is
23388         pressed.  this keeps the '0' key from being swallowed, and fixes
23389         bug #79350.
23390
23391 2006-09-27  Chris Toshok  <toshok@ximian.com>
23392
23393         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
23394         Calling Refresh (in response to a scrollbar event) screws up the
23395         scrollbar painting.  Fixes bug #78923.
23396
23397 2006-09-27  Chris Toshok  <toshok@ximian.com>
23398
23399         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
23400         then insert into hashtable" blocks threadsafe.
23401
23402 2006-09-27  Chris Toshok  <toshok@ximian.com>
23403
23404         * MessageBox.cs (CreateParams): the styles should be |'ed with our
23405         baseclass's, since otherwise the
23406         ControlBox/MinimizeBox/MaximizeBox assignments above have no
23407         effect.  This gets the close button back in messageboxes.
23408
23409 2006-09-27  Chris Toshok  <toshok@ximian.com>
23410
23411         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
23412         flag, not just != 0.  this makes flags that are actually multiple
23413         bits (like WS_CAPTION) work.  fixes bug #79508.
23414
23415 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
23416
23417         * PageSetupDialog.cs: add support for getting and settings the 
23418         paper size, source and orientation.
23419
23420 2006-09-26  Chris Toshok  <toshok@ximian.com>
23421
23422         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
23423         and caption == "", we need to remove the resize handles as well as
23424         the title bar.
23425
23426         * Control.cs (set_Text): turns out that setting Text on a form
23427         should change the WM styles on the window, since if ControlBox ==
23428         false, the only way to get a window border is to have a non-""
23429         Text property.  check winforms/forms/text.cs for an example.  so,
23430         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
23431         update both window styles and title.  This fixes a lot of dialogs
23432         (including the preferences dialog in MonoCalendar.)
23433
23434 2006-09-26  Chris Toshok  <toshok@ximian.com>
23435
23436         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
23437         control isn't a Form), call Win32ShowWindow to hide the window,
23438         but don't update the control Visible property.  When we reparent
23439         back to a parent control, call SetVisible in order for the
23440         window's visibility to be reinstated.
23441
23442         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
23443         the FosterParent.
23444
23445         * Control.cs (ControlCollection.Remove): remove that value.Hide()
23446         call for good, since it breaks MonoCalendar (and other things I'm
23447         sure.) Also, set all_controls to null *after* the owner calls,
23448         which end up regenerating it.
23449         (ChangeParent): allow new_parent to be == null, passing
23450         IntPtr.Zero down to XplatUI.
23451
23452         this fixes #79294 the right way.
23453
23454 2006-09-26  Mike Kestner  <mkestner@novell.com>
23455
23456         * GridEntry.cs : internal SetParent method.
23457         * PropertyGrid.cs : attach to property changed on the proper
23458         target if we have a hierarchical grid with subobjects. Setup
23459         GridItem.Parent for hierarchical items.
23460         * PropertyGridView.cs : Set value on the correct target for
23461         hierarchical grids. [Fixes #78903]
23462
23463 2006-09-26  Chris Toshok  <toshok@ximian.com>
23464
23465         * Control.cs (ChildNeedsRecreating): this should return true if
23466         either we're being recreated and the child is in our list, or our
23467         parent is waiting for our recreation.
23468
23469 2006-09-26  Chris Toshok  <toshok@ximian.com>
23470
23471         * Control.cs (ControlCollection.Remove): reinstate the
23472         value.Hide() call as suggested in bug #79294.
23473
23474 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
23475
23476         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
23477         coordinates (versus a relative move).
23478
23479 2006-09-26  Chris Toshok  <toshok@ximian.com>
23480
23481         * Control.cs: rework child recreation a little bit.  It turns out
23482         that we race between the DestroyNotify the WM_DESTROY message.  If
23483         the parent gets its DestroyNotify before the child gets the
23484         WM_DESTROY message, the child ends up not recreating (since the
23485         parent finishes its recreation on DestroyNotify, and the child
23486         checks ParentIsRecreating.)
23487
23488         So, instead we store off a list of all the child controls which
23489         need to be recreated when the parent control starts to recreate
23490         itself.  Then, when child controls get their WM_DESTROY message we
23491         check to see if they're in the parent's pending recreation list,
23492         and if so, we recreate.  This removes all dependency on ordering
23493         from the code and fixes the initial MonoCalendar upgrade dialog.
23494         
23495 2006-09-26  Jackson Harper  <jackson@ximian.com>
23496
23497         * TextControl.cs: Use the Line to get the length of the line,
23498         since soft line breaks can change the end line.
23499
23500 2006-09-26  Chris Toshok  <toshok@ximian.com>
23501
23502         * Control.cs (ControlCollection.AddImplicit): don't add the
23503         control again if it's already in one of our lists.  This keeps us
23504         from adding controls over and over again for comboboxes when their
23505         handle gets recreated (as the combobox adds implicit controls in
23506         OnHandleCreated).  Fixes the X11 errors in bug #79480.
23507
23508 2006-09-26  Jackson Harper  <jackson@ximian.com>
23509
23510         * TextControl.cs: When deleting characters make sure that any
23511         orphaned zero lengthed tags get deleted.
23512         - Fix ToString for zero lengthed tags.
23513
23514 2006-09-25  Jackson Harper  <jackson@ximian.com>
23515
23516         * TextControl.cs: When getting a tag at the location there can be
23517         multiple tags at the same spot, these are 0-lengthed tags that
23518         appear when extra formatting has been stuck in a location.  We
23519         need to pull out the last of these 0 lengthed tags.
23520
23521 2006-09-25  Jackson Harper  <jackson@ximian.com>
23522
23523         * TextControl.cs: Fix print out in debug method.
23524         * TextBoxBase.cs: When text is set bail if we are setting to the
23525         previous value.
23526         
23527 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
23528
23529         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
23530           It is now possible to change the selected index in a FontXXXListBox
23531           with the up and down arrow keys from the FontXXXTextBoxes.
23532           Also, send the FontXXXTextBox mouse wheel event to the corresponding
23533           FontXXXListBoxes to match ms.
23534
23535 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
23536
23537         * SystemInformation.cs: Return a clone of the theme's MenuFont because
23538         anyone can dispose it, anytime. All other properties returns enums, 
23539         structs or basic types so they don't need such tricks.
23540
23541 2006-09-22  Jackson Harper  <jackson@ximian.com>
23542
23543         * XplatUI.cs:
23544         * XplatUIWin32.cs:
23545         * Clipboard.cs:
23546         * DataFormats.cs:
23547         * XplatUIOSX.cs:
23548         * XplatUIDriver.cs: Update interface to add a primary selection
23549         flag, so the driver can use the primary selection buffer if
23550         needed.
23551         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
23552
23553         * RichTextBox.cs: We need to supply the data object to paste now
23554         (so we can choose to supply CLIPBOARD or PRIMARY).
23555         * TextBoxBase.cs: Supply data object to paste (see above).
23556         - Middle click uses the primary selection data object.
23557         
23558 2006-09-21  Chris Toshok  <toshok@ximian.com>
23559
23560         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
23561         of SetWMStyles.  It's still a rat's nest and is largely
23562         order-dependent which I dislike immensely.  This also fixes the X
23563         button disappearing from toplevel forms.
23564
23565 2006-09-21  Mike Kestner <mkestner@novell.com>
23566
23567         * ListBox.cs: move Jordi's click/dblclick raising code to the
23568         mouse up handler.
23569
23570 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
23571
23572         * ListBox.cs: Fixes 79450
23573
23574 2006-09-21  Mike Kestner <mkestner@novell.com>
23575
23576         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
23577         to deal with people updating the TreeNodeCollection after the tree
23578         is disposed.  "Fixes" 79330.
23579
23580 2006-09-20  Jackson Harper <jackson@ximian.com>
23581
23582         * TextControl.cs: Push the cursor record onto the undo stack
23583         before the delete action. This fixes 78651.
23584
23585 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
23586
23587         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
23588         CreateParams. Fixes 79329.
23589
23590 2006-09-19  Chris Toshok  <toshok@ximian.com>
23591
23592         * XplatUIX11.cs: a couple of blanket code massage passes to clean
23593         things up a bit.  First, get rid of the NetAtoms array (and the NA
23594         enum), and just embed the atoms as static fields.  Also, add a
23595         couple of functions (StyleSet and ExStyleSet) to clean up all the
23596         bitmask testing of styles.
23597
23598         * X11Structs.cs: remove the NA enum, not needed anymore.
23599         
23600 2006-09-19  Chris Toshok  <toshok@ximian.com>
23601
23602         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
23603         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
23604         added cleanup to get MessageBox titles appearing again, which were
23605         broken by my earlier fix for caption-less/ControlBox-less windows.
23606
23607 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
23608
23609         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
23610           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
23611           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
23612           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
23613           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
23614           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
23615           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
23616           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
23617           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
23618           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
23619           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
23620             Inital import.
23621         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
23622           ToolStripButton.cs: Stubs needed for above.
23623         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
23624
23625 2006-09-15  Chris Toshok  <toshok@ximian.com>
23626
23627         * XplatUIX11.cs:
23628         - make the MessageQueues hashtable Synchronized.
23629         
23630         - SendMessage: if the Hwnd is owned by a different thread, use the
23631         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
23632         thread.  Fixes bug #79201.
23633
23634 2006-09-15  Chris Toshok  <toshok@ximian.com>
23635
23636         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
23637         ControlBox == false, we disallow maximize/minimize/close.  If the
23638         form Caption is "" we also disallow move (and get rid of the Title
23639         decoration).  Unfortunately, regardless of how things are set,
23640         we're stuck with the Title and WM menu.
23641
23642 2006-09-15  Chris Toshok  <toshok@ximian.com>
23643
23644         * Application.cs: add locking around the static message_filters
23645         ArrayList, part of #79196.
23646
23647 2006-09-15  Chris Toshok  <toshok@ximian.com>
23648
23649         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
23650         Form.ControlBox == false, the window has no titlebar nor resize
23651         handles.  fixes bug #79368.
23652
23653 2006-09-15  Chris Toshok  <toshok@ximian.com>
23654
23655         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
23656         >= 0.  Fixes bug #79370.
23657
23658 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
23659         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
23660         * Control.cs:
23661             Add properties: LayoutEngine, Margin, DefaultMargin.
23662             Add method: GetPreferredSize.
23663             Move layout logic from PerformLayout to layout engines. 
23664
23665 2006-09-13  Chris Toshok  <toshok@ximian.com>
23666
23667         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
23668         fix for #79326 broke #78718, so this change addresses that.
23669
23670         - in SendWMDestroyMessages remove the call to
23671         CleanupCachedWindows, since we might be recreating the control and
23672         need to maintain the references to right Hwnd handles.  Also, set
23673         the zombie flag to true for each of the children in the hierarchy
23674         instead of calling hwnd.Dispose.  This will cause GetMessage to
23675         ignore all events for the window except for DestroyNotify.
23676
23677         - In GetMessage, ignore messages except for DestroyNotify for
23678         zombie hwnds.
23679         
23680         * Control.cs: revert the is_recreating fix from the last
23681         ChangeLog.  It's definitely "right", but it breaks switching from
23682         an MDI form to a non-MDI form.  Will need to revisit that.
23683
23684         * Hwnd.cs: add a zombie flag, which means "the
23685         client_window/whole_window handles are invalid, but we're waiting
23686         for the DestroyNotify event to come in for them".  Set the flag to
23687         false explicitly if setting WholeWindow/ClientWindow, and also
23688         when Disposing.
23689         
23690 2006-09-13  Chris Toshok  <toshok@ximian.com>
23691
23692         * XplatUIX11.cs: rework window destruction slightly.
23693
23694         - when destroying the windows associated with a control, we don't
23695         need 2 separate XDestroyWindow calls.  Just the one for the
23696         whole_window (or for client_window if whole_window is somehow
23697         IntPtr.Zero -- can this happen?) is enough.
23698
23699         - reworked SendWMDestroyMessages slightly, so we always dispose
23700         the child control hwnd's after sending the messages.
23701         
23702         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
23703         the two places it was used (one was even using hwnd.Handle and the
23704         other hwnd.client_window.  ugh), adding another call in
23705         SendWMDestroyMessages.  We need this new call because now the
23706         DestroyNotify events in the queue will be ignored for the child
23707         controls (as their hwnd's were disposed, and the window id's
23708         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
23709
23710         - this fixes bug #79326.
23711
23712 2006-09-13  Chris Toshok  <toshok@ximian.com>
23713
23714         * Control.cs: don't always set is_recreating to false at the end
23715         of RecreateHandle, since sometimes we're not done (and won't be
23716         until WndProc handles the WM_DESTROY message).  Also, set
23717         is_recreating to false in the WM_DESTROY handling code.  Part of
23718         the fix for bug #79326.
23719
23720 2006-09-13  Miguel de Icaza  <miguel@novell.com>
23721
23722         * X11DesktopColors.cs: Start the droppage of debugging messages.
23723
23724         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
23725
23726 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
23727
23728         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
23729
23730 2006-09-12  Chris Toshok  <toshok@ximian.com>
23731
23732         * DataGrid.cs (get_ListManager): if the list_manager is null, try
23733         to create it using SetDataSource.  Fixes bug #79151.
23734
23735 2006-09-11  Chris Toshok  <toshok@ximian.com>
23736
23737         * XEventQueue.cs: add a DispatchIdle property.
23738
23739         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
23740         either the queue is null, or the queue has DispatchIdle set to
23741         true.
23742         (DoEvents): set queue.DispatchIdle to false around the
23743         peek/translate/dispatch message loop in this method.  This keeps
23744         Application.Doevents from emitting idle events.  Part of the fix
23745         for #78823.
23746
23747 2006-09-11  Chris Toshok  <toshok@ximian.com>
23748
23749         * DataGrid.cs (set_DataSource): make this work for both the
23750         winforms/datagrid test and ReportBuilder.  It seems as though when
23751         we've created a ListManager (or maybe it's if we have a
23752         BindingContext?), when we set the DataSource it clears the
23753         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
23754         #79333.
23755
23756 2006-09-11  Chris Toshok  <toshok@ximian.com>
23757
23758         * XplatUIX11.cs: deal with queue being null, which happens in all
23759         the Clipboard functions.  Fixes one of the two problems mentioned
23760         in #78612.
23761
23762 2006-09-11  Chris Toshok  <toshok@ximian.com>
23763
23764         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
23765         button on various spots (including outside the menu) works closer
23766         to MS, and doesn't crash.  Fixes #79343.
23767
23768 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
23769
23770         * ListView.cs: Do not initialize item_sorter in init. To match MS,
23771         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
23772         and the internal comparer is set. When a new ListViewItemSorter is set,
23773         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
23774         was specified. No further processing is necessary if SortOrder is set
23775         to it's current value. If Sorting is modified to None, and View is
23776         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
23777         (either custom or our internal ItemComparer) to null, on 1.0 profile
23778         only set item_sorter to null if its our internal IComparer. If Sorting
23779         is modified to Ascending or Descending, then use our internal IComparer
23780         if none is set, and if the current IComparer is our internal one then:
23781         on 2.0 profile always replace it with one for new Sorting, and on 1.0
23782         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
23783         Enum.IsDefined to verify whether a valid View value is specified in
23784         its setter. Automatically sort listview items when listview is
23785         created. In Sort, do nothing if ListView is not yet created, or if
23786         no item_sorter is set (no Sorting was set, Sorting was explicitly set
23787         to None or ListViewItemSorter was set to null). Added Sort overload
23788         taking a bool to indicate whether the ListView should be redrawn when
23789         items are sorted (we use this in ListViewItemCollection to avoid double
23790         redraws). Modified our internal IComparer to take the sort order into
23791         account. In Add and AddRange methods of ListViewItemCollection, also
23792         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
23793         view), but use overload with noredraw option to avoid double redraw.
23794         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
23795         true when View is Tile, and do the same when attempting to set View to
23796         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
23797         for selected/checked indices, as it involves overhead when sorting is
23798         done while these collections are not used all that often. Instead
23799         we'll build the indices on demand. Modified IList implementation of
23800         CheckedIndexCollection to use public methods if object is int.
23801         Modified CheckedListViewItemCollection to hide checked items if
23802         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
23803         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
23804         IList implementation in SelectedIndexCollection to use public methods
23805         if object is int. Modified SelectedListViewItemCollection to hide
23806         selected items if listview is not yet created.
23807         * ListViewItem.cs: CheckedIndices list no longer needs to be
23808         maintained separately (see ListView changes). Also clone font, fixes
23809         test failure.
23810
23811 2006-09-11  Mike Kestner  <mkestner@novell.com>
23812
23813         * ComboBox.cs: if we are updating the contents of the currently
23814         selected index, refresh the control or the textbox selection.
23815         [Fixes #79066]
23816
23817 2006-09-11  Mike Kestner  <mkestner@novell.com>
23818
23819         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
23820         the 'specified' logic has been moved there.  This seems like a bug 
23821         in Control.cs, since our current SetBoundsCore completely ignores 
23822         the specified parameter.  Peter's commit seems to indicate that is 
23823         the way the MS control implementation works.  [Fixes #79325]
23824
23825 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
23826
23827         * XplatUI.cs: Set default_class_name to be composed
23828         of current domain id. This allows MWF to be loaded in multiple
23829         domains on Win32.
23830
23831 2006-09-09  Miguel de Icaza  <miguel@novell.com>
23832
23833         * X11Keyboard.cs: If we are unable to obtain the input method, do
23834         not call CreateXic to create the input context.   Should fix
23835         #78944/79276.
23836
23837 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
23838
23839         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
23840           Simplified gnome support by adding more pinvokes to get the
23841           icon for a file or mime type.
23842
23843 2006-09-08  Jackson Harper  <jackson@ximian.com>
23844
23845         * MenuAPI.cs: Deslect popup context menu items before closing the
23846         window, so that you don't see the previously selected item
23847         selected when you reopen the menu.
23848         * TextControl.cs: Update the cursor position even if we don't have
23849         focus.  This fixes typing in things like the ComboBox.  I'm not
23850         totally sure we should always set the visibility if we don't have
23851         focus, but couldn't find any corner cases where the cursor showed
23852         up when it shouldn't.
23853
23854 2006-09-08  Chris Toshok  <toshok@ximian.com>
23855
23856         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
23857         our arrays are length 256.  & 0xff before indexing.  Fixes the
23858         crash in bug #78077.
23859         
23860 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23861
23862         * ThemeWin32Classic.cs: 
23863         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
23864         is true. Handle that check box too.
23865
23866 2006-09-07  Chris Toshok  <toshok@ximian.com>
23867
23868         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
23869         79244.
23870
23871 2006-09-07  Chris Toshok  <toshok@ximian.com>
23872
23873         * Control.cs: in set_BackColor only do the work if
23874         background_color != value.
23875
23876         * XplatUIX11.cs: move the clearing of invalid areas (both client
23877         and nc) to the same block of code where we set (nc_)expose_pending
23878         to false.  That is, move it from PaintEventEnd to PaintEventStart,
23879         so things that cause invalidates from within OnPaint will trigger
23880         another call to OnPaint.  Fixes bug #79262.
23881
23882 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
23883
23884         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
23885         * FileDialog.cs: Fix typo
23886
23887 2006-09-07  Jackson Harper  <jackson@ximian.com>
23888
23889         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
23890         for tab pages if they have any.
23891
23892 2006-09-06  Mike Kestner  <mkestner@novell.com>
23893
23894         * Splitter.cs: use the "current" rect when finishing drag handle
23895         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
23896
23897 2006-09-06  Mike Kestner  <mkestner@novell.com>
23898
23899         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
23900         support offset splitters. [Fixes #79298]
23901
23902 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
23903
23904         * Mime.cs: Fixed a bug that could override the global mime type
23905           result.
23906
23907 2006-09-05  Jackson Harper  <jackson@ximian.com>
23908
23909         * TabControl.cs: Better calculation method for setting the slider
23910         pos. Prevents crashes on really wide tabs.
23911         - Draw Image on tab pages if an image list is used.
23912
23913 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23914
23915         * MonthCalendar.cs: When Font changes, the Size should be
23916         updated to fit the new font's space requirements.
23917
23918 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
23919
23920         * ListBox.cs: If the items are cleared with Items.Clear set
23921           top_index to 0.
23922
23923 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23924
23925         * MonthCalendar.cs: Handle arrow keys as input keys. Also
23926         fire DateChanged event instead of DateSelected event when
23927         the date was changed by keyboard interaction.
23928
23929 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23930
23931         * DateTimePicker.cs: Handle DateChanged for the associated
23932         month_calendar control, and set month_calendar.Font from 
23933         OnFontChanged method, as well as resize the height of the
23934         control when needed. Make PreferredHeight proportional.
23935
23936 2006-09-01  Chris Toshok  <toshok@ximian.com>
23937
23938         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
23939         properties.
23940
23941         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
23942
23943 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
23944
23945         * FileDialog.cs: Set ClientSize instead of window size, to allow space
23946           for decorations (Fixes #79219)
23947
23948 2006-09-01  Mike Kestner  <mkestner@novell.com>
23949
23950         * ComboBox.cs: first stab at sorting plus some selection handling
23951         fixes to bring us more in line with MS behavior.  Also switches back
23952         to index based selection.  Alternative patches for index-based 
23953         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
23954         and latency@gmx.de on bug 78848.  I assume they were similar to this
23955         code I've had simmering in my tree forever.
23956         [Fixes #78848]
23957
23958 2006-09-01  Chris Toshok  <toshok@ximian.com>
23959
23960         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
23961         when setting list position guard against ending up with a -1 index
23962         (the other part of the fix for #78812).  Should probably make sure
23963         we don't need the analogous fix in the ItemDeleted case.
23964
23965         * DataGrid.cs:
23966         - in SetDataSource, work around the fact that the way
23967         OnBindingContextChanged is invoked will cause us to re-enter this
23968         method.  I'll remove the hack once I investigate
23969         OnBindingContextChanged.
23970
23971         - fix the logic in set_DataSource and set_DataMember (basically
23972         what to do if the other of the two is null.)
23973         
23974         - in OnListManagerItemChanged, we need to take into account the
23975         edit row when deciding whether or not to call RecreateDataGridRows
23976         (part of the fix for #78812).
23977
23978 2006-09-01  Jackson Harper  <jackson@ximian.com>
23979
23980         * Splitter.cs: Don't do anything if there is no control to affect
23981         (prevents us from crashing in weird tet cases).
23982         * TreeView.cs: Bounding box for the mouse movement reverting
23983         focus/selection back to previously selected node.  This matches
23984         MS, and makes the tree a lot more useable.
23985         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
23986         use clipping so they are not drawn.  This fixes when the control
23987         is set to have a transparent background, or if it was over an
23988         image.
23989
23990 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
23991
23992         * MimeIcon.cs: Improved handling for reading default icons when
23993           using gnome (2.16 made it necessary). Check and read svg icons
23994           first, then 48x48 and then 32x32 icons.
23995
23996 2006-08-31  Chris Toshok  <toshok@ximian.com>
23997
23998         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
23999         visible.
24000
24001         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
24002         ProcessKeyPreview.  Fixes part of #77806.
24003
24004         * DataGrid.cs: big patch.
24005
24006         - revert the queueing up of DataSource/DataMember if inside
24007         BeginInit/EndInit calls.  That's not the way the datagrid achieves
24008         its delayed databinding.  Instead, call SetDataSource in
24009         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
24010         #78811.
24011
24012         - Also, it wasn't mentioned in #78811, but the test case exhibits
24013         behavior that was lacking in our datagrid implementation - Columns
24014         that have mapping names that don't exist in the datasource's
24015         properties aren't shown.  Yuck.  To fix this I added the bound
24016         field to the column style, and basically any calculation to figure
24017         out anything about columns uses a loop to find the bound columns.
24018         still need to investigate if I can cache an array of the bound
24019         columns or if the indices must be the same.
24020
24021         - When setting CurrentCell, we no longer abort if the cell being
24022         edited was in the add row.  This fixes the other part of #77806.
24023
24024         - The new code also fixes #78807.
24025         
24026         * ThemeWin32Classic.cs: perpetrate the same disgusting
24027         column.bound field hack, and only render bound fields.
24028
24029 2006-08-31  Chris Toshok  <toshok@ximian.com>
24030
24031         * DataGridColumnStyle.cs: add bound field.  this field is true if
24032         the datasource has a property corresponding to the mapping name.
24033
24034         * DataGridTableStyle.cs: set the bound field on the column styles
24035         depending on whether or not we have a column for that property.
24036
24037 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
24038
24039         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
24040           splitter control (fixes #79228)
24041
24042 2006-08-31  Chris Toshok  <toshok@ximian.com>
24043
24044         * DataGridColumnStyle.cs: we need to delay the assignment of
24045         property descriptor until the last possible moment due to the lazy
24046         databinding stuff in the datagrid.  Also, fix the exceptions
24047         thrown by CheckValidDataSource to match MS.
24048
24049 2006-08-31  Jackson Harper  <jackson@ximian.com>
24050
24051         * Form.cs: When activated select the active control, if there is
24052         no active control, we select the first control.
24053         * XplatUIX11.cs: If there is no focus control when we get a
24054         FocusIn event, find the toplevel form and activate it.  This
24055         occurs when you popup a window, it becomes the focus window, then
24056         you close that window, giving focus back to the main window.
24057
24058 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24059
24060         * MonthCalendar.cs: 
24061         * ThemeWin32Classic.cs: Cache Font in bold style, as well
24062         as StringFormat with Center alignments in MonthCalendar,
24063         instead of creating new ones when drawing the control. 
24064         Also, draw the month name in bold style.
24065
24066 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
24067
24068         * Control.cs:
24069           - PerformLayout(): It would seem MS performs the fill even if the 
24070             control is not visible (part of #79218 fix)
24071           - ResetBackColor(): Use the setter to reset the color, to allow
24072             overriders to catch the change.
24073         * Form.cs:
24074           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
24075           - CreateHandle(): dito (part of $79218 fix)
24076           - Don't set an icon if we have a dialog
24077         * ScrollableControl.cs:
24078           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
24079           - ScrollIntoView(): No need to scroll if control is already visible
24080             (resolves fixme and fixes #79218)
24081
24082 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24083
24084         * MonthCalendar.cs: Change proportions in SingleMonthSize
24085         to match the aspect of the original control.
24086
24087 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
24088
24089         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
24090           get updated when they get maximized.
24091
24092 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
24093
24094         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
24095
24096 2006-08-29  Chris Toshok  <toshok@ximian.com>
24097
24098         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
24099
24100 2006-08-29  Jackson Harper  <jackson@ximian.com>
24101
24102         * TreeView.cs: Need to track selected node and highlighted node,
24103         they aren't always the same thing, when the mouse is down on a
24104         node it is hilighted, but not selected yet.
24105         - Do the HideSelection stuff right
24106         - Need to focus on rbutton mouse down. And redraw selection when
24107         right click is mouse upped.
24108
24109 2006-08-29  Mike Kestner  <mkestner@novell.com>
24110
24111         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
24112         when SubItems.Count < Columns.Count.  [Fixes #79167]
24113
24114 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
24115
24116         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
24117
24118 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
24119
24120         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
24121           from X. Only send based on ConfigureNotify if we don't have the
24122           correct location in hwnd (if the window manager moved us)
24123
24124 2006-08-28  Mike Kestner  <mkestner@novell.com>
24125
24126         * ListView.cs: remove a TODO. 
24127         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
24128         [Fixes ListView part of #79166]
24129
24130 2006-08-28  Mike Kestner  <mkestner@novell.com>
24131
24132         * ListView.cs: move wheel handler to parent since it is focused
24133         instead of the item_control now.  [Fixes #79177]
24134
24135 2006-08-28  Mike Kestner  <mkestner@novell.com>
24136
24137         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
24138         when the control is focused. [Fixes #79171]
24139
24140 2006-08-28  Mike Kestner  <mkestner@novell.com>
24141
24142         * ListView.cs: size the item and header controls for empty and
24143         unscrollable views.
24144         * ThemeWin32Classic.cs: draw disabled backgrounds.
24145         [Fixes #79187]
24146
24147 2006-08-28  Chris Toshok  <toshok@ximian.com>
24148
24149         * Form.cs: remove unused "active_form" static field.
24150
24151         * Hwnd.cs: lock around accesses to static windows collection.
24152
24153         * Application.cs: lock threads in Exit ().
24154
24155 2006-08-28  Chris Toshok  <toshok@ximian.com>
24156
24157         * NativeWindow.cs: lock around accesses to window_collection.
24158         
24159 2006-08-28  Chris Toshok  <toshok@ximian.com>
24160
24161         * Control.cs: err, fix this the right way, by locking on controls
24162         when using it.  not by making it synchronized.
24163
24164 2006-08-28  Chris Toshok  <toshok@ximian.com>
24165
24166         * Control.cs: make the static "controls" field synchronized, as it
24167         gets updated from multiple threads.
24168
24169 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
24170
24171         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
24172           Prevent other threads from exiting when calling thread sets quit state.
24173         * XEventQueue.cs: Added PostQuitState property
24174
24175 2006-08-27  Chris Toshok  <toshok@ximian.com>
24176
24177         * AsyncMethodData.cs: add a slot for the window handle.
24178
24179         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
24180         window (the destination control's window, not the foster window).
24181
24182         * Control.cs (BeginInvokeInternal): store the window's handle in
24183         the AsyncMethodData.
24184         
24185
24186 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
24187
24188         * XplatUIX11.cs:
24189           - PostQuitMessage: Removed resetting S.D display handle, we might have
24190             another loop started after calling PostQuitMessage (Fixes #79119)
24191           - Created destructor to reset S.D handle
24192
24193 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
24194
24195         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
24196
24197 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
24198
24199         * TextControl.cs (Insert): Update the caret position even if we don't
24200           have a handle yet, just don't call the driver in that case.
24201         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
24202           to the end of the new selection text (Fixes #79184)
24203
24204 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
24205
24206         * Form.cs (Activate): Only activate if the handle is created)
24207         * Control.c:
24208           - Mark window as invisible when it's disposed
24209           - Check if window handle is created when setting window visible, 
24210             instead of relying just on the is_created variable
24211           - Check if object is disposed when creating the control (Fixes #79155)
24212
24213 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
24214
24215         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
24216           when allowing layout again. Otherwise we re-generate the anchoring 
24217           distance to the border again and actually alter what the user wanted
24218           This is ugly, it'd be better if we used DisplayRectangle instead of
24219           ClientRectangle for Control.UpdateDistances, but that causes us to
24220           have other problems (initial anchoring positons would be wrong)
24221           (Fixes #78835)
24222
24223 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
24224
24225         * Control.cs:
24226           - The size and location setters shouldn't go directly to 
24227             SetBoundsCore, but to SetBounds, which triggers layout on the
24228             parent, then calls SetBoundsCore. (Related to fix for #78835)
24229           - SetBounds: Moved actual location update code into this function
24230             from SetBoundsCore, to match MS. Added call to PerformLayout if
24231             we have a parent (to trigger resizing of anchored parents if the 
24232             child size has changed (see testcase for #78835) 
24233         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
24234           new control code
24235         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
24236
24237 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
24238
24239         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
24240           System.Drawing when a toplevel window gets closed; there might
24241           be other toplevel windows belonging to the same app (Fixes #78052)
24242
24243 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
24244
24245         * FileDialog.cs: After reading FileDialog settings from mwf_config
24246           use Desktop prefix only if a real folder doesn't exist anymore.
24247         * FontDialog.cs: Added char sets.
24248           It is now possible to select the font, size or style with the
24249           textboxes.
24250
24251 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
24252
24253         * PrintPreviewDialog.cs: Use assembly name constants.
24254
24255 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
24256
24257         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
24258           scrollbar from whacking it's buttons)
24259
24260 2006-08-24  Chris Toshok  <toshok@ximian.com>
24261
24262         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
24263         in this patch (aggregating setting Left/Top/Width/Height to
24264         setting Bounds on the scrollbars), but the crux of the fix is in
24265         Recalculate, where we scroll by the remaining scroll_position if
24266         we're hiding a scrollbar.  The 2*$5 reward in the comment is
24267         serious.
24268
24269 2006-08-24  Jackson Harper  <jackson@ximian.com>
24270
24271         * MdiClient.cs:
24272         * MdiWindowManager.cs: If the form is made a non-mdi window we
24273         need to remove the form closed event so that closing forms works
24274         correctly.
24275
24276 2006-08-24  Jackson Harper  <jackson@ximian.com>
24277
24278         * Control.cs: Make IsRecreating internal so that the driver can
24279         check it
24280         - Temporarily remove the Hide when controls are removed, its
24281         making a whole bunch of things not work because visibility isn't
24282         getting reset elsewhere correctly
24283         * Form.cs: Need to do a full handle recreation when the mdi parent
24284         is set.
24285         * XplatUIX11.cs: If we are recreating handles don't dispose the
24286         HWNDs.  What was happening is the handles were being recreated in
24287         SendWMDestroyMessages, but then flow continued on in that method
24288         and destroyed the new handles.
24289
24290 2006-08-23  Jackson Harper  <jackson@ximian.com>
24291
24292         * Form.cs: MdiClient is always at the back of the bus
24293         * Control.cs: When the order of items in the collection is changed
24294         we need to reset the all_controls array
24295         - do the same sorta setup thats done when adding a control when a
24296         control is set on the collection.
24297
24298 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
24299
24300         * TextBoxBase.cs (get_Text): Return an empty array if our document
24301           is empty (fixes #79052)
24302
24303 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
24304
24305         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
24306           on WM_SYSCHAR messages (fixes #79053)
24307
24308 2006-08-23  Chris Toshok  <toshok@ximian.com>
24309
24310         * DataGrid.cs: fix flickering when scrolling vertically.
24311
24312 2006-08-23  Chris Toshok  <toshok@ximian.com>
24313
24314         * DataGrid.cs (EndEdit): only invalidate the row header when we
24315         need to.
24316
24317 2006-08-23  Chris Toshok  <toshok@ximian.com>
24318
24319         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
24320         methods.  fixes the flicker when scrolling around.
24321
24322 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
24323
24324         * FileDialog.cs: Making sure the control is created before we get a 
24325           chance to use it with BeginInvoke (Fixes #79096)
24326
24327 2006-08-23  Chris Toshok  <toshok@ximian.com>
24328
24329         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
24330         width to use when painting the rows.
24331
24332 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
24333
24334         * TextBoxBase.cs:
24335           - Throw ArgumentException if a negative value is passed to SelectionLength
24336           - Update the selection end if start is moved. end needs to be always
24337             after start. (Fixes #79095)
24338           - Track selection length; MS keeps the selection length even if start
24339             is changed; reset on all other operations affection selection
24340
24341 2006-08-22  Jackson Harper  <jackson@ximian.com>
24342
24343         * TreeView.cs: Make sure both scrollbars get displayed and sized
24344         correctly when the other bar is visible.
24345         - Use the original clip rectangle for checking if the area between
24346         the two scrollbars is visible, not the viewport adjusted clipping
24347         rectangle.
24348
24349 2006-08-22  Jackson Harper  <jackson@ximian.com>
24350
24351         * Binding.cs: We don't use IsBinding because it requires the
24352         control to be created, which really shouldn't be necessary just to
24353         set a property on the control.
24354
24355 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24356
24357         * ComboBox.cs: Some CB.ObjectCollection methods must throw
24358         ArgumentNullReferenceException when the argument is null.
24359
24360 2006-08-21  Jackson Harper  <jackson@ximian.com>
24361
24362         * Timer.cs: Track the thread that the timer is started in (NOT
24363         CREATED), this way messages for it will only be triggered on its
24364         queue.
24365         * XEventQueue.cs: Track the timers here, this makes timers per
24366         thread, like MS.
24367         * XplatUIX11.cs: The timers are moved to the XEventQueue.
24368
24369 2006-08-19  Chris Toshok  <toshok@ximian.com>
24370
24371         * XplatUIX11.cs: after further communication with pdb, we get the
24372         best of both worlds.  SetZOrder working for un-Mapped windows, and
24373         no X errors for un-mapped windows.
24374
24375 2006-08-19  Chris Toshok  <toshok@ximian.com>
24376
24377         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
24378         as it was causing pdn toolbars to not have the correct stacking.
24379
24380 2006-08-18  Mike Kestner  <mkestner@novell.com> 
24381
24382         * ListView.cs : guard against negative ClientArea.Width in scrollbar
24383         calculation.  Not sure why control should ever be setting a negative
24384         width though.  Fixes #78931.
24385
24386 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24387
24388         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
24389         null items in ObjectCollection class.
24390         * ListBox.cs.: Likewise.
24391
24392 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
24393
24394         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
24395           as the base method in ThemeWin32Classic should work fine.
24396           Fixed bug #78607.
24397
24398 2006-08-18  Jackson Harper  <jackson@ximian.com>
24399
24400         * Binding.cs: When validating if the value entered doesn't convert
24401         properly reset to the old value.
24402         * RadioButton.cs: Don't fire click when we get focus.
24403
24404 2006-08-18  Jackson Harper  <jackson@ximian.com>
24405
24406         * FileDialog.cs: Paint the selection on the directory combobox the
24407         same way as on MS. 
24408
24409 2006-08-17  Jackson Harper  <jackson@ximian.com>
24410
24411         * ErrorProvider.cs: Don't allow the error control to be selected.
24412         * Control.cs: Don't send the SetFocus messages, the control
24413         activation will do this, and if we do it blindly here validation
24414         does not work.
24415
24416 2006-08-17  Jackson Harper  <jackson@ximian.com>
24417
24418         * Control.cs:
24419         * ContainerControl.cs: Make validation events fire in the correct
24420         order.  TODO: For some reason the first validation event is not
24421         getting fired.
24422
24423 2006-08-17  Mike Kestner  <mkestner@novell.com> 
24424
24425         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
24426
24427 2006-08-17  Mike Kestner  <mkestner@novell.com> 
24428
24429         * ComboBox.cs : implement scroll wheel support for popped-down
24430         state. Fixes #78945. 
24431
24432 2006-08-17  Jackson Harper  <jackson@ximian.com>
24433
24434         * TreeView.cs: Specify treeview actions (old patch that didn't get
24435         committed for some reason).
24436         - Don't let the mouse wheel scroll us too far.  Just want to make
24437         the bottom node visible, not scroll it all the ways to the top.
24438
24439 2006-08-17  Jackson Harper  <jackson@ximian.com>
24440
24441         * XplatUIX11.cs: Mouse wheel events go to the focused window.
24442
24443 2006-08-17  Mike Kestner  <mkestner@novell.com> 
24444
24445         * ComboBox.cs : don't do mouseover selection in simple mode.
24446
24447 2006-08-16  Jackson Harper  <jackson@ximian.com>
24448
24449         * Form.cs: Fire the closing events for all the mdi child windows
24450         when a window is closed.  If the cancel args are set to true, the
24451         main window still gets the event fired, but it doesn't not close.
24452         * MdiWindowManager.cs: Do this closing cleanup in a Closed
24453         handler, instead of when the button is clicked, so cancelling the
24454         close works correctly.
24455         * ComboBox.cs: Send the mouse down to the scrollbar.
24456
24457 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24458
24459         * ListBox.cs: When passing 'null' to SelectedItem,
24460         set SelectedIndex to -1, to unselect items. This is the
24461         observed behaviour in .Net.
24462
24463 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
24464
24465         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
24466           MS flags saying there won't be any. (fixes #78800)
24467         * Control.cs (HandleClick): Made virtual
24468
24469 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
24470
24471         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
24472           cultures. Fixed bug #78399.
24473
24474 2006-08-16  Jackson Harper  <jackson@ximian.com>
24475
24476         * Form.cs: Use the MdiClients MdiChildren property to access
24477         MdiChildren instead of creating the array from the child controls.
24478         * MdiClient.cs: Maintain a separate array of the mdi children, so
24479         that insertion order is maintained when the Z-order is changed.
24480
24481 2006-08-16  Mike Kestner  <mkestner@novell.com> 
24482
24483         * ListView.cs : add an ItemComparer and default to it for sorting.
24484         Fixes #79076, but sorting needs a complete overhaul to be compat with
24485         MS.
24486
24487 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
24488
24489         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
24490
24491 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24492
24493         * Hwnd.cs (Mapped): Properly traverse the tree
24494
24495 2006-08-15  Chris Toshok  <toshok@ximian.com>
24496
24497         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
24498         pass manager.Current.GetType() to ParseData.  It has to be the
24499         property type.  So, hold off doing the ParseData until we're in
24500         SetPropertyValue where we know the type.  This fixes the crash in
24501         #78821 but the textbox is still empty.
24502
24503 2006-08-15  Chris Toshok  <toshok@ximian.com>
24504
24505         * DataGrid.cs:
24506         - when we're scrolling, only call Edit() again if the
24507         current cell is still unobscured. Fixes bug #78927.
24508         - when handling mousedown on a cell, ensure the cell is visible
24509         before calling Edit.
24510         - remove the properties from DataGridRow, and remove the
24511         DataGridParentRow class altogether.
24512         
24513
24514 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24515
24516         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
24517           fire OnTextChanged by ourselves. There's no point calling base,
24518           we don't set the base value anywhere else. Fixes #78773.
24519
24520 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24521
24522         * ListBox.cs: Call CollectionChanged when modifying
24523         an item from Items indexer, to update the actual items
24524         in the list box.
24525
24526 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24527
24528         * PrintDialog.cs: Small fixes for focus and a pair of checks,
24529         to match .Net behaviour.
24530
24531 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24532
24533         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
24534
24535 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
24536
24537         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
24538
24539 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24540
24541         * MessageBox.cs: Prevent potential NRE exception.
24542         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
24543
24544 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
24545
24546         * MessageBox.cs: Calculate the owner of a messagebox, also make
24547           it topmost. Fixes #78753
24548
24549 2006-08-14  Chris Toshok  <toshok@ximian.com>
24550
24551         * XplatUIX11.cs: A couple of fixes so that metacity will let us
24552         programmatically move windows.  first, set the PPosition hint as
24553         well as the USPosition hint.  Second include some code from pdb
24554         that sets the window type to NORMAL when we set the transient for
24555         hint.  This is because, in the absence of a window type, metacity
24556         thinks any window with TransientFor set is a dialog, and refuses
24557         to let us move it programmatically.  fascists.
24558
24559 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
24560
24561         * XplatUIX11.cs: When setting normal hints, take into consideration
24562           an different hints previously set so we don't delete them (fixes #78866)
24563
24564 2006-08-12  Chris Toshok  <toshok@ximian.com>
24565
24566         * ToolBarButton.cs: make Layout return a boolean, if something to
24567         do with the button's layout changed.
24568
24569         * ToolBar.cs:
24570         - add another parameter to Redraw, @force, which all existing
24571           calls set to true.
24572         - make the Layout function return a boolean which is true if the
24573           layout has actually changed.  Redraw now uses this (and @force)
24574           to determine when to invalidate.  At present the only place
24575           where @force can be false is the call from OnResize, when
24576           background_image == null.  So, resizing a toolbar when the
24577           layout doesn't change results in no drawing.
24578
24579 2006-08-12  Chris Toshok  <toshok@ximian.com>
24580
24581         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
24582         the VScrollBar and HScrollbar reversed.  oops.
24583
24584         * DataGrid.cs: fix the logic that assigns sizes to the implicit
24585         scrollbars.  we were assigning them twice (once in
24586         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
24587         therefore causing two scrollbar resizes (and redraws?) to happen
24588         per grid resize.
24589
24590 2006-08-12  Chris Toshok  <toshok@ximian.com>
24591
24592         * ToolBarButton.cs: redraw the entire button if the theme tells us
24593         to.
24594
24595         * Theme.cs: add ToolBarInvalidateEntireButton.
24596
24597         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
24598         buttons, just the border.
24599
24600         * ThemeNice.cs: redraw the entire toolbar button since we need to
24601         draw the highlight image.
24602
24603         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
24604         we need to redraw the entire button (not just the border).
24605
24606 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
24607
24608         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
24609           for vertical bars. Fixes the mismatches shown by #78513
24610
24611 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
24612
24613         * FileDialog.cs: If a saved/remembered path doesn't exist
24614           anymore, fall back to "Desktop".
24615
24616 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
24617
24618         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
24619           parent. It's apparently legal to not have one
24620         * XplatUIX11.cs:
24621           - SetZOrder: Don't try to set Z-Order on an unmapped window
24622           - CreateWindow: 0,0 are legal coordinates for a window. don't move
24623             it unless the coordinates are negative
24624
24625 2006-08-10  Mike Kestner  <mkestner@novell.com>
24626
24627         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
24628         when setting to null per msdn docs.  Fixes #78854.
24629
24630 2006-08-10  Chris Toshok  <toshok@ximian.com>
24631
24632         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
24633         flickering by setting a clip rectangle on the Graphics when we
24634         need to redraw just a particular menuitem.  Also, rename "OnClick"
24635         to "OnMouseDown" to reflect what it actually is.
24636         
24637         * Form.cs: track the OnMouseDown change.
24638
24639 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
24640
24641         * CommonDialog.cs: Properly inherit the CreateParams from the form
24642           and only change what we need. Fixes #78865
24643
24644 2006-08-10  Chris Toshok  <toshok@ximian.com>
24645
24646         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
24647         flickering in flat mode (and most of the flickering in general) by
24648         only invalidating the button border (and not the entire rectangle)
24649         when the state changes.  A couple of cases still flicker:
24650         ToggleButtons, and the dropdown arrow case when the user mouse
24651         ups.
24652
24653 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
24654
24655         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
24656           for german keyboards. Numlock state shouldn't affect the behaviour
24657           of the Del key. Fixes bug #78291.
24658
24659 2006-08-10  Chris Toshok  <toshok@ximian.com>
24660
24661         * ListControl.cs: remove the items.Clear line from BindDataItems,
24662         as this is the first thing done by both subclasses in their
24663         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
24664         passed -1, refresh the list.  This gets databinding working when
24665         the datasource is set on the list before the datasource is
24666         populated (as in wf-apps/ReportBuilder.)
24667
24668         * ComboBox.cs: remove the argument to BindDataItems.  This call
24669         should really go away, and be initiated by the ListControl code.
24670
24671         * ListBox.cs: same.
24672
24673 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24674
24675         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
24676           if no data is in the document when the control is displayed
24677
24678 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
24679
24680         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
24681           yes (fixes #78806)
24682         * TextControl.cs: 
24683           - PositionCaret: Allow positioning of caret but don't call methods 
24684             requiring a handle if the window isn't created yet
24685           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
24686           - owner_HandleCreated: Don't position the caret, just update it's 
24687             location. User might have already set a different position
24688
24689 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24690
24691         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
24692           windows. Screws up the returned coordinates for child windows. 
24693           Fixes #78825. I'm hoping this doesn't break something, since the
24694           code was explicitly put in 8 months ago, but no bug was attached.
24695           Menus still seem to work properly.
24696
24697 2006-08-08  Chris Toshok  <toshok@ximian.com>
24698
24699         * DataGrid.cs: make BeginInit/EndInit actually do what they're
24700         supposed to do - delay data binding until the EndInit call.  Also,
24701         make the table style collection's CollectionChangeAction.Refresh
24702         work properly.
24703
24704         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
24705         (with action = Refresh) when a consituent table's MappingName is
24706         changed.
24707
24708 2006-08-08  Chris Toshok  <toshok@ximian.com>
24709
24710         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
24711         Invalidate, since changing the text can change the size of the all
24712         toolbar buttons.
24713
24714 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24715
24716         * Form.cs (AddOwnedForm): Still need to add the form to our listif
24717           we don't have it yet
24718
24719 2006-08-08  Chris Toshok  <toshok@ximian.com>
24720
24721         * PrintControllerWithStatusDialog.cs: don't .Close() the status
24722         dialog, as this causes X errors later on, since we actually
24723         destroy the window.  Instead, .Hide() it.
24724
24725 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24726
24727         * ComboBox.cs: Added focus reflection for popup window
24728         * XplatUIX11.cs: 
24729           - Removed transient setting for non-app windows for now, not sure it
24730             was needed
24731           - Fixed logic checking if we have captions when deciding 
24732             override_redirect, WS_CAPTION is two bits and a 0 check was not
24733             sufficient
24734           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
24735             complicated
24736         * Form.cs: 
24737           - AddOwnedForm: Don't just add the form to the list, call the property
24738             to ensure the driver is informed about the ownership as well
24739           - CreateHandle: Set the TopMost status in the driver if we have an owner
24740         * XplatUI.cs: Fixed debug statement
24741
24742 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
24743         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24744           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
24745           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
24746           TrackBarRenderer.cs: Make constructor private.
24747         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
24748         * ProfessionalColorTable.cs: Make properties virtual.
24749
24750 2006-08-06  Duncan Mak  <duncan@novell.com>
24751
24752         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
24753         is not changing.
24754
24755 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24756         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24757           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
24758           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
24759           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
24760           Initial import of new 2.0 classes.
24761
24762 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24763         * Application.cs: Add 2.0 VisualStyles properties.
24764
24765 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24766         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24767           XplatUIX11.cs: Create property to allow access to existing private
24768           variable "themes_enabled"
24769
24770 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24771
24772         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
24773         file size, as otherwise our class libraries fail using windows. Fixes
24774         bug #78759.
24775
24776 2006-08-04  Jackson Harper  <jackson@ximian.com>
24777
24778         * Form.cs:
24779         * XplatUIX11.cs: Move the toolwindow window manager creation into
24780         the X11 driver, this way on win32 we can let windows create/handle
24781         the toolwindows.
24782
24783 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24784
24785         * PrintDialog.cs: Remove some redundant checks, add some others,
24786         clean some code, and move the focus to the text boxes when the
24787         values are incorrect.
24788
24789 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
24790
24791         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
24792
24793 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24794
24795         * NumericUpDown.cs: Setting the Minimum and Maximum is now
24796           handled correctly. Fixes bug #79001.
24797
24798 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24799
24800         * PrintDialog.cs: The "Copies" numeric up down must have
24801         set the Minimum property to 1; only if the value is bigger
24802         than 1, activate "Collate" check box. This is the behaviour of .Net.
24803         Also modify the Document elements only if it is not null.
24804
24805 2006-08-03  Jackson Harper  <jackson@ximian.com>
24806
24807         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
24808         length. (We have a larger array then actual node count).
24809                 
24810 2006-08-03  Jackson Harper  <jackson@ximian.com>
24811
24812         * ComboBox.cs: Don't show selection by default.
24813         - The SelectAll isn't needed here, since the focus code should do
24814         that
24815         - DDL style lists to manual selection drawing, so when they
24816         get/lose focus they have to invalidate.
24817
24818 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
24819
24820         * TextBoxBase.cs: Don't always show all selections by default.
24821
24822 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
24823         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
24824           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
24825           Fixed various typos.
24826
24827 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24828
24829         * Control.cs: Removing the controls in a ControlCollection with
24830           Clear now hides the controls as expected. Fixes bug #78804. 
24831
24832 2006-08-03  Jackson Harper  <jackson@ximian.com>
24833
24834         * Control.cs: Revert previous focus patch, it breaks reflector.
24835
24836 2006-08-03  Jackson Harper  <jackson@ximian.com>
24837
24838         * ComboBox.cs: Cleanup selection and focus with the combobox.
24839         This also eliminates some duplicated keyboard code, since now
24840         everything is handled by the main class.
24841         - Make list selection work on mouse up instead of down, to match
24842         MS.
24843
24844 2006-08-02  Jackson Harper  <jackson@ximian.com>
24845
24846         * Control.cs: Setting focus needs to go through the whole
24847         selection mechanism.
24848
24849 2006-08-02  Chris Toshok  <toshok@ximian.com>
24850
24851         * PrintPreviewDialog.cs: change MinimumSize to use
24852         base.MinimumSize so it works.
24853
24854 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
24855
24856         * TextControl.cs:
24857           - UpdateCaret: Added sanity check in case caret isn't defined yet
24858           - Line.Delete: Now updating selection and caret markers if we're
24859             transfering a node (Properly fixes #78323)
24860           - SetSelectionEnd: Added sanity check
24861         * TextBoxBase.cs: Removed broken attempt to fix #78323
24862
24863 2006-08-01  Chris Toshok  <toshok@ximian.com>
24864
24865         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
24866         Close() call is handled in Form, not here.
24867
24868 2006-08-01  Chris Toshok  <toshok@ximian.com>
24869
24870         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
24871         layout/rendering.
24872
24873         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
24874         for sizes < 100% zoom.  The code now aggressively attempts to keep
24875         from calling document.Print (), and tries not to use the scaling
24876         g.DrawImage whenever possible (it still does if you scale to >
24877         100%, since usually that involves huge images).
24878
24879         * PrintPreviewControl.cs: hook up the close button.
24880
24881 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
24882         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
24883           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
24884           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
24885           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
24886           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
24887           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
24888           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
24889           Removed [Serializable] for 2.0 Event Handlers.
24890
24891 2006-07-31  Jackson Harper  <jackson@ximian.com>
24892
24893         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
24894         * TextControl.cs: Uncomment out the body of this method.
24895
24896 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
24897
24898         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
24899           standard cursors.
24900
24901 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24902
24903         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
24904           that embed TextBox and need selections visible even if textbox is not
24905           focused to enforce that behaviour.
24906         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
24907           selection drawing
24908
24909 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24910
24911         * TextControl.cs:
24912           - Added new SetSelectionStart/SetSelectionEnd overloads
24913           - Fixed viewport width assignment to be accurate
24914           - Adjusted alignment line shift calculations to allow cursor on right
24915             aligned lines to be always visible at the right border (like MS)
24916         * TextBoxBase.cs:
24917           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
24918           - TextBoxBase_SizeChanged: recalculating canvas on size changes
24919           - CalculateScrollBars: Use ViewPort size instead of window size, to
24920             properly consider space occupied by the border and scrollbars 
24921             (Fixes #78661)
24922           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
24923             calculations; no longer leaves artifacts
24924           - CaretMoved: Adjusted window scrolling to match MS and fixed several
24925             calculation bugs (Still missing right/center align calculations)
24926
24927 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
24928
24929         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
24930           use of both scroll rect and clip rect, as they do the same.
24931
24932 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24933
24934         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
24935           in the event handler (fixes #78912)
24936
24937 2006-07-31  Chris Toshok  <toshok@ximian.com>
24938
24939         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
24940         grid.ListManager.Count, since grid.ListManager might be null.
24941         This of course begs the question "why are we drawing rows for a
24942         grid with no list manager (and therefor no rows)?"  Fixes the
24943         crash in bug #78929.
24944
24945 2006-07-31  Chris Toshok  <toshok@ximian.com>
24946
24947         * RelatedPropertyManager.cs: Don't always chain up to the parent
24948         ctor.  instead, call SetDataSource if the parent's position is !=
24949         -1.  Fixes the crash in #78822.
24950
24951 2006-07-31  Chris Toshok  <toshok@ximian.com>
24952
24953         * DataGrid.cs (get_ListManager): use field instead of property
24954         accessors for datasource and datamember.
24955         (RowsCount): make internal again.
24956         (OnMouseDown): end edits before resizing columns/rows.
24957         (OnMouseUp): restart edits after resizing columns/rows.
24958
24959 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
24960
24961         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
24962           This fixes the situation where the last set cursor is displayed
24963           whenever the mouse is over scrollbars.
24964
24965 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24966
24967         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
24968         Document properties, as well as initial values.
24969
24970 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
24971
24972         * XplatUIWin32.cs (SetBorderStyle): Setting both border
24973           and ClientEdge results in a 3-pixel border, which is
24974           wrong.
24975
24976 2006-07-28  Jackson Harper  <jackson@ximian.com>
24977
24978         * TreeNodeCollection.cs: Fix the clear method.
24979         - Fix the Shrink also
24980
24981 2006-07-27  Jackson Harper  <jackson@ximian.com>
24982
24983         * TreeView.cs: Make sure the visible order is computed when we
24984         attempt to size the scrollbars (for trees that mess with the
24985         scrolling when they shouldn't.
24986         - Make sure to give the scrollbars valid values.
24987
24988 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24989
24990         * XplatUIX11.cs: Move motion compression code to where it
24991           has less performance impact
24992
24993 2006-07-26  Jackson Harper  <jackson@ximian.com>
24994
24995         * UpDownBase.cs: When the control is selected make the child
24996         controls non selectable, so that a click on them won't do a
24997         focus/unfocus cycle.
24998         - Don't give focus to the text box when the spinner is selected.
24999         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
25000
25001 2006-07-26  Chris Toshok  <toshok@ximian.com>
25002
25003         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
25004         satisfied with this solution.  If the bitmaps are small, we should
25005         just cache them in the PrintPreviewDialog and draw them here.
25006         Also, the layout is broken for the 2-up and 3-up cases.
25007
25008         * Theme.cs: add PrintPReviewControlPaint.
25009
25010         * PrintPreviewDialog.cs: first pass implementation.
25011
25012         * PrintPreviewControl.cs: first pass implementation.  No
25013         scrollbars yet.
25014
25015         * PrintDialog.cs: only validate fields if that particular portion
25016         of the UI is enabled.  Also, set the document's controller to a
25017         PrintControllerWithStatusDialog wrapping the document's print
25018         controller.
25019
25020         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
25021         bring up a SaveFileDialog (i hope we don't want to match the
25022         behavior of the crappy windows file entry) and set the
25023         PrinterSettings.PrintFileName accordingly.
25024
25025 2006-07-26  Jackson Harper  <jackson@ximian.com>
25026
25027         * ContainerControl.cs: Add a field that disables auto selecting
25028         the next control in a container when the container is activated.
25029         * UpDownBase.cs: Don't select the text box when the up down is
25030         selected.
25031
25032 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
25033
25034         * XEventQueue.cs: Added methods for peeking (used for compression
25035           of successive events)
25036         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
25037           mouse move events (fixes #78732)
25038
25039 2006-07-25  Jackson Harper  <jackson@ximian.com>
25040
25041         * UpDownBase.cs: Use an internal class for the textbox so that we
25042         can control focus.  the updown control should always have focus,
25043         if either the text area or the buttons are clicked.
25044         - Send the key messages to the textbox, since it never actually
25045         has focus
25046         - Activate and decativate the textbox caret.
25047
25048 2006-07-24  Jackson Harper  <jackson@ximian.com>
25049
25050         * Control.cs: Use the directed select when selecting a control,
25051         this way the container controls override will get called and the
25052         whole ActiveControl chain will get triggered.  TODO: probably need
25053         to make sure this gets done everywhere instead of the old
25054         Select(Control).
25055         * ContainerControl.cs: Implement the directed Select method to
25056         find and activate the correct child control.    
25057         
25058 2006-07-22  Mike Kestner  <mkestner@novell.com>
25059
25060         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
25061         menu handling code so that clicks without a grab work too.
25062         [Fixes #78914]
25063
25064 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
25065
25066         * FileDialog.cs: Enable the BackButton when dirstack has one element.
25067           Added some small optimizations.
25068
25069 2006-07-21  Matt Hargett  <matt@use.net>
25070
25071         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
25072
25073 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
25074
25075         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
25076           tests pass and match MS in some strange border cases.
25077
25078 2006-07-21  Chris Toshok  <toshok@ximian.com>
25079
25080         * ThemeWin32Classic.cs: handle drawing of the relation links and
25081         parent row buttons.
25082
25083         * Theme.cs: change args to DataGridPaintParentRow.
25084
25085         * DataGrid.cs: Don't use controls for the relation links and
25086         parent buttons, so we have to handle all their interactions in
25087         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
25088         when we're navigating through child tables, so we can reinstate
25089         selection, expanded state, current cell, etc.
25090
25091 2006-07-20  Chris Toshok  <toshok@ximian.com>
25092
25093         * ToolBar.cs: When we redraw a button, for whatever reason,
25094         there's no reason to redraw the entire toolbar.  Also, don't call
25095         Control.Refresh from within Redraw, as it's much heavier than
25096         Invalidate (which is really what we want).
25097
25098 2006-07-20  Chris Toshok  <toshok@ximian.com>
25099
25100         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
25101         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
25102         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
25103         traces from within a debug IBindingList datasource
25104         (in mono/winforms/datagrid) for *days*, I've finally gotten things
25105         to work in a similar fashion.
25106
25107 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25108
25109         * ListBox.cs: Don't call Sort () when setting 
25110         the Sorted property to false (avoid an unnecessary sort).
25111
25112 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25113
25114         * ListControl.cs: DataSource should throw an ArgumentException
25115         instead of a normal exception when the argument is not of the 
25116         correct type.
25117
25118 2006-07-20  Mike Kestner  <mkestner@novell.com>
25119
25120         * Control.cs: add InternalPreProcessMessage to allow us to steal
25121         key events before MWF gets its paws on them.  Adapted from a
25122         suggestion by eno.
25123         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
25124         up/down/left/right navigation. Override the new internal control
25125         method to steal the events since they never make it to WndProc.
25126         * ToolBarButton.cs: don't worry about pushed when setting hilight
25127         since the drawing code prefers pushed to hilight. Invalidate on 
25128         Hilight changes. Fixes #78547 and #78525.
25129
25130 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
25131
25132         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
25133           the canvas size. Fixes #78868
25134
25135 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
25136
25137         * Splitter.cs: Track requested split position until first layout
25138           is performed. Fixes #78871
25139
25140 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
25141
25142         * Application.cs: Removed code that forces 1.x for the version
25143           number if the version started with 0. Not sure why that code was
25144           there and I couldn't find any bugs that indicated we needed it.
25145           Fixes #78869
25146
25147 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
25148
25149         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
25150           ResetDefaults(), just write some output to the console until it's
25151           implemented. Fixes bug #78907 for now. Eliminated two warnings.
25152
25153 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
25154
25155         * PropertyGridView.cs: set StartPosition of drop down forms
25156         so they appear in correct initial spot.  Fixes #78190.
25157
25158 2006-07-19  Mike Kestner  <mkestner@novell.com>
25159
25160         * ThemeWin32Classic.cs: use parent background color when drawing
25161         flat toolbars.  Restructure the conditionals to make sure non-flat
25162         non-Divider toolbars are filled too.  Fixes #78837.
25163
25164 2006-07-19  Mike Kestner  <mkestner@novell.com>
25165
25166         * ListBox.cs: Sort on collection changes even if the handle
25167         isn't created yet.  Fixes #78813.
25168
25169 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25170
25171         * ListControl.cs: DisplayMember should never be null,
25172         and now we assign String.Empty when null is passed to it (this
25173         is the .Net way).
25174
25175 2006-07-17  Mike Kestner  <mkestner@novell.com>
25176
25177         * ListViewItem.cs: restructure Font and subitem Font handling 
25178         to hold a specific font and refer back to owner on null.
25179         Fixes #78761.
25180
25181 2006-07-17  Mike Kestner  <mkestner@novell.com>
25182
25183         * ToolBar.cs: bandaid for side-effect of previous patch which was
25184         discarding explicit heights for non-AutoSize toolbars.  Need to
25185         extend my format tester to deal with AutoSize=false. Fixes #78864.
25186
25187 2006-07-15  Jackson Harper  <jackson@ximian.com>
25188
25189         * LabelEditTextBox.cs:
25190         * TreeView.cs: Use a new LabelEdit class for node editing, this
25191         class automatically 'closes' itself when it gets the enter key or
25192         loses focus.
25193         - Use the client rectangle when setting the trees scrollbars, so
25194         border style is taken into account.
25195         
25196 2006-07-14  Jackson Harper  <jackson@ximian.com>
25197
25198         * TreeNode.cs:
25199         * TreeView.cs: Make the editing work similar to MSs, firing the
25200         events correctly and ending edits correctly.
25201
25202 2006-07-14  Mike Kestner  <mkestner@novell.com>
25203
25204         * ToolBarButton.cs:
25205         * ToolBar.cs: layout restructuring and redraw enhancements to support
25206         formatting changes gracefully, like setting TextAlign, ImageList, 
25207         ButtonSize, and Appearance.  Handles explicit button sizing quirks
25208         of the MS controls.  Things like flat toolbars ignoring button size
25209         but becoming constant sized at the largest button's size.  Normal
25210         toolbars with an image set cannot be shrunk smaller than the image,
25211         but text can be clipped/ignored.
25212         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
25213         is zero.  Seems like DrawString should be smart enough to not put
25214         anything on screen though. Also trim labels and ellipsize at the char
25215         boundary, not word.
25216         Fixes #78711 and #78483.
25217
25218 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
25219
25220         * FolderBrowserDialog.cs: Disable "New Folder" button and
25221           "New Folder" contextmenu menuitem if a folder like "My Computer"
25222           is selected.
25223
25224 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
25225
25226         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
25227         * FolderBrowserDialog.cs:
25228           - Use MWFConfig to store and read size and position settings
25229           - Added code to create a new folder (button or context menu).
25230             Use TreeView labeledit to change the name of the new folder.
25231
25232 2006-07-14  Jackson Harper  <jackson@ximian.com>
25233
25234         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
25235         when the tree is scrolled we end editing.
25236
25237 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
25238
25239         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
25240           Down arrows
25241
25242 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
25243
25244         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
25245         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
25246         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
25247         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
25248         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
25249         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
25250         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
25251         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
25252         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
25253         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
25254         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
25255         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
25256         ListViewItemSelectionChangedEventHandler.cs,
25257         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
25258         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
25259         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
25260         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
25261         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
25262         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
25263         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
25264         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
25265         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
25266         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
25267         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
25268         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
25269         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
25270         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
25271         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
25272         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
25273         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
25274         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
25275         WebBrowserNavigatingEventHandler.cs, 
25276         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
25277
25278 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
25279
25280         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
25281         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
25282         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
25283         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
25284         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
25285         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
25286         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
25287         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
25288         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
25289         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
25290         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
25291         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
25292         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
25293         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
25294         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
25295         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
25296         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
25297         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
25298         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
25299         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
25300         ListViewItemStates.cs, MaskFormat.cs: Added
25301
25302 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
25303
25304         * PropertyGridView.cs: Fix keyboard navigation of drop down.
25305         Patch from eno for bug 78558.
25306         
25307 2006-07-13  Jackson Harper  <jackson@ximian.com>
25308
25309         * TreeView.cs: When an edit is finished make sure that the
25310         selected node is visible.
25311         - When setting the top/bottom use the scrollbars is_visible, so
25312         everything will be set correctly even if the tree isn't visible
25313         yet.
25314
25315 2006-07-13  Jackson Harper  <jackson@ximian.com>
25316
25317         * ComboBox.cs: Revert the item->index part of my previous patch.
25318         * TreeView.cs: Use LostFocus instead of Leave for detecting when
25319         the edit box has lost focus (duh).
25320         - Just make the edit box not visible when we get return, that will
25321         take the focus, which will call EndEdit
25322         * TreeNode.cs When we start editing, notify the treeview.
25323
25324 2006-07-12  Jackson Harper  <jackson@ximian.com>
25325
25326         * ComboBox.cs: Clear out old items before setting the item list.
25327         This prevents databound controls from having their items added
25328         twice.
25329         - Switch the combobox to use indices whereever possible instead of
25330         using Item's.  This allows usto navigate through lists that have
25331         more then one item with the same string value (ie a, b, b, a).
25332         - Scroll the listboxes scrollbar when a non visible item is
25333         highlighted
25334         - Allow keypress to cycle through all the possible values. For
25335         example if you have b1, b2, b3 and hold down the B key all the
25336         values will be cycled through.
25337         
25338 2006-07-12  Jackson Harper  <jackson@ximian.com>
25339
25340         * TextBoxBase.cs:
25341         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
25342         this using the internal methods.
25343         * Control.cs: Add OnGotFocusInternal.  A new method that allows
25344         controls to "override" OnGotFocus and change focus behavior if
25345         needed.
25346         - Same thing for LostFocus
25347         * ComboBox.cs: Pass off focus to the text control properly.
25348
25349 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
25350
25351         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
25352         * FolderBrowserDialog.cs: Almost a complete rewrite.
25353           - Better support for Environment.Specialfolders
25354           - Added support for MWFVFS
25355           - Made setting SelectedPath work
25356
25357 2006-07-12  Jackson Harper  <jackson@ximian.com>
25358
25359         * Control.cs: Optimze getting all the controls.
25360
25361 2006-07-11  Jackson Harper  <jackson@ximian.com>
25362
25363         * ContainerControl.cs: Override SETFOCUS in the container control,
25364         so that it is not selected on mouse click.
25365
25366 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
25367
25368         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
25369           Hopefully we will have a better way once all of focus is complete.
25370
25371 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
25372
25373         * ThemeWin32Classic.cs: Commented out some debug code and fixed
25374           a compile error with csc.
25375
25376 2006-07-11  Jackson Harper  <jackson@ximian.com>
25377
25378         * Control.cs: When hiding a control only select the next control
25379         if the current control was focused.
25380         - Don't handle enter/leave when setting/killing focus, this is
25381         done by the container control.
25382         - Remove is_selected, it's not needed anymore.
25383         - Add utility methods for selecting a child control, and for
25384         firing the Enter/Leave events.
25385         * ContainerControl.cs: When a control is activated fire the
25386         enter/leave events.
25387         - Don't wrap when processing the tab key, so that focus can be
25388         moved outside of the container.
25389         - Use the correct active control
25390
25391 2006-07-11  Jackson Harper  <jackson@ximian.com>
25392
25393         * ComboBox.cs: Remove some debug code that was blinding me.
25394         * UpDownBase.cs: These controls actually aren't implicit, they are
25395         visible to the user.
25396
25397 2006-07-10  Chris Toshok  <toshok@ximian.com>
25398
25399         * DataGrid.cs: move back to the is_adding boolean field.  god i
25400         hate this is_editing/is_adding/is_changing stuff.
25401
25402 2006-07-10  Chris Toshok  <toshok@ximian.com>
25403
25404         * DataGridTableStyle.cs: just check if the property type is bool.
25405         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
25406         Don't use CanRenderType.
25407
25408         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
25409         if our text == NullText.  Remove CanRenderType.
25410
25411         * DataGridBoolColumn.cs: nuke CanRenderType.
25412
25413         * DataGrid.cs: reenable some code to end the current edit inside
25414         of set_CurrentCell.  This fixes the other 1.1.16 regression.
25415         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
25416         Also, remove the visible_row_count arg from CalcRowHeaders, since
25417         we don't need to worry about the actual height of the area.
25418
25419 2006-07-10  Chris Toshok  <toshok@ximian.com>
25420
25421         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
25422         mode, just return.
25423
25424         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
25425         the real sense of the IsInEditOrNavigateMode property (true =
25426         navigate, false = edit).  Also, update OnKeyPress to reflect this.
25427
25428         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
25429         column style exists, we still need to set its property descriptor
25430         to match up with our list manager.
25431
25432 2006-07-10  Chris Toshok  <toshok@ximian.com>
25433
25434         * ThemeWin32Classic.cs: implement the new row/header painting
25435         approach.  The parent row painting will likely go away and
25436         replaced with label controls, but the rest seems to work ok (and
25437         efficiently).
25438
25439         * Theme.cs: change the way we draw datagrid rows.  we don't draw
25440         the row headers as a block now.  Instead we draw them in the
25441         normal draw-row loop.  Add some calls for drawing parent rows and
25442         relation rows.
25443
25444         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
25445         a default table style.  Set the defaults from ThemeEngine.Current,
25446         not SystemColors.  Fix lots of misc issues with property setters.
25447
25448         * DataGrid.cs: move loads of style information out of this class
25449         as it's being duplicated with DataGridTableStyle.  keep track of a
25450         special DataGridTableStyle for the properties we used to mirror
25451         here.  Switch all the style properties to access this table style
25452         instead of instance fields of this class.  Also add a internal
25453         class to represent parent rows (more needs to be stored here, like
25454         the selection state from the parent table, as well as the
25455         expansion state.)  Also, for datasources with relations, do the
25456         right thing for collapse/expand, and add support for the
25457         navigation/parent row buttons.
25458
25459         Lastly, fix the crash in the 1.1.16 build.
25460
25461         * GridTableStylesCollection.cs: make the explicit interface
25462         implementations call the class's methods as opposed to duplicating
25463         them.
25464
25465         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
25466         0 so the text doesn't jump around when we move the cursor.
25467
25468 2006-07-10  Jackson Harper  <jackson@ximian.com>
25469
25470         * TextBoxBase.cs:
25471         * ListBox.cs: Match MS's ToString (this makes debugging focus
25472         stuff infinitely easier).
25473
25474 2006-07-10  Jackson Harper  <jackson@ximian.com>
25475
25476         * Control.cs (SelectNextControl): When checking the control's
25477         parent use this instead of ctrl.parent so that null can be passed
25478         to SelectNextControl. (I have unit tests for this).
25479         - Remove unused var.
25480
25481 2006-07-10  Chris Toshok  <toshok@ximian.com>
25482
25483         * CurrencyManager.cs: correct one regression, the removal of the
25484         finalType field.  Also, add a MonoTODO on CanAddRows, implement
25485         Refresh() correctly, and fix some event emission in
25486         ListChangedHandler.
25487
25488 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
25489
25490         * FileDialog.cs: Don't use brackets for new folders if they exist
25491           under *nix. Instead use -(number of existing folders +1).
25492
25493 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
25494
25495         * FileDialog.cs:
25496           - Fixed really nasty bug #78771
25497           - Don't block the whole GUI when reading directories with a lot of
25498             entries. Use an other thread instead and call BeginInvoke to
25499             update the ListView in MWFFileView
25500
25501 2006-07-07  Chris Toshok  <toshok@ximian.com>
25502
25503         * Control.cs (Dispose): release any Capture when disposing.
25504
25505 2006-07-07  Chris Toshok  <toshok@ximian.com>
25506
25507         * LinkLabel.cs (Select): if we chain up to the parent, set
25508         focused_index to -1 so we'll search for the first available link
25509         the next time the user tabs into us.  Also, if the direction is
25510         backward and focused_index == -1, start the search from the last
25511         element.
25512
25513 2006-07-07  Chris Toshok  <toshok@ximian.com>
25514
25515         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
25516         is beyond the end of the text, don't do anything.
25517         (CreateLinkPieces): set our ControlStyles.Selectable based on
25518         whether or not we have any links.
25519         (Link.Invalidate): use a loop instead of foreach.
25520         (Link.set_Start): null out owner.sorted_links so it'll be
25521         recreated by CreateLinkPieces.
25522
25523 2006-07-06  Chris Toshok  <toshok@ximian.com>
25524
25525         * LinkLabel.cs: revert the SetStyle change.
25526
25527 2006-07-06  Chris Toshok  <toshok@ximian.com>
25528
25529         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
25530         (OnEnableChanged): s/Refresh/Invalidate
25531         (OnGotFocus): if we have a focused index already, refocus it (so
25532         if we mouse out/in to the window it'll focus the right link).
25533         (OnKeyDown): move the tab handling out of here.
25534         (OnLostFocus): don't set focused_index to -1, so we can refocus it
25535         when we lose focus.
25536         (OnMouseDown): don't Capture here - Control handles it.  Also,
25537         focus the active link.
25538         (OnMouseUp): don't deal with Capture.
25539         (OnPaintBackgroundInternal): remove.
25540         (OnTextAlignChanged): CreateLinkPieces before calling the
25541         superclass's method.
25542         (OnTextChanged): call CreateLinkPieces before calling superclass's
25543         method.
25544         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
25545         move around.
25546         (Select): implement this, moving the selection between different
25547         links, and call parent.SelectNextControl if we don't have another
25548         link to focus in the given direction.
25549         (CreateLinkPieces): call Invalidate instead of Refresh.
25550         
25551 2006-07-06  Chris Toshok  <toshok@ximian.com>
25552
25553         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
25554         new LinkLabel internals.
25555
25556         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
25557         over pieces looking for active/focused/etc links.  also, deal with
25558         runs of text (and links) with embedded \n's in them, and use
25559         MeasureCharacterRanges instead of MeasureString to figure out the
25560         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
25561         two-step.
25562
25563 2006-07-04  Jackson Harper  <jackson@ximian.com>
25564
25565         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
25566         XKB or key auto repeat, do it manually.  Without key auto repeat,
25567         when a key is held down we get key press, key release, key press,
25568         key release, ... with auto repeat we get key press, key press, key
25569         press ..., and then a release when the key is actually released.
25570
25571 2006-07-03  Jackson Harper  <jackson@ximian.com>
25572
25573         * TabControl.cs:
25574         * ThemeWin32Classic.cs: Tabs do not obey normal background color
25575         rules, they are always control color regardless of the background
25576         color.
25577
25578 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
25579
25580         * FileDialog.cs: Added internal class MWFConfig.
25581           Removed Registry support and replaced it with support for the new
25582           MWFConfig class. See MWFConfig comments for more information.
25583
25584 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
25585
25586         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
25587           rectangle. Added some patches from eno from bug #78490 and fixed
25588           the arrow position for small up and down CPDrawScrollButtons.
25589
25590 2006-06-30  Jackson Harper  <jackson@ximian.com>
25591
25592         * InternalWindowManager.cs: Remove some debug code.
25593         * Form.cs: When an MdiParent is set to null, the window is
25594         "detatched" and becomes a normal window.
25595         * MdiClient.cs: Don't bring the new child form to the front until
25596         it is activated (setting it as active does this), this makes the
25597         previously active forms titlebar get redrawn as inactive.
25598
25599 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
25600
25601         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
25602           with later controls
25603
25604 2006-06-29  Mike Kestner  <mkestner@novell.com>
25605
25606         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
25607         arrow in keynav state.  Fixes #78682.
25608
25609 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
25610
25611         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
25612           order (fixes #78393)
25613
25614 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
25615
25616         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
25617           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
25618           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
25619           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
25620           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
25621           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
25622           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
25623           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
25624           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
25625           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
25626           enumerations (FlagsAttribute, SerializableAttribute, added/removed
25627           values)
25628
25629 2006-06-28  Mike Kestner  <mkestner@novell.com>
25630
25631         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
25632
25633 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
25634
25635         * PropertyGrid.cs,
25636           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
25637           item lines from other area (It also makes BackColor consistent and
25638           compatible with .NET). Fixed bug #78564.
25639
25640 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
25641
25642         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
25643         Patch from Eno for #78555.
25644
25645 2006-06-27  Chris Toshok  <toshok@ximian.com>
25646
25647         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
25648
25649         * DataGridColumnStyle.cs: same.
25650
25651         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
25652         
25653         * DataGridDrawingLogic.cs: nuke.
25654
25655 2006-06-27  Chris Toshok  <toshok@ximian.com>
25656
25657         * DataGridTableStyle.cs: clean up the constructors, and build the
25658         list of child relations for this table.  I have no idea if this is
25659         where we should be doing it (it probably isn't), but since we're
25660         already iterating over the properties..
25661
25662         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
25663         struct and array for keeping track of row information, similar to
25664         what's shown in a hack on
25665         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
25666
25667         * Theme.cs: be consistent about the naming of DataGrid methods,
25668         prefering ColumnWidths and RowHeights over columnsWidths and
25669         RowsHeights.
25670
25671         * ThemeWin32Classic.cs: same, and also add support for variable
25672         sized rows (and the +/- expansion icons for related rows).
25673
25674 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25675
25676         * TextBoxBase.cs: Applied Eno's patch from #78660
25677
25678 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25679
25680         * Form.cs (ScaleCore): We don't want to scale our form if it's
25681           state is minimized or maximized, but we still need to scale our
25682           child windows. Also, added try/finally block to ensure layout
25683           gets reset (Fixes #78697)
25684
25685 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25686
25687         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
25688
25689 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25690
25691         * Form.cs: Fixed c+p error and added check to resize form if minimum
25692           size is bigger than current size (Fixes #78709)
25693
25694 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
25695
25696         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
25697
25698 2006-06-26  Mike Kestner  <mkestner@novell.com>
25699
25700         * ComboBox.cs: only do Keypress handling in the combo when there  
25701         are items in the collection. Fixes #78710.
25702
25703 2006-06-26  Chris Toshok  <toshok@ximian.com>
25704
25705         * Binding.cs: make this work bi-directionally.  also, clear up
25706         other mixups between Push/Pull Data (e.g. we're supposed to pull
25707         data when validating).
25708
25709         * BindingManagerBase.cs: trim some fully qualified collection
25710         types.
25711
25712         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
25713
25714 2006-06-23  Chris Toshok  <toshok@ximian.com>
25715
25716         * PropertyManager.cs: It appears (according to the unit tests)
25717         that PropertyManager doesn't use
25718         PropertyDescriptor.AddValueChanged to track propery value changes
25719         in its datasource, but uses the same scheme as Binding, where it
25720         looks for a <Property>Changed event and binds to it.
25721
25722         Also, according to the docs, IsSuspended always returns false for
25723         a property manager with a non-null datasource.
25724
25725 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
25726
25727         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
25728           need to update the actual DialogResult. (Fixes #78613)
25729
25730 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
25731
25732         * Form.cs (ShowDialog): Release any captures before running the
25733           new message pump (fixes #78680)
25734
25735 2006-06-22  Mike Kestner  <mkestner@novell.com>
25736
25737         * ListView.cs: Layout column widths properly in details mode even 
25738         if HeaderStyle.None is set.  Fixes #78691.
25739
25740 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
25741
25742         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
25743
25744 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
25745
25746         * Control.cs (ContainsFocus): Using new driver method to get focused
25747           window, instead of trying to use internal tracking var, which can
25748           recursion issues (Fixes #78685)
25749         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
25750           XplatUIWin32.cs: Added GetFocus method to return focused window
25751
25752 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25753
25754         * ColorDialog.cs: when the mouse button is pressed inside the color
25755         matrix, don't let the cursor move out of it until the button is
25756         released, which is the behavior on windows. Changed 'colours' by
25757         'colors' to use the same word consistently.
25758
25759 2006-06-21  Chris Toshok  <toshok@ximian.com>
25760
25761         * DataGrid.cs: add in some basic navigation stuff (navigating to a
25762         child relation and back, using a stack).  Also, remove
25763         GetDataSource and the code that calls it - it's not needed.  Also,
25764         track CurrencyManager.ListName's removal.
25765
25766 2006-06-21  Chris Toshok  <toshok@ximian.com>
25767
25768         * CurrencyManager.cs: push some of the original type checking from
25769         BindingContext.CreateBindingManager to here, and remove some of
25770         the finalType stuff.  Need more tests to make sure I've got the
25771         ListName part right, and we might need more in SetDataSource.
25772
25773         * PropertyManager.cs: add a ctor that takes just the datasource,
25774         and no property name.  Make SetDataSource work with a null
25775         property_name, and make Current return the data_source if the
25776         property descriptor is null.  this makes 'string foo = "hi";
25777         BindingContext[foo].Current' return "hi" as it should.
25778
25779         * RelatedCurrencyManager.cs: make this code more generic - there's
25780         no reason the parent manager has to be CurrencyManager, and
25781         there's no reason to pass the DataRelation.  It suffices to use a
25782         BindingManagerBase and PropetyDescriptor.
25783
25784         * RelatedPropertyManager.cs: make a similar change here.
25785         
25786         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
25787         flower I knew it could be.
25788
25789 2006-06-20  Chris Toshok  <toshok@ximian.com>
25790
25791         * PropertyManager.cs: the PropertyChangedHandler is invoked when
25792         data in the source has changed and we need to update the control,
25793         so s/PullData/PushData.
25794
25795         * CurrencyManager.cs: Refresh is meant to update the control from
25796         data in the datasource.  So, s/PullData/PushData.
25797
25798         * BindingContext.cs: add more ugliness (we weren't handling the
25799         case where data_source = DataTable and data_member = column_name).
25800
25801         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
25802         from the perspective of the datasource.  PullData pulls from the
25803         control, PushData pushes to the control.
25804
25805 2006-06-20  Chris Toshok  <toshok@ximian.com>
25806
25807         * BindingContext.cs: rewrite the CreateBindingManager code to
25808         handle navigation paths more or less properly.  This could
25809         definitely stand some more work, in particular to push the
25810         recursion up to the toplevel.  But that relies on fixes in other
25811         places (System.Data comes to mind).
25812
25813         Also, move to a flat hashtable (and encode the twolevel nature of
25814         the dictionary into the hash key).  This lets us implement the
25815         IEnumerable.GetEnumerator method.
25816
25817         * RelatedCurrencyManager.cs: new class.  Update our view based on
25818         our relation and our parent CurrencyManager's position.
25819
25820         * CurrencyManager.cs: split out some logic from the ctor into
25821         SetView, so it can be called from the new RelatedCurrencyManager
25822         subclass.
25823
25824         * RelatedPropertyManager.cs: new class.  Update our datasource
25825         based on the position of our parent CurrencyManager.
25826
25827         * PropertyManager.cs: split out some logic from the ctor into
25828         SetDataSource, so it can be called from the new RelatedDataSource
25829         subclass.  Also, make the Current getter return the value
25830         of the PropertyDescriptor, not the data_source.
25831
25832         * Binding.cs: no need to duplicate the string splitting code here.
25833
25834 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25835
25836         * Control.cs:
25837           - set_Enabled: OnEnabledChanged is not called if the inherited state 
25838             of the control is not altered, even though  we might be changing the
25839             internal state of the control (#78458)
25840           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
25841             OnEnabledChanged, to allow easy altering of any child window state
25842           - OnEnabledChanged: Added code to enable/disable driver window state
25843           - OnParentEnabledChanged: Instead of firing the event, call 
25844             OnEnabledChanged, which will fire the event and also a) set driver
25845             window state and pass the enabled state to any grandchildren (#78458)
25846
25847 2006-06-19  Jackson Harper  <jackson@ximian.com>
25848
25849         * InternalWindowManager.cs: We don't set the cursor explicitly
25850         thats done via the response to NCHITTESTs.
25851         - Don't need to adjust for titlebar heights anymore, the
25852         coordinates are coming in the correct coordinates now (see peters
25853         last patch).
25854
25855
25856 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25857
25858         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
25859           being translated relative to whole window, instead of client window.
25860           That caused broken offsets on mouseclick (and caused gas for our
25861           InternalWindowManager)
25862
25863 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25864
25865         * TextControl.cs:
25866           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
25867           - Undo(): Added replay of cursor move on DeleteChars action; added
25868             calling Undo() again if a recorded cursor move is invalid (to
25869             ensure that some action is performed on Undo)
25870         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
25871
25872 2006-06-16  Jackson Harper  <jackson@ximian.com>
25873
25874         * MdiClient.cs: Instead of just sizing maximized windows when
25875         there is a resize we also have to adjust the Y of minimized
25876         windows, so they stay pinned to the bottom of the mdi container.
25877         - Eliminate separate tracking of the active control, we can just
25878         get this from the controls collection.
25879         - Paint the decorations for the newly activated titlebar so we get
25880         a pretty blue bar.
25881         * InternalWindowManager.cs:
25882         * ThemeWin32Classic.cs: Minimized windows get all three buttons
25883         even if they are a tool window.
25884         
25885 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25886
25887         * TextControl.cs (Undo): Handle non-existent cursor locations in the
25888           undo buffer, these can happen when text was deleted and the cursor
25889           was recorded first. Since we will also have a recorded cursor
25890           after the delete this is not an issue. (Fixes #78651)
25891
25892 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
25893
25894         * AccessibleObject.cs: Remove dependence on Control.is_selected;
25895           instead properly track control states internally (allows us to
25896           remove is_selected from Control)
25897
25898 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25899
25900         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
25901         whose width is not a multiple of 8.
25902
25903 2006-06-13  Jackson Harper  <jackson@ximian.com>
25904
25905         * MdiClient.cs:  Only maximize the next child if the current one
25906         is maximized.
25907
25908 2006-06-13  Chris Toshok  <toshok@ximian.com>
25909
25910         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
25911         modified.  Also, guard against grid or grid_drawing being null in
25912         Invalidate.
25913
25914         * DataGrid.cs: Reformat tons of getters/setters.  In the
25915         DataMember setter, just call SetNewDataSource instead of
25916         duplicating some of its functionality.  In SetNewDataSource, don't
25917         check ListManager for null, since the property getter creates the
25918         object if needed.
25919
25920         * DataGridTableStyle.cs: don't set TableStyle or call
25921         SetDataGridInternal on the column here, it's done in
25922         GridColumnStylesCollection.Add.
25923
25924         * GridColumnStylesCollection.cs: fix all the explicit interface
25925         implementations to just call our methods.  Nuke AddInternal() and
25926         move the body of it to Add().  Also, add a call to
25927         column.SetDataGridInternal to Add().
25928
25929         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
25930         base()+duplicate code.  Also, use the Format property instead of
25931         format to generate an Invalidate ala MS.  Lastly, create the
25932         textbox here, unconditionally.
25933         (set_Format): call Invalidate.
25934         (get_TextBox): no need to call EnsureTextBox.
25935         (Commit): remove the message box.
25936         (Edit) remove the call to EnsureTextBox.
25937         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
25938         (EnterNullValue): no need to check textbox for null.
25939         (HideEditBox): no need to check textbox for null.
25940         (SetDataGridInColumn): add the textbox to the grid's controls.
25941         (EnsureTextBox): nuke.
25942         
25943 2006-06-13  Jackson Harper  <jackson@ximian.com>
25944
25945         * MdiWindowManager.cs: Hook up to the maximized menus paint event
25946         and redraw the buttons when needed. Unhook when the window is
25947         unmaximized.
25948         * MainMenu.cs: Add an internal Paint event, the mdi window manager
25949         needs this so that it can redraw its buttons when the menu is
25950         repainted.
25951         * InternalWindowManager.cs:
25952         * Form.cs: The method order has changed for DrawMaximizedButtons,
25953         so that it can be a PaintEventHandler.
25954         
25955 2006-06-13  Jackson Harper  <jackson@ximian.com>
25956
25957         * MdiClient.cs: When we close a maximized mdi window, the next mdi
25958         window is activated and maximized, even if it wasn't before.
25959         - When  a new window is activated repaint the decorations of the
25960         old one, so that it no longer has the Active "look" (the blue
25961         titlebar).
25962         * InternalWindowManager.cs: Open up CreateButtons to base classes
25963         so they can recreate the buttons on state changes.
25964         - If a window is maximized give it all three buttons
25965         * MdiWindowManager.cs: Create the titlebar buttons when the state
25966         is changed, this is needed because a toolwindow will not have all
25967         three buttons until it is maximized.
25968
25969 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
25970
25971         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
25972           Fixed bug #78609.
25973
25974 2006-06-12  Jackson Harper  <jackson@ximian.com>
25975
25976         * KeysConverter.cs: Make sure we handle the Ctrl special case
25977         if its the only key.
25978         
25979 2006-06-12  Jackson Harper  <jackson@ximian.com>
25980
25981         * Theme.cs: Add a method to get the size of a managed window
25982         toolbar button.
25983         * InternalWindowManager.cs: Remove the ButtonSize property, this
25984         should be retrieved from the theme.
25985         * MdiWindowManager.cs: Get the button size from the theme
25986         * ThemeWin32Classic.cs: Make the method to get the managed window
25987         titlebar button size public.
25988         - Handle the different button sizes of maximized toolwindows
25989         (should match any maximized window).
25990         - Get the titlebar height from the theme, not the WM (which gets
25991         it from the theme).
25992
25993 2006-06-12  Jackson Harper  <jackson@ximian.com>
25994
25995         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
25996         event down to the mdi window manager.
25997         - Expose some extra stuff to base classes
25998         - Make sure to end the Capture on an NC Mouse up, so that we can
25999         get double clicks properly, and the sizing doens't stick.
26000         - When doing PointToClient contain it in the workable desktop
26001         area, this prevents windows from changing size when the cursor is
26002         pulled outside of the working area while sizing.
26003         * MdiWindowManager.cs: When we get a double click maximize the
26004         window.
26005         - Reset the cursor after handling mode changes.
26006
26007 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
26008
26009         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
26010           current desktop, instead of just assuming a 0, 0 origin. This
26011           is needed for our internal window manager, to know the top
26012           margin of the desktop
26013
26014 2006-06-12  Chris Toshok  <toshok@ximian.com>
26015
26016         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
26017         we need this to get rid of the selected background in the bool
26018         column.
26019         (CancelEditing): move the ConcedeFocus call to above the Abort
26020         call.  Also, set is_changing to false and invalidate the row
26021         header if we were changing before.
26022         (ProcessKeyPreviewInternal): remove, since noone outside this
26023         class calls it anymore.  Roll the code into ProcessKeyPreview.
26024         (EndEdit): remove the internal version.
26025         (InvalidateCurrentRowHeader): make private.
26026
26027         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
26028         Keys.Escape handling (and with it the last call to
26029         DataGrid.EndEdit from outside the class.)
26030
26031
26032 2006-06-12  Chris Toshok  <toshok@ximian.com>
26033
26034         * DataGridTextBox.cs (.ctor): isedit defaults to false.
26035         (OnKeyPress): set isedit to true.
26036         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
26037         already handled by the grid.
26038
26039         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
26040         right.  ugh.
26041         (set_DataSource): SetDataSource always returns true, so stop
26042         putting it in an if statement.
26043         (EndEdit): get rid of some {}'s
26044         (ProcessGridKey): return true in case Keys.Escape.
26045         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
26046         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
26047         PositionChanged, stopped connecting to CurrentChanged.
26048         (GetDataSource): simplify this a bunch.
26049         (SetDataSource): change return type from bool to void.
26050         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
26051         to this, and make sure we don't set ListManager.Position inside
26052         set_CurrentCell.
26053         (OnListManagerItemChanged): if we're passed an actual index,
26054         redraw that row.
26055
26056         * CurrencyManager.cs (set_Position): don't call PullData here.
26057
26058 2006-06-09  Jackson Harper  <jackson@ximian.com>
26059
26060         * TreeNode.cs:  Recalculate the visible order before doing the
26061         Expand/Collapse Below calls, because those calls generate an
26062         expose.
26063         - Reduce calls to the TreeView property, which is mildly expensive
26064         by using a local var.
26065         * Form.cs: Layout the MDI child windows when creating the parent
26066         form.
26067         - Don't use the internal constructor anymore
26068         * MdiClient.cs: use the parent form width/height (if available)
26069         when laying out the child windows, we do this because the
26070         mdiclient isn't docked yet when the initial layout is done.
26071         - Don't need an internal constructor anymore.
26072
26073 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26074
26075         * FileDialog.cs: handle access errors when trying to create a folder
26076         or changing to a directory. No need to initialize out parameters.
26077
26078 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
26079
26080         * FileDialog.cs: Append a number when creating a new folder if the
26081           folder already exists (use parenthesis instead of square brackets)
26082
26083 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
26084
26085         * FileDialog.cs:
26086           - Disabled registry support for windows and added better registry
26087             error checking for other systems (need to investigate why it
26088             works perfectly on my system)
26089           - If a folder already exist show an error MessageBox instead of
26090             trying to create an indexed name.
26091           - Fixed a non intentional typo.
26092
26093 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26094
26095         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
26096
26097 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
26098
26099         * FileDialog.cs: When creating a new folder don't crash if the
26100           folder already exists.
26101
26102 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
26103
26104         * FileDialog.cs: Allmost a complete rewrite.
26105           - added a "virtual" file system that handles the differences
26106             between unix and windows file systems (especially the directory
26107             structure). Moved most of the directory and file handling code
26108             into the vfs.
26109             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
26110             UnixFileSystem and FSEntry.
26111           - Recently used folder/directory, size, location and used file names
26112             (file name ComboBox) are now stored in the registry and get read
26113             before the dialog shows up (fixes part 6 of bug #78446).
26114           - Creation of new folders/directories is now possible (context menu
26115             or ToolBar). Added TextEntryDialog for this that fills in the gap
26116             until ListView.LabelEdit works.
26117           - Fixed cursor handling (bug #78527) and focus handling for
26118             PopupButtonPanel
26119           - Various "Search in" ComboBox enhancements. The content of the
26120             dropdown listbox now almost matches ms.
26121           - Changed the behaviour when the user switches to SpecialFolder
26122             Recent to show the ListView in View.Details.
26123           - Beside using the ToolBar to change the View property of the
26124             file ListView it is now possible to use the context menu too.
26125
26126 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
26127
26128         * ComboBox.cs: Don't create a new ObjectCollection when an item
26129           gets inserted. Just insert the item in the existing object_items
26130           ArrayList.
26131
26132 2006-06-08  Jackson Harper  <jackson@ximian.com>
26133
26134         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
26135         that the treeview and root node checks are done also, this fixes a
26136         regression i caused in the unit tests.
26137
26138 2006-06-07  Wade Berrier <wberrier@novell.com> 
26139
26140         * RichTextBox.cs: More ISO8859-1 -> unicode
26141
26142 2006-06-07  Mike Kestner  <mkestner@novell.com>
26143
26144         * ComboBox.cs : use items to hold highlight/selection so that
26145         collection insertions don't require synchronization.
26146
26147 2006-06-07  Jackson Harper  <jackson@ximian.com>
26148
26149         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
26150         routine.  We now always keep the sized edge at the cursor instead
26151         of computing movement and adjusting rects.  There is one buglet
26152         with this method though when the cursor is moved over area that
26153         the window can not expand too (such as the toolbars on the desktop).
26154
26155 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26156
26157         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
26158         here. Fixes crash on startup in AlbumSurfer.
26159
26160 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
26161
26162         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
26163           values
26164
26165 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26166
26167         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
26168         statement to avoid calling XNextEvent which will block if another thread
26169         took the event that we were expecting. Fixes bug #78605.
26170
26171 2006-06-07  Mike Kestner  <mkestner@novell.com>
26172
26173         * ListView.cs : isolated checkbox clicking from the selection logic.
26174         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
26175
26176 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
26177
26178         * Form.cs: Check that the value passed to Form.DialogResult
26179         is a valid enum value.
26180
26181 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26182
26183         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
26184         Computer'. Clicking it in the network view goes to 'My Computer'.
26185         Added CIFS filesystem type. Display the mount point of filesystems.
26186         Avoid duplicate mount points (happens for me with CIFS);
26187
26188 2006-06-06  Jackson Harper  <jackson@ximian.com>
26189
26190         * InternalWindowManager.cs: Draw the maximized windows buttons
26191         when resizing.
26192
26193 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26194
26195         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
26196         all other dialogs. Fixes bug #78585.
26197
26198 2006-06-06  Mike Kestner  <mkestner@novell.com>
26199
26200         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
26201         Only invalidate checkbox on checkstate changes to avoid flicker.
26202         * ListBox.cs : avoid unselect/select when clicking selected item.
26203         avoid reselection flicker for already multiselected items.
26204         Fixes #78382.
26205
26206 2006-06-06  Jackson Harper  <jackson@ximian.com>
26207
26208         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
26209         the parent form so that the menu is removed if needed.
26210
26211 2006-06-06  Mike Kestner  <mkestner@novell.com>
26212
26213         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
26214         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
26215
26216 2006-06-06  Mike Kestner  <mkestner@novell.com>
26217
26218         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
26219
26220
26221 2006-06-06  Jackson Harper  <jackson@ximian.com>
26222
26223         * Control.cs: Use the property (instead of the field) to get the
26224         default cursor so it is instantiated correctly.
26225         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
26226         resizes so we need to manually repaint the window decorations here.
26227         - Set the titlebar button locations as soon as they are created,
26228         otherwise they are not set correctly on win32.
26229         
26230 2006-06-06  Chris Toshok  <toshok@ximian.com>
26231
26232         * CurrencyManager.cs (set_Position): call PullData before
26233         OnCurrentChanged.
26234         (AddNew): after calling IBindingList.AddNew, update our
26235         listposition, and call OnCurrentChanged/OnPositionChanged (without
26236         calling PullData).
26237         (OnCurrentChanged): remove the call to PullData from here.
26238         (OnItemChanged): remove the call to PushData from here.
26239         (OnPositionChanged): change the test from == null to != null to
26240         match the other methods.
26241         (ListChangedHandler): the grossest part of the patch.  Implement
26242         this such that it passes the unit tests in CurrencyManagerTest and
26243         the output more or less matches that of MS's implementation.
26244  
26245 2006-06-06  Mike Kestner  <mkestner@novell.com>
26246
26247         * ListView.cs : only update check state on single click.
26248         * ThemeWin32Classic.cs : fix focus drawing for details view without
26249         fullrowselect.  Fixes #78454.
26250         * XplatUIX11.cs : fix for double click emission.
26251
26252 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
26253
26254         * PropertyGridView.cs : Applied Atsushi's patch to fix
26255         font dialog bug  (#78197).
26256
26257 2006-06-05  Jackson Harper  <jackson@ximian.com>
26258
26259         * TreeNode.cs: Compute the next node for expanding/collapsing
26260         correctly. We now factor in nodes without a NextNode
26261         correctly. (Fixes somes cases in nunit-gui).
26262         * InternalWindowManager.cs: Set the bounds when updating the
26263         virtual position of a tool window.
26264         
26265 2006-06-05  Chris Toshok  <toshok@ximian.com>
26266
26267         * DataGrid.cs: rename cached_currencymgr to list_manager.
26268         (set_CurrentCell): move SetCurrentCell code here, and clean it up
26269         some.
26270         (CurrentRow, CurrentColumn): single accessors so we can make the
26271         cursor movement code a lot easier to understand.
26272         (CurrentRowIndex): implement this in terms of CurrentRow.
26273         (BeginEdit): clean this up a bit.
26274         (CancelEditing): sort out the is_editing/is_changing/is_adding
26275         stuff a little.
26276         (EndEdit): minor changes.
26277         (OnKeyDown): add a comment about a (most likely) unnecessary
26278         check.
26279         (OnMouseDown): cancel editing when we click on a row header.  And
26280         use the CurrentRow setter, not CurrentCell.
26281         (ProcessDialogKey): directly call ProcessGridKey.
26282         (UpdateSelectionAfterCursorMove): factor out this common block of
26283         code (it's used everywhere that we move the cursor by updating row
26284         or column).
26285         (ProcessGridKey): pretty substantial overhaul.  Use the
26286         CurrentRow/CurrentColumn properties to make the code a lot more
26287         readable.  Only use the CurrentCell property when we have to
26288         modify both row and column at once.  Tab behavior is still broken,
26289         and Delete is untested.
26290         (Select): if we have no selected rows, set selection_start to
26291         @row.
26292         (EditCurrentCell): rename EditCell this.  It was only ever invoked
26293         with CurrentCell as the arg, so drop the arg and rename it.
26294
26295         * DataGridColumnStyle.cs: clean up the constructors a little, and
26296         drop CommonConstructor().
26297
26298         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
26299         actually get notified when the user hits it.
26300         (ProcessKeyMessage): *substantially* simplify this method.
26301         There's no reason (that I can see) for the textbox to be making
26302         calls into the datagrid at all.  Remove all of them but the ones
26303         for Enter handling.  those will take some more work.
26304
26305         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
26306         calling HideEditBox.
26307         (HideEditBox): if we have an active textbox, render it invisible
26308         without causing a re-layout of the datagrid.
26309
26310 2006-06-05  Mike Kestner  <mkestner@novell.com>
26311
26312         * ListView.cs : fix NRE crasher when focuseditem is cleared by
26313         collection changes by resetting it to Items[0].  Fixes #78587.
26314
26315 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26316
26317         * MessageBox.cs: if the height of the text is larger than the icon_size,
26318         use that. Fixes bug #78575.
26319
26320 2006-06-05  Jackson Harper  <jackson@ximian.com>
26321
26322         * TreeView.cs: Fix line drawing when scrolling.  To do this each
26323         node is basically responsible for drawing its entire horizontal
26324         area.  When drawing a node it draws its parent node lines if
26325         needed.
26326         - Adjust the clip area to the viewport rectangle
26327         - Fix Left/Right key handling to match MS. (It expand/collapses
26328         and moves to parents/first child but does not move selection to
26329         sibling nodes).
26330         - Fix SetTop to work with new bound calculation code
26331         - When scrollbars are no longer needed we need to reset scrolling
26332         vars and recalculate the visible order so the redraw is correct
26333         * TreeNode.cs: We can't expand/collapse nodes with no children.
26334
26335 2006-06-03  John Luke  <john.luke@gmail.com> 
26336
26337         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
26338         so the colors work without dev packages
26339         
26340 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
26341
26342         * Control.cs 
26343           - Select: Implemented to just use activate. Seems to match MS 
26344             behaviour closest. Documented to only do actual control walking 
26345             based on it's parameters if in a container control so I moved 
26346             the code there.
26347           - Removed selection check logic from our internal Select() method
26348         * ContainerControl.cs:
26349           - Select: Moved selection logic from Control here, since MS documents
26350             that containers obey the bool arguments. No longer calling base
26351
26352 2006-06-02  Jackson Harper  <jackson@ximian.com>
26353
26354         * TreeView.cs: If the selected node isn't changed when we get
26355         focus update the previously selected node so that we see the
26356         selection box.
26357
26358 2006-06-02  Mike Kestner  <mkestner@novell.com>
26359
26360         * ComboBox.cs: restructure grab and general mouse event handling.
26361         Make the composite control raise mouse events like it was a single
26362         control for leaves/enters/motion/up/down events.  fix dropdown list
26363         coordinate mangling and refactor it into the scrollbar subclass to
26364         reduce code duplication.  Fixes #78282 #78361 and #78457.
26365
26366 2006-06-02  Mike Kestner  <mkestner@novell.com>
26367
26368         * ScrollBar.cs: remove Capture setting/clearing, as it happens
26369         automatically in the Control.WndProc.
26370
26371 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26372
26373         * FileDialog.cs: fix crash when running SharpChess, which sets the
26374         FilterIndex to 2 with only one Filter.
26375
26376 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26377
26378         * ToolBar.cs: add SizeSpecified property.
26379         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
26380         try to figure out our real size, otherwise fallback to what the
26381         container says.
26382
26383 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
26384
26385         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
26386         * Control.cs (WndProc): MS always calls the DefWndProc to pass
26387           up the event
26388
26389 2006-06-01  Mike Kestner  <mkestner@novell.com>
26390
26391         * ListView.cs: revamp the focus management in ListView.  It still
26392         causes churn of LostFocus/GotFocus emissions on clicks, but it's
26393         better than not handling focus at all.  Will revisit when pdb feels
26394         the general focus handling is solid.  Fixes #78526.
26395
26396 2006-06-01  Jackson Harper  <jackson@ximian.com>
26397
26398         * TreeView.cs: Set the default border style in the constructor.
26399         - Move painting to use OnPaintInternal instead of capturing
26400         WM_PAINT, this is the correct way of doing things
26401         - UpdateBelow shouldn't invalidate the scrollbar area
26402         - Cap the top on update below in case the node was above the top
26403         of the viewport rectangle.
26404         - ExpandBelow and Collapse below need to obey Begin/End Update.
26405         * TreeNode.cs: Make is_expanded internal so the treenode
26406         collection can change it without firing the whole event chain.
26407         * TreeNodeCollection.cs: When clearing all the child nodes make
26408         sure to recalc the visible order.
26409         - Improve algo for remove the top node
26410
26411 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
26412
26413         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
26414           SendMessage directly calling window procedures, which in turn might
26415           call SetFocus()
26416
26417 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
26418
26419         * Control.cs: Don't handle WM_SETFOCUS if the same window already
26420           has focus (works around X11 sending a FocusIn after our SetFocus)
26421         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
26422
26423 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
26424
26425         * Mime.cs: Fix for the NET_2_0 build.
26426           NameValueCollection needs StringComparer now.
26427
26428 2006-05-31  Chris Toshok  <toshok@ximian.com>
26429
26430         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
26431         return (via an out parameter) the starting X of the column.
26432         (UpdateVisibleColumn): track change to FromPixelToColumn.
26433         (HitTest): add a ColumnResize case here.
26434         (DrawResizeLine): new function, probably poorly named.
26435
26436         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
26437         only need to keep one reference.
26438         (set_ListManager): same.
26439         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
26440         Also, add support for HitTestType.ColumnResize.
26441         (OnMouseMove): add column resize behavior here, and change the
26442         cursor to the correct one as we move around the datagrid.
26443         (OnMouseUp): terminate the column resize if we're resizing.
26444         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
26445         for the current cell.
26446         (ConnectListManagerEvents): use cached_currencymgr.
26447         (DisconnectListManagerEvents): fill this in, using
26448         cached_currencymgr.
26449         (SetCurrentCell): remove cached_currencymgr_events handling.
26450         (SetDataMember): only call DisconnectListManagerEvents if
26451         cached_currencymgr is != null.
26452         (SetDataSource): same.
26453         (OnListManagerCurrentChanged): cached_currencymgr_events ->
26454         cached_currencymgr.
26455
26456 2006-05-31  Jackson Harper  <jackson@ximian.com>
26457
26458         * BindingManagerBase.cs: Remove somedebug code that creeped into
26459         SVN.
26460         * TreeNode.cs: We get the indent level dynamically right now, so
26461         don't track it as a member.
26462         * TreeNodeCollection.cs: Make sure all nodes added to the list
26463         have parents, treeviews/topnodes setup properly.
26464         - Don't attempt to track indent level.
26465
26466 2006-05-30  Jackson Harper  <jackson@ximian.com>
26467
26468         * BindingContext.cs: Create the currency manager tables here.
26469         This allows us to more easily create null tables (when bad data
26470         members are used), and more easily create related currency
26471         managers.
26472         * CurrencyManager.cs: All the table creation stuff is done by the
26473         binding context now.
26474         - Current should throw an exception if listposition is -1.
26475         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
26476         been bound yet.
26477
26478 2006-05-30  Mike Kestner  <mkestner@novell.com>
26479
26480         * ListView.cs: allow reexpansion of zero-width column headers.
26481         Fixes #78528.
26482
26483 2006-05-28  Chris Toshok  <toshok@ximian.com>
26484
26485         * CurrencyManager.cs (get_Current): after the late binding
26486         listposition = -1 fix, we need to guard against it here and return
26487         null, otherwise we raise an exception (which is swallowed
26488         elsewhere, and breaks datagrid databinding.)
26489
26490 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
26491
26492         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
26493           than WM_SYSKEY, don't throw if get something unexpected (#78507)
26494
26495 2006-05-26  Jackson Harper  <jackson@ximian.com>
26496
26497         * ControlPaint.cs:
26498         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
26499         values, it's faster and it's all we care about (we don't care if
26500         the names aren't equal).
26501         * KeyboardLayouts.cs: Eliminate some dead code.
26502         - Lazy init things
26503         * X11Keyboard.cs: Lazy init keyboard detection.
26504         - Cleanup access modifiers a little.
26505
26506 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
26507
26508         * XplatUIX11.cs: Once again, attempting to get layout just right.
26509
26510 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
26511
26512         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
26513           the sizes of each link section, that will result in sizes that
26514           match DrawString's layout (Fixes #78391)
26515
26516 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
26517
26518         * FileDialog.cs: If AddExtension property is true autocomplete the
26519           extensions in SaveFileDialog correctly. Fixes bug #78453.
26520           Set MyNetwork and MyComputer to "C:\" for windows. This should
26521           fix part 8 of bug #78446 for now.
26522
26523 2006-05-26  Chris Toshok  <toshok@ximian.com>
26524
26525         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
26526         invalidate the current row header if we need to, but presumably
26527         we'll invalidate the row corrsponding to the bounds or
26528         editingControl.
26529         (GridHScrolled): switch back to this method, as it's part of the
26530         public api.  *sigh*.
26531         (GridVScrolled): same.
26532         (OnMouseWheel): hack up something that more or less works.  Call
26533         GridHScrolled/GridVScrolled directly, instead of duplicating much
26534         of their code here.
26535         (EnsureCellVisibility): reinstate a bunch of this code, since we
26536         can't just set the scrollbar Value and expect to do all the work
26537         in the ValueChanged handler.  Also, Call Update() after scrolling
26538         in one direction so the other XplatX11.ScrollWindow call has the
26539         proper stuff in the proper places.
26540         (EditCell): set is_editing to true before calling .Edit.
26541
26542         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
26543         don't bother comparing first.
26544         (OnKeyPress): call grid.ColumnStartedEditing before calling
26545         base.OnKeyPress.  this will set is_changing and invalidate the row
26546         header if necessary.
26547         (ProcessKeyMessage): for WM_CHAR messages, call
26548         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
26549         and WM_KEYDOWN.
26550         
26551         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
26552         it's done in the DataGrid.
26553         (NextState): call grid.ColumnStartedEditing, which takes care of
26554         invalidating the row header (and setting is_changing).
26555
26556         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
26557         here.  it's done in the DataGrid.
26558
26559 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26560
26561         * Control.cs: allow changing the cursor when the mouse position is
26562         out of bounds but Capture is set.
26563         * LinkLabel.cs: handle the case when the mouse button is pressed on the
26564         linklabel but released somewhere else.
26565
26566 2006-05-25  Jackson Harper  <jackson@ximian.com>
26567
26568         * TreeView.cs: When we get focus if there is no selected node make
26569         it the top node
26570         - Remove some uneeded setup code from Draw.
26571         * TreeNodeCollection.cs: If the tree doesn't have a top node when
26572         a new node is inserted make the new node the top.
26573         * XplatUIX11.cs:
26574         * Timer.cs: Use Utc time so that no local time zone stuff needs to
26575         be used (should be faster).
26576         
26577 2006-05-25  Chris Toshok  <toshok@ximian.com>
26578
26579         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
26580         problem with the last commit.
26581
26582 2006-05-25  Chris Toshok  <toshok@ximian.com>
26583
26584         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
26585         need the invalidate call here, while scrolling right-to-left via
26586         the left arrow key (i.e. moving the editing cell while scrolling).
26587
26588         * DataGrid.cs (.ctor): remove the initialization of
26589         ctrl_pressed/shift_pressed.  We no longer track them using key
26590         up/down handlers, but by using Control.ModifierKeys.  Also, switch
26591         to using ValueChanged handlers on the scrollbars instead of
26592         Scrolled event handlers.  This simplifies a bunch of the scrolling
26593         code.
26594         (GridHValueChanged): rename from GridHScrolled, and change it to
26595         work with the new event args.
26596         (GridVValueChanged): same.
26597         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
26598         (OnMouseWheel): actually scroll the datagrid.  Don't change the
26599         selected cell.
26600         (ProcessGridKey): correct all the keyboard navigation stuff I
26601         could find.  Ctrl up/down/left/right/home/end work now.
26602         (EnsureCellVisibility): correct method name spelling.  Also,
26603         simplify this a touch by not explicitly calling the
26604         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
26605         scrollbar value.
26606         (OnKeyUpDG): no need for this method now.
26607         
26608 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26609
26610         * LinkLabel.cs: display the OverrideCursor when hovering the label.
26611         Fixes bug #78392.
26612
26613 2006-05-25  Chris Toshok  <toshok@ximian.com>
26614
26615         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
26616         r61019.
26617
26618 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
26619
26620         * Application.cs: Moved setting of is_modal and closing to before
26621           we create the control, to allow the event handlers called as a
26622           result of creation affect closing. Also removed Gonzalo's previous
26623           change to setting DialogResult, the behaviour has been moved to 
26624           Form.ShowDialog()
26625         * Form.cs: 
26626           - ShowDialog(): Removed explicit creation of the form, let RunLoop
26627             handle it instead
26628           - ShowDialog(): If no dialog result is set, we need to return Cancel
26629           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
26630             the close is cancelled
26631
26632 2006-05-25  Jackson Harper  <jackson@ximian.com>
26633
26634         * StatusBar.cs: We only need to update the sizes of the other
26635         panels when we have auto size contents.  Also we are only updating
26636         the contents of the panel, not the borders, so compensate for the
26637         border width (TODO: get this width from the theme somehow).
26638         * TreeView.cs: Scrollable is true by default
26639         - Use invalidate instead of refresh where needed
26640         - Factor the scrollable value into scrollbar updating
26641         - Update the scrollbars if the Scrollable property is altered
26642         - Update the selected node if its ImageIndex is changed
26643         - Handle null nodes in UpdateNode (mainly so we don't have to
26644         check if selected is null when updating it
26645         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
26646         are factored into the visible count
26647         - Use VisibleCount for clarity in the code
26648         - When the font is changed we need to recurse through all the
26649         nodes and invalidate their sizes
26650         
26651 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26652
26653         * Application.cs: set the DialogResult to fixed when the main form is
26654         hidden or destroyed while being modal.
26655
26656 2006-05-25  Miguel de Icaza  <miguel@novell.com>
26657
26658         * Theme.cs: Use Tangoified messagebox icons. 
26659
26660         (GetSizedResourceImage): Also cope with width = 0 and do not
26661         trigger a warning in that case (0 means "give me your icon from
26662         the resouce, no special size needed).
26663
26664 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
26665
26666         * Application.cs: Leave runloop if the the main modal form is 
26667           hidden (fixes #78484)
26668
26669 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
26670
26671         * BindingContext.cs : reject null datasource in Contains() and
26672           Item[].
26673         * CurrencyManager.cs : check data_member validity when data_source
26674           is dataset. When it is late binding, the initial position is -1.
26675
26676 2006-05-24  Jackson Harper  <jackson@ximian.com>
26677
26678         * TreeNodeCollection.cs: Dont't recalculate the visible order on
26679         inserted nodes that aren't visible.  This changes the
26680         max_visible_order which confuses scrollbar settings.
26681         - Use the enumerator to get the prev node instead of duplicating
26682         code.
26683         * TreeView.cs: Use new method for setting scrollbar values
26684         - Don't set the bounds every time the scrollbar is updated
26685         - When updating below the root node use an invalidate instead of a
26686         refresh to prevent the child controls (scrollbars) from being
26687         refreshed. (UpdateBelow still needs to be reworked anyways).
26688         - Reenable SetBottom now that visible orders are set correctly,
26689         added some debug code incase we ever get bad values there again.
26690         - Set the scrollbar max to 2 less then the max value, this
26691         compensates for the max value being one above the node count, and
26692         for scrollbars adding one extra "notch".
26693         - When drawing image nodes if there is an imagelist we draw the
26694         first image in the list if the supplied image index is out of the
26695         image list's bounds.
26696         
26697 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26698
26699         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
26700           we receive a size change from the WM (Fixes #78503)
26701
26702 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
26703
26704         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
26705           rectangle (Fixes #78501)
26706
26707 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26708
26709         * ButtonBase.cs: 
26710           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
26711             as a bitfield.
26712           - Fixed MouseMove to no longer switch pressed state unless the left
26713             mouse button is pressed. Atsushi provided the original patch (#78485)
26714           
26715 2006-05-24  Jackson Harper  <jackson@ximian.com>
26716
26717         * ScrollBar.cs: New internal methods that allow us to change a
26718         couple values on the scrollbar (the most common case is maximum
26719         and large change) without getting multiple invalidates.
26720
26721 2006-05-24  Chris Toshok  <toshok@ximian.com>
26722
26723         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
26724         (Edit): save off the original state in oldState, and set
26725         grid.is_editing to true.
26726         (OnKeyDown): abort editing if escape is pressed.  also, call
26727         NextState if space is pressed.
26728         (OnMouseDown): call NextState.
26729         (NextState): factor out shared code from OnKeyDown and OnMouseDown
26730         here.  Also, only invalidate the row header once (on the initial
26731         is_changing switch) to save on redraws.
26732
26733 2006-05-24  Chris Toshok  <toshok@ximian.com>
26734
26735         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
26736         if the value in the cell is different than it was before.  This
26737         keeps us from triggering a layout when we move around a datarid
26738         with a highlighted cell.
26739         (Edit): suspend layout when creating/positining the text box, and
26740         resume passing false so we don't ever actually re-layout.
26741         (ReleaseHostedControl): same.
26742         (EnsureTextBox): reformat slightly, and set WordWrap to false.
26743
26744         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
26745         control-key sequences should go to the datagrid - remove that
26746         lock.  Also, modify the conditions under which we move between
26747         cells when moving the cursor within a cell, and remove the "this"
26748         and "base" from field accesses.  We weren't even consistent, given
26749         they all were in the base class.
26750
26751 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
26752
26753         * Binding.cs : (.ctor)
26754           An obvious NRE fix for BindingTest.CtorNullTest().
26755
26756 2006-05-23  Chris Toshok  <toshok@ximian.com>
26757
26758         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
26759         them between lines.  This fixes some quirks editing cells in the
26760         datagrid.
26761
26762 2006-05-23  Jackson Harper  <jackson@ximian.com>
26763
26764         * TreeView.cs: Use begin/end update when doing expand/collapse all
26765         so that we don't get flicker on the scrollbar.
26766
26767 2006-05-23  Jackson Harper  <jackson@ximian.com>
26768
26769         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
26770         treenode calculations to be independant of the painting code. To
26771         do this nodes track a visible order which is calculated by the
26772         treeview.
26773         - Call new methods for expanding/collapsing nodes.  These methods
26774         use scrollwindow so we don't have to update everything below the
26775         node.
26776         * TreeView.cs: Refactored drawing and scrolling code.  We don't
26777         need to update nodes when drawing anymore or calculate scrollbar
26778         stuff.
26779         - Added new methods for expanding/collapsing nodes. These methods
26780         use ScrollWindow so as to not have to redraw all the nodes below.
26781         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
26782         we add/remove nodes or sort.
26783         - Handle removing the selected and the top node properly.
26784
26785 2006-05-23  Chris Toshok  <toshok@ximian.com>
26786
26787         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
26788         maybe this should actually happen in the datagrid code?
26789         (EndEdit): no need to invalidate anything, given that
26790         ReleaseHostedControl causes the datagrid to relayout, which
26791         invalidates everything anyway.
26792
26793         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
26794         in SetCurrentCell).
26795         (set_SelectionBackColor): call InvalidateSelection instead of
26796         Refresh.
26797         (set_SelectionForeColor): same.
26798         (BeginEdit): Flesh this out a bit.
26799         (CancelEditing): only do any of this if we're editing/adding.
26800         (EndEdit): same.
26801         (OnMouseDown): there's no need to cancel editing here, it's done
26802         in SetCurrentCell.
26803         (SetCurrentCell): only invalidate the current row header if it's a
26804         different row than the new one.
26805         (ShiftSelection): fix this to work like MS does.
26806         (ResetSelection): factor out the invalidation of selected_rows to
26807         InvalidateSelection.
26808         (SetDataSource): cancel any editing that's going on.
26809
26810         * DataGridColumnStyle.cs
26811         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
26812         call the non-interface version.
26813
26814         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
26815         header rectangle with the clip rectangle so we don't redraw the
26816         entire header for just a small area.  Gets rid of the last flicker
26817         when horizontally scrolling.
26818         (DataGridPaintRow): same.
26819
26820 2006-05-23  Mike Kestner  <mkestner@novell.com>
26821
26822         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
26823         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
26824         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
26825         Critical bug report.
26826
26827 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26828
26829         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
26830           and this fixes #78493
26831
26832 2006-05-23  Miguel de Icaza  <miguel@novell.com>
26833
26834         * Theme.cs (GetSizedResourceImage): Scale images if the proper
26835         size is not found.  
26836         
26837         * FileDialog.cs: Do not change the background for the side bar as
26838         it wont work nicely with the theme, and also reduces the artifacts
26839         in rendering the icons (which I want to fix too).
26840
26841         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
26842         resources, not resgen resources. 
26843
26844         (PlatformDefaultHandler): Pull images using the new API.
26845
26846 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26847
26848         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
26849           a reference to the hwnd and will not remove it unless there are
26850           no pending exposures (fixes #78341)
26851         * XplatUI.cs: Improved debug
26852
26853 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
26854
26855         * MenuAPI.cs : don't handle OnClick event when it was not the left
26856           button. Fixed bug #78487.
26857
26858 2006-05-23  Mike Kestner  <mkestner@novell.com>
26859
26860         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
26861         prefer submenus to the top menu for item lookup, to avoid popping down
26862         top-row items.
26863
26864 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
26865
26866         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
26867           Graphics.FillRectangle as the visual results are really bad (even
26868           on win). We now draw perfect arrows (and perfect shadows when the
26869           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
26870           Pen.DashPattern to draw the dots of each line.
26871
26872 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
26873
26874         * FileDialog.cs: Update the filename combobox when navigating through
26875           the ListView with the cursor keys. Fixes part 7 of bug #78446.
26876
26877 2006-05-22  Mike Kestner  <mkestner@novell.com>
26878
26879         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
26880         Fixes #78463.
26881
26882 2006-05-22  Mike Kestner  <mkestner@novell.com>
26883
26884         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
26885         requests. Fix a misspelled parameter and a copy paste exception error
26886         in Select.
26887
26888 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
26889
26890         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
26891           to get the same width/height (5/13) on X11 as the default font has on
26892           win32. This means that our DefaultFont emSize is smaller than the 
26893           the MS SWF equivalent (even thought the width/height stays the same)
26894
26895 2006-05-20  Jackson Harper  <jackson@ximian.com>
26896
26897         * MdiClient.cs:
26898         * MdiWindowManager.cs:
26899         * InternalWindowManager.cs: Make sure to use the border width from
26900         the theme.
26901
26902 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
26903
26904         * PrintDialog.cs: Implements printer details
26905
26906 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
26907
26908         * FileDialog.cs: Added focus handling for PopupButtonPanel.
26909           Fixes part 1 and 2 of bug #78446
26910
26911 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
26912
26913         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
26914           instead of sticking to the first ever calculated value
26915
26916 2006-05-19  Mike Kestner  <mkestner@novell.com>
26917
26918         * ComboBox.cs: fix mouse motion selection to use MousePosition and
26919         PointToClient, since Capture is set. Fixes #78344.
26920
26921 2006-05-19  Mike Kestner  <mkestner@novell.com>
26922
26923         * ListView.cs: match MS behavior in Details view where items are not
26924         drawn if Columns.Count == 0. 
26925         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
26926         Use a separate pen to draw the check, since changing the width affects
26927         the box as well.  Fixes #78454.
26928
26929 2006-05-18  Miguel de Icaza  <miguel@novell.com>
26930
26931         * ListView.cs: ArgumentOutOfRangeException, single versions of the
26932         exception should throw the name of the invalid argument.
26933
26934         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
26935         there are no files listed. 
26936
26937 2006-05-18  Jackson Harper  <jackson@ximian.com>
26938
26939         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
26940         up.
26941
26942 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26943
26944         * Control.cs: Brought back our old UpdateZOrder method as a private
26945           function and switched our calls from UpdateZOrder to the new one.
26946           This fixes the Paint.Net canvas disappearing bug.
26947
26948 2006-05-18  Jackson Harper  <jackson@ximian.com>
26949
26950         * Theme.cs:
26951         * ThemeWin32Classic.cs:
26952         * InternalWindowManager.cs: Move the drawing into the theme,
26953         expose everything the theme should need from the window manager.
26954
26955 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26956
26957         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
26958           from the call to NativeWindow to avoid walking up the parent chain
26959           further than needed (speeds up setting cursors and avoids setting
26960           the wrong cursor if a parent has another cursor defined)
26961         * Cursor.cs: When loading an icon as cursor, MS uses the center of
26962           the icon as hotspot, not what's contained as hotspot in the icon
26963           file. This fixes the perceived drawing offset seen with Paint.Net
26964         
26965 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26966
26967         * XplatUIX11.cs: 
26968           - Store the calculated rectangle in Hwnd object and use it when 
26969             setting the client size
26970           - Force Toolwindows to always be type Dock, to ensure they're on top
26971
26972 2006-05-18  Mike Kestner  <mkestner@novell.com>
26973
26974         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
26975         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
26976         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
26977         Substantial refactoring to remove confusing nested classes. Coding
26978         standard and Get+Set->property refactorings.  Shift to index based
26979         highlighting in ComboListBox instead of constantly using IndexOf and
26980         Items[]. Add invalidations on resize for DropDownList to fix ugliness
26981         in FileDialog growth.  Draw borders manually since Simple mode needs
26982         to look like two independent controls.  Make listbox border
26983         conditional to DropDownStyle.  Improved OwnerDraw support.
26984
26985 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
26986
26987         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
26988         Don't set the disposed graphics to null, so we can throw the "right"
26989         exception if the graphics is reused later (added a flag to avoid 
26990         double disposing). Some behaviours are different under 2.0 and are
26991         filled under bug #78448.
26992
26993 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26994
26995         * Control.cs: When double-buffering is enabled, we need to reset
26996           our graphics context between paint calls. Otherwise, any 
26997           transformations and other alterations on the context will 
26998           become cumulative (#77734)
26999
27000 2006-05-18  Mike Kestner  <mkestner@novell.com>
27001
27002         * ListView.cs: do focused item selection like MS on clicks. 
27003         Rework focus handling for ItemControl so LostFocus invalidates as
27004         well.
27005         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
27006         the ListView ItemControl has focus.
27007
27008 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
27009
27010         * XplatUIX11.cs: If client_window ends up being width or height zero
27011           due to border settings, move it off window inside whole_window (#78433)
27012
27013 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
27014
27015         * Mime.cs: Shrink the mime file cache correctly.
27016
27017 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
27018
27019         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
27020
27021 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
27022
27023         * XplatUIX11.cs (AddExpose): More sanity checks
27024
27025 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
27026
27027         * XplatUIX11.cs:
27028           - AddExpose: Don't add expose ranges outside the size of our
27029             window
27030           - Cast opacity values to Int32 to avoid crashes with certain
27031             values
27032           - Added disabled code paths that protect against illegal cross-
27033             thread painting (Developers.exe)
27034
27035 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
27036
27037         * ProgressBar.cs: Invalidate the control when it's resized
27038           since block size is based on control size. (#78388)
27039
27040 2006-05-16  Miguel de Icaza  <miguel@novell.com>
27041
27042         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
27043         of setting the incoming argument to the "reset" value, we set the
27044         this.datamember to string.empty (before we were invalidating the
27045         incoming data).   
27046
27047         Fixes 78420
27048
27049 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
27050
27051         * Form.cs: Only apply transparency settings after the form
27052           is created. (Fixes #77800)
27053
27054 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
27055
27056         * ApplicationContext.cs: Grab the HandleDestroyed event so
27057           we know when to fire OnMainFormClosed 
27058
27059 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
27060
27061         * Application.cs: Introduced sub-class to allow tracking of
27062           threads and centralized triggering of the event mess for
27063           ThreadExit, AppExit, etc..  (#76156)
27064
27065 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
27066
27067         * MimeIcon.cs:
27068           - Do not return a null icon index value for a mime subclass.
27069             Instead try the main mime type class too.
27070           - Seems that some newer distributions don't have a link to some
27071             gnome default icons anymore. So check the default gnome dir too.
27072           
27073
27074 2006-05-16  Jackson Harper  <jackson@ximian.com>
27075
27076         * MdiClient.cs: Don't paint the parent background image if we have
27077         our own background image.
27078
27079 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
27080
27081         * Control.cs:
27082           - PerformLayout: Do not shrink space filled by DockStyle.Fill
27083             controls, all filled controls are supposed to overlap (#78080)
27084           - UpdateZOrder is supposed to update the control's z-order in the
27085             parent's z-order chain. Fixed to behave like that
27086           - BringToFront: Removed obsolete code
27087           - SendToBack: Simplyfied
27088           - SetChildIndex: Trigger layout calculations when Z-order changes
27089             since layout is done by z-order
27090
27091 2006-05-16  Chris Toshok  <toshok@ximian.com>
27092
27093         [ fixes bug #78410 ]
27094         * DataGrid.cs (set_AlternatingBackColor): use
27095         grid_drawing.InvalidateCells instead of Refresh().
27096         (set_BackColor): call grid_drawing.InvalidateCells.
27097         (set_BackgroundColor): use Invalidate instead of Refresh.
27098
27099         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
27100         invalidate the cell area.
27101
27102 2006-05-15  Chris Toshok  <toshok@ximian.com>
27103
27104         [ fixes bug #78011 ]
27105         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
27106         on to DataGridPaintRow.
27107         (DataGridPaintRow): take a clip argument, and only draw the cells
27108         which intersect it.  same with the not_usedarea.
27109
27110         * Theme.cs (DataGridPaintRow) add @clip parameter.
27111
27112         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
27113         XplatUI.ScrollWindow.
27114         (ScrollToRow): same.
27115
27116         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
27117         with last column which was causing a gray swath to appear with the
27118         XplatUI.ScrollWindow code.
27119
27120 2006-05-15  Chris Toshok  <toshok@ximian.com>
27121
27122         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
27123         use XplatUI.ScrollWindow.
27124         (VerticalScrollEvent): use XplatUI.ScrollWindow.
27125
27126 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
27127
27128         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
27129
27130 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
27131
27132         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
27133           file since there are no equivalent X11 cursors
27134
27135 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
27136
27137         * MonthCalendar.cs : DateTimePicker should reflect selected date
27138           on mouse*up*, not mouse*down*. Fixed originally reported part of
27139           bug #76474.
27140
27141 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
27142
27143         * TabControl.cs : When argument index is equal or more than tab
27144           count, just ignore. Fixed bug #78395.
27145
27146 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
27147
27148         * Control.cs: Dispose all child controls when control is diposed (#78394)
27149
27150 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
27151
27152         * ColorDialog.cs: Finally it is possible to select the color with
27153           the text boxes
27154
27155 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
27156
27157         * PrintDialog.cs: Fix typo
27158
27159 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
27160
27161         * PrintDialog.cs: PrintDialog is not resizable
27162         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
27163           color. Made some ToolBar drawing methods protected virtual.
27164
27165 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
27166
27167         * PrintDialog.cs: Implementation of the PrintDialog
27168
27169 2006-05-12  Chris Toshok  <toshok@ximian.com>
27170
27171         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
27172         thumb, instead use MoveThumb.  This has the side effect of making
27173         most of the other thumb moving machinery use MoveThumb as well.
27174         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
27175         need to actually invalidate the rectangle where the new thumb will
27176         go.
27177         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
27178         We force an Update() after, so it's not as fast as it could be,
27179         but at least there's zero flicker and no droppings.
27180         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
27181         (UpdateThumbPos): add another argument (dirty), which says whether
27182         or not to calculate/add dirty regions which we later invalidate.
27183         For cases where we know we're going to use MoveThumb, we pass
27184         false for this.  Otherwise, pass true.
27185
27186 2006-05-12  Jackson Harper  <jackson@ximian.com>
27187
27188         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
27189         the status bar.
27190         
27191 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
27192
27193         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
27194           and GetClipRegion methods and UserClipWontExposeParent property.
27195         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
27196           overriding UserClipWontExposeParent property, setting to false, since
27197           Win32 handles the required expose messages to draw our clipped parent
27198           areas internally
27199         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
27200           PaintEventStart to set the user clip region if set.
27201         * Control.cs: 
27202           - Now internally tracking the Region for the control since we need to
27203             store it if the handle is not yet created and only set it when it
27204             becomes created. Before setting the region forced handle creation
27205           - Added code to draw the parents underneath a user-clipped region
27206         * Hwnd.cs: Added UserClip property
27207
27208 2006-05-12  Chris Toshok  <toshok@ximian.com>
27209
27210         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
27211         (set_Maximum): same.
27212         (set_Minimum): same.
27213         (set_SmallChange): same.
27214         (OnMouseUpSB): remove the call to refresh when releasing the
27215         thumb.  We shouldn't need it.
27216         
27217 2006-05-12  Miguel de Icaza  <miguel@novell.com>
27218
27219         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
27220         AutoSize set to None, we do not need to relayout everything, we
27221         just need to invalidate the current region.
27222
27223         (Draw): Do not draw the entire ClientArea, just redraw the
27224         clip area being passed.
27225
27226         * MdiClient.cs: Make MdiClient constructor with the Form argument
27227         internal. 
27228
27229 2006-05-12  Jackson Harper  <jackson@ximian.com>
27230
27231         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
27232         parents background image,  but strangely not their own.
27233         - (DrawStatusBarPanel): Take into account horizontal alignment
27234         when drawing the strings and icons.
27235
27236 2006-05-12  Mike Kestner  <mkestner@novell.com>
27237
27238         * ListBox.cs: avoid invalidations for focus when the collection is
27239         empty. 
27240
27241 2006-05-12  Chris Toshok  <toshok@ximian.com>
27242
27243         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
27244         invalidate the entire thumb area.  Call InvalidateDirty which
27245         limits the redraw to the thumb itself and surrounding pixels.
27246
27247         * XplatUIX11.cs (ScrollWindow): optimize copying.
27248         
27249 2006-05-12  Chris Toshok  <toshok@ximian.com>
27250
27251         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
27252         Figure out the positioning/layout in a single pass instead of
27253         multiple recursive invocations.  Speeds up the initial display of
27254         the data grid.  Also, make many things private that were
27255         originally public but unused outside this class.
27256
27257 2006-05-11  Jackson Harper  <jackson@ximian.com>
27258
27259         * MdiClient.cs: Improved layout code.
27260
27261 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
27262
27263         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
27264           not SelectedObject.
27265
27266 2006-05-11  Chris Toshok  <toshok@ximian.com>
27267
27268         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
27269         union of that will always be {0,0,width,height}.
27270
27271 2006-05-11  Jackson Harper  <jackson@ximian.com>
27272
27273         * Form.cs: Match MS's DefaultSize for forms (they must have
27274         changed the size in sp2).
27275
27276 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
27277
27278         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
27279
27280 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
27281
27282         * TextControl.cs : Fixed bug #78109. This incorrect position
27283           comparison caused crash on automatic line split.
27284         * TextBoxBase.cs : reduce duplicate code.
27285
27286 2006-05-10  Jackson Harper  <jackson@ximian.com>
27287
27288         * MdiClient.cs: Active form is only sent to the back when using
27289         the Next form functionality, when a form is clicked the current
27290         active shouldn't be sent to the back.
27291         - Layout the mdi windows when the container is first made visible.
27292         * Form.cs: Give the MdiClient a ref to the containing form when we
27293         create it.
27294         
27295 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
27296
27297         * LinkLabel.cs : link_font could be uninitialized, so populate one
27298           before actual use. Fixed bug #78340.
27299
27300 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
27301
27302         * XplatUIX11.cs : clipboard format native value is IntPtr.
27303           Fixed bug #78283.
27304
27305 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
27306
27307         * Control.cs: 
27308           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
27309             which is passed up the parent chain by DefWndProc
27310           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
27311             to DefWndProc (#77956)
27312         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
27313
27314 2006-05-10  Jackson Harper  <jackson@ximian.com>
27315
27316         * MdiClient.cs: We need to remove the controls from the mdi
27317         collection, when we close the window.
27318         * MdiWindowManager.cs: Special handling of closing mdi windows.
27319         * InternalWindowManager.cs: Make the close method virtual so the
27320         mdi window manager can handle it specially.
27321
27322 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
27323
27324         * DataGrid.cs:
27325           - Recalculate grid when the data source has changed
27326           - Matches styles provided by user from all data sources types
27327         * DataGridTableStyle.cs: For columns that provided by the user set the
27328         with the preferred value is there was unassigned.
27329         * CurrencyManager.cs: throw OnItemChanged event
27330
27331 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
27332
27333         * PictureBox.cs: Don't animate until handle is created. Start animation
27334           when handle is created.
27335
27336 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
27337
27338         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
27339           current codebase.
27340         * XEventQueue.cs: We don't need to provide the extra info
27341
27342 2006-05-10  Jackson Harper  <jackson@ximian.com>
27343
27344         * MdiClient.cs: If the mdi clients parent form has a background
27345         image set, we draw that background image for the mdi area's
27346         background.
27347
27348 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
27349
27350         * TextBoxBase.cs: Set IBeam cursor (#78347)
27351
27352 2006-05-10  Mike Kestner  <mkestner@novell.com>
27353
27354         * ToolBar.cs: fix some text padding issues with ButtonSize
27355         calculation. Update the default size to match MS documentation.
27356         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
27357         button size. Fixes #78296.
27358
27359 2006-05-10  Mike Kestner  <mkestner@novell.com>
27360
27361         * ListBox.cs: use is_visible for scrollbar positioning in case the
27362         control isn't on screen yet.  Fix off by one with Right vs Width
27363         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
27364         
27365 2006-05-10  Jackson Harper  <jackson@ximian.com>
27366
27367         * X11Dnd.cs: Drop to a control with another control on top of it.
27368         * ToolBar.cs: Work on a copy of the buttons list, so that it can
27369         be modified in click handlers. TODO: Look for similar problems in
27370         other controls.
27371
27372 2006-05-09  Jackson Harper  <jackson@ximian.com>
27373
27374         * Form.cs: Window managers need the old window state when setting
27375         window state now.
27376         * InternalWindowManager.cs: Allow the base mdi window manager to
27377         handle more of the MDI only stuff (like maximize buttons).
27378         * MdiWindowManager.cs: Fix some snafus in changing the window
27379         state.  Add all the menu functionality, for both popup and
27380         maximized menus.
27381         * MdiClient.cs: When a new form is selected the currently
27382         activated form is sent to the back, this matches MS.
27383         - Implement a new method to activate the next mdi child window.
27384
27385 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
27386
27387         * Control.cs: 
27388           - Added new InternalCapture method to allow controls to prevent
27389             the capture behaviour on the click handlers
27390           - Switched to use InternalCapture
27391         * ComboBox.cs:
27392           - Using InternalCapture to prevent mouse captures from being released
27393             on mouse button release (Fixes #78100)
27394         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
27395           returns Form borders if a caption is present. (Fixes #78310)
27396
27397 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
27398
27399         * TreeNode.cs: Changed serialization .ctor to not require every field
27400           to be present. (#78265)
27401         * OwnerDrawPropertyBag.cs: Added serialization .ctor
27402
27403 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
27404
27405         * MimeIcon.cs: for is faster than foreach for strings.
27406
27407 2006-05-05  Mike Kestner  <mkestner@novell.com>
27408
27409         * CheckedListBox.cs: update check handling code to not use selected.
27410         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
27411         behavior for visual feedback, motion response, shift/ctrl handling,
27412         and properly deal with all 4 selection modes. Updates to bounds
27413         handling logic.  Add scroll wheel support. [Fixes #77842]
27414
27415 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
27416
27417         * ListView.cs:
27418           - Moved adding of Implicit controls into .ctor. That way, subsequent
27419             creation of the controls will not cause them to think they are 
27420             toplevel windows (fixes #78200 header problem)
27421           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
27422           - Switched visibility setting of header control to use internal field
27423             to avoid triggering handle creation
27424           - Now checking if handle is created before causing a refresh when items
27425             are added (This makes us now match handle creation time with MS)
27426         * Splitter.cs: Removed loading of private splitter cursor, switched to
27427           Cursors version now that that is loading the right ones
27428         * Cursors.cs: Load proper splitter cursors from resources
27429         * Cursor.cs: Added second method of loading resource cursors for the 
27430           VS.Net users amongst us
27431
27432 2006-05-05  Mike Kestner  <mkestner@novell.com>
27433
27434         * ListView.cs: give header_control a minimum size based on the
27435         ListView size.
27436
27437 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
27438
27439         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
27440           window seems to do that with metacity, so set that type. (#78120)
27441
27442 2006-05-05  Mike Kestner  <mkestner@novell.com>
27443
27444         * ListViewItem.cs: fix Details mode checkbox layout bug.
27445         * ThemeWin32Classic.cs: draw a ListView column header for unused space
27446         at the end of the header, if it exists. [Fixes for #78200]
27447
27448 2006-05-04  Jackson Harper  <jackson@ximian.com>
27449
27450         * MdiClient.cs: Add a helper property to get the container form.
27451         * MdiWindowManager.cs: We have to make sure to use the menu origin
27452         when drawing the icons and buttons, this fixes maximized window
27453         icons/buttons on win32.
27454         * InternalWindowManager.cs: Reset the restore captions when a
27455         window goes from Maximized to Minimized and vice versa. Move the
27456         DrawMaximizedButtons into the MdiWindowManager source, tool
27457         windows can't be maximized. NOTE: This could use a little
27458         refactoring if time ever permits.
27459         
27460 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
27461
27462         * TextBox.cs: Add MWFCategoryAttributes
27463         * TextBoxBase.cs: Add MWFCategoryAttributes
27464         * Form.cs: Add MWFCategoryAttributes
27465
27466 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
27467
27468         * Control.cs: Add MWFCategoryAttributes
27469         * ScrollableControl.cs: Add MWFCategoryAttributes
27470
27471 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
27472
27473         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
27474           Divider is true. Fix a little glitch in PropertyToolBar
27475           drawing code
27476
27477 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
27478
27479         * Control.cs:
27480           - Dispose: Call base.Dispose, this causes the disposed event
27481             to be fired (and probably other, more important stuff)
27482           - SetVisibleCore: Set is_visible to true after creating the
27483             window so that the window still gets created invisible (if
27484             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
27485             to generate a WM_ACTIVE message
27486         * Form.cs: Call Dispose when we want to destroy the window, instead of
27487           just destroying the handle (Dispose will do that for us)
27488         * XplatUIX11.cs:
27489           - RootWindow also needs a queue, so we can properly process the
27490             property change events from RootWindow (like Activate)
27491           - Generatic synthetic WM_ACTIVE message when the active window is
27492             being destroyed
27493
27494 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
27495
27496         * LinkLabel.cs: Trigger a recalc of our label dimensions when
27497           bounds are changed
27498
27499 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
27500
27501         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
27502           for determining width and height (image might not be assigned if
27503           we're drawing an imagelist)
27504
27505 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
27506
27507         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
27508         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
27509           height from system
27510         * Theme.cs: No longer returns hardcoded menu height, instead calls
27511           new driver method
27512         * Form.cs (OnLoad): Scaling happens before triggering Load events 
27513           on MS (# 78257)
27514
27515 2006-05-01  Mike Kestner  <mkestner@novell.com>
27516
27517         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
27518
27519 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
27520
27521         * TextBoxBase.cs: Removed Fixme
27522         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
27523
27524 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
27525
27526         * XplatUIX11.cs:
27527           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
27528             the rectangle relative to the parent, considering borders. We
27529             don't really want that.
27530           - ScrollWindow: Fixed warning to be more understandable
27531         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
27532           scrollbars and scroll only the visible area
27533         * RichTextBox.cs: Removed debug output
27534
27535 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27536
27537         * NumericUpDown.cs (Text): Just use base
27538         * UpDownBase.cs: Ensure txtView is created before using it
27539
27540 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
27541
27542         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
27543           casting to IntPtr to avoid 64bit overflow errors
27544
27545 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27546
27547         * Control.cs:
27548           - AllowDrop: Don't force handle creation.
27549           - CreateHandle: Added call to tell driver if we're allowed to drop
27550
27551 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27552
27553         * FileDialog.cs: Remember the last directory not only for the
27554           current instance but also for new FileDialog instances.
27555
27556 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
27557         
27558         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
27559           broke sending async messages
27560
27561 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27562
27563         * XplatUIX11.cs:
27564           - ScrollWindow: Fixed method. We finally generate expose events again
27565             for scrolled areas. This was causing 'garbage' when scrolling
27566             textbox and other controls that used ScrollWindow
27567           - Switched from using the regular queue for paint events to the MS 
27568             model of 'generating' paint events when the queue is empty.
27569             We use the new XQueueEvent.Paint subclass to store which windows
27570             need painting.
27571           - AddExpose now takes the x/y/width/height of the exposed area
27572             and inserts the window into the paint queue if not already there
27573           - InvalidateWholeWindow: Switched to use new AddExpose method
27574           - UpdateMessageQueue: Added which queue to monitor for paint events
27575           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
27576             the unlikely case nothing above handles it. We reset the expose
27577             pending states to get them off the queue.
27578           - GetMessage: Now pulls a paint event if no other events are in the
27579             queue
27580           - Invalidate: Switched to new AddExpose method
27581           - PeekMessage: Updated to understand pending paint events
27582           - UpdateWindow: Fixed logic bug. We were only updating if the window
27583             didn't need updating. Also switched to sending WM_PAINT directly,
27584             like MS does.
27585         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
27586           and random access Remove(). The random access is needed to handle
27587           UpdateWindow() where a WM_PAINT is sent directly without accessing
27588           the queue.
27589         * ScrollBar.cs: Added Update() calls to cause immediate updates to
27590           allow for better feedback when scrolling. Scrollbars are small and
27591           the immediate update should make it 'feel' more responsive without
27592           slowing things down. ScrollBar still needs it's invaliate logic
27593           updated to not always invalidate the whole bar on certain changes.
27594
27595 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27596
27597         * Control.cs:
27598         (BackColor): if the control does not support a transparent background,
27599         return the default backcolor when the parent backcolor is transparent.
27600
27601 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
27602
27603         * Application.cs: Updated to new StartLoop/GetMessage API
27604         * RichTextBox.cs: Provide some output on RTF parsing errors
27605         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
27606           new queue_id argument to GetMessage and PeekMessage to allow faster
27607           handling of per-thread queues in drivers.
27608         * Hwnd.cs: Added Queue tracking and property
27609         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
27610         * XEventQueue.cs: Added thread trackingA
27611         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
27612         * XplatUIX11.cs:
27613           - Implemented new per-thread queue
27614           - GetMessage: Fixed return/break behaviour on several cases. We were
27615             returning stale messages in some cases, instead of just processing
27616             the next message
27617
27618 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
27619
27620         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
27621
27622 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
27623
27624         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
27625           fixed off-by-one comparisons between Width/Height and Right/Bottom.
27626
27627 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
27628
27629         * PropertyGridView.cs: Fix drop down width.
27630
27631 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27632
27633         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
27634           a mess in DrawToolBar, so I removed one of them.
27635
27636 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27637
27638         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
27639           needed (clip). Otherwise we get artifacts.
27640
27641 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
27642
27643         * FixedSizeTextBox.cs: Added constructor to allow specifying which
27644           dimension is fixed
27645         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
27646           and switched FixedSizeTextBox to only be fixed vertical (#78116)
27647         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
27648           if it matches the scale base font (avoids unneeded scaling)
27649
27650 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
27651
27652         * X11DesktopColors.cs: One gtk_init_check should be enough
27653
27654 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
27655
27656         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
27657           match MS behaviour
27658
27659 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
27660
27661         * TextBoxBase.cs: 
27662           - Generate OnTextChanged for Backspace even if we're only deleting
27663             the current selection
27664           - When setting the Text property, only select all text if the
27665             control does not have focus when it is being set. Otherwise
27666             just place the cursor at the beginning of the control
27667
27668 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
27669
27670         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
27671           Added a little helper to draw PropertyGrid ToolBar with a different
27672           border and a different BackColor.
27673         * PropertyGrid.cs: Some background parts didn't get painted with the
27674           correct background color. Added a class that helps us to draw the
27675           correct border for PropertyGridView and a class that helps us to
27676           draw ToolBars with a different backcolor
27677         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
27678
27679 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
27680
27681         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
27682         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
27683
27684 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27685
27686         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
27687           into the palette entries. Also, since we're working on a copy
27688           we needed to copy the palette back onto the bitmap.
27689         * Cursor.cs: Same fix as XplatUIWin32.cs.
27690
27691 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
27692
27693         * ImageListStreamer.cs: Need to read the var (or we're off)
27694
27695 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27696
27697         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
27698           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
27699           TextBoxBase.cs: Unused var fixes
27700         * AxHost.cs: Small 2.0 fix
27701         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
27702           as it seems that is what at least Metacity expects. This will make
27703           icons show up on 64bit platforms. We still have some 64bit size
27704           issues, though, since the startup app window size still won't match.
27705
27706 2006-04-25  Mike Kestner  <mkestner@novell.com>
27707
27708         * *.cs: cleanup newly reported exception var unused warnings.
27709
27710 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27711
27712         * ThemeWin32Classic.cs: Button image alignment now matches exactly
27713           ms
27714
27715 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27716
27717         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
27718           image. The image position is always the same, no matter if the
27719           button is pressed or not.
27720
27721 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27722
27723         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
27724           selection and set the correct filename for SaveFileDialog.
27725           Patch by Emery Conrad.
27726
27727 2006-04-24  Mike Kestner  <mkestner@novell.com>
27728
27729         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
27730         check for item.X outside the ClientRect instead of item.Y. Fixes
27731         #78151.
27732
27733 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27734
27735         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
27736         trust that value blindly and do some sanity check. Fixes bug #77814.
27737
27738 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27739
27740         * ImageListStreamer.cs: save the mask as a 1bpp image.
27741
27742 2006-04-21  Mike Kestner  <mkestner@novell.com>
27743
27744         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
27745         pass Checked and Indeterminate to the Theme Engine. Improve
27746         encapsulation with ListBox.
27747         * ListBox.cs: Keep a StringFormat instead of calculating it every item
27748         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
27749         nested types.  Move all CheckState functionality to CheckedListBox.
27750         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
27751         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
27752         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
27753         single base list. Fix scrollbar sizing and placement to mirror MS.
27754         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
27755         used.
27756         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
27757         for CheckedListBox by using new DrawItemState info.  Center the
27758         checkboxes on the items. Use new StringFormat property.
27759
27760 2006-04-18  Jackson Harper  <jackson@ximian.com>
27761
27762         * Form.cs: MdiChildren don't do default locations the same way as
27763         regular forms.  This prevents a crash when trying to position the
27764         mdi windows.
27765
27766 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
27767
27768         * PropertyGridTextBox.cs: Formatting, copyright
27769         * PropertiesTab.cs: Formatting
27770         * PropertyGrid.cs: Formatting
27771         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
27772           click toggling of values
27773           
27774 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
27775
27776         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
27777         * Control.cs (.ctor): verify_thread_handle is static, don't reset
27778           every time a control is created
27779         * Application.cs: Removed obsolete EnableRTLMirroring method
27780
27781 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
27782
27783         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
27784         SelectedIndex to -1. Fixes bug #78121.
27785
27786 2006-04-17  Jackson Harper  <jackson@ximian.com>
27787
27788         * Binding.cs: Handle null values for Current and BindingContext.
27789         This occurs when binding is a little delayed.
27790         * CurrencyManager.cs: return null for Current when there are no
27791         items in the list.
27792         - Hookup to the listchanged event on the DataView and update
27793         bindings when the list is changed.  This fixes late binding of
27794         controls.
27795
27796 2006-04-17  Jackson Harper  <jackson@ximian.com>
27797
27798         * X11Dnd.cs:
27799         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
27800         Ringenbach.
27801
27802 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
27803
27804         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
27805           place
27806         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
27807           with the correct ButtonState
27808
27809 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
27810
27811         * XplatUIX11.cs: Improved distinguishing between window types to
27812           tell the WM a type closer to what the app wants (Fixes #78107)
27813
27814 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27815
27816         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
27817           GrabHandle
27818
27819 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27820
27821         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
27822           drawing code to reflect the size grip changes
27823
27824 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27825
27826         * ImageListStreamer.cs: fix handling of the mask that follows the main
27827         bitmap when deserializing and serialize it properly. The generated mask
27828         should better be a 1bpp image, but I'll do that later.
27829
27830 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27831
27832         * FileDialog.cs: Show something in the DirComboBox on *nix if the
27833           path doesn't fit into some of our Current.Places
27834
27835 2006-04-13  Jackson Harper  <jackson@ximian.com>
27836
27837         * ComboBox.cs: Use borders instead of drawing our own decorations,
27838         try to obey correct rules for heights.
27839         * Theme.cs:
27840         * ThemeNice.cs:
27841         * ThemeClearLooks.cs:
27842         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
27843         this is now handled by borders.
27844         - Remove unused DrawListBoxDecorationSize method.
27845         
27846 2006-04-13  Mike Kestner  <mkestner@novell.com>
27847
27848         * MenuAPI.cs: null guarding for the disbled click check fixes crash
27849         reported by Alex.
27850
27851 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27852
27853         * ThemeWin32Classic.cs: 
27854           - Fixed CPDrawStringDisabled
27855           - Corrected drawing of disabled menu items
27856           - Fixed drawing of disabled radio buttons (bug #78095)
27857           - Draw check in a disabled CheckBox with color ControlDark 
27858
27859 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27860
27861         * Form.cs: Use the provided width when calculating the menu size;
27862           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
27863           and ClientSize.Width won't be updated yet
27864         * Application.cs: Use Visible instead of Show() to make form visible,
27865           this way we create the handle later and menusize is considered
27866
27867 2006-04-12  Mike Kestner  <mkestner@novell.com>
27868
27869         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
27870         reporting.
27871
27872 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27873
27874         * TextBox.cs: Implemented context menu
27875
27876 2006-04-12  Mike Kestner  <mkestner@novell.com>
27877
27878         * ListView.cs: implement box selection. fixes #77838.
27879         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
27880
27881 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27882
27883         * XplatUIX11.cs: Added setting of window type when transient window
27884           is created (metacity would move it otherwise)
27885         * X11Structs.cs: Added WINDOW_TYPE atoms
27886         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
27887           background (the control is Opaque but still wants transparent
27888           backgrounds)
27889
27890 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27891
27892         * Control.cs: Added OnPaintBackgroundInternal to allow controls
27893           that set Opaque but don't mean it (like all ButtonBase-derived
27894           controls) to still draw their background
27895         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
27896           the background
27897
27898 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27899
27900         * Control.cs (PaintControlBackground): Set the graphics object
27901           on our PaintEvent to null to prevent it from being disposed
27902           when the PaintEvent gets disposed
27903
27904 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
27905
27906         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
27907         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
27908
27909 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27910
27911         * Control.cs: 
27912           - Added transparency check to BackColor property. Transparent
27913             backgrounds are only allowed if the control styles permit it
27914           - Added recursive painting of parent control background and
27915             foreground if a control with a transparent backcolor is drawn
27916             (Thanks to Tim Ringenback for providing his 'hack' as a base
27917              for this patch) Fixes #77985 and #78026.
27918           - Added Opaque style check before calling OnPaintBackground, no
27919             need to draw the background if the control is opaque
27920           - Removed ControlAccessibleObject owner variable (inherited from
27921             base, no need to define again)
27922           - Added some documentation links explaining the drawing events
27923             and styles
27924
27925 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27926
27927         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
27928           that the affected control is the located at the left border of our
27929           parent (Fixes #77936)
27930
27931 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27932
27933         * TextBoxBase.cs: When rendering disabled or readonly controls,
27934           draw the background with 'Control' instead of 'Window' color as
27935           long as the user hasn't specifically set a color
27936
27937 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27938
27939         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
27940           since that won't be updated if the user types text (only if it's
27941           programatically set)
27942
27943 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27944
27945         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
27946           layout changes do to app-triggered resizes will have the proper
27947           display rectangle for layout
27948
27949 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
27950
27951         * ThemeWin32Classic.cs:
27952           - Make use of the SystemBrushes and SystemPens wherever possible
27953           - Corrected some highlight colors
27954           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
27955             drawing
27956         * Theme.cs: Added Empty field to CPColor struct
27957
27958 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27959
27960         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
27961           is displayed when calculating the display rectangle. Thanks to Mike
27962           for teaching me the err of my ways.
27963
27964 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
27965
27966         * ScrollableControl.cs:
27967           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
27968             (instead of 0,0) and we now return the real width/height instead of
27969             just the clientrectangle, adjusted for padding. The rectangle is
27970             now cached and created by the new CalculateDisplayRectangle method.
27971           - Created new CalculateDisplayRectange method, which basically does
27972             what get_DisplayRectangle() did originally, but now using the 
27973             right edge instead of DisplayRectangle to determine the size of
27974             our scrollbars
27975           - get_Canvas(): Fixed it to properly calculate canvas for 
27976             right/bottom controls which seem to be placed to the right/bottom
27977             of any controls that have a fixed location
27978           - Removed TODO that's taken care of
27979           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
27980             and SetDisplayRectLocation according to new MSDN2 docs
27981           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
27982             event when that is called, this is added for compatibility
27983           - ScrollControlIntoView(): Implemented.
27984           - Switched scrollbars to be implicit, they shouldn't be selectable
27985         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
27986           call it when the active control is set/changed
27987         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
27988         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
27989           implicit_control variable (used for native Win32 message generation)
27990         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
27991           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
27992         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
27993         * XplatUIStructs.cs: Added ScrollBarCommands enum
27994
27995 2006-04-10  Jackson Harper  <jackson@ximian.com>
27996
27997         * ButtonBase.cs:
27998         * CheckedListBox.cs:
27999         * ComboBox.cs:
28000         * DataGrid.cs:
28001         * DataGridView.cs:
28002         * Form.cs:
28003         * GroupBox.cs:
28004         * ListBox.cs:
28005         * PrintPreviewControl.cs:
28006         * ProgressBar.cs:
28007         * PropertyGrid.cs:
28008         * Splitter.cs:
28009         * StatusBar.cs:
28010         * TrackBar.cs:
28011         * UpDownBase.cs: Fixup base event overrides.
28012         
28013 2006-04-06  Mike Kestner  <mkestner@novell.com>
28014
28015         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
28016         all user-initiated value changes to min <= value <= max-thumbsz+1.
28017         (set_Value): check for vert/horiz when calculating new thumb position.
28018         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
28019         like MS does.
28020         (OnMouseMoveSB): refactor the thumb dragging code and refine
28021         invalidation logic to reduce flicker.
28022         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
28023         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
28024         (UpdateThumbPosition): small code readability cleanup
28025
28026 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
28027
28028         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
28029           different
28030
28031 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
28032
28033         * ThemeNice.cs: Use a better graphics effect when a button is pressed
28034
28035 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
28036
28037         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
28038         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
28039           This dramatically reduces the number of Pen.Dispose calls. 
28040           Where possible call ResPool methods only once instead of calling it
28041           over and over again (for example for the same color).
28042
28043 2006-04-06  Mike Kestner  <mkestner@novell.com>
28044
28045         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
28046         Also remove an unused private field on the collection. Fixes #77972.
28047
28048 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
28049
28050         * ThemeNice.cs: Added ToolBar drawing code
28051
28052 2006-04-06  Mike Kestner  <mkestner@novell.com>
28053
28054         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
28055         I'm assuming that means we need to look up the toplevel for the
28056         provided control. Fixes the crash trace in #77911 but exposes another
28057         crash in some strange reflection usage in NDocGui.
28058
28059 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
28060
28061         * ThemeNice.cs: Gave it a little silver touch and added Images
28062           method
28063         * FontDialog.cs: FontDialog is not resizable
28064         * FileDialg.cs: Added SizeGripStyle.Show
28065
28066 2006-04-05  Jackson Harper  <jackson@ximian.com>
28067
28068         * KeyboardLayouts.cs: Remove warning.
28069
28070 2006-04-05  Jackson Harper  <jackson@ximian.com>
28071
28072         * Control.cs: Enable OnPaintInternal so we can use it for drawing
28073         all of our controls instead of Paint +=.
28074         * ListBox.cs:
28075         * ListView.cs:
28076         * MenuAPI.cs:
28077         * MessageBox.cs:
28078         * NotifyIcon.cs:
28079         * ProgressBar.cs:
28080         * ScrollBar.cs:
28081         * Splitter.cs:
28082         * StatusBar.cs:
28083         * TabControl.cs:
28084         * TextBoxBase.cs:
28085         * ToolBar.cs:
28086         * TrackBar.cs:
28087         * UpDownBase.cs:
28088         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
28089         use OnPaintInternal. Remove Width/Height and Visible checks in
28090         paint handler, this is done at a higher level now.
28091         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
28092         * PaintEventArgs.cs: Add a handled flag so controls that don't
28093         want anymore painting after OnPaintInternal can make sure OnPaint
28094         isn't called.
28095
28096 2006-04-05  Mike Kestner  <mkestner@novell.com>
28097
28098         * Form.cs: fix the menu WndProc hacks to respect the native enabled
28099         state of the form, so that we don't process events when Modal dialogs
28100         are up. Fixes #77922.
28101
28102 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
28103
28104         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
28105           checking is done.
28106
28107 2006-04-05  Mike Kestner  <mkestner@novell.com>
28108
28109         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
28110
28111 2006-04-05  Mike Kestner  <mkestner@novell.com>
28112
28113         * ListView.cs (HeaderMouseMove): null guarding for the over column
28114         when setting up the drag_to_index.  Fixes #78015.
28115
28116 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
28117
28118         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
28119           in the taskbar. Transient windows seem to accomplish that.
28120
28121 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
28122
28123         * Form.cs:
28124           - Re-enabled CreateParams.X/Y code for FormStartPosition
28125           - Added code for manual placement when creating the Control
28126           - Incomplete patch to treat MDI forms differently when
28127             setting the ClientSizeCore. (Still need to figure out handling
28128             x/y coords there)
28129         * XplatUIX11.cs:
28130           - When we're explicitly setting the X/Y position of a non-Child
28131             window, let the WM know. Metacity really wants this.
28132
28133 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
28134
28135         * ThemeNice.cs: Added CPDrawButton
28136
28137 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
28138
28139         * ThemeNice.cs: Changed the color for focused buttons and activated
28140           the arrows for small scroll buttons.
28141
28142 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
28143
28144         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
28145           anymore. Changed some method modifiers to protected (virtual)
28146         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
28147           changes
28148         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
28149           Updated drawing of menus, buttons and progressbars; added
28150           CPDrawBorder3D 
28151
28152 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28153
28154         * ImageListStreamer.cs: implemented serialization/deserialization
28155         of the images.
28156
28157 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
28158
28159         * ThemeWin32Classic.cs:
28160           - Removed all the DrawFrameControl stuff; CPDrawButton,
28161             CPDrawCheckBox and CPDrawRadioButton are now handled directly
28162             inside the methods
28163           - Updated and corrected the drawing code of CPDrawButton,
28164             CPDrawCheckBox and CPDrawRadioButton to better match ms
28165           - Updated theme checkbox and radiobutton code to use the CP*
28166             methods
28167
28168 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
28169
28170         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
28171           bug is fixed
28172
28173 2006-03-31  Jackson Harper  <jackson@ximian.com>
28174
28175         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
28176         sometimes.
28177         * UpDownBase.cs: Don't CreateGraphics manually, use a
28178         Refresh. Ideally we would invalidate the correct areas here.
28179
28180 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
28181
28182         * XplatUIX11.cs: 
28183           - We now track the mapping state of windows. If a window (or 
28184             one of it's parents) is not mapped we no longer permit
28185             WM_PAINT messages to be generated since we'd otherwise get 
28186             lots of BadMatch X errors. Jackson did all the work figuring
28187             out the problem.
28188           - Destroying the caret if the window it's contained in is 
28189             destroyed. Can't use regular DestroyCaret method since it
28190             might fall into a drawing function (trying to remove the
28191             caret) and with that generate new BadMatch errors. Again,
28192             Jackson tracked this down.
28193           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
28194             make sure we send the messages to all windows. (The old code
28195             would send the WM_DESTROY to the window, and then all child
28196             windows would be 'gone' because the WM_DESTROY handle lookup
28197             would no longer find the destroyed window)
28198         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
28199         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
28200
28201 2006-03-31  Jackson Harper  <jackson@ximian.com>
28202
28203         * ScrollableControl.cs: Dont recalc if we are not visible.
28204
28205 2006-03-31  Mike Kestner  <mkestner@novell.com>
28206
28207         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
28208         the visibility branch.
28209
28210 2006-03-31  Jackson Harper  <jackson@ximian.com>
28211
28212         * ScrollBar.cs: Cap values when incrementing/decrementing.
28213
28214 2006-03-31  Mike Kestner  <mkestner@novell.com>
28215
28216         * MenuAPI.cs: setup menu.tracker for popup/context menus.
28217         * ToolTip.cs: guard against timer expirations with no active control.
28218         Not sure why it happened.
28219
28220 2006-03-31  Mike Kestner  <mkestner@novell.com>
28221
28222         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
28223         text.
28224         * ToolTip.cs: Position the tooltip based on where the cursor is at
28225         popup time, not at MouseEnter time.  Add a Down state so that we don't
28226         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
28227         positioning offset. Lookup DisplaySize at positioning time, since it
28228         can theoretically change during invocation.
28229         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
28230         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
28231
28232 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
28233
28234         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
28235           Fixes behaviour when the Text property of the box is String.Empty
28236
28237 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
28238
28239         * XplatUIX11.cs: Only send mouseleave for our client windows, not
28240           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
28241           a window)
28242
28243 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
28244
28245         * FileDialog.cs: Visual enhancement for the popup buttons in 
28246           PopupButtonPanel
28247
28248 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
28249
28250         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
28251           code
28252
28253 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
28254
28255         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
28256           highlighted menu items to match ms
28257
28258 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
28259
28260         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
28261
28262 2006-03-30  Mike Kestner  <mkestner@novell.com>
28263
28264         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
28265         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
28266         go active to account for HotLight to Selected transition.
28267         * MenuItem.cs: add internal Selected prop. Fill out the Status
28268         property by calculating it from item info. Add HotLight,
28269         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
28270
28271 2006-03-30  Mike Kestner  <mkestner@novell.com>
28272
28273         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
28274
28275 2006-03-29  Jackson Harper  <jackson@ximian.com>
28276
28277         * Form.cs: Implement TODO.
28278
28279 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
28280
28281         * PrintPreviewDialog.cs: Implemented missing methods and events; still
28282           missing proper dialog setup in the constructor
28283
28284 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
28285
28286         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
28287         * Control.cs:
28288           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
28289           - Fixed ResetBindings and removed TODO
28290           - Added check for cross-thread calls to get_Handle()
28291           - Added Marshaller attribute for set_Font to satisfy class status
28292         * FontDialog.cs: Removed TODOs that seemed implemented
28293         * UpDownBase.cs: Removed unneeded TODO and Fixme
28294         * MessageBox.cs: Implemented support for Default button and removed TODO
28295         * FileDialog.cs: Removed obsolete TODO
28296         * DomainUpDown.cs: Removed obsolete TODO
28297         * ButtonBase.cs: Removed obsolete TODO
28298         * XplatUIWin32.cs: Removed obsolete TODO
28299         * Form.cs:
28300           - Removed obsolete TODO
28301           - Calling CheckAcceptButton when the acceptbutton is changed to allow
28302             internal status updates
28303           - Making sure the active control is selected when the control is created
28304         * CurrencyManager.cs: Removed obsolete TODO
28305
28306 2006-03-29  Mike Kestner  <mkestner@novell.com>
28307
28308         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
28309         of PrintPreviewDialog and RichTextBox.
28310
28311 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
28312
28313         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
28314           DarkDark, Light and LightLight colors for a specific color
28315         * ThemeWin32Classic.cs:
28316           - Use Button drawing code to draw RadioButtons and CheckBoxes with
28317             Appearance = Button 
28318           - Make use of the new ResPool helper CPColor
28319           - Draw ProgressBar and StatusBar with correct 3D borders
28320
28321 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
28322
28323         * ColorDialog.cs: Return selected color. Fixes bug #77940.
28324
28325 2006-03-28  Mike Kestner  <mkestner@novell.com>
28326
28327         * ListView.cs: fix Icon layout to plan for scrollbar widths when
28328         calculating col/row counts.
28329
28330 2006-03-28  Mike Kestner  <mkestner@novell.com>
28331
28332         * ColumnHeader.cs:
28333         * ListView.cs:
28334         * ListViewItem.cs:
28335         * Menu.cs: 
28336         switch to explicit interface method implementation for some methods
28337         corcompare identifies as inconsistent with MS.
28338
28339 2006-03-28  Mike Kestner  <mkestner@novell.com>
28340
28341         * MainMenu.cs: 
28342         * Menu.cs:
28343         add a few missing methods from the class status output.
28344
28345 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
28346
28347         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
28348           correct.
28349
28350 2006-03-28  Mike Kestner  <mkestner@novell.com>
28351
28352         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
28353
28354 2006-03-27  Mike Kestner  <mkestner@novell.com>
28355
28356         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
28357         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
28358
28359 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
28360
28361         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
28362
28363 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
28364
28365         * ThemeWin32Classic.cs:
28366           - GroupBox: Inserted a little gap between the text and the lines
28367             on the right side
28368           - Made the code in CPDrawBorder3D more readable
28369           - Corrected the drawing location of the up and down arrows in 
28370             CPDrawScrollButton
28371
28372 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
28373
28374         * ControlPaint.cs: Corrected line widths in DrawBorder for
28375           ButtonBorderStyle Inset and Outset
28376
28377 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
28378
28379         * ThemeWin32Classic.cs:
28380           - Rewrote the totally broken CPDrawBorder3D method. That was
28381             one of the main problems for the terrific ThemeWin32Classic
28382             look
28383           - Updated and corrected Button drawing
28384           - Correct the dimensions of the SizeGrip to match ms ones
28385           - Removed a small drawing glitch in DrawComboBoxEditDecorations
28386         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
28387           Border3DStyle.Sunken to match ms.
28388
28389 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
28390
28391         * ThemeWin32Classic.cs: First small part of the "de-uglify
28392           ThemeWin32Classic" effort, SizeGrip
28393
28394 2006-03-24  Jackson Harper  <jackson@ximian.com>
28395
28396         * XplatUIX11.cs: Give a max idle time of one second, this matches
28397         MS and forces an Idle event every second when there are no other
28398         events in the queue.
28399
28400 2006-03-24  Mike Kestner  <mkestner@novell.com>
28401
28402         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
28403         * ListView.Item.cs: fix layout issues with null image lists and images
28404         smaller than checkbox size.
28405         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
28406         mode like MS does.  It's weird, but consistent.  ;-)
28407         Fixes #77890.
28408
28409 2006-03-24  Mike Kestner  <mkestner@novell.com>
28410
28411         * ListView.cs: Scroll wheel support for the item control.  Fixes
28412         #77839.
28413
28414 2006-03-23  Jackson Harper  <jackson@ximian.com>
28415
28416         * ScrollableControl.cs: Special case negative sized areas, not
28417         zero.
28418         * MonthCalendar.cs: Save the rect of the clicked date so we can
28419         use it for invalidation.
28420         - Try to cut down on the number of invalidates
28421         - Invalidate the rect the mouse is over and was over when moving
28422         the mouse, so we get the focus box following the cursor.
28423
28424 2006-03-23  Mike Kestner  <mkestner@novell.com>
28425
28426         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
28427         focus rectangle drawing. Fixes #77835.
28428
28429 2006-03-23  Mike Kestner  <mkestner@novell.com>
28430
28431         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
28432         the if and else if and reverting back to the original == check on the
28433         None conditional.
28434
28435 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
28436
28437         * FontDialog.cs: Update the example panel if the selected index of
28438           the fontListBox changes.
28439
28440 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
28441
28442         * FileDialog.cs: Make FileDialog remember which directory it was in
28443           last in the same execution.
28444
28445 2006-03-22  Mike Kestner  <mkestner@novell.com>
28446
28447         * FileDialog.cs: make the DropDownMenu on the toolbar display
28448         RadioChecks since they are mutually exclusive and that's what MS does.
28449
28450 2006-03-22  Mike Kestner  <mkestner@novell.com>
28451
28452         * Theme.cs: add Color param to CPDrawMenuGlyph.
28453         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
28454         checks and radio marks and arrows are visible on highlighted items.
28455         * ControlPaint.cs: update to use new Theme signature.
28456
28457 2006-03-22  Mike Kestner  <mkestner@novell.com>
28458
28459         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
28460         is active. Fixes #77870.
28461
28462 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
28463
28464         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
28465           to be focused/selected after startup
28466
28467 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
28468
28469         * ColorDialog.cs: 
28470           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
28471             CustomColors and ShowHelp properties
28472           - Some internal rewrites to get better results when using the
28473             ColorMatrix
28474
28475 2006-03-22  Mike Kestner  <mkestner@novell.com>
28476
28477         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
28478         HoverSelection.  Fixes #77836.
28479
28480 2006-03-22  Mike Kestner  <mkestner@novell.com>
28481
28482         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
28483         ToggleButtons.  (De)Sensitize the Back button around a stack count of
28484         1, not 0.  Update ButtonSize based on a pixel count of the win32
28485         control.  Adjust the toolbar size/location for new button size.
28486
28487 2006-03-22  Jackson Harper  <jackson@ximian.com>
28488
28489         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
28490         true.
28491         * ScrollBar.cs: When doing increments and decrements we need to
28492         set the Value property so that ValueChanged gets raised. A
28493         possible optimization here would be to make an internal SetValue
28494         that doesn't invalidate immediately.
28495         * ToolTip.cs: Tooltips get added to their container (when
28496         supplied) so they get disposed when the container is disposed.
28497         - Don't create tooltips for String.Empty. This prevents all these
28498         little 2-3 pixel windows from showing up when running nunit-gui
28499         and driving me mad.
28500         * Form.cs: Don't set topmost when setting the owner if the handles
28501         haven't been created yet.  The topmost set will happen when the
28502         handles are created.
28503
28504 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
28505
28506         * XplatUIX11.cs:
28507           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
28508           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
28509             visible (to allow them to recalculate their sizes)
28510
28511 2006-03-21  Mike Kestner  <mkestner@novell.com>
28512
28513         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
28514         methods. Removed a ton of redundant code.  Still not really happy with
28515         the border rendering, but I think that's mainly because of the
28516         ControlDarkDark being black instead of a dark grey. Depending on how 
28517         close we want to be, we might want to revisit those color choices.
28518         Among the new features added during the refactor were DropDownArrow
28519         pressed rendering, Disabled image rendering.  Proper flat appearance
28520         boundary rendering.  Removed the Divider and Wrapping dividers since I
28521         can't figure out any combination of themes and conditions to make the
28522         MS control draw a horizontal line on a toolbar despite what the
28523         Divider property docs indicate.
28524         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
28525         conditions and incorrect layout.  Updated to coding standard.
28526         * ToolBarButton.cs: refactored layout and positioning code from
28527         ToolBar to here.  Invalidate wherever possible instead of forcing
28528         redraws of the whole toolbar. 
28529         (Known remaining issues: explicit ButtonSize smaller than provided
28530         images.)
28531
28532 2006-03-21  Mike Kestner  <mkestner@novell.com>
28533
28534         * ContextMenu.cs (Show): use the position parameter instead of just
28535         showing at the MousePosition.
28536
28537 2006-03-21  Jackson Harper  <jackson@ximian.com>
28538
28539         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
28540         control handle this.
28541         * TreeNodeCollection.cs: If we are clearing the root node we need
28542         to reset top_node so calcs can still happen.
28543         * ThemeWin32Classic.cs: This is a Flags so we need to check
28544         properly.
28545         
28546 2006-03-21  Jackson Harper  <jackson@ximian.com>
28547
28548         * DataGrid.cs: Create columns when the binding context has been
28549         changed.
28550         * X11Structs.cs: Keysyms are uints.
28551         - Add size to fix build.
28552
28553 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
28554
28555         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
28556           XplatUIOSX.cs: 
28557           - Added ResetMouseHover method to allow controls to retrigger
28558             hovering if they need it more than once
28559           - Implemented MouseHoverTime and MouseHoverSize properties
28560         * Timer.cs: Start() must reset the interval
28561         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
28562           properties
28563
28564 2006-03-21  Jackson Harper  <jackson@ximian.com>
28565
28566         * X11Keyboard.cs: improved layout detection. Move the nonchar
28567         tables into this file.
28568         * KeyboardLayouts.cs: Move the tables into resource files.
28569
28570 2006-03-21  Mike Kestner  <mkestner@novell.com>
28571
28572         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
28573
28574 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
28575
28576         * Mime.cs: Various speed optimizations. Looking up mime types
28577           is now 2 times faster than before
28578
28579 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
28580
28581         * CreateParams.cs: Added internal menu field
28582         * Control.cs: 
28583           - Switched call order for UpdateBounds; now we always call
28584             the one that also takes ClientSize, and we're calculating the 
28585             client size via driver method in the others. The previous
28586             method of tracking client size by difference wasn't working
28587             for forms where even the starting client size wouldn't match
28588             the overall form size (due to borders) (Part of fix for #77729)
28589           - CreateParams(): Do not use parent.Handle unless the handle is
28590             already created. Causes havoc with Nexxia and throws off our
28591             creation of controls
28592         * XplatUIX11.cs:
28593           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
28594           - Switched handling of ConfigureNotify over to new PerformNCCalc 
28595             method (consolidates code)
28596           - Changed RequestNCRecalc to use new PerformNCCalc method
28597           - Added calls to RequestNCRecalc when menus and borders are changed
28598             to allow app to set NC size. (Part of fix for #77729) This matches
28599             when MS send a WM_NCRECALC on Win32 windows.
28600           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
28601             (Part of fix for #77729). This matches what MS does, they also
28602             send that message when the form is made visible.
28603           - XException.GetMessage: Improved usability of X errors by including
28604             a translation of the window into Hwnd and Control class
28605           - Improved debug info for window creation, reparenting and destruction
28606           - Created helper method WindowIsMapped() [Currently not used]
28607         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
28608         * Form.cs:
28609           - CreateParams: Now setting our menu on the new internal menu field
28610           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
28611             avoid calculating the same property twice
28612         * Hwnd.cs:
28613           - Improved usability of ToString() for debugging purposes
28614           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
28615             determine the height of the menu, instead of just the font. This
28616             required to also create a graphics context and to keep a bmp 
28617             around (for performance reasons)
28618
28619 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
28620
28621         * MenuAPI.cs: Added OnMouseUp method
28622         * Form.cs:
28623           - Now remembering the requested client size, avoids size errors
28624           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
28625             instead of base if the menu is active. This is required due to
28626             control now capturing and releasing on down/up and it would
28627             prematurely release our menu capture
28628
28629 2006-03-17  Jackson Harper  <jackson@ximian.com>
28630
28631         * KeyboardLayouts.cs: Add the czech layouts.
28632
28633 2006-03-16  Jackson Harper  <jackson@ximian.com>
28634
28635         * Control.cs: Use the viewport space when sizing not the controls
28636         client size, so things like ScrollableControl that effect the
28637         viewport size (when scrollbars are added) are computed correctly.
28638         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
28639         of ManagerEntrys.
28640         - Handle creating BindingManagers for null data sources.
28641         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
28642         source, otherwise when rows are added they are added to the 'fake'
28643         datasource and we will crash when trying to set the position in
28644         those rows.
28645         - Use Implicit scrollbars on the datagrid so they arent
28646         selectable.
28647         
28648 2006-03-16  Jackson Harper  <jackson@ximian.com>
28649
28650         * Binding.cs:
28651         * InternalWindowManager.cs:
28652         * MdiWindowManager.cs:
28653         * X11Keyboard.cs: I really want Mike to love me again (fix
28654         compiler warnings).
28655
28656 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
28657
28658         * DataGrid.cs:
28659           - OnMouseDown: Switch to editing mode when clicking on the cell
28660                          even if we're clicking on the cell that's currently 
28661                          selected
28662           - ProcessGridKey: Left/Right now wrap like MS.Net does
28663           - ProcessGridKey: Tab now knows to add a new row when tab is
28664                             pressed in the cell of the last column of the 
28665                             last row
28666           - ProcessGridKey: Enter now adds another row  if pressed in the last
28667                             row and selectes the new row, same column cell
28668           - ProcessGridKey: Home/End navigate columns, not rows, like 
28669                             originally implemented
28670           - Broke ProcessKeyPreview code out into an extra Internal method
28671             so it can be called from the edit code
28672         * DataGridTextBox.cs (ProcessKeyMessage):
28673           - Switched to accept Tab keypresses
28674           - Added F2 handling to allow jumping to the end of the edited cell
28675           - Added logic to allow moving caret left/right inside edited cell
28676             and making the edited cell jump when the caret hits cell borders
28677           - Tab and Enter are now passed to the datagrid after being handled
28678         * TextBoxBase.cs:
28679           - Removed capture code now that Control handles it
28680           - set_SelectionStart now ensures caret is visible
28681
28682 2006-03-16  Jackson Harper  <jackson@ximian.com>
28683
28684         * TrackBar.cs: Debackwards the increment/decrement for handling
28685         mouse clicks on the bar with vertical trackbars.
28686         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
28687         bottom to match MS.
28688
28689 2006-03-16  Mike Kestner  <mkestner@novell.com>
28690
28691         * ListView.cs: make shift/ctrl keyboard and mouse selection 
28692         consistent with the MS control. Fix a bug in
28693         SelectedListViewItemCollection.Clear that was pissing me off for the
28694         better part of a day because the collection was being altered
28695         underneath us as we walked the list.
28696
28697 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
28698
28699         * Control.cs: Not sure how we could miss this so long, but it seems
28700           that MS.Net has Capture set all the way from before calling 
28701           OnMouseDown through sending the mouse events until after
28702           OnMouseUp. This will fix DataGrid's selection being set to end
28703           at the location of the MouseUp.
28704
28705 2006-03-15  Jackson Harper  <jackson@ximian.com>
28706
28707         * BindingContext.cs: Check the binding after its added so that it
28708           can initialize the binding managers and hookup to events.
28709         * Binding.cs: Data members seem to sometimes include rows/cols in
28710           the format Row.Column we now take this into account.
28711           - Hookup to the position changed event so we can update the
28712           control when the position has changed in the data set.
28713         * CurrencyManager.cs: Take into account the row/col naming
28714           convention when creating dataset tables.
28715         * BindingContext.cs: Using a newer better way of storing
28716           datasource/datamember pairs.  Hopefully this better matches MS for
28717           looking up binding managers.
28718
28719
28720 2006-03-15  Jackson Harper  <jackson@ximian.com>
28721
28722         * BindingContext.cs: The currency manager needs the data member
28723         name, if the member is a data set we use the name to find the
28724         correct table.
28725         * CurrencyManager.cs: When creating the list prefer an IList over
28726         an IListSource.
28727         - Attempt to create a DataTable from a DataSet (TODO: might need
28728         some better error checking here, although MS doesn't seem to have much)
28729         - If we have a DataTable create a view and use it as our list.
28730
28731 2006-03-15  Mike Kestner  <mkestner@novell.com>
28732
28733         * ListView.cs: keep a matrix of the icon mode layout to facilitate
28734         keyboard navigation. Support Up/Down/Left/Right selection correctly
28735         for all 4 View modes.
28736         * ListViewItem.cs: add internal row/col fields for icon layouts.
28737
28738 2006-03-15  Jackson Harper  <jackson@ximian.com>
28739
28740         * TabControl.cs: Redraw the tabs when we resize so their newly
28741         calculated sizes are drawn on screen.
28742         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
28743         composite characters.
28744         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
28745         - filter events so that composite characters can be created
28746         patches by peter
28747         * X11Structs.cs: Add XIMProperties enum.
28748
28749 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28750
28751         * Control.cs (BringToFront, SendToBack): Don't use window or handle
28752           unless it's created
28753
28754 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28755
28756         * Control.cs (PerformLayout): We don't need to consider visiblity
28757           for anchoring, only for docking. This fixes 'whacky' alignment
28758           in listbox and other controls that use implicit scrollbars after
28759           the previous PerformLayout patch
28760         * ListBox.cs: Switched to use implicit scrollbars
28761           
28762 2006-03-14  Mike Kestner  <mkestner@novell.com>
28763
28764         * ToolBar.cs: 
28765         * VScrollBar.cs:
28766         - chain up the "new event" overrides to base and use
28767         OnEvent to raise them.  Part of fix for bug #76509.
28768
28769 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
28770
28771         * FileDialog.cs: Do not select an item in the parent directory
28772           on backspace
28773
28774 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28775
28776         * Control.cs (PerformLayout): It would seem that we considered
28777           invisible windows for our layout. Not quite the right thing
28778           to do. Now we don't any longer, thereby fixing bug #76889.
28779
28780 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28781
28782         * Control.cs (CanFocus): I goofed. A control can have focus 
28783           even though it's not selectable. Made it match MS docs.
28784
28785 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28786
28787         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
28788           center by default (fixes #76895)
28789         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
28790           all uses of Border3DSides.All with the explicit ORd together
28791           Left|Right|Top|Bottom because I assume that nobody was aware 
28792           that All also implies a center fill. Most places I checked had
28793           a fill right above.
28794         * ProgressBarStyle.cs: Added
28795
28796 2006-03-13  Mike Kestner  <mkestner@novell.com>
28797
28798         * ListView.cs: fix breakage in drag shadow header positioning 
28799         from Peter's csc compilation fix.
28800
28801 2006-03-13  Mike Kestner  <mkestner@novell.com>
28802
28803         * ListView.cs: fix NRE produced by backspacing twice in a focused
28804         FileDialog.
28805
28806 2006-03-13  Mike Kestner  <mkestner@novell.com>
28807
28808         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
28809
28810 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28811
28812         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
28813           be changed
28814         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
28815           the allowed size before making programmatic size changes
28816
28817 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
28818
28819         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
28820           set, metacity is broken and will still use the emty sizes in 
28821           the struct. (Fix for #77089)
28822
28823 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28824
28825         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
28826           WindowExStyles and marked both enums as Flags
28827         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
28828           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
28829           to match WindowStyles split
28830         * XplatUIX11.cs:
28831           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
28832           - Updated to match WindowStyles split
28833         * XplatUIWin32.cs:
28834           - Fixed FosterParent creation, was using ExStyle on the Style field
28835             (This should help with Popup focus issues)
28836           - Updated to match WindowStyles split
28837
28838 2006-03-13  Jackson Harper  <jackson@ximian.com>
28839
28840         * MdiWindowManager.cs: Use the system menu height. Fixes some
28841         strange sizing issues.
28842
28843 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28844
28845         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
28846         * TextBoxBase.cs:
28847           - Scroll to caret after inserting text (#77672)
28848           - Make scroll range one pixel higher, fixes off-by-one error (and
28849             makes underlines visible on the last line)
28850
28851 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
28852
28853         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
28854           the keyboard state from being stuck with keys in 'pressed' state when
28855           focus is switched away via keyboard
28856         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
28857           reset the keyboard if no X11 KeyUp events are expected to come
28858         * X11Structs.cs: Switched type of Visible to bool to match driver
28859
28860 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28861
28862         * TextControl.cs:
28863           - Switched caret to be just 1 pixel wide, matches MS and looks less
28864             clunky
28865           - Moved caret display 1 pixel down from the top of the control
28866             to improve view
28867           - InsertCharAtCharet: Update the selection start if moving the caret
28868             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
28869           - No longer always creating the caret when the caret methods are
28870             called. Only the actual ShowCaret/HideCaret will do that now
28871           - Only setting caret visible if the owner control has focus
28872           - UpdateView: Added invalidation-shortcut logic for center and right 
28873             aligned text. Previously we'd update all according to the left
28874             logic which caused drawing errors. Also fixed height of invalidated
28875             areas, now properly invalidating the whole area (was off-by-one)
28876           - owner_HandleCreated: Always generate the document when the
28877             handle is created; this ensures that 
28878         * TextBoxBase.cs:
28879           - Fixed situation where caret would disappear under the right
28880             window border, also improved scrolling behaviour on left-
28881             aligned textboxes
28882           - Fixed right-aligned textboxes to have a border to the
28883             right instead of the caret being under the right border
28884         * XplatUIX11.cs:
28885           - Switched from 'nested' to simple visible/not visible tracking 
28886             for caret (part of fix for #77671)
28887           - No longer passing through translated FocusIn/FocusOut messages
28888             since we were notifying too often and the wrong windows. Instead
28889             we just notify our focussed window of receiving or loosing focus
28890         * XplatUIWin32.cs: Switched from 'nested' show/hide 
28891           counting for caret to simple visible yes/no behaviour (part of 
28892           fix for #77671)
28893
28894 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28895
28896         * Mime.cs: Remove debug code...
28897
28898 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28899
28900         * MimeGenerated.cs: Removed
28901         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
28902           and subclasses) from /usr/(local/)share/mime and
28903           $HOME/.local/share/mime.
28904
28905 2006-03-10  Jackson Harper  <jackson@ximian.com>
28906
28907         * MdiWindowManager.cs: Recalc the NC area when a window is
28908         maximized/restored so that the menu area is drawn on forms that
28909         don't have a menu.
28910
28911 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28912
28913         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
28914           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
28915           us to force a WM_NCCALCRESIZE message being sent. This is needed
28916           for MDI maximizing.
28917
28918 2006-03-10  Jackson Harper  <jackson@ximian.com>
28919
28920         * Form.cs: We need to use the ActiveMenu when calculating menu
28921         height.
28922         - Fix nullref when the window manager hasn't been created yet.
28923         * Control.cs: Fix nullref when we try to bring a control to the
28924         front that has no parent.
28925         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
28926         height.
28927         - Add a dummy item to the maximized menu so it always has the
28928         correct height. Otherwise when there are no menus we don't get our
28929         icon and buttons.
28930         
28931
28932 2006-03-10  Jackson Harper  <jackson@ximian.com>
28933
28934         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
28935         stuff.
28936         * Form.cs: Make the window_state internal so the window managers
28937         can track it.
28938         - When an MDI child is maximized let its window manager create the
28939         main menu (so it can add its icon).
28940         - Notify the window managers of state changes
28941         - Let the window manager paint its buttons and handle button
28942         clicks on the menu when it is maximized.
28943         * InternalWindowManager.cs: Move the prev_bounds into the mdi
28944         window manager, since tool windows don't use it, only mdi windows.
28945         - Tell the main form that we don't want it to handle NCPAINT
28946         itself to avoid extra painting.
28947         - Handle clicks on a maximized windows menu.
28948         - Handle window state changes
28949         - Handle minimize/maximize clicks correctly by setting the window state.
28950         * MdiWindowManager.cs: Add an icon menu that (the menu you get
28951         when clicking on the forms icon).
28952         - New method to create a forms maximized menu. This is its normal
28953         menu + an icon.
28954         - Handle window state changes.
28955         - Handle sizing of maximized windows.  Maximized windows are just
28956         drawn bigger then the parent visible area. All controls are still
28957         there, they are just outside the visible area (this matches windows).
28958         * MdiClient.cs: No scrollbars when a child window is maximized.
28959         - Let the children windows figure out how big they should be when
28960         sizing maximized windows.
28961         - Implement a version of ArrangeIconicWindows somewhat similar to
28962         Windows version.  There are some little differences, but I don't
28963         think any app will rely on the layout of minimized mdi windows.
28964
28965 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28966
28967         * Padding.cs: Several fixes to allow compiling with csc 2.0
28968
28969 2006-03-09  Jackson Harper  <jackson@ximian.com>
28970
28971         * Menu.cs:
28972         * MenuItem.cs: Cheap hack so we can add items to the list without
28973         the events being raised.  This allows adding mdi items during
28974         drawing. TODO: Should probably find a better time to add the items.
28975
28976 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28977
28978         * ThemeWin32Classic.cs:
28979           - CheckBox_DrawText: Added logic to not wrap if not enough space
28980             is available (Fix for bug #77727)
28981           - RadioButton_DrawText: Added logic not to wrap if not enough
28982             space is available (Fix for bug #77727). Also removed some
28983             duplicate code, DrawString always drawing the regular text
28984             before hitting the if statement.
28985
28986 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
28987
28988         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
28989
28990 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28991
28992         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
28993         * ContainerControl.cs: Partial implementation of some 2.0 scaling
28994           methods. Moved the new 2.0 properties into alphabetical order with
28995           other properties and added MonoTODO tags
28996
28997 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28998
28999         * AutoScaleMode.cs: Added. Fix build.
29000
29001 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
29002
29003         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
29004           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
29005           and was requiring premature handle creation for calls from above
29006         * Form.cs, Control.cs: Removed handle arguments from calls to
29007           CalculateClientRect()
29008
29009 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
29010
29011         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
29012           drag_column.column_rect is MarshalByRef and can't be used that way
29013
29014 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
29015
29016         * AxHost.cs: Added deserialization constructor for 
29017           AxHost+State (fixes 77743)
29018
29019 2006-03-09  Mike Kestner  <mkestner@novell.com>
29020
29021         * ListView.cs: 
29022         - Added column drag reordering for details view.
29023         - fixed behavior when mouse is dragged off column and
29024         AllowColumnReorder is false.
29025         * ColumnHeader.cs: clone the format too in Clone.
29026         * Theme.cs: add DrawListViewHeaderDragDetails method.
29027         * ThemeWin32Classic.cs:
29028         - impl new method for drawing drag column shadows and targets.
29029         - support column offset for details mode in DrawListViewItem.
29030
29031 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
29032
29033         * TextControl.cs: Reset the char_count when the document is cleared
29034           (Fixes bug reported on mono-winforms mailing list)
29035
29036 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
29037
29038         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
29039           of calling base we simply process the key ourselves, since both
29040           DefWindowProc and the handled method would set m.Result. 
29041           (Fixes #77732)
29042
29043 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
29044
29045         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
29046           method also moves the window; instead implemented a copy of
29047           Control.ScaleCore (Part of fix for #77456)
29048         * TextBoxBase.cs: 
29049           - Created new CreateGraphicsInternal method to allow providing
29050             a graphics context when no handle is created without triggering
29051             handle creation. (Part of fix for #77456)
29052           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
29053         * TextControl.cs: 
29054           - Switched Constructor to require TextBoxBase instead of Control (to
29055             allow uncast access to CreateGraphicsInternal)
29056           - Safeguarded use of owner.Handle property. No longer accessing it
29057             unless the handle is already created.
29058           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
29059           - Now triggering a recalc when owning control becomes visible
29060         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
29061           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
29062           premature handle creation (Part of fix for #77456)
29063         * Control.cs:
29064           - We now only destroy our double-buffering buffers when the
29065             control is resized or disposed, but not when visibility
29066             changes. (The code even re-created them twice every time)
29067           - Now requiring a redraw of the buffer on visibility changes
29068             (fixes bug 77654 part 2)
29069           - Not passing OnParentVisibleChanged up unless the control
29070             is visible
29071           - CanFocus: Fixed to match MS documentation
29072           - Focus: Fixed to return actual focus state and to check if
29073             setting focus is legal before setting it
29074
29075 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
29076
29077         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
29078           when to draw focus rectangle by looking at parent focus and
29079           selected state instead. This fixes TabPages on Linux sometimes
29080           having none or multiple focus rectangles.
29081         * XplatUIX11.cs (SetFocus): 
29082           - Don't set the focus if the same window already has focus
29083           - Use SendMessage instead of PostMessage (like it's Win32
29084             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
29085             to match MS behaviour
29086         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
29087           are not selectable.
29088
29089 2006-03-07  Jackson Harper  <jackson@ximian.com>
29090
29091         * PictureBox.cs: Revert line I accidently committed last week.
29092
29093 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
29094
29095         * Control.cs: 
29096           - Added new IsRecreating and ParentIsRecreating properties to
29097             allow testing if RecreateHandle has been called on ourselves
29098             or one of our parents
29099           - WndProc(WM_DESTROY): If our control handle is being recreated
29100             we immediately need to create the handle when receiving the
29101             destroy, that way our child windows find a valid parent handle
29102             when they themselves are being recreated upon WM_DESTROY receipt
29103             (fix for bug #77654 part 1)
29104         * XplatUIX11.cs:
29105           - DestroyWindow: WM_DESTROY must be sent to our own window before
29106             notifying any child windows. MS documents that child windows
29107             are still valid when WM_DESTROY is received. (Control now relies on
29108             this behaviour)
29109           - Added some fine-grain debug options
29110
29111 2006-03-06  Jackson Harper  <jackson@ximian.com>
29112
29113         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
29114         box and base calculations off this.
29115         * MdiChildContext.cs:
29116         * MdiWindowManager.cs: Don't need to ensure scrollbars here
29117         anymore.
29118         
29119 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
29120
29121         * Splitter.cs: In situations where the affected control is added
29122           to the parent's control list after the splitter, we would not
29123           populate affected. Now we try populating it on mousedown, if
29124           it's not already set, and force it to be re-set whenever our
29125           parent changes.
29126
29127 2006-03-03  Matt Hargett  <matt@use.net>
29128
29129         * Control.cs: implement Control.Padding
29130         * Padding.cs: -Padding.All returns -1 when constructing with the
29131         implicit default ctor
29132         -Padding.ToString() matches MS.NET
29133         * ContainerControl.cs: implement
29134         ContainerControl.AutoScaleDimensions
29135         * ListControl.cs: implement ListControl.FormattingEnabled
29136         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
29137         * ButtonBase.cs:
29138         * TabPage.cs: Implement UseVisualStyleBackColor.
29139         * PictureBox.cs: Implement PictureBox.InitialImage.
29140
29141 2006-03-03  Mike Kestner  <mkestner@novell.com>
29142
29143         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
29144         event declarations to proxy to base event.
29145         * ListViewItem.cs: update to use ItemControl.
29146         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
29147         * ThemeWin32Classic.cs: update to new ListView theme API and fix
29148         column header label rendering for 0 width columns.
29149
29150 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
29151
29152         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
29153           that causes the control to be created. Fixes #77476.
29154
29155 2006-03-02  Jackson Harper  <jackson@ximian.com>
29156
29157         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
29158         expose_pending.
29159
29160 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
29161
29162         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
29163           passed in for the EventArgs (fixes #77690)
29164
29165 2006-03-01  Jackson Harper  <jackson@ximian.com>
29166
29167         * ScrollBar.cs: Refresh afterbeing resized.
29168
29169 2006-02-28  Mike Kestner  <mkestner@novell.com>
29170
29171         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
29172         Clean up a tracker compile warning.
29173         * MenuItem.cs: add internal PerformPopup method.
29174         [Fixes #77457]
29175
29176 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
29177
29178         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
29179           implicit expose) when the text is set to null
29180
29181 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
29182
29183         * RichTextBox.cs (FlushText): When newline is true, we always
29184           need to split the line, even if no text is on it and we may
29185           never eat newlines. (Fixes #77669)
29186
29187 2006-02-28  Mike Kestner  <mkestner@novell.com>
29188
29189         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
29190         and set Selected instead.
29191         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
29192         collections.
29193
29194 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
29195
29196         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
29197
29198 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
29199
29200         * FontDialog.cs:
29201           - Got rid of the panel. All controls are now directly added to
29202             the dialog form
29203           - It is now possible to set a font with the Font property
29204           - MinSize and MaxSize property do now what they should
29205           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
29206           - Searching and selecting a font with the font textbox works now,
29207             the same applies to the style and size textbox
29208           - Draw the correct 3D border in the example panel
29209           - Fixed a little mem leak (unused fonts didn't get disposed)
29210           - Many other internal updates/rewrites...
29211           - Fix typo
29212
29213 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
29214
29215         * TextControl.cs: 
29216           - InsertRTFFromStream: Added 'number of characters inserted' argument
29217           - set_SelectedRTF: Now using the number of characters to calculate
29218             the new location for the selection and cursor (x/y cannot be used
29219             due to potentially already wrapped text)
29220
29221 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
29222
29223         * TextControl.cs: Added property and implemented means to allow 
29224           disabling recalculation of a document (can be used to speed up
29225           multiple inserts and is needed to make RTF inserts predictable, see
29226           bug #77659)
29227         * RichTextBox.cs: Using the new NoRecalc property of Document to
29228           keep x/y insert locations predictable. Also makes it faster inserting
29229           large chunks of RTF
29230
29231 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
29232
29233         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
29234           it's easier for a child control to handle the other messages without
29235           having to duplicate the special functionality
29236         * TextBoxBase.cs
29237           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
29238             code to handle processing the key ourselves, in order to get 
29239             access to the result of KeyEventArgs.Handled. We now only call 
29240             ProcessKey if they key hasn't been handled already. Fixes #77526.
29241           - set_Text: If null or empty string is given, just clear the 
29242             document. Fixes part of #77526
29243
29244 2006-02-27  Jackson Harper  <jackson@ximian.com>
29245
29246         * SizeGrip.cs: Paint the background color before painting the grip
29247         so things look right.
29248         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
29249
29250 2006-02-27  Mike Kestner  <mkestner@novell.com>
29251
29252         * ListView.cs:
29253           - Restructure layout and invalidation model to remove a ton of
29254           flicker from the control and speed up performance in general.
29255           - Add manual column resize, flickers like crazy, but I already have
29256           some ideas on how I'll fix that. (#76822)
29257           - Merge the three Icon-based views into a single layout method.
29258           - Move item selection interaction logic from the item since 
29259           interaction with the collections is more appropriate to the view.
29260           - Deselection on non-item clicks.
29261         * ListViewItem.cs:
29262           - Encapsulate most of the layout. Add some internal props to trigger
29263           layout.  Move to a model where Items invalidate themselves instead
29264           of just invalidating the whole control every time something changes.
29265           - Invalidate on Text/Caption changes.
29266           - switch to an offset based layout model to avoid having to absolute
29267           position every element on item moves.
29268           - correct checkbox layout to conform to MS layout.
29269         * ThemeWin32Classic.cs:
29270           - refactor some column header drawing code.
29271           - fix string justification for column headers (#76821)
29272           - make SmallIcon labels top justified for compat with MS impl.
29273         * ThemeClearlooks.cs:
29274           - adjust to new ListViewItem internal checkbox bounds api.
29275
29276 2006-02-27  Jackson Harper  <jackson@ximian.com>
29277
29278         * Control.cs:  Change where implicit controls fall in the zorder.
29279         They are now on top of all children.
29280         - Synced AddImplicit code with Add
29281         - Removed unused enumerator.
29282         * SizeGrip.cs: Remove the TODO as its been TODONE.
29283
29284 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
29285
29286         * TextControl.cs(Insert): Combine the last lines unless the insertion
29287           string ends with \n\n, otherwise we leave one line too many (Fixes
29288           something I noticed with the testapp for #77526; the bug itself was
29289           already fixed in the previous checkin)
29290
29291 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
29292
29293         * RichTextBox.cs:
29294           - SelectionColor and SelectionFont methods no longer set absolute
29295             styles. Instead, the keep font or color respectively (This 
29296             resolves a long-standing FIXME in the code)
29297           - When flushing RTF text, the insert code now considers text trailing
29298             behind the insertion point (Fixes the bug where when replacing
29299             the selected text via SelectedRTF the remainder of the line behind 
29300             the selection would stay on the first insertion line)
29301         * TextBoxBase.cs:
29302           - AppendText now updates the selection points after inserting text
29303           - AppendText now ensures that the last tag (sometimes 0-length) of
29304             the document is used for the style information (Fixes part of 
29305             bug #77220)
29306         * TextControl.cs:
29307           - Created new FontDefiniton class to allow describing partial style
29308             changes
29309           - StreamLine() now takes a lines argument, to allow it to decide
29310             whether an encountered zero-length tag is the last in the document
29311             (which must be kept to not loose the font/color contained in it,
29312             for later appends)
29313           - Created Combine() and Split() methods for Marker structs, to 
29314             support marker updates due to reformatted documents (soft line
29315             wraps)
29316           - Implemented Document.CaretTag setter
29317           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
29318             of the last line (Not the cause, but also exposed by bug #77220)
29319           - Added LineTag argument to InsertString method, to allow callers
29320             to force a certain tag to be used (required to force use of the
29321             trailing zero-length tag of a document)
29322           - Now updating markers in Combine(), to avoid stale tag markers
29323           - Added some method descriptions to aid maintenance
29324           - Implemented new FormatText concept, allowing additive/subtractive
29325             formatting by only specifying the components that are to be 
29326             changed. This was needed for resolving the RTB.SelectedColor/
29327             RTB.SelectedFont fixmes
29328           - Added Break() support method to allow breaking up linetags (used
29329             for partial formatting)
29330           - Added GenerateTextFormat() method. It is used for partial 
29331             formatting and allows to generate a full font/color from given
29332             attributes and an existing tag.
29333
29334 2006-02-26  Jackson Harper  <jackson@ximian.com>
29335
29336         * XplatUIX11.cs:  Use the correct caption height.
29337         - Translate hittest coordinates to screen coords to match MS.
29338         * XplatUIWin32.cs: When we create MDI windows we need to reset
29339         some of the style flags, so we get a nice blank window, and can
29340         draw all the decorations ourselves.
29341         - Set a clipping rectangle on the non client paint event, the
29342         window manager drawing code needs one.
29343         * Form.cs: The window manager needs to know when the window state
29344         has been updated.
29345         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
29346         don't need to factor in border and title sizes in these
29347         methods. TODO: Remove the args and fix the call points.
29348         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
29349         properly.
29350         - Let the driver set the cursors.
29351         - Improve active window handling
29352         - Correct sizes for title bars and buttons.
29353         - Match MS drawing better
29354         * MdiWindowManager.cs: We don't need to handle border style
29355         updates specially anymore.
29356         - Check for scrollbars when windows are done moving
29357         - Handle Active properly.
29358         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
29359         correctly. I am spewing the exception though, so we don't hide the
29360         bugs.
29361         
29362 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
29363
29364         * DataGridViewRowPostPaintEventArgs.cs,
29365           DataGridViewCellPaintingEventArgs.cs,
29366           DataGridViewRowCollection.cs,
29367           DataGridViewRowPrePaintEventArgs.cs,
29368           DataGridViewCell.cs: Clear a few warnings and implement a few
29369           exceptions that should be thrown.
29370
29371 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
29372
29373         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
29374           'inheriting' our parent's (non-default) cursor. (Part of
29375            the fix for #77479)
29376
29377 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
29378
29379         * XplatUIX11.cs: Fixed cast to make csc happy
29380
29381 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
29382
29383         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
29384           it's for the client area (part of fix for #77479 and needed
29385           for MDI window cursor handling)
29386         * XplatUIX11.cs
29387           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
29388             the appropriate default cursors and also passing the message
29389             up the parent chain 
29390           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
29391             for non-client areas
29392
29393 2006-02-15  Jackson Harper  <jackson@ximian.com>
29394
29395         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
29396         is a real MDI window
29397
29398 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
29399
29400         * X11DesktopColors.cs: Instead of checking the desktop session
29401           string for "KDE" check if it starts with "KDE"
29402
29403 2006-02-10  Jackson Harper  <jackson@ximian.com>
29404
29405         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
29406         systems).
29407
29408 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
29409
29410         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
29411           errors
29412         * ColorDialog.cs:
29413           - Got rid of the panel. All controls are now directly added to
29414             the dialog form
29415           - Changed to mono coding style
29416
29417 2006-02-10  Jackson Harper  <jackson@ximian.com>
29418
29419         * InternalWindowManager.cs: We don't need the set visibility to
29420         false hack anymore now that peter has written beautiful shutdown
29421         code.
29422
29423 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
29424
29425         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
29426           where already explicitly destroyed
29427
29428 2006-02-10  Jackson Harper  <jackson@ximian.com>
29429
29430         * MdiClient.cs: Handle the case where windows are too high or to
29431         the left and we need scrollbars.
29432
29433 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
29434
29435         * MimeIcon.cs: Added some icons
29436         * FileDialog.cs:
29437           - Fixed bug #77477
29438           - Got rid of the panel. All controls are now directly added to
29439             the dialog form
29440           - Changed to mono coding style
29441           - On Linux "My Computer" and "My Network" will now show some
29442             more usefull information. A new class, MasterMount, gathers
29443             this information from /proc/mount. Updated MWFFileView to make
29444             use of this information
29445           - Fixed a bug that caused FileDialog to crash when
29446             ".recently_used" file had a zero size
29447           - FilterIndex does now what it should
29448           - Some Refactoring
29449         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
29450             FileDialog changes
29451
29452 2006-02-09  Jackson Harper  <jackson@ximian.com>
29453
29454         * ComboBox.cs: Don't touch if null.
29455
29456 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
29457
29458         * Cursor.cs: 64bit safeness fix
29459         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
29460
29461 2006-02-09  Jackson Harper  <jackson@ximian.com>
29462
29463         * Form.cs: If a form is made into an MDI form update the styles so
29464         all the props can get set correctly.
29465         - Kill the mdi_container when we dont need it anymore.
29466         * InternalWindowManager.cs: Add missing NOT
29467
29468 2006-02-08  Jackson Harper  <jackson@ximian.com>
29469
29470         * InternalWindowManager.cs: Respek clipping when drawing MDi
29471         decorations.
29472
29473 2006-02-08  Jackson Harper  <jackson@ximian.com>
29474
29475         * Hwnd.cs: Add bits to track non client expose events.
29476         * XplatUIX11.cs: Track non client expose events on the hwnd. This
29477         gives us a proper invalid rect and will allow for some nice
29478         optimizations with NC client drawing
29479         - MDI windows are children windows, so move their style handling
29480         into the child window block.
29481         * InternalWindowManager.cs: Remove a state reset that was
29482         getting invoked at the wrong time. Fixes managed windows getting
29483         into a 'stuck' captured state.
29484
29485 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
29486
29487         * TextControl.cs (Document.ctor): Now initializing 
29488           selection_anchor. Fixes #77493
29489
29490 2006-02-07  Jackson Harper  <jackson@ximian.com>
29491
29492         * TrackBar.cs: The increment/decrements were backwards.
29493
29494 2006-02-07  Mike Kestner  <mkestner@novell.com>
29495
29496         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
29497         to the instance itself.
29498
29499 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
29500
29501         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
29502           on ulongs and pointers, the size differs between 32bit and 64bit
29503           systems. 
29504
29505 2006-02-07  Mike Kestner  <mkestner@novell.com>
29506
29507         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
29508         for 64 bit platforms to work around a metacity bug. 
29509
29510 2006-02-07  Jackson Harper  <jackson@ximian.com>
29511
29512         * TrackBar.cs: Process the input keys we need, and hookup to
29513         KeyDown instead of using WndProc, so we get key messages.
29514
29515 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
29516
29517         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
29518           machine we're on. 
29519         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
29520           we need to translate the XdndVersion atoms array before sending it
29521
29522 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
29523
29524         * XplatUIX11.cs: 
29525           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
29526             number of bits for the property, not the number of bytes. The
29527             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
29528             but would not crash since it specified 8 bits instead of 4 bits)
29529           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
29530             defined as XID -> long in the C headers)
29531           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
29532             references since those are now IntPtr to begin with
29533           - Switched all Atom.XXX 'int' casts to IntPtr casts
29534           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
29535           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
29536           - Added XChangeActivePointerGrab DllImport (for X11DnD)
29537         * X11Structs.cs:
29538           - Changed 'int' type for Atoms in XEvent structures to IntPtr
29539           - Changed atom in HoverStruct to be IntPtr
29540         * X11DnD.cs:
29541           - Removed local DllImports, switched code to use those from XplatUIX11
29542           - Removed/fixed casts related to the switch of Atom to be a IntPtr
29543
29544 2006-02-06  Mike Kestner  <mkestner@novell.com>
29545
29546         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
29547         method signatures in the import region.  There may still be some
29548         lingering struct marshaling issues, as I didn't drill down into those.
29549         Yet.
29550
29551 2006-02-06  Jackson Harper  <jackson@ximian.com>
29552
29553         * ComboBox.cs: Dont manually set the top_item, this is computed
29554         when the scrollbar position is set.
29555
29556 2006-02-06  Mike Kestner  <mkestner@novell.com>
29557
29558         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
29559         startup crashes on amd64.  There's other fixes needed.  All pinvoke
29560         usage of Atom needs to be mapped to IntPtr for example.  And there are
29561         likely other int/long issues to be addressed.
29562
29563 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
29564
29565         * FileDialog.cs: One more...
29566
29567 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29568
29569         * FileDialog.cs: Next try
29570
29571 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29572
29573         * FileDialog.cs: First part of fix for #77464
29574
29575 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29576
29577         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
29578           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
29579           AcceptButton border drawing.
29580
29581 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
29582
29583         * Form.cs: Moved positioning of form after auto scaling is applied,
29584           otherwise it would possibly use wrong form size.
29585
29586 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
29587
29588         * Control.cs (RecreateHandle): No need to re-create any child
29589           controls, the child windows will get destroyed automatically by
29590           the windowing system or driver, and re-created when the handle
29591           is being accessed the first time. Fixes #77456
29592         * Form.cs: No longer setting the form to closing if the handle is 
29593           being recreated. This seems like the right thing to do, don't
29594           have a bug or testcase for this, though.
29595
29596 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
29597
29598         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
29599           controls to avoid unwanted side effects
29600
29601 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
29602
29603         * Control.cs: 
29604           - ScaleCore needs to scale the bounds, not the ClientSize of the 
29605             control. Fixes #77416.
29606           - DefaultSize is 0,0 for control
29607         * TextBoxBase.cs: 
29608           - DefaultSize is 100, 20
29609           - SetBoundsCore: Now enforcing the height, no matter if the provided
29610             height is more or less than the preferred one, as long as AutoSize
29611             is on
29612         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
29613
29614 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
29615
29616         * Control.cs:
29617           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
29618             call unless both performLayout is true *and* we have a pending
29619             layout change
29620           - ResumeLayout: MS does not completely nest Suspend and Resume,
29621             they bottom out at 0, fixed our code to match that.
29622           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
29623             SetBoundsCore, we were updating even when we shouldn't. This fixes
29624             swf-anchors mis-anchoring when resizing the app fast and lots.
29625           - UpdateDistances: Now only setting the left and top distance if 
29626             we have a parent and are not suspended, this is based on
29627             a suggestion by Don Edvaldson in bug #77355.
29628           - OnVisibleChanged: Fixed logic when to create the control. We may
29629             not create the control if we have no parent or if it's not visible;
29630             switched to using Visible property instead of is_visible field 
29631             since the property also considers parent states. This fixes a bug
29632             when starting Paint.Net
29633
29634 2006-02-02  Jackson Harper  <jackson@ximian.com>
29635
29636         * Form.cs: If the forms handle hasn't been created yet don't call
29637         into xplatui to make it top most, just set the topmost flag on the
29638         form in CreateParams
29639         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
29640
29641 2006-02-01  Jackson Harper  <jackson@ximian.com>
29642
29643         * ScrollableControl.cs: Refactored the Recalculate method a
29644         little, this wasn't handling all the variants of bottom and right
29645         bars needed to be added and added/removed based on their
29646         counterparts being added/removed (which changes the drawable
29647         size). Also we special case client widths and heights of 0 and
29648         don't add the scrollbar for those.
29649
29650 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
29651
29652         * XplatUIX11.cs: 
29653           - Added method to get AbsoluteGeometry(); currently unused, but might
29654             be used in the future, if we try again to figure out toplevel
29655             coordinates with some more crappy window managers
29656           - Added FrameExtents() method to retrieve the WM set decoration size
29657           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
29658             to deal with at least KDE, FVWM and metacity (Fixes #77092)
29659         * Hwnd.cs: 
29660           - Added whacky_wm tracking var for metacity
29661           - Added logic to have default menu height if the actual menu height
29662             has not yet been calculated (part of fix for #77426)
29663         * Form.cs: Keep track whether client size has been set and re-set 
29664           it if a menu is added/removed afterwards (Fixes #77426)
29665
29666 2006-01-31  Jackson Harper  <jackson@ximian.com>
29667
29668         * Control.cs: When a new Site is set on the component attempt to
29669         pull the AmbientProperties from it.
29670
29671 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
29672
29673         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
29674           in the background of the owning form. Fixes #77332
29675
29676 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
29677
29678         * MimeIcon.cs: Fix for #77409
29679
29680 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
29681
29682         * XplatUIX11GTK.cs: Initial import
29683
29684 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
29685
29686         * FixedSizeTextBox: fixes class signature
29687
29688 2006-01-30  Jackson Harper  <jackson@ximian.com>
29689
29690         * FixedSizeTextBox.cs: New internal class that represents a
29691         textBox that will not be scaled.
29692         * TreeView.cs:
29693         * ComboBox.cs:
29694         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
29695         standard TextBox.
29696                 
29697 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
29698
29699         * XplatUIX11.cs: Retrieve default screen number instead of
29700           assuming 0. Attempted fix for #77318
29701
29702 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
29703
29704         * XplatUIWin32.cs: 
29705           - GetWindowPos: When a window is parented by FosterParent, use 
29706             the desktop instead of FosterParent as the base to get coordinates
29707           - CreateWindow: Don't make FosterParent the parent window for Popups
29708             if we don't want a taskbar entry, Popups automatically don't get one
29709         * Hwnd.cs: Need to call remove to actually remove the key from the
29710           hash table
29711
29712 2006-01-30  Mike Kestner  <mkestner@novell.com>
29713
29714         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
29715
29716 2006-01-30  Jackson Harper  <jackson@ximian.com>
29717
29718         * TreeView.cs:
29719         * TreeNode.cs: Raise events no matter how the treenode is
29720         checked. Patch by Don Edvalson.
29721
29722 2006-01-30  Jackson Harper  <jackson@ximian.com>
29723
29724         * TreeNode.cs: Signature fix.
29725
29726 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
29727
29728         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
29729
29730 2006-01-20  Mike Kestner  <mkestner@novell.com>
29731
29732         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
29733         event forwarding when menus are active.
29734         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
29735         Most of the patch is pdb's with a little rework.
29736
29737 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29738
29739         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
29740           Removed GetMenuDC and ReleaseMenuDC methods; replaced
29741           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
29742         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
29743         * InternalWindowManager.cs: Added use of PaintEventStart/End to
29744           handling of WM_NCPAINT message, now passing the PaintEventArgs to
29745           the PaintWindowDecorations method
29746         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
29747         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
29748         * MenuAPI.cs: Made tracker window invisible
29749         * XplatUIWin32.cs:
29750           - Removed GetMenuDC and ReleaseMenuDC methods
29751           - Implemented the client=false path for PaintEventStart and
29752             PaintEventEnd
29753
29754 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29755
29756         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
29757         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
29758           styles
29759         * Form.cs: 
29760           - MaximizeBox, MinimizeBox: Recreate the handle when setting
29761             the style
29762           - CreateParams: Reworked the styles to match MS look'n'feel,
29763             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
29764             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
29765
29766 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29767
29768         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
29769           window is not mapped, since otherwise every form that's being 
29770           created is considered minimized, which is wrong.
29771         * Form.cs: Catching the exception and returning our internal value
29772           instead
29773
29774 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29775
29776         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
29777           SetWindowMinMax() to have means to tell the driver about the minimum,
29778           maximum and maximized state window sizes. (Part of the fix for #76485)
29779         * Form.cs:
29780           - Implemented tracking of minimum and maximum window size, now calling
29781             new SetWindowMinMax() driver method to tell the driver (Part of the
29782             fix for #76485)
29783           - Finished handling of WM_GETMINMAXINFO method, now setting all values
29784             (Completes fix for #76485)
29785           - Calling new SetWindowMinMax driver method when the handle for a 
29786             form is created, to make sure the driver knows about it even if
29787             the values have been set before the window was created
29788           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
29789             to avoid messing up our anchoring calculations (partial fix
29790             for #77355)
29791         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
29792         * XplatUIX11.cs:
29793           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
29794           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
29795             (and presumably other freedesktop.org compliant WMs). Left the
29796             assumption unmapped=minimized, needed for SetVisible to work.
29797           - Now setting the window state when creating windows
29798           - Fixed SetVisible to consider/set the window state when mapping
29799             a Form. We cannot set the state before it's mapped, and we cannot
29800             use Form.WindowState once it's mapped (since it would ask the
29801             driver and get 'normal'. Therefore, we grab the state before
29802             mapping, map, and then set state.
29803           - Implmemented SetWindowMinMax method; Metacity does not seem to
29804             honor the ZoomHints, though.
29805         * XplatUIWin32.cs:
29806           - Removed MINMAXINFO (moved to XplatUIStructs)
29807           - Added SetWindowMinMax stub (on Win32 the only way to set that
29808             information is in response to the WM_GETMINMAXINFO message, which
29809             is handled in Form.cs)
29810           - Added logic to SetVisible to set the proper window state when a 
29811             form is made visible (fixes #75720)
29812
29813 2006-01-26  Jackson Harper  <jackson@ximian.com>
29814
29815         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
29816         same way we handle them with Invoke.
29817
29818 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
29819
29820         * Form.cs:
29821           - Added tracking of window state so CreateParams can return
29822             the appropriate style
29823           - Moved setting of WS_CAPTION style in CreateParams to allow
29824             styles without caption
29825         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
29826           control if the TextBox property is accessed. Fixes #77345
29827         * Control.cs:
29828           - get_Created: now uses is_disposed and is_created to determine
29829             return value (suggested by Jackson)
29830           - CreateHandle: No longer exits if the handle is being recreated
29831           - RecreateHandle: If the handle is not yet created call the 
29832             appropriate method to create either control or handle. If the
29833             control is already created CreateHandle will simply exit instead
29834             of just creating the handle
29835         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
29836           now SendMessage WM_DESTROY directly to the control when DestroyWindow
29837           is called.
29838         * XplatUIX11.cs: 
29839           - When DestroyWindow is called, instead of waiting for the 
29840             DestroyNotification from X11, we directly post it to the WndProc
29841             and immediately dispose the hwnd object.
29842             Same applies to DestroyChildWindows, and this obsoletes the
29843             expose_pending tracking. Contrary to Win32 behaviour we destroy our
29844             child windows before our own, to avoid X11 errors.
29845           - Removed the direct sending of WM_PAINT on UpdateWindow
29846         * XplatUIWin32.cs:
29847           - Reworked DoEvents and GetMessage to allow access to internal queue
29848             even when trying non-blocking access to the queue.  Fixes #77335. 
29849             Based on a patch suggestion by Don Edvalson. The new private
29850             GetMessage can now also be used as a backend for a PeekMessage
29851             frontend version.
29852         * XplatUI.cs: Improved debug output for CreateWindow
29853
29854 2006-01-25  Jackson Harper  <jackson@ximian.com>
29855
29856         * Help.cs: Allow param to be null. Patch by Don Edvalson.
29857
29858 2006-01-24  Jackson Harper  <jackson@ximian.com>
29859
29860         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
29861         when we have a MaxDropItems lower then the selected index.
29862
29863 2006-01-24  Jackson Harper  <jackson@ximian.com>
29864
29865         * Control.cs: Don't allow selection of non visible controls, allow
29866         selection of controls without parents.
29867
29868 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29869
29870         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
29871         * DataGridDrawingLogic.cs: Add editing row only when is necessary
29872
29873 2006-01-23  Jackson Harper  <jackson@ximian.com>
29874
29875         * UpDownBase.cs: Make the textbox handle all the selection and
29876         tabbing. This fixes tabing to updown controls.
29877
29878 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29879
29880         * TextBoxBase.cs: fixes exception thown the object was null
29881
29882 2006-01-23  Jackson Harper  <jackson@ximian.com>
29883
29884         * ButtonBase.cs: Just use the base CreateParams. They set
29885         visibility and enabled correctly.
29886         * ComboBox.cs:
29887         * TrackBar.cs:
29888         * MonthCalendar.cs: Lets let the base set as much of the
29889         createparams as possible so we don't have duplicate code all over
29890         the place.
29891
29892 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
29893
29894         * ThemeGtk.cs: Added TrackBar and some experimental code to
29895           get double buffering back
29896
29897 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
29898
29899         * DataGrid.cs: Allows row number set internally higher than the last
29900         when creating a new row. Restores the editing functionality.
29901
29902 2006-01-20  Mike Kestner  <mkestner@novell.com>
29903
29904         * MimeIcon.cs: delay Image creation until the icons are accessed
29905         instead of creating 190 scaled images on GnomeHandler startup.
29906
29907 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
29908
29909         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
29910           first call base before processing the event. Fixes #77279
29911
29912 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
29913
29914         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
29915           that the stride for the GDI bitmap would match the stride of
29916           a DIB or a Cursor.
29917
29918 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
29919
29920         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
29921
29922 2006-01-19  Jackson Harper  <jackson@ximian.com>
29923
29924         * ComboBox.cs: Hookup the text controls keydown event so we get
29925         those when the text control has the focus.
29926
29927 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29928
29929         * Label.cs: Now using the base events instead of defining new ones;
29930           this allows us to just call the base properties without having to
29931           duplicate all base property logic 
29932
29933 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29934
29935         * Label.cs: A label by default is not a tabstop (Fixes one of our
29936           failing nunit tests)
29937
29938 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29939
29940         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
29941         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
29942
29943 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29944
29945         * Cursor.cs: Reimplemented creating cursor bitmaps without using
29946           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
29947           This fixes #77218
29948         * XplatUIWin32.cs: 
29949           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
29950             constructor creates images that can't be saved. Part of the fix
29951             for #76103
29952           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
29953           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
29954             bug fix for handling window state in forms properly)
29955
29956 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29957
29958         * ThemeGtk.cs: Simplify ScrollBar drawing
29959
29960 2006-01-18  Jackson Harper  <jackson@ximian.com>
29961
29962         * Splitter.cs: Set the default dock style for the splitter control
29963         in the constructor.
29964
29965 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29966
29967         * ThemeGtk.cs: Corrected StateType and ShadowType for
29968           gtk_paint_box
29969
29970 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29971
29972         * Control.cs: Make use of Theme.DoubleBufferingSupported
29973         * ThemeGtk.cs:
29974           - Added drawing for flat style buttons
29975           - Added ScrollBar drawing
29976
29977 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29978
29979         * ThemeClearlooks.cs: Removed some unneeded code.
29980         * ThemeGtk.cs: First part of ThemeGtk enhancements.
29981
29982 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29983
29984         * LinkLabel.cs: We need to update the hover drawing when
29985           leaving the control as well.
29986
29987 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
29988
29989         * DataGrid.cs: Clicking on non empty areas in the columns
29990            area was giving an exception
29991
29992 2006-01-17  Jackson Harper  <jackson@ximian.com>
29993
29994         * ThemeWin32Classic.cs:
29995         * ListView.cs: Do not draw/clip the headers when the header style
29996         is None.
29997
29998 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29999
30000         * DataGrid.cs: Fixes 77260
30001         
30002 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
30003
30004         * DataGrid.cs: Clicking on a column on a empty grid was giving
30005           an exception
30006
30007 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
30008
30009         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
30010           or any keypress will crash the grid.
30011
30012 2006-01-17  Mike Kestner  <mkestner@novell.com>
30013
30014         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
30015         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
30016         invisible/previously-visible items.
30017         [Fixes #76909]
30018
30019 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
30020
30021         * ThemeClearlooks.cs:
30022         - Added CL_Draw_Button method; now other theme controls that are 
30023           not derived from button or do not have a button can draw buttons
30024           too
30025         - Updated ComboBox drawing
30026         - Beautified RadioButton drawing
30027         - Corrected drawing of bottom and left tabs
30028         - Beautified DateTimePicker and MonthCalendar
30029         - Added CPDrawButton and CPDrawRadioButton
30030
30031 2006-01-16  Jackson Harper  <jackson@ximian.com>
30032
30033         * ComboBox.cs: Set the initial value of the scrollbar to the
30034         current index. Reduce the numbers of refreshs and IndexOfs called.
30035
30036 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
30037
30038         * FileDialog.cs: When the file listview is focused hitting the
30039           backspace key moves the fileview to the parent directory
30040
30041 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
30042
30043         * Form.cs: 
30044           - Added RecreateHandle call when changing taskbar visibility to 
30045             trigger reparenting in Win32 driver (Fixes #75719)
30046           - If a window has minimize or maximize buttons, it cannot have
30047             a help button
30048         * XplatUIWin32.cs:
30049           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
30050             the toplevel form with FosterParent (A toolwindow not on the
30051             taskbar) (Fixes #75719)
30052           - Made FosterParent a toolwindow
30053
30054 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
30055
30056         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
30057
30058 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
30059
30060         * ToolTip.cs: If SetToolTip is called from a control and the mouse
30061           is currently over that control, make sure that tooltip_window.Text
30062           gets updated
30063
30064 2006-01-13  Mike Kestner  <mkestner@novell.com>
30065
30066         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
30067
30068 2006-01-13  Jackson Harper  <jackson@ximian.com>
30069
30070         * TreeView.cs: On MS GetNodeAt never actually factors in the X
30071         value passed.  Also redraw the selected node when we recieve
30072         focus, so tabbing between trees works correctly.
30073
30074 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
30075
30076         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
30077           ~/.gconf/%gconf-tree.xml, so use
30078           .gconf/desktop/gnome/interface/%gconf.xml
30079
30080 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
30081
30082         * TextControl.cs: Draw text in gray if control is disabled
30083
30084 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
30085
30086         * TreeView.cs: Draw the focus rectangle outside the highlight, to
30087           make sure it's always visible. Fixes #76680.
30088
30089 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
30090
30091         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
30092
30093 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
30094
30095         * PageSetupDialog.cs: Added.
30096         * PrintDialog.cs: Attributes.
30097         * PrintPreviewControl.cs: Updates.
30098         * PrintPreviewDialog.cs: Updates.
30099         
30100 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
30101
30102         * Control.cs: Undid my selection check fix, since it's not needed
30103         * TextBoxBase.cs:
30104           - Now considering the presence of hscroll/vscroll when sizing
30105             vscroll/hscroll respectively. Fixed bug #77077
30106           - Added Left/Up/Down/Right to IsInputKey list to prevent
30107             ContainerControl from stealing them. This fixes what I broke
30108             with my last checkin.
30109
30110 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
30111
30112         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
30113           I finally understand how the property can be set without a setter :-)
30114
30115 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
30116
30117         * Application.cs:
30118           - Switched RunLoop to use static Message.Create to create a 
30119             Message object
30120           - Added PreProcessMessage call in runloop for keyboard events; this
30121             is part of the fix for #77219, I overlooked this originally in the
30122             MSDN doc for PreProcessMessage
30123         * Control.cs:
30124           - Removed call to PreProcessMessage from handling of keyboard 
30125             messages; it's supposed to be done in the message pump
30126           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
30127             per MSDN documentation.
30128           - IsInputChar: All chars are input chars by default; removed the 
30129             parent calling chain, MS does not document that
30130           - PreProcessMessage: If IsInputChar is true, we want to return false
30131             to allow dispatching of the message
30132           - When selecting the next control, now also check that we're not
30133             selecting ourselves again and therefore return a false positive.
30134         * TextBoxBase.cs:
30135           - Tried to match return values for IsInputKey and ProcessDialogKey
30136             to what MS returns; moved processing of our special keys outside
30137             ProcessDialogKey since MS does not seem to return true on those.
30138           - Moved code that previously was in ProcessDialogKey into new private
30139             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
30140           - Reworked handling of WM_CHAR to not have to duplicate code from
30141             Control.cs anymore, instead we simply call down to base.
30142            
30143 2006-01-12  Jackson Harper  <jackson@ximian.com>
30144
30145         * ComboBox.cs: We always need to refresh the text area when
30146         EndUpdate is called. Fixes the combobox in the file dialog.
30147         * Control.cs: Don't create the creator_thread until the controls
30148         handle is created.  Also in InvokeRequired we check if the
30149         creator_thread is null. This gives the effect of InvokeRequired
30150         returning true if the controls handle is not created yet, and
30151         matches MS.
30152
30153 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
30154
30155         * XplatUI.cs:
30156           - Added StartLoop() driver method. This is used to allow drivers to
30157             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
30158             loop for a particular thread
30159           - Added EndLoop() driver method. This is called once the message
30160             pump for the thread is shut down
30161           - Added SupportsTransparency method to allow the driver to indicate
30162             opacity support for windows
30163         * Form.cs:
30164           - Removed TODO attribute, completed AllowTransparency property
30165           - Added documented logic to Opacity
30166         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
30167           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
30168           versions of CompatibleTextRendering
30169         * X11Structs.cs: Added opacity atom to our atom enumeration
30170         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
30171           of a form might be set before it's reparented by the WM, and we need
30172           the opacity value without calling up to Form)
30173         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
30174           SupportsTransparency() driver methods
30175         * Application.cs: Now calling StartLoop and EndLoop driver methods
30176         * XplatUIX11.cs:
30177           - Added opacity atom registration
30178           - Added StartLoop()/EndLoop() methods. They're empty right now but
30179             will need to get implemented when we switch to a per-thread queue
30180           - Implemented SupportsTransparency() method
30181           - Implemented SetWindowTransparency() method
30182           - Added support for setting the opacity value when a window is
30183             reparented (since the opacity needs to be set on the WM frame)
30184         * XplatUIOSX.cs, XplatUIWin32.cs:
30185           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
30186
30187 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
30188
30189         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
30190
30191 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
30192
30193         * FileDialog.cs: Added ToolTip for MWFFileView
30194         * MimeIcon.cs: Rewrote GnomeHandler.
30195           - Get currently used gnome icon theme from
30196             ($HOME)/.gconf/%gconf-tree.xml
30197           - Make use of inherited icon themes
30198           - Support SVG icon themes like Tango via librsvg
30199
30200 2006-01-12  Miguel de Icaza  <miguel@novell.com>
30201
30202         Revert's Jackson's revert which broke 2.0 builds.   Fix both
30203         builds. 
30204         
30205         * Application.cs: Move the use_compatible_text_rendering outside
30206         the NET_2_0 define.  If we ever need to use the
30207         use_compatible_text_rendering on the individual controls they will
30208         access the variable from the common shared code paths.
30209
30210 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
30211
30212         * XplatUI.cs:
30213           - Added more granular debug options
30214           - Added method to print both window text and id
30215           - Switched debug output to use new Window() debug method
30216           - Added IsEnabled() driver method
30217           - Added EnableWindow() driver method
30218         * Form.cs:
30219           - Removed end_modal; no longer needed, new loop handles termination
30220             via 'closing' variable
30221           - If form is modal, setting DialogResult will now initiate loop
30222             termination via 'closing' variable
30223           - Added support for is_enabled/WS_DISABLED to CreateParams
30224           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
30225             does all the work
30226           - Removed code that's now in RunLoop from ShowDialog()
30227           - Added various documented sanity checks to ShowDialog()
30228           - Added handling of WM_DESTROY message; we set 'closing' on getting
30229             the message to indicate the message pump to terminate
30230           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
30231             send by the Application.ExitThread method. (We send the message
30232             to destroy the window after all other events have been
30233             processed through the queue, instead of destroying the handle 
30234             directly)
30235           - Moved code from Close() method to WM_CLOSE handler; added logic
30236             to only send close-related events if the form is not displayed
30237             modal
30238         * Splitter.cs (..ctor): Fixed typo in resource name
30239         * Control.cs:
30240           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
30241             brush now
30242           - set_Cursor: Now only setting calling into XplatUI if the handle for
30243             the control is already created; this avoids implict handle creation
30244             or crashes if it's not created
30245           - set_Enabled: Now setting the enabled state via the new driver method
30246             instead of just tracking it
30247           - CreateParams: Added logic to set WS_DISABLED based on enabled state
30248           - CreateControl: Reordered event firing and method calls to more
30249             closely fire events in the order MS does. Now setting the
30250             enabled state in the driver when creating the control.
30251           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
30252             match MS order
30253         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
30254           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
30255         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
30256         * Hwnd.cs:
30257           - Added tracking of window enabled state (get_Enabled/set_Enabled)
30258           - Added EnabledHwnd property to easily allow a driver to find the
30259             handle of the first enabled window in the parent chain (this is
30260             used by drivers to pass up input events of disabled windows)
30261         * XplatUIDriver.cs: Added IsEnabled() method
30262         * Application.cs:
30263           - Removed crude and obsolete exiting tracking variable
30264           - Removed internal ModalRun(); replaced by RunLoop()
30265           - Implemented private CloseForms() method to allow closing all 
30266             windows owned by a particular (or all) threads
30267           - Exit() now properly closes all windows without forcing the message
30268             pump to quit
30269           - Removed obsolete InternalExit() method
30270           - Changed Run() methods to use new RunLoop() message pump
30271           - Implemented new RunLoop() method for both modal and non-modal forms
30272         * CommonDialog.cs:
30273           - get_CreateParams: Added setting of WS_DISABLED
30274           - Simplified ShowDialog(); now all the work is done in RunLoop(),
30275             invoked via Form.ShowDialog()
30276         * NativeWindow.cs: We don't remove the window from the collection when
30277           the handle is destroyed; there might still be messages for it in the
30278           queue (mainly the resulting WM_DESTROY); instead it will be removed
30279           when Control calls InvalidateHandle in the WM_DESTROY handler
30280         * XplatUIX11.cs:
30281           - CreateWindow: Added logic to handle the WS_DISABLED window style
30282           - EnableWindow: Implemented based on Hwnd.Enabled
30283           - GetMessage: Reset PostQuitState so the method can be called again
30284           - Implemented support for disabled windows (passing messages to the
30285             first enabled parent) in handling all input messages
30286           - Added optimizations for handling Expose events
30287           - Implemeted new driver method IsEnabled()
30288           - Now always resetting paint pending tracking vars when we start paint
30289           - Re-implemented UpdateWindow via just sending a WM_PAINT message
30290         * XplatUIOSX.cs: Added IsEnabled method stub
30291         * XplatUIWin32.cs: Implemented new IsEnabled() method
30292
30293 2006-01-11  Jackson Harper  <jackson@ximian.com>
30294
30295         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
30296         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
30297         variables a little.
30298         * ColorDialog.cs: Clear out the old form before adding the new
30299         panel.  
30300
30301 2006-01-11  Jackson Harper  <jackson@ximian.com>
30302
30303         * X11Dnd.cs: Make sure to add all the text formats when adding
30304         strings to the data object.
30305         * TreeNodeCollection.cs: When adding to a sorted tree we need to
30306         do some redrawing too.  Also change the UpdateNode to an
30307         UpdateBelow so the newly added node gets painted.
30308         
30309 2006-01-11  Miguel de Icaza  <miguel@novell.com>
30310
30311         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
30312         LinkLabel.cs, PropertyGrid.cs: Implement the
30313         UseCompatibleTextRendering property for 2.x
30314
30315         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
30316
30317 2006-01-11  Jackson Harper  <jackson@ximian.com>
30318
30319         * TreeView.cs: Use the property for setting the selected node so
30320         the correct events get raised.
30321         * TreeNode.cs: Update the tree when the fore/back colours of a
30322         node are set.
30323
30324 2006-01-10  Jackson Harper  <jackson@ximian.com>
30325
30326         * TreeView.cs: Allow setting SelectedNode to null.
30327
30328 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
30329
30330         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
30331
30332 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
30333
30334         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
30335
30336 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
30337
30338         * PrintDialog.cs: Added attributes and set default property values.
30339
30340 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
30341
30342         * PrintControllerWithStatusDialog.cs: 
30343         Added PrintControllerWithStatusDialog.
30344
30345 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
30346
30347         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
30348         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
30349
30350 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
30351
30352         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
30353
30354 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
30355
30356         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
30357         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
30358
30359 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
30360
30361         * MimeIcon.cs: Added internal class SVGUtil.
30362
30363 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
30364
30365         * FileDialog.cs: Don't crash if there are two files with the
30366           same name but different locations.
30367
30368 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
30369
30370         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
30371         dates across multiple month grids. Used to not highlight entire 
30372         month, but does now.
30373         
30374 2006-01-06  Jackson Harper  <jackson@ximian.com>
30375
30376         * MonthCalendar.cs: Removed DoEvents call to prevent a running
30377         message loop. Change timer intervals to numbers that seem more
30378         natural.
30379
30380 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
30381
30382         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
30383           object for location info since screen object is now implemented.
30384
30385 2006-01-05  Jackson Harper  <jackson@ximian.com>
30386
30387         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
30388         * AsyncMethodResult.cs: We no longer use a WeakReference for the
30389         AsyncMethodResult, this is because we ALWAYS want the
30390         ManualResetEvent to get set.
30391         * Control.cs: When disposing use an async invoke to call shutdown
30392         code, so that thigns don't block on the finalizer thread.  Also
30393         check if we even have a message loop before trying to send
30394         messages, if we don't then don't bother sending messages.
30395         - No more weak references for async methods
30396         * XplatUIDriver.cs: No more weak references for async methods.
30397
30398 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
30399
30400         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
30401           returns two FontFamily with the same name
30402
30403 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
30404
30405         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
30406           drawing disabled text. Instead using the ColorGrayText color
30407
30408 2006-01-04  Jackson Harper  <jackson@ximian.com>
30409
30410         * TreeNode.cs: redraw the node when its image index is changed.
30411
30412 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
30413
30414         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
30415           time I checked there are no others like it.
30416
30417 2006-01-04  Jackson Harper  <jackson@ximian.com>
30418
30419         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
30420         this gives the behavoir I was looking for.
30421         * Control.cs: Special case Invoking EventHandlers, this matches MS
30422         and fixes part of bug #76326.
30423
30424 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
30425
30426         * ThemeClearlooks.cs, FileDialog.cs:
30427           - Reflect the latest Theme class changes
30428           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
30429             with DateTime
30430             
30431 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
30432
30433         * Theme.cs: Cache UI resource images and resize them if needed
30434
30435 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
30436
30437         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
30438           is called. This fixes the crash in Nexxia when setting the font
30439           attributes in the chat. [However, RTF needs a look-over to make sure
30440           that all SelectionXXX methods handle the special case that selection
30441           is empty and therefore the change must be applied to all text starting
30442           at the cursor/selection start]
30443
30444 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
30445
30446         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30447           XplatUIOSX.cs: Added SendMessage and PostMessage methods
30448         * X11Keyboard.cs: Switched to new way of calling PostMessage
30449
30450 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
30451
30452         * Theme.cs: Added theme interface for images to allow the theme to
30453           control what images are used for things like FileDialog, MessageBox
30454           icons, etc.
30455         * MessageBox.cs: Now uses the new Theme icon/image interfaces
30456
30457 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
30458
30459         * FileDialog.cs:
30460           - Removed some dead code
30461           - Opening a recently used file does work now
30462           - Small UI enhancements
30463           - Refactoring
30464
30465 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
30466
30467         * FileDialog.cs: Forgot too add __MonoCS__
30468
30469 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
30470
30471         * FileDialog.cs: We are able to read recently used files now let's
30472           go on and write them.
30473
30474 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
30475
30476         * FileDialog.cs: Breathe some life into "last open"/"recently used"
30477           button
30478         * MimeIcon.cs: Do a check for the top level media type also
30479
30480 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
30481
30482         * ThemeClearlooks.cs:
30483           - Added CPDrawStringDisabled
30484           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
30485             some chars if the text doesn't fit into text_rect
30486           - DrawListViewItem: If View = View.LargeIcon center the image;
30487             rewrote the drawing of ListViewItem.Text if View = 
30488             View.LargeIcon
30489
30490 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
30491
30492         * MimeIcon.cs: Use default KDE icon theme if there is no
30493           "48x48" directory for the current icon theme, fixes #77114
30494         * Mime.cs: Disable not working and actually not used code. 
30495         * ThemeWin32Classic.cs:
30496           - Replace "new SolidBrush" in GetControlBackBrush and
30497             GetControlForeBrush with ResPool.GetSolidBrush
30498           - Changed DrawListViewItem from private to protected virtual
30499         * FileDialog.cs:
30500           - Added form.MaximizeBox = true
30501           - Don't throw an exception if there is a broken symbolic link
30502
30503 2005-12-23  Jackson Harper  <jackson@ximian.com>
30504
30505         * TabControl.cs: Give the panels focus, keyboard navigation is
30506         fixed so this works correctly now.
30507         - We need these key events also.
30508         * ToolBar.cs: Remove some of the poor mans double buffering.
30509         
30510 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
30511
30512         * ComboBox.cs: The internal TextBox now returns the focus.
30513
30514 2005-12-23  Jackson Harper  <jackson@ximian.com>
30515
30516         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
30517
30518 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
30519
30520         * Control.cs: Removed debug code
30521         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
30522           implicit children
30523
30524 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
30525
30526         * Control.cs: When creating the control, update the Z-order after
30527           all it's children are created, too. (Fixes nexxia not showing
30528           picturebox bug)
30529
30530 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
30531
30532         * Control.cs: Do not update the anchoring distances if layout is
30533           suspended, instead do it once layout is resumed
30534
30535 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
30536
30537         * Control.cs: 
30538           - After many hours of debugging, for both Jackson and
30539             myself, it turns out that it helps to set the parent of a control
30540             if you want to actually see it onscreen. In the spirit of that
30541             discovery, we're now setting the parent of the control and
30542             it's children when the control's handle is created. This fix
30543             will make Lutz Roeder's Reflector run happily. 
30544           - now just creating the handle instead of the whole control when
30545             getting a graphics context for the control.
30546
30547 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
30548
30549         * ScrollableControl.cs: When calculating the canvas, don't consider
30550           the scrollbar widths. Instead, predict if horizontal scrollbar
30551           will affect canvas when deciding on vertical display and vice versa.
30552
30553 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
30554
30555         * RichTextBox.cs: Set default RTF font for documents that don't
30556           have a font table (Fixes #77076)
30557
30558 2005-12-22  Jackson Harper  <jackson@ximian.com>
30559
30560         * TextBoxBase.cs: It's difficult to do, but you can have an empty
30561         clipboard. This prevents a NullRef in that case.
30562         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
30563         clipboard. PRIMARY is for the currently selected text only. (We
30564         should implement PRIMARY at some point.
30565
30566 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30567
30568         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
30569           a Unicode function with a structure that was defined in Ansi way.
30570           This fixes #76942.
30571
30572 2005-12-21  Jackson Harper  <jackson@ximian.com>
30573
30574         * StatusBar.cs: Statusbar handles its fore/back colours on it's
30575         on. Because thats how it rolls. (and this avoids it using ambient
30576         colours).
30577         * ThemeWin32Classic.cs: Use the proper back color for filling.
30578         * Menu.cs: Use the system menu bar color for drawing menu
30579         bars. Using the window back color will bring ambient colours into
30580         the picture.
30581
30582 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
30583
30584         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
30585           Bitmaps were created and not disposed.
30586
30587 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30588
30589         * Control.cs (CreateControl): Don't do anything if the control is
30590           already created, otherwise we'd fire the OnCreated event more than
30591           once
30592
30593 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
30594
30595         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
30596           will always match. Instead return -1. Fixes #76464.
30597
30598 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30599
30600         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
30601           neither the beginning nor the end of the line (Fixes bug #76479)
30602
30603 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
30604
30605         * Control.cs:
30606           - ControlNativeWindow.ControlFromHandle(): Now handling situation
30607             where handle is invalid
30608           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
30609             instead of slower linear search
30610         * NativeWindow.cs: Don't remove the window from the hashtable until
30611           after the driver has destroyed it (since the driver might use
30612           Control.FromHandle to lookup the control object
30613         * Hwnd.cs: Added DestroyPending property to track if a window is 
30614           already destroyed as far as the driver is concerned and only hasn't
30615           yet notified the control
30616         * XplatUIX11.cs:
30617           - Activate(): Check if the window is still valid before using the 
30618             handle
30619           - Implemented DestroyChildWindow() method to mark child windows as
30620             destroyed when a window is destroyed. This prevents situations 
30621             where we might call an X method based on queued events for a
30622             window that already has been destroyed but we haven't yet pulled
30623             the destroy method from the queue.
30624           - Added a call to the new DestroyChildWindow() method to the drivers
30625             DestroyWindow code. Also now marking the destroyed window itself
30626             as pending
30627
30628 2005-12-20  Jackson Harper  <jackson@ximian.com>
30629
30630         * StatusBar.cs:
30631         * StatusBarPanel.cs: Don't calculate panel sizes on draw
30632         anymore. Just do them when needed, also track the rects of panels
30633         so that we can optimize refreshing more in the future.
30634
30635 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
30636
30637         * ColorDialog.cs: Fixed focus drawing in small color controls
30638
30639 2005-12-19  Jackson Harper  <jackson@ximian.com>
30640
30641         * InternalWindowManager.cs:
30642         * MdiWindowManager.cs: Cleanup some coordinate system changes so
30643         moving windows works properly.
30644
30645 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
30646
30647         * Control.cs: 
30648           - Removed call to InitLayout() from SetBoundsCore(); doc says
30649             it's only called when a control is added to a container
30650           - Split InitLayout logic, moved to separate UpdateDistances() method
30651             since we need to perform those calculations more often than just
30652             when adding the control to a container. (Needed to fix #77022)
30653           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
30654           - Reduced the OnBindingContextChanged events count, don't send them
30655             unless the control is created, we still aren't totally matching
30656             MS, but I can't quite figure out some of their rules
30657
30658 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30659
30660         * ThemeClearlooks.cs: Corrected distance between ProgressBar
30661           stripes
30662
30663 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30664
30665         * ThemeClearlooks.cs:
30666           - Updated ProgressBar drawing
30667           - Corrected drawing of ScrollBars and scroll buttons
30668           - Some temporary fixes for minor pixel artefacts
30669
30670 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
30671
30672         * Control.cs:
30673           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
30674             cause events to be sent in the same order as MS does.
30675           - Added ChangeParent() method to trigger various OnXXXChanged events
30676             that need to be fired when a parent changes (This is a reworking
30677             of the patch from r54254, with the X11 errors fixed)
30678           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
30679             since on MS we get OnLayoutChanged events when calling Clear()
30680           - Changed Enabled property to consider parent state as well, if a
30681             parent is not enabled, the control will not be either
30682           - Changed Parent property to simply call Controls.Add() since that
30683             now does all the work required, this way we avoid code duplication
30684           - Threw in a few OnBindingsContextChanged calls to try and match
30685             when MS sends them. We seem to send a few too many, though.
30686           - Added call to CreateControl when adding the control to a parent.
30687             We were never calling CreateControl. Still needs some work, in
30688             some places we treat HandleCreated and ControlCreated as equal, 
30689             which is wrong
30690           - Removed obsolete commented out code from UpdateZOrder()
30691
30692 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30693
30694         * ThemeClearlooks.cs: Updated TrackBar drawing.
30695
30696 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30697
30698         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
30699
30700 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30701
30702         * FileDialog.cs: Add the Help button and the open readonly
30703           checkbox only if needed
30704
30705 2005-12-16  Jackson Harper  <jackson@ximian.com>
30706
30707         * Control.cs: Make sure we have an active menu before trying to
30708         process commands on it. Prevents menu-less forms from crashing
30709         when Alt is pressed.
30710         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
30711         Dieter Bremes.
30712         * RichTextBox.cs: Expand statement to help out gmcs and fix the
30713         2.0 build.
30714
30715 2005-12-16  Jackson Harper  <jackson@ximian.com>
30716
30717         * InternalWindowManager.cs: Don't translate tool windows screen
30718         coordinates. This fixes windows 'bouncing' around when being moved.
30719
30720 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30721
30722         * TextBoxBase.cs:
30723           - MaxLength now treats 2^31-1 equal to unlimited length (this is
30724             not quite MS compatible, MS uses that number only for single line
30725             and 2^32-1 for multi-line, but I figure it won't hurt keeping
30726             the limit at 2GB)
30727           - Now enforcing the MaxLength limit when entering characters
30728           - Added argument to internal Paste() method to track if it's called
30729             from programatically or via keyboard, since keyboard driven pastes
30730             need to enforce max-length
30731           - Added logic to Paste to only paste as many chars as MaxLength 
30732             allows
30733         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
30734         * TextControl.cs:
30735           - Added Length property to return number of characters in document
30736           - Added private CharCount property which only tracks actual chars
30737             in the document (no linefeeds) and fires event when CharCount
30738             changes
30739           - Added tracking of character count to all methods that alter it
30740           - Added LengthChanged event to allow applications to subscribe
30741             to any changes to the document
30742
30743 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30744
30745         * TextBox.cs: 
30746           - Removed local password_char field (moved to TextBoxBase)
30747           - Now setting the document's password var when password is
30748             set
30749         * TextBoxBase.cs:
30750           - Added password_char field (needed here so MultiLine can
30751             access it)
30752           - Added logic to MultiLine property setter to set the document's
30753             variable when password display is allowed
30754           - Removed debug code and made some debug code conditional
30755         * TextControl.cs:
30756           - Added RecalculatePasswordLine() method to handle special password
30757             char only lines
30758           - Added PasswordChar property, also added related tracking vars
30759           - Draw() method now uses local text var for grabbing text to draw,
30760             this var is set to line.text unless we're doing password display,
30761             then it is set to the pre-generated all-password-chars line
30762           - Added calling RecalculatePasswordLine() method for password lines
30763
30764 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30765
30766         * Hwnd.cs: 
30767           - Added Reparented property to allow tracking of Window Manager
30768             reparenting actions (which affect X/Y calculations of toplevel 
30769             windows)
30770           - Made ToString() print window handles in hex
30771         * XplatUIX11.cs:
30772           - AddConfigureNotify(): Now uses reparented state off Hwnd to
30773             determine if X/Y needs offsetting
30774           - AddConfigureNotify(): Fixed offset calculations
30775           - Now adds ReparentNotify messages into the queue
30776           - Now processes ReparentNotify messages and causes a 
30777             WM_WINDOWPOSCHANGED message to be sent upstream if a window
30778             is reparented (as most likely it's X/Y coordinates are changed
30779             due to that)
30780
30781 2005-12-14  Jackson Harper  <jackson@ximian.com>
30782
30783         * XplatUIX11.cs: Tool windows still need to respek focus.
30784
30785 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30786
30787         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
30788           have a working release
30789
30790 2005-12-13  Jackson Harper  <jackson@ximian.com>
30791
30792         * Form.cs: Update styles after setting the border style regardless
30793         of whether or not the window is using a window manager.
30794
30795 2005-12-13  Jackson Harper  <jackson@ximian.com>
30796
30797         * Form.cs: We now hook into an internal window manager instead of just an
30798         MDI subsystem, this is so we can have properly behaving tool windows.
30799         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
30800         * InternalWindowManager.cs: New internal class that acts as a
30801         window manager for tool windows and as a base for mdi windows.
30802         * MdiWindowManager.cs: New class that acts as a window manager for
30803         mdi windows.
30804
30805 2005-12-12  Jackson Harper  <jackson@ximian.com>
30806
30807         * Control.cs: Updates so we match behavoir for for implicit
30808         controls. Fixes explosions in MDI.
30809
30810 2005-12-12  Jackson Harper  <jackson@ximian.com>
30811
30812         * Control.cs: Implement Invalidate (Region).
30813
30814 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
30815
30816         * Control.cs: 
30817           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
30818             the same events as MS does. MS fires events for each property 
30819             except, for unknown reasons, Cursor, when the control is reparented. 
30820             I can't seem to totally match add/remove since MS also fires some 
30821             VisibleChanged events, which makes no sense. Consolidated the
30822             parenting code into a separate method so it can be called from
30823             both Add and Remove. set_Parent no longer needs any special logic
30824             as it calls the parent's add method which implicitly fires
30825             all events
30826           - Removed some obsolete code and debug output
30827           - Enabled state is inherited from parents, if this is enabled
30828
30829 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
30830
30831         * Form.cs: Removed commented out code
30832
30833 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
30834
30835         * Control.cs:
30836           - Added internal version of Invoke, with additional argument 
30837             indicating if we're calling it from a Dispose() handler. That
30838             way we can avoid BeginInvoke throwing an exception if we're
30839             calling for an already destroyed window.
30840           - Added a dispose argument to BeginInvokeInternal, and made the
30841             check if a valid window handle chain exists conditional on
30842             it not being a dispose call
30843           - Removed code in DestroyHandle to destroy our children. Since we
30844             now handle the WM_DESTROY message we will catch all our children
30845             being destroyed.
30846           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
30847         * Form.cs:
30848           - Added a field to track the application context of the form.
30849           - No need to set closing variable as response to WM_CLOSE, instead
30850             we destroy the window. We also call PostQuitMessage if the form
30851             has an application context (which makes it the main app form,
30852             which, when closed terminates the app)
30853         * XplatUI.cs:
30854           - Dropped Exit() method, it's naming was confusing
30855           - Added PostQuitMessage() which causes GetMessage to return false
30856             once the message queue is empty
30857         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
30858           PostQuitMessage()
30859         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
30860           no longer a valid XplatUI method, but left it in since it's used
30861           internally. Added empty PostQuitMessage() method.
30862         * MenuAPI.cs: Replaced call to Exit() with call to
30863           PostQuitMessage, even though this is probably no longer needed.
30864         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
30865         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
30866         * Application.cs:
30867           - Replaced call to XplatUI.Exit() with PostQuitMessage()
30868           - Removed old debug code that would call XplatUI for exception
30869             display, enabled standard exception handling (Still not enabled
30870             though, until NativeWindow's ExternalExceptionHandler define
30871             is removed
30872         * NativeWindow.cs:
30873           - Added internal method to allow control to update NativeWindow
30874             after a window has been destroyed
30875           - Added handling of already destroyed windows when calling i
30876             DestroyWindow
30877           - Added removal of handle from list on ReleaseHandle
30878         * XplatUIX11.cs:
30879           - Dropped GetMessageResult var and related code
30880           - Added PostQuitState to field to track if PostQuitMessage has been
30881             called
30882           - Dropped Exit() method
30883           - Added PostQuitMessage() method
30884           - GetMessage now will return false if PostQuitState is set and no
30885             more messages are in the queue.
30886           - Expose handler will no longer generate WM_PAINT messages if we are
30887             in PostQuitState since it's very likely any windows have already
30888             been destroyed, and since Hwnd won't get updated until we have
30889             processed the DestroyNotify we'd be causing X errors.
30890         
30891 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30892
30893         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
30894           Thanks to Mike for pointing out the err of my ways.
30895
30896 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30897
30898         * Control.cs(PreProcessMessage): Moved menu handling back, but
30899           after all other key handling, to match MS (who handles Menu in
30900           DefWndProc)
30901         * Menu.cs (WndProc): Removed my brainfart
30902
30903 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30904
30905         * Control.cs(PreProcessMessage): Removed special menu handling 
30906         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
30907
30908 2005-12-07  Mike Kestner  <mkestner@novell.com>
30909
30910         * Control.cs : special case SYSKEYUP so that we can adjust keynav
30911         state according in tracker.
30912         * Menu.cs : promote tracker field to base class and provide a tracker
30913         lookup capability.  Add/Remove shortcuts dynamically if the top menu
30914         has a tracker. Unparent items that are removed from the collection.
30915         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
30916         * Theme*.cs: add always_show_hotkeys field to support configurability
30917         of mnemonic display.  win32 doesn't show mnemonics until Alt is
30918         pressed.
30919
30920 2005-12-07  Jackson Harper  <jackson@ximian.com>
30921
30922         * MdiChildContext.cs: Use Control.ResetCursor.
30923         * Control.cs: ResetCursor needs to set the property so that the
30924         correct XplatUI call gets made.
30925
30926 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30927
30928         * Control.cs: More fixes to make our key events match MS. We
30929           were not setting the modifier state on KeyData, and we were
30930           not generating any events when Alt was pressed with a key
30931           since handling of WM_SYSxxx was missing for the OnKey methods.
30932
30933 2005-12-07  Jackson Harper  <jackson@ximian.com>
30934
30935         * MdiChildContext.cs: reenable the sizing code.
30936         - When the mouse leaves a window reset its cursor.
30937
30938 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30939
30940         * ThemeClearlooks.cs: Reflect latest Hwnd changes
30941
30942 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30943
30944         * Hwnd.cs: Now using the theme 3d bordersize to calculate
30945           widths of Fixed3D borders
30946
30947 2005-12-07  Jackson Harper  <jackson@ximian.com>
30948
30949         * MdiClient.cs: Fix warnings. Earn Mike's love.
30950
30951 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30952
30953         * ThemeClearlooks.cs:
30954           - Adjusted mouse over button color
30955           - Added first parts of CheckBox drawing
30956           - Added correct color for selected text background
30957           - Fixed ComboBox drawing
30958           - Added CPDrawBorder3D and CPDrawBorder
30959
30960 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30961
30962         * XplatUIX11.cs: Added call to XBell for AudibleAlert
30963
30964 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
30965
30966         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30967           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
30968           alert users via sound. We could add an enum arg with different
30969           types of alerts in the future
30970
30971 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30972
30973         * Control.cs: Fix behaviour problems pointed out by Mike
30974
30975 2005-12-05  Mike Kestner  <mkestner@novell.com>
30976
30977         * StatusBarPanel.cs: add Invalidate method and hook it into all the
30978         prop setters.  Calls parent.Refresh for now, but could be maybe be
30979         optimized with an internal method on StatusBar at some point.
30980         [Fixes #76513]
30981
30982 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
30983
30984         * RichTextBox.cs: Implemented get_SelectionColor
30985
30986 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
30987
30988         * ThemeClearlooks.cs:
30989           - Removed dead code
30990           - Draw black button border only if button is Form.AcceptButton
30991           - Draw correct button color for pressed RadioButton if the mouse 
30992             has entered the button
30993           - Updated ProgressBar drawing!
30994           - Updated CPDrawSizeGrip drawing
30995           - Updated StatusBarPanel drawing
30996
30997 2005-12-05  Mike Kestner  <mkestner@novell.com>
30998
30999         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
31000         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
31001
31002 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
31003
31004         * ThemeClearlooks.cs: Initial check-in, activate with
31005           export MONO_THEME=clearlooks
31006         * ThemeEngine.cs: Added ThemeClearlooks
31007
31008 2005-12-03  Mike Kestner  <mkestner@novell.com>
31009
31010         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
31011         [Fixes #76897]
31012
31013 2005-12-02  Jackson Harper  <jackson@ximian.com>
31014
31015         * Form.cs: If the child form has no menu the default main menu is
31016         used as the active menu.
31017
31018 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
31019
31020         * ListBox.cs: Check if any items exist before trying to resolve 
31021           coordinates into items
31022
31023 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
31024
31025         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
31026           as the second color for the background hatch
31027
31028 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
31029
31030         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
31031         * RichTextBox.cs: FormatText position arguments are 1-based, now making
31032           sure that what we pass to FormatText is always 1-based. Fixes #76885
31033
31034 2005-11-29  Miguel de Icaza  <miguel@novell.com>
31035
31036         * NumericUpDown.cs (EndInit): When we are done initializing,
31037         reflect any updates on the UI.
31038
31039 2005-12-02  Jackson Harper  <jackson@ximian.com>
31040
31041         * ImplicitHScrollBar.cs:
31042         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
31043         their container controls.
31044         * TreeView.cs: Use the new implicit scrollbars.
31045
31046 2005-12-02  Jackson Harper  <jackson@ximian.com>
31047
31048         * TreeView.cs: Make top_node internal so the TreeNodeCollections
31049         can play with it.
31050         * TreeNodeCollection.cs: If we remove the topnode we need to
31051         update topnode to the next node in line.
31052         - When clearing nodes go through the same process as removing
31053         them, so they get depareneted and checked if they are top node.
31054
31055 2005-12-01  Jackson Harper  <jackson@ximian.com>
31056
31057         * TreeView.cs: When imagelists are used the image area is
31058         selectable as well as the text.
31059         - If there are no selected nodes select the first one.
31060         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
31061         so don't do it more then we need to.
31062
31063 2005-12-01  Jackson Harper  <jackson@ximian.com>
31064
31065         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
31066         that arrows can be scaled.
31067
31068 2005-12-01  Jackson Harper  <jackson@ximian.com>
31069
31070         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
31071         fail. Patch by Dieter Bremes
31072
31073 2005-11-30  Jackson Harper  <jackson@ximian.com>
31074
31075         * Form.cs: Property is 2.0 only
31076         * PrintDialog.cs: Signature fix.
31077
31078 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
31079
31080         * TextControl.cs: 
31081           - No longer artificially moves text 2 pixels down (now that we have
31082             borders this is no longer needed)
31083           - Added calcs for left, hanging and right indent
31084
31085 2005-11-23  Mike Kestner  <mkestner@novell.com>
31086
31087         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
31088
31089 2005-11-30  Jackson Harper  <jackson@ximian.com>
31090
31091         * MdiChildContext.cs: Set the cloned menus forms, as these don't
31092         get cloned as part of CloneMenu ().
31093         * Menu.cs: Make sure the parent of the items get set correctly
31094         when they are added.  And the owners are notified of the changes.
31095         * Form.cs: Create an ActiveMenu property, so that when MDI is used
31096         we can change the menu being displayed/handled by the form without
31097         changing the menu assosciated with the form.
31098         - Don't let Mdi children draw/handle menus.
31099         
31100 2005-11-30  Jackson Harper  <jackson@ximian.com>
31101
31102         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
31103         a MenuChanged event. Just to make the API a little more
31104         consistent.
31105         * MainMenu.cs:
31106         * MenuItem.cs: Use the new OnMenuChanged
31107         * MdiChildContext.cs: Handle menu merging.
31108         * Form.cs: Implement MergedMenu.
31109         
31110 2005-11-30  Jackson Harper  <jackson@ximian.com>
31111
31112         * Menu.cs: We were misusing Add. Add goes behind the specified
31113         index according to the docs, and does not replace the specified
31114         index. So I added an Insert method.
31115
31116 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
31117
31118         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
31119           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
31120           is for Jackson
31121         * RichTextBox.cs: Added calls to base for DnD events
31122
31123 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
31124
31125         * TextControl.cs:
31126           - Fixed drag-selection related crash; style fixes
31127           - Implemented undo class
31128             o Implemented method to capture document state for specified
31129               range in document tree
31130             o Implemented method to restore captured document state
31131             o Implemented cursor tracking
31132             o Implemented basic undo stack
31133           - Added undo cursor tracking to methods altering cursor location
31134           - Added undo tracking to selection deletion (still missing
31135             other text-altering hookups)
31136         * RichTextBox.cs:
31137           - Added SelectionLength property
31138           - Implemented CanPaste()
31139           - Implemented Paste()
31140           - Added missing protected methods
31141           - Fixed RTF->Document conversion; now uses font index 0 and color 
31142             index 0 as the default font for the parsed text
31143           - Fixed RTF<->Document font size translation
31144           - Fixed RTF generation, now properly handles cross-tag boundaries
31145             for single line selection
31146           - No longer always appends blank line to generated RTF
31147           - Removed TODOs
31148           - Added missing attributes
31149           - Hooked up undo-related methods
31150         * TextBoxBase.cs:
31151           - Implemented Copy()
31152           - Implemented Paste()
31153           - Implemented Cut()
31154           - Fixed caret mis-behaviour on backspace across line-boundaries
31155
31156 2005-11-29  Jackson Harper  <jackson@ximian.com>
31157
31158         * MdiClient.cs: Add a method for activating mdi children. Very
31159         basic right now. I imagine someday it might need more girth.
31160         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
31161         children windows names are added to the menu item.
31162         * ThemeWin32Classic.cs: Draw the arrow if the item is an
31163         mdilist. This happens regardless of whether or not there are any
31164         mdi windows to see in the list, and according to my tests happens
31165         before the items are even added. Also happens if there isn't even
31166         an mdi client to get windows from.
31167
31168 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
31169
31170         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
31171         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
31172
31173 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
31174
31175         * DataGridTableStyle.cs:
31176           - Create always the styles for the missing columns even if they are
31177             provided by the user (not default table style)
31178         * DataGrid.cs:
31179           - Fixes bug 76770
31180           - Fixes SetDataBinding (always re-attach source)
31181           - Fixes SetNewDataSource (only clear styles if they are not for 
31182             this source)
31183          -  Expands OnTableStylesCollectionChanged to handle style refresh 
31184             and remove properly
31185
31186 2005-11-29  Jackson Harper  <jackson@ximian.com>
31187
31188         * FileDialog.cs: Implement missing bits, remove some dead
31189         code.
31190         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
31191         creation of the panel so that the options set on the dialog are
31192         seen when the panel is created.
31193         * TreeView.cs: raise a click when items are clicked.
31194         
31195 2005-11-29  Jackson Harper  <jackson@ximian.com>
31196
31197         * MdiClient.cs: Pass some signature methods through to base.
31198
31199 2005-11-28  Jackson Harper  <jackson@ximian.com>
31200
31201         * ListView.cs: Raise the click event when items are clicked.
31202
31203 2005-11-28  Jackson Harper  <jackson@ximian.com>
31204
31205         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
31206         a nullref.
31207
31208 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
31209
31210         * ThemeNice.cs: - Removed 1 pixel bitmaps
31211           - Use SmoothingMode.AntiAlias where it makes sense
31212             (ScrollButton arrow for example)
31213           - Enhanced Button focus drawing
31214           - Fixed ComboBox drawing (no artefacts anymore, focus
31215             rectangle is back again, reduced size of ComboButton, etc.)
31216           - Fixed RadioButton focus drawing for Appearence.Button
31217           - Slight ScrollButton redesign
31218           - Some LinearGradientBrush size fixes
31219           - GroupBoxes have now rounded edges
31220           - Fixed StatusBar drawing
31221
31222 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
31223
31224         * ThemeNice.cs: - Remove dead code
31225           - use correct background colors for menus, etc.
31226           - Fake pixel drawing with 1 pixel bitmaps
31227
31228 2005-11-24  Jackson Harper  <jackson@ximian.com>
31229
31230         * MdiClient.cs: Size the scrollbars when resizing the window.
31231         - Resize the maximized windows when the client is resized
31232         * Form.cs: Make the child context available
31233         
31234 2005-11-23  Jackson Harper  <jackson@ximian.com>
31235
31236         * MdiChildContext.cs: Don't size windows if they are maximized.
31237
31238 2005-11-23  Mike Kestner  <mkestner@novell.com>
31239
31240         * ContextMenu.cs: use MenuTracker.
31241         * Control.cs: remove menu handle usage.
31242         * Form.cs: remove menu handle usage.
31243         * Hwnd.cs: remove menu handle usage.
31244         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
31245         motion and clicks to the new Tracker handlers.
31246         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
31247         and handle usage.
31248         * MenuAPI.cs: refactored to combine popup and menubar event handling.
31249         Killed the MENU and MENUITEM data types and associated collections
31250         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
31251         MenuTracker class that exposes the leftovers from the old MenuAPI
31252         static methods. Restructured Capture handling so that only one grab is
31253         done for the entire menu hierarchy instead of handing off grabs to
31254         submenus. Tracker now has an invisible control to Capture when active.
31255         * MenuItem.cs: add sizing accessors, kill Create
31256         and handle usage.
31257         * Theme.cs: remove menu handle and MENU(ITEM) usage.
31258         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
31259         MENU(ITEM). remove menu handle usage, use Menu directly.
31260         * XplatUIDriver.cs: remove menu handle usage.
31261         * XplatUIOSX.cs: remove menu handle usage.
31262         * XplatUIWin32.cs: remove menu handle usage.
31263         * XplatUIX11.cs: remove menu handle usage.
31264
31265 2005-11-22  Jackson Harper  <jackson@ximian.com>
31266
31267         * Hwnd.cs: Don't compute the menu size for
31268         DefaultClientRectangle.
31269         - Reenable menu sizes being computed for GetClienRectangle.
31270         * Form.cs: Remove comment of trechery
31271         
31272 2005-11-22  Jackson Harper  <jackson@ximian.com>
31273
31274         * Hwnd.cs: The adjustments for the menu bar are made when it is
31275         attached to the form.
31276
31277 2005-11-19  Jackson Harper  <jackson@ximian.com>
31278
31279         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
31280         (just like on windows).
31281
31282 2005-11-19  Jackson Harper  <jackson@ximian.com>
31283
31284         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
31285         use real buttons anymore because they are in non client area. The
31286         one TODO here is that I need to somehow invalidate a section of
31287         the non client area.
31288
31289 2005-11-18  Jackson Harper  <jackson@ximian.com>
31290
31291         * Control.cs: Put the enum check back in now that MDI doesnt have
31292         to use this to set border styles.
31293         * Form.cs: Only set mdi child windows borders if the handle has
31294         been created.
31295         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
31296         this directly on to the driver.
31297         - Get the move start position before adjusting for the titlebar
31298         height, this fixes the windows "skipping" when they are first
31299         moved.
31300
31301 2005-11-18  Jackson Harper  <jackson@ximian.com>
31302
31303         * XplatUIX11.cs: Just compute the mdi borders separately as they
31304         don't totally match up with normal form borders.
31305
31306 2005-11-18  Jackson Harper  <jackson@ximian.com>
31307
31308         * Control.cs: Set WS_ styles for borders, so that the driver does
31309         not have to retrieve the control instance to figure out what kind
31310         of borders it should have.
31311         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
31312         driver can know its an mdi child easily.
31313         * XplatUIX11.cs: Get the border styles and whether the window is
31314         MDI from the Styles and ExStyles params instead of having to get a
31315         control. This prevents a chicken and egg problem.       
31316
31317 2005-11-18  Jackson Harper  <jackson@ximian.com>
31318
31319         * MdiClient.cs: Fix typo so scrollbars show up correctly.
31320
31321 2005-11-18  Jackson Harper  <jackson@ximian.com>
31322
31323         * MdiClient.cs: Calculate when to add and remove scrollbars
31324         correctly.
31325         * MdiChildContext.cs: Adjust the y position to take the titlebar
31326         into account.
31327         - No height for FormBorderStyle.None
31328
31329 2005-11-18  Jackson Harper  <jackson@ximian.com>
31330
31331         * Control.cs: Allow non enum values to be used for
31332         InternalBorderStyle.  MDI does this to set a special border style.
31333         - New utility methods for converting points to/from client coords
31334         - Add the newly created control to the Controls collection before
31335         updating its style. This way UpdateStyle can walk the control
31336         heirarchy to find the control if needed.
31337         so I don't need to create a new Point object all the time.
31338         * Form.cs: Let MDI windows handle their border styles.
31339         - Set styles on MDI windows so the correct title style is derived.
31340         * MdiChildContext.cs: Move all the painting and window handling
31341         into the non client area.
31342         - Use correct sizing and put correct buttons on frames based on
31343         the FormBorderStyle.
31344         - Notify the mdi client about scrolling
31345         - Need to handle the buttons ourselves now, because they are all
31346         in non client areas and we can't add controls there.
31347         * MdiClient.cs: Halfway to scrolling, this implementation is
31348         somewhat broken though, we need to check to make sure other
31349         windows aren't causing scrolling before removing the bars. Also
31350         the bars need to be drawn on top, maybe I can switch implicit
31351         controls to be on top.
31352         * Hwnd.cs: caption_height and tool_caption_height are now
31353         properties of an hwnd, this way they can be set by the driver
31354         based on the type of window they are.  In X11 the window manager
31355         handles the decorations so caption_height is zero unless its an
31356         MDI window.
31357         - Add 3 pixel borders for MDI windows (0xFFFF).
31358         - Get rid of some code duplication, have DefaultClientRectanle
31359         just call GetClientRectangle.
31360         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
31361         Hwnd now.
31362         - Set border styles differently for mdi windows.
31363         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
31364         Hwnd now.
31365         
31366 2005-11-15  Mike Kestner  <mkestner@novell.com>
31367
31368         * Menu.cs: when adding an item to the collection, if item is already 
31369         parented, remove it from the parent.
31370
31371 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
31372
31373         * X11DesktopColors.cs: Added KDE support
31374
31375 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
31376
31377         * XplatUIWin32.cs: 
31378           - Clipboard methods now can translate Rtf format
31379           - No longer removes clipboard contents whenever a new format is added
31380             to allow placing multiple formats on the clipboard
31381         * Clipboard.cs: Clipboard now supports getting a IDataObject and
31382           will place all formats contained in it onto the clipboard. Also
31383           now cleans the clipboard before placing a new object onto it
31384         * RichTextBox.cs:
31385           - Implemented set_Rtf
31386           - Implemented set_SelectedRtf
31387           - Created InsertRTFFromStream() method to allow single code base
31388             for all properties and methods that insert RTF into document
31389           - Removed debug output
31390         * TextControl.cs:
31391           - Fixed Delete(int) to fix up line numbers
31392           - Fixed ReplaceSelection to combine start and end line
31393           - Fixed serious DeleteChars bug that would leave the document tree
31394             broken
31395           - Improved DumpTree with several logic checks to detect broken
31396             document trees
31397           - Removed debug lines
31398           - Fixed Caret.WordForward/WordBack moving code, now always also 
31399             updates caret.tag (fixes crash when word-selecting across tag
31400             boundaries via keyboard)
31401           - Added Insert() method for inserting multiline text into documents
31402           - Fixed DeleteChars() calculation errors that would cause a broken
31403             tag chain with multiple tag lines
31404           - DeleteChars() no longer crashes on multi-tag lines if not all tags
31405           - Split() no longer moves caret if split is at caret location
31406           - ReplaceSelection() now updates the cursor and re-displays it
31407           - ReplaceSelection() now uses new Insert() method to avoid code
31408             duplication
31409           - FormatText() can now handle formatting partial lines
31410         * TextBoxBase.cs:
31411           - Append now uses new TextControl.Insert() method (this avoids 
31412             duplicate code)
31413           - Implemented Ctrl-X (Cut) (
31414           - Implemented Ctrl-C (Copy)
31415           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
31416             regeneration when pasting text; roundtripping Copy&Paste within
31417             edit control still fails due to some calculation bugs in GenerateRTF)
31418           - The Delete key will now remove the current selection if it is visible
31419         * TextBox.cs: Removed debug lines
31420         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
31421           driver to be initialized and can't therefore be done via a static ctor)
31422
31423 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
31424
31425         * TextControl.cs: Added backend code for finding char arrays and strings
31426         * TextBoxBase.cs:
31427           - Added mouse wheel scroll support
31428           - Added support for VScroll and HScroll events
31429         * RichTextBox.cs:
31430           - Implemented all seven Find() variants
31431           - Implemented GetCharFromPosition()
31432           - Implemented GetCharIndexFromPosition()
31433           - Implemented GetLineFromIndex()
31434           - Implemented GetPositionFromCharIndex();
31435           - Implemented SaveFile for PlainText and UnicodeText
31436           - Fixed set_Font, now setting a new font applies that font to
31437             the whole document
31438           - Implemented generic Document to RTF converter
31439           - Implemented SaveFile for RichText format (still missing unicode
31440             conversion for non-ansi chars)
31441           - Implemented get_Rtf
31442           - Implemented get_SelectedRtf
31443
31444 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
31445
31446         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
31447           to allow any captures to be released before triggering OnClick. This
31448           way a click handler may capture the mouse without interference.
31449         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
31450           This way we send them even though X may not allow a grab (if the window
31451           isn't visible, for example)
31452
31453 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
31454
31455         * DataGridViewRowEventArgs.cs: DataGridView implementation
31456         * DataGridViewElement.cs: DataGridView implementation
31457         * DataGridViewComboBoxCell.cs: DataGridView implementation
31458         * DataGridViewDataErrorContexts.cs: DataGridView implementation
31459         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
31460         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
31461         * ImageLayout.cs: DataGridView implementation
31462         * DataGridViewComboBoxColumn.cs: DataGridView implementation
31463         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
31464         * DataGridViewSelectionMode.cs: DataGridView implementation
31465         * IDataGridViewEditingControl.cs: DataGridView implementation
31466         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
31467         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
31468         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
31469         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
31470         * DataGridViewColumnSortMode.cs: DataGridView implementation
31471         * DataGridView.cs: DataGridView implementation
31472         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
31473         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
31474         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
31475         * Padding.cs: DataGridView implementation
31476         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
31477         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
31478         * DataGridViewRowEventHandler.cs: DataGridView implementation
31479         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
31480         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
31481         * DataGridViewButtonCell.cs: DataGridView implementation
31482         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
31483         * DataGridViewEditMode.cs: DataGridView implementation
31484         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
31485         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
31486         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
31487         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
31488         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
31489         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
31490         * DataGridViewCellEventHandler.cs: DataGridView implementation
31491         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
31492         * DataGridViewCellStyleConverter.cs: DataGridView implementation
31493         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
31494         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
31495         * DataGridViewColumnEventArgs.cs: DataGridView implementation
31496         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
31497         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
31498         * QuestionEventArgs.cs: DataGridView implementation
31499         * IDataGridViewEditingCell.cs: DataGridView implementation
31500         * DataGridViewTriState.cs: DataGridView implementation
31501         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
31502         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
31503         * DataGridViewColumnCollection.cs: DataGridView implementation
31504         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
31505         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
31506         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
31507         * DataGridViewColumn.cs: DataGridView implementation
31508         * DataGridViewCellBorderStyle.cs: DataGridView implementation
31509         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
31510         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
31511         * DataGridViewRow.cs: DataGridView implementation
31512         * DataGridViewImageCellLayout.cs: DataGridView implementation
31513         * DataGridViewImageCell.cs: DataGridView implementation
31514         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
31515         * DataGridViewCheckBoxCell.cs: DataGridView implementation
31516         * DataGridViewHeaderCell.cs: DataGridView implementation
31517         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
31518         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
31519         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
31520         * DataGridViewTextBoxColumn.cs: DataGridView implementation
31521         * QuestionEventHandler.cs: DataGridView implementation
31522         * DataGridViewCellStyleScopes.cs: DataGridView implementation
31523         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
31524         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
31525         * DataGridViewCell.cs: DataGridView implementation
31526         * DataGridViewCellEventArgs.cs: DataGridView implementation
31527         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
31528         * DataGridViewCellStyle.cs: DataGridView implementation
31529         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
31530         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
31531         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
31532         * TextFormatFlags.cs: DataGridView implementation
31533         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
31534         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
31535         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
31536         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
31537         * DataGridViewButtonColumn.cs: DataGridView implementation
31538         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
31539         * HandledMouseEventArgs.cs: DataGridView implementation
31540         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
31541         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
31542         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
31543         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
31544         * DataGridViewRowCollection.cs: DataGridView implementation
31545         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
31546         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
31547         * DataGridViewHitTestType.cs: DataGridView implementation
31548         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
31549         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
31550         * DataGridViewColumnEventHandler.cs: DataGridView implementation
31551         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
31552         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
31553         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
31554         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
31555         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
31556         * DataGridViewContentAlignment.cs: DataGridView implementation
31557         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
31558         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
31559         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
31560         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
31561         * DataGridViewPaintParts.cs: DataGridView implementation
31562         * DataGridViewCellCollection.cs: DataGridView implementation
31563         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
31564         * DataGridViewImageColumn.cs: DataGridView implementation
31565         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
31566         * DataGridViewElementStates.cs: DataGridView implementation
31567         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
31568         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
31569         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
31570         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
31571         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
31572         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
31573         * DataGridViewRowHeaderCell.cs: DataGridView implementation
31574         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
31575         * DataGridViewTextBoxCell.cs: DataGridView implementation
31576         * DataGridViewBand.cs: DataGridView implementation
31577         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
31578         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
31579         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
31580         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
31581         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
31582         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
31583         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
31584         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
31585         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
31586         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
31587         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
31588
31589 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
31590
31591         * ThemeWin32Classic.cs: 
31592           - Draw the outside focus rectangle around buttons
31593           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
31594             doesn't use end caps for every dash of a line anymore. This
31595             workaround ignores the forecolor.
31596
31597 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
31598
31599         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
31600           endian safe.
31601
31602 2005-11-07  Jackson Harper  <jackson@ximian.com>
31603
31604         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
31605
31606 2005-11-07  Jackson Harper  <jackson@ximian.com>
31607
31608         * ScrollableControl.cs: Calculate the maximum and change vars
31609         (more) correctly so that scrollbars appear as a sensible size.
31610
31611 2005-11-04  Jackson Harper  <jackson@ximian.com>
31612
31613         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
31614         collection.
31615         * TreeView.cs: When the tree is sorted null out the top_node so
31616         that it is recalculated.
31617         - Use dotted lines instead of dashed lines to match MS better.
31618
31619 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
31620
31621         * ListView.cs: 
31622           - Implements key search for items. Useful when browsing files with FileDialog
31623           - When changing view mode or when clear the items reset scrollbar positions
31624
31625 2005-11-04  Jackson Harper  <jackson@ximian.com>
31626
31627         * CurrencyManager.cs: Implement the MetaDataChanged event, the
31628         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
31629         as to what the method may do as there is no real way of creating a
31630         derived CurrencyManager and calling the method. 
31631
31632 2005-11-03  Jackson Harper  <jackson@ximian.com>
31633
31634         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
31635         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
31636         method which seems to just be used internally to refresh the tabs.
31637
31638 2005-11-03  Jackson Harper  <jackson@ximian.com>
31639
31640         * TabControl.cs: Implement the remove method. Fix some broken
31641         comments.
31642
31643 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31644
31645         * DateTimePicker.cs:
31646           - Added missing DateTimePickerAccessibleObject class
31647           - Added missing events
31648           - Added OnFontChanged method
31649         * Form.cs: Added missing attributes
31650         * TreeView.cs: Added missing attributes
31651
31652 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
31653
31654         * GridItemCollection.cs: Fix signatures
31655
31656 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31657
31658         * XplatUI.cs: Updated build rev/date
31659         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
31660           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
31661         * Application.cs: Trigger context-specific ExitThread events
31662
31663 2005-11-03  Jackson Harper  <jackson@ximian.com>
31664
31665         * Menu.cs:
31666         * MainMenu.cs:
31667         * GridTableStylesCollection.cs:
31668         * Timer.cs:
31669         * TabPage.cs:
31670         * HelpProvider.cs:
31671         * StatusBar.cs:
31672         * MonthCalendar.cs: Signature fixes
31673
31674 2005-11-03  Jackson Harper  <jackson@ximian.com>
31675
31676         * TreeNodeCollection.cs: Remove should not be virtual.
31677         * TreeView.cs: Implement the last of the missing methods.
31678
31679 2005-11-03  Jackson Harper  <jackson@ximian.com>
31680
31681         * TreeNodeConverter.cs: Implement to get off my class-status back.
31682
31683 2005-11-03  Jackson Harper  <jackson@ximian.com>
31684
31685         * TreeView.cs: Hookup the bits for drag and drop.
31686         * TreeNode.cs: Don't cache the tree_view or index anymore, now
31687         that nodes can be moved from tree to tree easily this just causes
31688         all sorts of problems.
31689         * TreeNodeCollection: Don't need to give treenodes an index and
31690         treeview anymore when they are added, these are computed on the
31691         fly. Also make sure to remove a node before its added.
31692
31693 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31694
31695         * TextControl.cs:
31696           - Added CaretSelection enum
31697           - Added comparison methods to Marker struct, makes selection code
31698             more readable
31699           - Added SelectionStart and SelectionEnd as 'moveable' location for
31700             the CaretDirection enum and handler
31701           - Added selection_prev variable to track optimized invalidation for
31702             word and line selection
31703           - Added SelectionVisible property (returns true if there is a valid 
31704             selection)
31705           - Switched CaretHasFocus to only display the caret if there is no
31706             visible selection
31707           - Avoiding StringBuilder.ToString to retrieve a single char, instead
31708             using the direct character index; should be much faster
31709           - Added various conditional debug statements
31710           - Fixed invalidation calculation for selection ranges
31711           - Added ExpandSelection() method to support word and line selection
31712           - Switched SetSelectionToCaret to use new Marker compare overloads
31713           - Added central IsWordSeparator() method to determine word 
31714             separators/whitespace and FindWordSeparator() to streamline common
31715             usage of IsWordSeparator()
31716         * TextBoxBase.cs:
31717           - Removed unneeded grabbed variable, it was just mirroring
31718             Control.Capture
31719           - No longer firing OnTextChanged event when Text setter is called,
31720             since the base will fire the event for us
31721           - Added handling of Ctrl-Up/Down selection
31722           - Added handling of Shift-Cursorkey selection
31723           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
31724             words
31725           - Added handling of Shift and Ctrl-Shift-Home/End selection
31726           - Removed some debug output
31727           - Added handling for single/double/tripple-click to place caret/
31728             select word/select line respectively (Fixes bug #76031)
31729           - Added support for drag expansion of word/line selection
31730         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
31731           current selection
31732
31733 2005-11-02  Jackson Harper  <jackson@ximian.com>
31734
31735         * X11Dnd.cs: If the drag is going to and from a MWF window just
31736         copy the data instead of sending it out through the X Selection
31737         mechanism.
31738
31739 2005-11-02  Jackson Harper  <jackson@ximian.com>
31740
31741         * X11Dnd.cs:
31742         * XplatUIX11.cs: When in a drag we don't want motion notify
31743         messages to get passed on to the other controls. This prevents
31744         mouse move messages from showing up in the drag source.
31745
31746 2005-11-02  Jackson Harper  <jackson@ximian.com>
31747
31748         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
31749         the correct button is release to end a drag.
31750         * XplatUIX11.cs: Make the button state internal so the drag system
31751         can access it.  Dragging needs to know about all button releases,
31752         not just left button.
31753
31754 2005-11-02  Miguel de Icaza  <miguel@novell.com>
31755
31756         * Form.cs (Icon): If the icon is null, reset the icon to the
31757         default value. 
31758
31759         * Cursor.cs: When writing the AND-mask bitmap do not include the
31760         number of colors, but hardcode those to two (black and white),
31761         fixes the loading of color cursors (Paint Dot Net).
31762
31763         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
31764         turn off autoscaling.
31765
31766         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
31767
31768 2005-11-02  Jackson Harper  <jackson@ximian.com>
31769
31770         * X11Dnd.cs: Make sure to send a status message if the pointer
31771         enters a control that can not accept a drop, otherwise the cursor
31772         isn't updated correctly. Also tried to compress the lines of code
31773         a bit.
31774
31775 2005-11-02  Jackson Harper  <jackson@ximian.com>
31776
31777         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
31778         set actions correctly.  This isn't perfect as XDND and win32 have
31779         some differences on how you allow actions. I'll clear this up by
31780         adding a path for drag from MWF to MWF windows.
31781         * XplatUIX11.cs: Hook into the dnd system.
31782
31783 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
31784
31785         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
31786         previously shown but they are no longer need it. Very obvious when 
31787         browsing files with FileDialog.
31788
31789 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
31790
31791         * Control.cs: We always need to call OnPaintBackground. We pretty much
31792           ignore AllPaintingInWmPaint and always do the painting there, whether 
31793           it's set or not, since we always ignore the WM_ERASEBKGND message 
31794           (which we don't generate on X11). This fixes #76616.
31795         * Panel.cs: Removed unneeded background painting. This happens properly
31796           in Control.cs already
31797
31798 2005-10-31  Mike Kestner  <mkestner@novell.com>
31799
31800         * Menu.cs: Add items to collection before setting their index.
31801         * MenuItem.cs : add range checking with ArgumentException like MS.
31802         [Fixes #76510]
31803
31804 2005-10-31  Jackson Harper  <jackson@ximian.com>
31805
31806         * ListBox.cs: Invalidate if the area is visible at all not just
31807         contained in the visible rect. Fixes unselection of semi visible
31808         items.
31809
31810 2005-10-31  Jackson Harper  <jackson@ximian.com>
31811
31812         * Control.cs: Consistently name the dnd methods. Make them
31813         internal so we can override them to match some MS behavoir
31814         internally.
31815         * Win32DnD.cs: Use the new consistent names.
31816
31817 2005-10-31  Jackson Harper  <jackson@ximian.com>
31818
31819         * TreeView.cs: Don't draw the selected node when we lose focus.
31820
31821 2005-10-31  Jackson Harper  <jackson@ximian.com>
31822
31823         * X11Dnd.cs: We still need to reset the state even though a full
31824         reset isn't being done, otherwise status's still get sent all over
31825         the place.
31826
31827 2005-10-31  Jackson Harper  <jackson@ximian.com>
31828
31829         * Control.cs: Make the dnd_aware flag internal so the dnd
31830         subsystem can check it. Catch exceptions thrown in dnd handlers to
31831         match MS behavoir.
31832         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
31833         * X11Dnd.cs: Handle null data in the converters. Set the XDND
31834         version when sending a XdndEnter. Use the control/hwnd dnd_aware
31835         flags to reduce the number of dnd enters/status's sent.
31836
31837 2005-10-31  Jackson Harper  <jackson@ximian.com>
31838
31839         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
31840
31841 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
31842
31843         * PictureBox.cs: Fixes 76512
31844
31845 2005-10-28  Jackson Harper  <jackson@ximian.com>
31846
31847         * X11Dnd.cs: Early implementation to support winforms being a drag
31848         source for data on X11. Also restructured the converters so they
31849         can go both ways now.
31850         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
31851         
31852 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
31853
31854         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
31855           clipboard requests
31856
31857 2005-10-27  Jackson Harper  <jackson@ximian.com>
31858
31859         * TreeNode.cs: Implement serialization so my DnD examples will work.
31860
31861 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
31862
31863         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
31864           TreeView.cs: Don't dispose objects that are not owned.
31865           
31866 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
31867
31868         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
31869           should retrieve the current cursor and report that, but XplatUI
31870           doesn't (yet) have an interface for that (and I'm not sure I even
31871           can, on X11)
31872         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
31873           until any message loop processing is done (and the WM_SETCURSOR
31874           replaces the cursor to the proper one)
31875         * XplatUIX11.cs: 
31876           - Fixed override behaviour, we can't set the cursor globally on X11, 
31877             just for our windows.
31878           - Invalidating the System.Drawing X11 display handle when we are
31879             shutting down
31880         * Control.cs: Fix to make csc happy
31881
31882 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
31883
31884         * TextBoxBase.cs: 
31885           - get_Text: Add last line (without trailing newline) to returned
31886             value (Fixes 76212)
31887           - get_TextLength: Count last line in returned length
31888           - ToString: Call Text property instead of duplicating code
31889
31890 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
31891
31892         * ImageList.cs: Dispose ImageAttributes objects.
31893
31894 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
31895
31896         * ImageList.cs: Use attribute constructors with less arguments where
31897           possible.
31898
31899 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
31900
31901         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
31902           Use typeof instead of strings when assembly is referenced. Added
31903           some more comments.
31904
31905 2005-10-21  Jackson Harper  <jackson@ximian.com>
31906
31907         * ListView.cs: Raise a double click event. Also tried to somewhat
31908         fix when the selectedindexchanged event is raised. Its still
31909         broken though.
31910
31911 2005-10-21  Jackson Harper  <jackson@ximian.com>
31912
31913         * TreeView.cs: New method to invalidate the plus minus area of a
31914         node without invalidating the whole node (maybe this can be used
31915         in some more places).
31916         * TreeNodeCollection.cs: When adding to an empty node we need to
31917         invalidate its plus minus area so the little block shows up.
31918         
31919 2005-10-21  Jackson Harper  <jackson@ximian.com>
31920
31921         * TreeView.cs: Make sure that when we invalidate a node the bounds
31922         are big enough to cover the selected box and the focus
31923         rectangle. Use a different colour for the lines connecting nodes
31924         so they show up with all themes.
31925
31926 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31927
31928         * NativeWindow.cs: Don't call anything that could call into the driver,
31929           we might be on a different thread.
31930
31931 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
31932
31933         * Control.cs(Dispose): Since Dispose might run on a different thread,
31934           make sure that we call methods that could call into the driver via
31935           invoke, to avoid thread issues
31936
31937 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31938
31939         * XplatUI.cs: Removed finalizer
31940         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
31941           not allowing to be called on the finalizer thread.
31942
31943 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
31944
31945         * ImageList.cs:
31946           - Reverted r51889 and r51891.
31947           - Added ImageListItem class that stores unmodified image items and image
31948             properties required to create list images until handle is created.
31949           - Added AddItem and moved image creation logic to AddItemInternal.
31950           - Added CreateHandle method that creates images based on unmodified items.
31951           - Added DestroyHandle that changes state to store unmodified items.
31952           - Add and AddStrip methods no more create handle.
31953           - ReduceColorDepth has no return value.
31954           - Dispose destroys handle.
31955           - Modified other methods to reflect the above changes.
31956           - Implemented key support.
31957           - Added profile 2.0 members and attributes.
31958           - Added private Reset and ShouldSerialize methods that provide the same
31959             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
31960             them as they are private.
31961           - Added some more comments about implementation details.
31962
31963 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31964
31965         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
31966
31967 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31968
31969         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
31970
31971 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31972
31973         * DataGridDrawingLogic.cs: Fixes column hit calcultation
31974         * DataGridColumnStyle.cs: Remove debug message
31975
31976 2005-10-20  Jackson Harper  <jackson@ximian.com>
31977
31978         * TreeView.cs: We can always get input keys regardless of whether
31979         or not editing is enabled. They are used for navigation.
31980
31981 2005-10-20  Jackson Harper  <jackson@ximian.com>
31982
31983         * TreeNode.cs: Use the viewport rect for determining if a node
31984         needs to be moved for visibility. Don't use Begin/End edit. This
31985         calls a full refresh when its done.
31986         * TreeView.cs: New SetBottom works correctly.  Make the viewport
31987         rect property internal so the treenodes can see it. When clicking
31988         on a node we need to ensure that its visible because it might just
31989         be partly visible when clicked.
31990
31991 2005-10-20  Jackson Harper  <jackson@ximian.com>
31992
31993         * TreeNodeCollection.cs: Remove debug code.
31994
31995 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31996
31997         * Datagrid.cs: Implements column sorting in Datagrid
31998         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
31999
32000 2005-10-20  Jackson Harper  <jackson@ximian.com>
32001
32002         * TreeNodeCollection.cs: Remove items properly. Update the correct
32003         area after removing them.
32004
32005 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
32006
32007         * Datagrid.cs: Should not call base.OnPaintBackground
32008
32009 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
32010
32011         * XplatUIX11.cs (GetMessage):
32012           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
32013             window instead of client window
32014           - Now properly calculates NC_xBUTTONUP message coordinates
32015           - ScreenToMenu now properly calculates it's coordinates of whole 
32016             window, since menus are in the whole window, not in the client
32017             window
32018           - Added WholeToScreen coordinate translation method
32019
32020 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
32021
32022         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
32023           want to return a message, loop back to the beginning of the function
32024           and grab the next real message to process instead.
32025
32026 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
32027
32028         * Splitter.cs: Properly set limits if no filler control is used
32029
32030 2005-10-19  Jackson Harper  <jackson@ximian.com>
32031
32032         * ColorDialog.cs: Don't show the help button if it is not enabled
32033         instead of disabling it (this is what MS does). Don't create the
32034         panel until the dialog is run, otherwise the vars (such as
32035         ShowHelp) are not set yet.
32036
32037 2005-10-19  Jackson Harper  <jackson@ximian.com>
32038
32039         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
32040         are reduced when adding nodes.
32041         * TreeNode.cs:
32042         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
32043         tree.
32044         
32045 2005-10-19  Jackson Harper  <jackson@ximian.com>
32046
32047         * FolderBrowserDialog.cs: End editing our treeview so the window
32048         actually gets refreshed.
32049
32050 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
32051
32052         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
32053           Obsoleted handling of WM_ERASEBKGND, now always draws our background
32054           inside of WM_PAINT
32055
32056 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
32057
32058         * MenuAPI.cs: Returns after Hidding window
32059         * XplatUIX11.cs: Added TODO found while debugging menu issues
32060
32061 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
32062
32063         * XplatUIX11.cs: Do not re-map the whole window when it's size
32064           becomes non-zero unless it's supposed to be actually visible
32065
32066 2005-10-18  Jackson Harper  <jackson@ximian.com>
32067
32068         * TreeView.cs: We don't need to keep a count anymore.
32069         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
32070         use the Grow method.
32071
32072 2005-10-18  Jackson Harper  <jackson@ximian.com>
32073
32074         * TreeNodeCollection.cs: Insert is not supported on arrays, so
32075         implement it manually here.
32076
32077 2005-10-18  Jackson Harper  <jackson@ximian.com>
32078
32079         * ImageList.cs: Dont kill the list when the colour depth is
32080         changed, just change the colour depth of all the images.
32081         - Same goes for setting the image size. Just resize them all
32082         instead of killing the list softly.
32083
32084 2005-10-18  Jackson Harper  <jackson@ximian.com>
32085
32086         * Control.cs: Don't invalidate empty rectangles.
32087
32088 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
32089
32090         * ListViewItem.cs:
32091           - Adds checked item to the Checked/Item lists (where empty before)
32092           - Do not add items to the Selected lists if they are already present
32093         * ListView.cs:
32094           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
32095           - When deleting items make sure that we delete them for the Selected
32096           and Checked list also.
32097
32098 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
32099
32100         * Label.cs: Dispose objects no longer used
32101         * ThemeWin32Classic.cs: Dispose objects no longer used
32102
32103 2005-10-18  Jackson Harper  <jackson@ximian.com>
32104
32105         * TabControl.cs: Don't refresh the whole control when the tabs are
32106         scrolled, we just need to refresh the tab area.
32107
32108 2005-10-17  Jackson Harper  <jackson@ximian.com>
32109
32110         * XplatUIX11.cs: Compress code a little bit. Only calculate the
32111         after handle when we need it.
32112
32113 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
32114
32115         * Control.cs: When the parent size changes, recalculate anchor 
32116           positions. Partial fix for #76462
32117
32118 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
32119
32120         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
32121           drawn. Fixes #76462
32122
32123 2005-10-17  Jackson Harper  <jackson@ximian.com>
32124
32125         * MonthCalendar.cs: Don't create the numeric up down until our
32126         handle is created. Otherwise our handle is created in the
32127         constructor and we don't know if we are a WS_CHILD or WS_POPUP
32128         yet.
32129
32130 2005-10-17  Jackson Harper  <jackson@ximian.com>
32131
32132         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
32133         correctly.
32134
32135 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32136         * TreeNode.cs : small logical fix (was using local var instead of field)
32137         
32138 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
32139
32140         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
32141
32142 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
32143
32144         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
32145
32146 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
32147
32148         * Control.cs: 
32149           - Re-implemented anchoring code. My first version was really broken.
32150             This fixes bug #76033. Unlike the previous implementation we will
32151             no longer have round errors since all numbers are calculated from
32152             scratch every time. Removed various anchor-related obsolete vars.
32153           - InitLayout no longer causes layout event firing and layout to be 
32154             performed
32155
32156 2005-10-16  Jackson Harper  <jackson@ximian.com>
32157
32158         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
32159         which was broken).
32160
32161 2005-10-16  Jackson Harper  <jackson@ximian.com>
32162
32163         * TabControl.cs: Remove debug code.
32164
32165 2005-10-16  Jackson Harper  <jackson@ximian.com>
32166
32167         * XEventQueue.cs: Increase the default queue size (very simple
32168         apps needed to grow the queue).
32169         * Hwnd.cs: No finalizer so we don't need to suppress
32170         finalization. Compute the invalid area manually so a new rectangle
32171         does not newto be created.
32172         * ScrollableControl.cs: Don't set any params (otherwise visibility
32173         isn't set correctly).
32174         * MdiChildContext.cs: New constructor takes the mdi parent so it
32175         doesn't have to be computed and avoids a crash on windows. Draw
32176         the window icon properly, and allow the text to be seen.
32177         * Form.cs: Use new MdiChildContext constructor. Make sure the
32178         child context isn't null in wndproc.
32179         * TabControl.cs: Don't set focus, this is muddling keyboard
32180         behavoir. Expand the tab rows when a window size increase will
32181         allow extra tabs to be seen. Don't allow tabs smaller than the
32182         width of a window to be scrolled out of view.
32183         * TreeNode.cs:
32184         * TreeView.cs: Use measure string to calculate a nodes width, the
32185         width is cached and only updated when the text or the font is
32186         changed. Don't check for expand/collapse clicks on the first level
32187         nodes if root lines are disabled.
32188         
32189 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
32190
32191         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
32192
32193 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
32194
32195         * DataGridBoolColumn.cs: fixes warning
32196
32197 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
32198
32199         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
32200         to match more to match more precisely the MS Net behavior
32201
32202 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
32203
32204         * Hwnd.cs: Added field to track if window is mapped
32205         * XplatUIX11.cs: 
32206           - Unmap windows if they become 0-size, re-map when 
32207             they are >0 again; fixes #76035
32208           - Re-set our error handler after initializing X11Desktop
32209             to override any error handlers Gtk or whatever was called
32210             may have set.
32211
32212 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
32213
32214         * CheckedListBox.cs: Removed unused vars
32215         * ListView.cs: Fixed signatures
32216         * RichTextBox.cs: Removed unused vars
32217         * TextBoxBase.cs: Removed unused vars
32218         * XplatUIWin32.cs: Removed unused vars
32219         * XplatUIX11.cs: Removed unused vars
32220         * XplatUI.cs: Updated version and date to latest published
32221
32222 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
32223
32224         * Cursor.cs: Added private .ctor to work around a bug in
32225           resourceset (Thanks to Geoff Norton for the help on this)
32226         * SplitterEventArgs.cs: Made fields accessible so we don't
32227           waste boatloads of objects and can reuse the same one
32228           in Splitter
32229         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
32230           any captions and borders when generating screen coordinates
32231         * Splitter.cs: Reimplemented control, now fully complete, uses
32232           rubberband drawing, supports and obeys all properties, has
32233           proper cursors
32234
32235 2005-10-13  Miguel de Icaza  <miguel@novell.com>
32236
32237         * Form.cs (Form): Setup default values for autoscale and
32238         autoscale_base_size;  Make these instance variables, not static
32239         variables. 
32240
32241         (OnLoad): on the first load, adjust the size of the form.
32242
32243 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
32244
32245         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
32246           width argument to DrawReversibleRectangle()
32247         * XplatUIWin32.cs, XplatUIX11.cs: 
32248           - Implemented width for DrawReversibleRectangle()
32249           - Added logic to DrawReversibleRectangle that recognizes a zero
32250             width or height and only draws a line in that situation
32251         
32252 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
32253
32254         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
32255         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
32256         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
32257           method (it uses our FosterParent window to get a graphics context)
32258
32259 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
32260
32261         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
32262           and SetWindowBackground methods
32263         * Control.cs:
32264           - Setting proper ControlStyles
32265           - We no longer call XplatUI.SetWindowBackground and XplatUI.
32266             EraseWindowBackground, instead we draw the window background
32267             ourselves in PaintControlBackground. This behaviour is
32268             required to match MS, where, when OnPaintBackground is not
32269             called, the background is not drawn.
32270           - Removed unneeded Refresh() in set_Text
32271         * Hwnd.cs: Dropped the ErasePending support. No longer needed
32272         * XplatUIX11.cs:
32273           - Created DeriveStyles method to translate from CreateParams to
32274             FormBorderStyle and TitleStyle, also handles BorderStyle (which
32275             matches FormBorderStyle enum values)
32276           - Consolidated SetHwndStyles and CalculateWindowRect border/title
32277             style calculations into single DeriveStyles method
32278           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
32279             from redrawing the whole window on any resize or expose.
32280           - Fixed CreateWindow usage of SetWindowValuemask. Before not
32281             all styles were applied to our whole/client window appropriately
32282           - Removed EraseWindowBackground() and SetWindowBackground() methods
32283           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
32284             no longer clear/redraw the background through X
32285           - Removed handling of erase_pending bit, we have no use for it (or
32286             so it seems)
32287         * XplatUIOSX.cs:
32288           - Removed generation and handling of WM_ERASEBKGND message
32289           - Removed EraseWindowBackground() and SetWindowBackground() methods
32290           - Removed handling of hwnd.ErasePending flag
32291         * XplatUIWin32.cs:
32292           - Removed EraseWindowBackground() and SetWindowBackground() methods
32293           - We no longer call EraseWindowBackground on PaintEventStart, we 
32294             ignore the fErase flag, erasing is handled in Control in the
32295             background handler
32296         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
32297           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
32298           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
32299           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
32300           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
32301           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
32302           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
32303
32304 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
32305
32306         * PropertyGrids.cs: Get sub properties
32307         * PropertyGridView.cs: Fix drawing code
32308
32309 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
32310
32311         * ListBox.cs: Fixes 76383
32312
32313 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
32314
32315         * DataGridTextBoxColumn.cs: Sets location and size before attachment
32316         * ThemeWin32Classic.cs: Fixes border drawing and calculations
32317         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
32318
32319
32320 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
32321
32322         * ComboBox.cs: Fixes border drawing
32323
32324 2005-10-10  Miguel de Icaza  <miguel@novell.com>
32325
32326         * MimeIcon.cs: Ignore errors if the file can not be read.
32327
32328 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
32329
32330         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
32331          - Fixed border calculations
32332          - Fixed horizontal scrolling in single column listboxes
32333          - Fixed drawing issues
32334
32335 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
32336
32337         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
32338           FormBorderStyle enum
32339         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
32340           code to determine FormBorderStyles from CreateParams
32341         * Form.cs:
32342           - Fixed bug where we'd set the wrong window styles if we were
32343             not creating an MDI window
32344           - Added call to XplatUI.SetBorderStyle when form borders are set
32345         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
32346         * Hwnd.cs:
32347           - Removed obsolete edge style
32348           - Switched from BorderStyle to FormBorderStyle
32349         
32350 2005-10-10  Jackson Harper  <jackson@ximian.com>
32351
32352         * Form.cs: Use the property to get the window handle instead of
32353         accessing it directly. Prevents a null reference exception.
32354
32355 2005-10-10  Jackson Harper  <jackson@ximian.com>
32356
32357         * TreeView.cs: Don't adjust the rect given to DrawString now that
32358         our libgdiplus draws correctly.
32359
32360 2005-10-08  Jackson Harper  <jackson@ximian.com>
32361
32362         * TreeView.cs: Don't try to find the clicked on node if there are
32363         no nodes in the tree.
32364
32365 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
32366
32367         * RichTextBox.cs:
32368
32369           restore
32370
32371 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
32372
32373         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
32374           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
32375           ErrorProvider.cs:
32376           Use ResPool for brushes and dispose System.Drawing objects that
32377           are not used anymore.
32378
32379 2005-10-07  Jackson Harper  <jackson@ximian.com>
32380
32381         * MdiChildContext.cs: Use the new borders instead of drawing them
32382         ourselves.
32383
32384 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
32385
32386         * Calling UpdateBounds after changing the window's BorderStyle 
32387         since the style can change the ClientSize
32388
32389 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32390
32391         * Control.cs: Made PaintControlBackground virtual
32392         * Panel.cs: Overriding PaintControlBackground instead of using paint
32393           event; paint event method was interfering with 'real' users of the
32394           event.
32395
32396 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
32397
32398         * ThemeWin32Classic.cs: remove border drawing since it is handled
32399         by the base control class now and was causing double border drawing.
32400
32401 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32402
32403         * Panel.cs: Redraw our background on paint. Not a pretty solution,
32404           but it does seem to match MS behaviour. This fixes bug #75324
32405
32406 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32407
32408         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
32409           somewhat hackish looking
32410
32411 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
32412
32413         * TextBoxBase.cs:
32414           - We now accept Enter even if AcceptEnter is false, if the containing
32415             form does not have an AcceptButton configured (fixes bug #76355)
32416           - Calculations are now fixed to no longer use Width/Height, but
32417             ClientSize.Width/Height, since we now support borders (this was
32418             a result of fixing borders and therefore bug #76166)
32419           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
32420             true (fixes bug #76354)
32421         
32422 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32423
32424         * Control.cs: 
32425           - Defaulting BorderStyle and setting it in XplatUI when our window 
32426             is created
32427           - Added enum check to InternalBorderStyle setter
32428         * XplatUIX11.cs: 
32429           - Added drawing of window borders
32430           - Now properly calculates WM decorations offset for toplevel 
32431             windows (fixes bug #74763)
32432         * XplatUIWin32.cs: 
32433           - Implemented BorderStyles for windows (we're letting win32 draw 
32434             the border for us)
32435           - Fixed the signature for SetWindowLong
32436         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
32437           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
32438           setting borders
32439         * UpDownBase.cs: Remove drawing of borders, this is handled by
32440           the driver, outside the client area
32441         * ListView.cs: Removed bogus border calculations. The control should
32442           be oblivious to borders, since those are not part of the client
32443           area. 
32444         * X11DesktopColors.cs: Commented out (currently) unneeded variables
32445         * ThemeWin32Classic.cs: Removed border calculations from ListView 
32446           drawing code
32447
32448 2005-10-06  Jackson Harper  <jackson@ximian.com>
32449
32450         * MdiChildContext.cs: Clear out the old virtual position remove
32451         all the unneeded calls to CreateGraphics.
32452
32453 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
32454
32455         * TextControl.cs: Use proper color for highlighted text; fixes #76350
32456
32457 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
32458
32459         * Form.cs: 
32460           - Added loading and setting of our new default icon
32461           - Only set icon if window is already created
32462
32463 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32464
32465         * Label.cs:
32466           - Do not explicitly set the foreground and background colors, to
32467             allow inheriting from parents (fixes #76302)
32468           - Use Control's InternalBorderStyle property to deal with borders
32469
32470 2005-10-06  Jackson Harper  <jackson@ximian.com>
32471
32472         * MdiChildContext.cs: Use the new xplatui function to draw a
32473         reversible rect.
32474
32475 2005-10-06  Jackson Harper  <jackson@ximian.com>
32476
32477         * Form.cs: Add the parent before creating the child context cause
32478         we need the parent when setting up the child.
32479
32480 2005-10-06  Jackson Harper  <jackson@ximian.com>
32481
32482         * FolderBrowserDialog.cs: redo the tree population code so a
32483         second thread isn't used. Should be a lot faster and more stable
32484         now.
32485
32486 2005-10-05  Jackson Harper  <jackson@ximian.com>
32487
32488         * TreeView.cs: There are no expand/collapse boxes if the node has
32489         no children.
32490
32491 2005-10-05  Jackson Harper  <jackson@ximian.com>
32492
32493         * X11DesktopColors.cs: Get menu colours for the gtk theme.
32494
32495 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
32496
32497         * FileDialog.cs: Fix InitialDirectory
32498
32499 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
32500
32501         * ComboBox.cs:
32502                 - Fixes changing between styles
32503                 - Fixes simple mode
32504                 - Fixes last item crashing when navigating with keyboard
32505
32506 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
32507
32508         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
32509
32510 2005-10-05  Jackson Harper  <jackson@ximian.com>
32511
32512         * TreeView.cs: If updating the root node do a full refresh.
32513         * TreeNode.cs: The root node should be expanded by default. Also
32514         added a utility prop to tell if we are the root node.
32515         * TreeNodeCollection.cs: Only refresh if the node we are being
32516         added to is expanded. Also added a comment on a potential
32517         optimization.
32518         
32519 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
32520
32521         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
32522           in dispose method. Fixes #76330
32523
32524 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
32525
32526         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
32527
32528                 - Implements vertical and horizontal scrolling using XplatUI
32529                 - Fixes keyboard navagation
32530                 - Fixes EnsureVisible
32531                 - Drawing fixes
32532                 - Handles and draws focus properly
32533
32534
32535 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
32536
32537         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
32538           Create handle. NET_2_0: Destroy handle when value is null.
32539
32540 2005-10-03  Jackson Harper  <jackson@ximian.com>
32541
32542         * ScrollBar.cs: My last scrollbar patch was broken. This is a
32543         revert and a new patch to prevent the thumb from refreshing so
32544         much.
32545
32546 2005-10-02  Jackson Harper  <jackson@ximian.com>
32547
32548         * ScrollBar.cs: Don't update position if it hasn't actually
32549         changed. This occurs when you hold down the increment/decrement
32550         buttons and the thumb gets to the max/min.
32551
32552 2005-10-01  Jackson Harper  <jackson@ximian.com>
32553
32554         * Form.cs:
32555         * MdiChildContext.cs:
32556         * MdiClient.cs: Implement ActiveMdiChild in Form.
32557
32558 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
32559
32560         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
32561
32562 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
32563
32564         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
32565           be found
32566
32567 2005-09-30  Jackson Harper  <jackson@ximian.com>
32568
32569         * ListBox.cs: Don't do a full refresh unless some data has
32570         actually changed.
32571
32572 2005-09-30  Jackson Harper  <jackson@ximian.com>
32573
32574         * TreeView.cs: Make sure that the checkboxes size is factored in
32575         even when not visible.
32576
32577 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
32578
32579         * FileDialog.cs: Fix Jordi's build break
32580
32581 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
32582
32583         * FileDialog.cs: 
32584                 - Use standard the Windows colours for the combobox as espected
32585                 - Dispose objects that use resouces when no longer need them
32586
32587 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
32588
32589         * X11DesktopColors.cs: Initial incomplete implementation
32590         * XplatUIX11.cs: Added call to initialize X11DesktopColors
32591
32592 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
32593
32594         * Theme.cs: 
32595           - Switched Theme color names to match the names defined in 
32596             System.Drawing.KnownColors. Life's hard enough, no need to make 
32597             it harder.
32598           - Added setters to all theme color properties so themes can set
32599             their color schemes. The setters also propagate the color changes
32600             to System.Drawing.KnownColors via reflection
32601         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
32602           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
32603           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
32604           use the new, more logical theme color names
32605         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
32606           post-NT colors
32607         * ThemeWin32Classic.cs:
32608           - Removed code to set the old classic Windows colors. Instead it
32609             now relies on the colors returned by System.Drawing.KnownColors
32610             which will be either modern static colors (Unix) or colors
32611             read from the user's configuration (Win32)
32612           - Updated to use the new, more logical theme color names
32613           - Switched DataGrid drawing code to use only Theme colors instead of
32614             a mix of System.Drawing.KnownColors and Theme colors
32615           - DrawFrameControl(): Removed code that fills the button area, the
32616             fill would overwrite any previous fill done by a control. This
32617             fixes bug #75338 
32618           - Added DrawReversibleRectangle() stub
32619         * ScrollableControl.cs: Set visible state to false when scrollbars
32620           are removed (pdn fix)
32621         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
32622           DrawReversibleRectangle() method to allow drawing primitive 
32623           'rubber bands'
32624         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
32625
32626 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32627
32628         * ImageList.cs: Add(Icon): Create handle.
32629
32630 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
32631
32632         * ListView.cs:
32633         * ThemeWin32Classic.cs:
32634                 - Fixes detail mode
32635                 - Sets clippings
32636                 - Issues with drawing
32637
32638 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32639
32640         * ImageList.cs: Moved RecreateHandle back to ImageList as event
32641           source has to be the ImageList.
32642
32643 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32644
32645         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
32646
32647 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32648
32649         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
32650
32651 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32652
32653         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
32654
32655 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
32656         * GridItem.cs: Fixed TODOs
32657         * GridItemCollection.cs: Added ICollection interface
32658
32659 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32660
32661         * ImageList.cs: Resize icons when needed.
32662
32663 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
32664
32665         * ListViewItem.cs
32666                 - Fixes GetBounds and returns on screen rects
32667         * ListView.cs:
32668                 - Fixes vertical and horzintal scrolling of items
32669         * ThemeWin32Classic.cs:
32670                 - Fixes drawing
32671                 
32672 2005-09-29  Raja R Harinath  <harinath@gmail.com>
32673
32674         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
32675
32676 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
32677
32678         * ImageList.cs: Added comments about handle creation. Moved Handle,
32679           HandleCreated and OnRecreateHandle implementations to ImageCollection.
32680           Handle is created in Add methods.
32681
32682 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32683          
32684         * DataGridDrawingLogic.cs: 
32685                 - Takes rows into account on Colum calculations
32686                 - Returns the column when clickig
32687         * DataGrid.cs:
32688                 - Fixes default HitTestInfo values
32689                 - Fixes HitTestInfo.ToString
32690                 - Fixes ResetBackColor          
32691         
32692 2005-09-28  Jackson Harper  <jackson@ximian.com>
32693
32694         * MdiChildContext.cs: Obey rules for fixed sized windows (no
32695         sizing or cursor changes). Also added some temp code to draw the
32696         titlebars text (Makes dev a little easier).
32697
32698 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32699
32700         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
32701
32702 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32703          
32704         * ListBox.cs: Fixes bug 76253
32705
32706 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32707
32708         * ImageList.cs: Added comments about the current implementation. Added
32709           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
32710           Format32bppArgb to preserve transparency and can use Graphics.FromImage
32711           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
32712           with Bitmap.LockBits for better performance. Revised the whole file to
32713           match MS.NET behaviour and provide better performance. Non-public
32714           interface members are calling public members even when they throw
32715           NotSupportedException for better maintainability. Moved ColorDepth,
32716           ImageSize, ImageStream and TransparentColor implementations to
32717           ImageCollection for better performance as these properties are not used
32718           by ImageList.
32719         * ImageListStreamer.cs: Added a new internal constructor that takes an
32720           ImageList.ImageCollection and serializes Images based on
32721           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
32722           match ImageList property name.
32723
32724 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
32725
32726         * ListBox.cs: Fixes IndexFromPoint for last item
32727
32728 2005-09-27  Jackson Harper  <jackson@ximian.com>
32729
32730         * Form.cs: Set the position of new mdi children correctly.
32731
32732 2005-09-27  Jackson Harper  <jackson@ximian.com>
32733
32734         * MdiClient.cs: New mdi children need to be added to the back of
32735         the controls collection so the zorder is set correctly. Also add a
32736         count of all the child windows that have been created.
32737
32738 2005-09-27  Jackson Harper  <jackson@ximian.com>
32739
32740         * Form.cs (CreateParams): Setup MDI forms correctly.
32741
32742 2005-09-27  Jackson Harper  <jackson@ximian.com>
32743
32744         * MdiChildContext.cs:
32745         * MonthCalendar.cs:
32746         * UpDownBase.cs:
32747         * ListBox.cs:
32748         * ListView.cs:
32749         * TextBoxBase.cs:
32750         * TreeView.cs:
32751         * ScrollableControl.cs:
32752         * ComboBox.cs: Add implicit controls using the new implict control
32753         functionality in ControlCollection. Also try to block multiple
32754         control add in a suspend/resume layout to save some cycles.
32755         
32756 2005-09-27  Jackson Harper  <jackson@ximian.com>
32757
32758         * Control.cs: Add functionality to the controls collection to add
32759         'implicit controls' these are controls that are created by the
32760         containing control but should not be exposed to the user. Such as
32761         scrollbars in the treeview.
32762         * Form.cs: The list var of the ControlsCollection is no longer
32763         available because of the potential of implicit controls getting
32764         ignored by someone accessing the list directly.
32765
32766 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
32767
32768         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
32769           loose it's parent. (Fixed bug introduced in r49103 when we added
32770           setting the child parent to null on Remove)
32771
32772 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
32773
32774         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
32775         * Splitter.cs: Added missing attributes for BorderStyle property.
32776         * TextBoxBase.cs: Marked Calculate* methods internal.
32777         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
32778         MS.NET.
32779
32780 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
32781          
32782         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
32783
32784 2005-09-25  Jackson Harper  <jackson@ximian.com>
32785
32786         * TreeView.cs: Update the node bounds correctly regardless of
32787         whether the node is visible.
32788
32789 2005-09-25  Jackson Harper  <jackson@ximian.com>
32790
32791         * ImageList.cs: Don't dispose the image after it is added to the
32792         image list. Only reformat images that need to be resized.
32793
32794 2005-09-25  Jackson Harper  <jackson@ximian.com>
32795
32796         * ImageList.cs: Don't set the format when changing the image.
32797
32798 2005-09-25  Jackson Harper  <jackson@ximian.com>
32799
32800         * TreeView.cs: We can't just assume the node has a font. Use the
32801         treeviews font if no node font is available.
32802
32803 2005-09-25  Jackson Harper  <jackson@ximian.com>
32804
32805         * TreeView.cs: Allow the scrollbars to be reset with negative
32806         values.
32807         - Don't add scrollbars to negative sized windows.
32808
32809 2005-09-23  Jackson Harper  <jackson@ximian.com>
32810
32811         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
32812         old Mono.Posix. Also remove some stray code that shouldn't have
32813         been committed.
32814
32815 2005-09-23  Jackson Harper  <jackson@ximian.com>
32816
32817         * TreeView.cs: Attempt at proper sizing of the horizontal
32818         scrollbar. Also don't resize the scrollbars unless they are
32819         visible.
32820
32821 2005-09-23  Jackson Harper  <jackson@ximian.com>
32822
32823         * TreeView.cs: We don't need to expand the invalid area when the
32824         selection changes, as this is all drawn in the node's bounding
32825         box. The area needs to be expanded (previous typo was contracting
32826         it) when the focus rect moves.
32827
32828 2005-09-23  Jackson Harper  <jackson@ximian.com>
32829
32830         * TreeView.cs: Display the selection box under the correct
32831         circumstances. We were rendering white text with no selection box
32832         before.
32833
32834 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
32835
32836         * TextControl.cs(Split): Now updates selection start/end if it points 
32837           into a line that's being split. Fixes a FIXME and bug #75258
32838
32839 2005-09-23  Jackson Harper  <jackson@ximian.com>
32840
32841         * Binding.cs:
32842         * ListControl.cs: Don't use the path when retrieving binding
32843         managers from the binding context. My bat sense tells me that the
32844         path is only used on insertion.
32845
32846 2005-09-22  Jackson Harper  <jackson@ximian.com>
32847
32848         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
32849
32850 2005-09-22  Jackson Harper  <jackson@ximian.com>
32851
32852         * Splitter.cs: There are special cursors used for splitting.
32853         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
32854
32855 2005-09-22  Jackson Harper  <jackson@ximian.com>
32856
32857         * Splitter.cs: Change the cursor appropriately when the splitter
32858         is moused over, so the user actually knows there is a splitter
32859         there.
32860
32861 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32862
32863        * Label.cs : Fix ToString method to give same output as MS.NET
32864
32865 2005-09-22  Jackson Harper  <jackson@ximian.com>
32866
32867         * TreeView.cs: Create the scrollbars when the handle is created
32868         and add them right away, just make them invisble. Also account for
32869         the window being shrunk vertically to the point that the vert
32870         scrollbar needs to be added.
32871         - Remove some 0.5 adjustments to get around anti aliasing issues.
32872         
32873 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
32874          
32875         * MainMenu.cs: Fixes default value
32876         * MenuItem.cs: Fixes default value
32877
32878 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
32879
32880         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
32881
32882 2005-09-21  Jackson Harper  <jackson@ximian.com>
32883
32884         * Control.cs: Don't try to set the border style on the window if
32885         it hasn't been created. When the window is created the border
32886         style will be used.
32887
32888 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32889
32890         * Control.cs (Update): Don't call XplatUI if we don't have a
32891           window handle yet
32892
32893 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32894
32895         * ContainerControl.cs: Instead of throwing an exception, print
32896           a one-time warning about Validate not being implemented
32897         * XplatUIWin32.cs: Removed debug output
32898
32899 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32900
32901         * Control.cs: Only set XplatUI background if we expect the windowing
32902           system to handle the background. This stops controls that draw their
32903           own background from flickering
32904
32905         * XplatUIX11.cs: Support custom visuals and colormaps for window 
32906           creation. This allows, amongst other things, using MWF X11 windows 
32907           with OpenGL.
32908
32909 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32910
32911         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
32912           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
32913           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
32914           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
32915           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
32916           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
32917           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
32918           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
32919           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
32920           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
32921           GridColumnStylesCollection.cs, 
32922           IDataGridColumnStyleEditingNotificationService.cs,
32923           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
32924           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
32925           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
32926           TreeNodeCollection.cs, AmbientProperties.cs, 
32927           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32928           DataObject.cs, ErrorProvider.cs, Splitter.cs,
32929           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
32930           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
32931           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
32932           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
32933           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
32934           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
32935           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
32936           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
32937           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
32938           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
32939           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
32940           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
32941           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
32942           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
32943           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
32944           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
32945           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
32946           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
32947           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
32948           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
32949           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
32950           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
32951           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
32952           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
32953           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
32954           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
32955           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
32956           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
32957           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
32958           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
32959           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
32960           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
32961           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
32962           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
32963           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
32964
32965 2005-09-21  Jackson Harper  <jackson@ximian.com>
32966
32967         * TreeNode.cs: Call Before/After Expand not Collapse when
32968         expanding.
32969
32970 2005-09-20  Jackson Harper  <jackson@ximian.com>
32971         
32972         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
32973
32974 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32975          
32976         * ListViewItem.cs:
32977                 - Fixes bug 76120
32978                 - Fixes proper storing of subitems
32979                 - Fixes not updated items
32980
32981 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
32982
32983         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
32984           things if our window handle isn't created yet. Also disabled 
32985           debug for TextBoxBase
32986
32987 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
32988
32989         * MenuAPI.cs: Remove filtering of events to allow menu usage
32990
32991 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32992
32993         * Cursor.cs: Allow null to be passed to Cursor.Current.
32994
32995 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
32996
32997         * ThemeWin32Classic.cs:
32998           - Change some private methods/fields to protected virtual so that 
32999             they can be accessed and overriden in derived classes
33000           - First refactoring of some methods. Derived themes now don't 
33001             need to duplicate the complete code from ThemeWin32Classic
33002         * ThemeNice.cs:
33003           - Added nice StatusBar
33004           - Derive from ThemeWin32Classic and not Theme
33005           - Removed duplicate ThemeWin32Classic code
33006
33007 2005-09-20  Miguel de Icaza  <miguel@novell.com>
33008
33009         * Control.cs (ControlCollection.Add): If the value null is passed
33010         the control is ignored. 
33011
33012         Optimize this loop.
33013
33014 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
33015
33016         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
33017           PostQuitMessage state.
33018         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
33019
33020 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
33021
33022         * Application.cs: Our constructor will never get called, move 
33023           initialization to fields; fixes bug #75933
33024
33025 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
33026
33027         * FileDialog.cs :
33028                 - Allow files to be selected properly using file name
33029                 combo box.
33030                 - Add ability to change diretory (absolute / relative)
33031                 using file name combo box.
33032
33033 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
33034          
33035         * ListBox.cs: 
33036                 - Fixes Multicolumn listboxes item wrong calculations
33037                 - Allows to click when only one item is in the listbox
33038                 - Fixes crash when no items using keyboard navigation
33039
33040 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
33041
33042         * ComboBox.cs: Reverted almost everything from the latest patch which
33043           broke ComboBox
33044
33045 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
33046         
33047         * ToolTip.cs:
33048                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
33049         * ComboBox.cs:
33050                 - When DropDownStyle is Simple, it does not show scrollbar 
33051                 to the last item of the list.
33052                 - When DropDownStyle is Simple, it crashed when the list was 
33053                 scrolled down with the down cursor key.
33054                 - Fixed a bug that when DropDownStyle is DropDownList, the 
33055                 selected item was not shown.
33056                 - The position of the selected item was not preserved when 
33057                 the next dropdown happened.
33058         * ThemeWin32Classic.cs:
33059                 - Items were wrapped at the right end.
33060         * CheckedListBox.cs:
33061                 - Fixed Add method
33062         * ListBox.cs:
33063                 - Items should be fully shown.
33064                 - When resizing and vertical scrollbar disappeared, the item 
33065                 of index 0 should be on the top of the list.
33066                 - GetItemRectangle should consider the size of ver. scrollbar
33067         * StatusBar.cs:
33068                 - SizingGrip area should not be allocated when it is not 
33069                 displayed.
33070                 - Now it reflects MinWidth of the containing panel and 
33071                 fixed a crash that happens when its width becomes so small.
33072
33073 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
33074
33075         * CheckedListBox.cs: Fixes bug 76028
33076         * ListBox.cs: Fixes bug 76028
33077
33078 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
33079
33080         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
33081         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
33082
33083 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
33084
33085         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
33086
33087 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
33088
33089         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
33090
33091 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
33092
33093         * IRootGridEntry.cs: Added
33094         * PropertyGridCommands.cs: Added
33095         * PropertiesTab.cs: Added missing methods and property
33096         * PropertyGridView.cs: Made class internal
33097         * PropertyGridTextBox.cs: Made class internal
33098
33099 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
33100
33101         * MimeIcon.cs: Try to check some other environment variables
33102           if "DESKTOP_SESSION" returns "default"
33103
33104 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
33105
33106         * ThemeNice.cs: Corrected background colors (e.g. menus)
33107         * ColorDialog.cs: Use correct background colors for controls
33108
33109 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
33110
33111         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
33112
33113 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
33114
33115         * RichTextBox.cs: Added initial implementation
33116         * lang.cs: Removed. Was accidentally checked in long time ago
33117         * TODO: Removed. Contents were obsolete
33118
33119 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
33120                                                                                 
33121         * PropertiesTab.cs : Added
33122
33123 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
33124                                                                                 
33125         * PropertyGrid.cs : Update
33126         * PropertyGridView.cs : Update
33127         * System.Windows.Forms.resx : Added images and strings
33128
33129 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
33130
33131         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
33132  
33133 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
33134
33135         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
33136           a busy loop right after the Ungrab the X11 display is otherwise 
33137           blocked
33138
33139 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
33140
33141         * ThemeWin32Classic.cs: Optimise the use of clipping
33142
33143 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
33144
33145         * DataGrid.cs: fixes recursion bug
33146
33147 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
33148
33149         * ThemeNice.cs: 
33150           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
33151           - Cleanup
33152
33153 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
33154
33155         * ThemeNice.cs: Draw nice ProgressBars
33156
33157 2005-09-01  Miguel de Icaza  <miguel@novell.com>
33158
33159         * VScrollBar.cs: Another buglet found by Aaron's tool. 
33160
33161         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
33162         bug finder.
33163
33164 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
33165
33166         * ThemeNice.cs:
33167           - Added nicer menu drawing
33168           - Updated DrawTab
33169           - some refactoring
33170
33171 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
33172
33173         * CreateParams.cs (ToString): Made output match MS
33174         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
33175             handle is already created (to avoid forcing window creation)
33176         * XplatUIX11.cs: Set window text to caption after creating window,
33177           in case Text was set before window was created
33178         * Form.cs: Use this.Text instead of a static string as caption
33179
33180 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
33181
33182         * NotifyIcon.cs: Don't set the window to visible; this screws
33183           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
33184           OnPaint without a bitmap)
33185         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
33186           happen very often anyway; we could add the check to the WM_PAINT 
33187           event generation code
33188
33189 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
33190
33191         * NotifyIcon.cs: Fill the icon area with a background color, to 
33192           avoid 'residue' when transparent icons are drawn
33193         * XplatUIX11.cs:
33194           - Handle whole_window == client_window when destroying windows
33195           - SystrayAdd(): Set client_window to whole_window value to
33196             get mouse and other events passed to NotifyIcon
33197
33198 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
33199
33200         * Form.cs: Set proper default for Opacity property
33201         * NotifyIcon.cs:
33202           - ShowSystray(): Don't bother creating telling the OS
33203             about the systray item if no icon is provided
33204           - Now handles WM_NCPAINT message to deal with whole/client window
33205             split
33206           - Create window as visible to not get caught by Expose optimization
33207         * Hwnd.cs: Removed debug message
33208         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
33209           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
33210             PaintEventStart/End to use new client argument
33211         * TextBoxBase.cs:
33212           - Commented out debug messages
33213           - Switched PaintEventStart/End to use new client argument
33214         * XplatUI.cs: Added client window bool to PaintEventStart()/
33215           PaintEventEnd() calls, to support drawing in non-client areas
33216         * XplatUIDriver.cs: 
33217           - Added client window bool to PaintEventStart()/PaintEventEnd() 
33218             calls, to support drawing in non-client areas
33219           - Added conditional compile to allow using MWF BeginInvoke 
33220             on MS runtime
33221         * XplatUIX11.cs:
33222           - Added some conditional debug output
33223           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
33224             whole/client window split
33225           - Implemented handling of client argument to PaintEventStart()/End()
33226         * Control.cs:
33227           - Throw exception if BeginInvoke() is called and the window handle
33228             or one of the window's parent handles is not created
33229           - Added conditional compile to allow using MWF BeginInvoke on
33230             MS runtime
33231           - get_Parent(): Only sets parent if handle is created. This avoids
33232             forcing window handle creation when parent is set.
33233           - Now fires Layout and Parent changed events in proper order
33234           - Switched to use Handle instead of window.Handle for Z-Order setting,
33235             the get_Parent() patch above causes us to possibly get null for 'window'
33236           - Implemented handling of client argument to PaintEventStart()/End()
33237           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
33238             default handling)
33239           - Now sends a Refresh() to all child windows when Refresh() is called
33240
33241 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
33242
33243         * Form.cs: Added (non-functional) Opacity property
33244         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
33245
33246 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
33247         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
33248           use export MONO_THEME=nice to activate it.
33249           Currently supported controls:
33250           - Button
33251           - ComboBox
33252           - ScrollBar
33253           - TabControl (TabAlignment.Top only, other will follow)
33254         * ThemeEngine.cs: Add theme nice
33255         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
33256           if enabled
33257
33258 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
33259
33260         * Splitter.cs: Resize docked control and its neighbor.
33261
33262 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
33263         -- Making Windows with Menus layout correctly --
33264         * Form.cs : The first leg of the fix
33265                 Menu setter - adjust Client Size as needed to make space for the menu
33266                 SetClientSizeCore - doesn't call base version to be able to pass the 
33267                         menu handle to XplatUI.CalculateWindowRect
33268         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
33269         * XplatUIX11.cs: The critical second leg of the fix
33270                 GetWindowPos needs to use a recalculated client_rect
33271                 so that resizing the window doesn't break layout of child controls. 
33272                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
33273                 Lots of \t\n killed
33274
33275 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
33276
33277         * Label.cs: Now properly recalculates width and height on Font and Text
33278           changes if AutoSize is set
33279
33280 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
33281         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
33282
33283 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
33284
33285         * ImageList.cs: Makes ToString method compatible with MS
33286
33287 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
33288
33289         * MenuAPI.cs: fixes bug 75716
33290
33291 2005-08-11 Umadevi S <sumadevi@novell.com>
33292         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
33293
33294 2005-08-11 Umadevi S <sumadevi@novell.com>
33295         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
33296
33297 2005-08-10  Umadevi S <sumadevi@novell.com>
33298         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
33299
33300 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
33301
33302         * Menu.cs: fixes bug 75700
33303         * MenuAPI.cs: fixes navigation issues
33304
33305 2005-08-09  Umadevi S <sumadevi@novell.com>
33306         * CheckedListBox.cs - simple fix for GetItemChecked.
33307
33308 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
33309
33310         * ComboBox.cs: Serveral fixes
33311         * ListBox.cs: Serveral fixes
33312
33313 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
33314
33315         * ComboBox.cs: Fixes FindString methods and GetItemHeight
33316         * ListBox.cs: Fixes FindString methods
33317
33318 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
33319
33320         * DataGrid.cs: fixes bugs exposed by new tests
33321
33322 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
33323
33324         * Mime.cs: Compile Mono assembly references only if compiling
33325           with Mono (Allows to build with VS.Net again)
33326
33327 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
33328
33329         * Control.cs (PaintControlBackground): Draw background image
33330         corrrectly.
33331         (CheckForIllegalCrossThreadCalls): Stubbed.
33332         
33333         * Form.cs (OnCreateControl): Center when should be centered.
33334         
33335         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
33336
33337 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
33338
33339         * Binding.cs: Binding to properties should be case unsensitive
33340
33341 2005-07-18 vlindos@nucleusys.com
33342
33343         * DataGrid.cs: fixes setmember order
33344
33345 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
33346
33347         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
33348         * FileDialog.cs: FileDialog is now resizable and uses the new
33349           MimeIconEngine
33350
33351 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
33352
33353         * DataGridTextBoxColumn.cs: default value
33354         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
33355         * GridTableStylesCollection.cs: fixes checking MappingName
33356         * DataGridDrawingLogic.cs: fixes drawing logic issues
33357         * DataSourceHelper.cs: rewritten to make compatible with more data sources
33358         * DataGrid.cs: fixes    
33359
33360 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
33361
33362         * MimeGenerated.cs: Use case sensitive comparer for
33363           NameValueCollections
33364
33365 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
33366
33367         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
33368         * ThemeWin32Classic.cs: bug fixes, code refactoring
33369         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
33370         * DataGrid.cs: bug fixes, code refactoring
33371         * DataGridTextBox.cs: bug fixes, code refactoring
33372         * DataGridColumnStyle.cs:  bug fixes, code refactoring
33373         * Theme.cs:  bug fixes, code refactoring
33374
33375 2005-07-01  Peter Bartok  <pbartok@novell.com> 
33376
33377         * TextControl.cs: Quick fix for the reported crash on ColorDialog
33378           and other text box usage
33379
33380 2005-07-01  Jackson Harper  <jackson@ximian.com>
33381
33382         * TabControl.cs: Make sure the bottom of the tab covers the pages
33383         border.
33384
33385 2005-06-30  Peter Bartok  <pbartok@novell.com> 
33386
33387         * Form.cs (ShowDialog): Assign owner of the dialog
33388         * TextBoxBase.cs: Always refresh caret size when deleting, caret
33389           might have been moved to a tag with different height
33390
33391 2005-06-30  Jackson Harper  <jackson@ximian.com>
33392
33393         * Form.cs: Don't create an infinite loop when setting focus
33394         * MenuItem.cs: Don't dirty the parents if we don't have any
33395
33396 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
33397
33398         * LibSupport.cs: Rename
33399
33400 2005-06-29  Peter Bartok  <pbartok@novell.com>
33401
33402         * TextBoxBase.cs: Re-align caret after deleting a character
33403         * TextControl.cs:
33404           - DeleteChars(): Ensure that tag covers the provided position
33405           - StreamLine(): Drop reference for dropped tag
33406
33407 2005-06-29  Peter Bartok  <pbartok@novell.com> 
33408
33409         * TextControl.cs: 
33410           - Selections now work properly, anchoring at the initial location
33411             and properly extending in either direction (SetSelectionToCaret(),
33412             SetSelectionStart() and SetSelectionEnd())
33413           - No longer redraws the whole control on selection change, now
33414             calculates delta between previous and new selection and only
33415             invalidates/redraws that area
33416           - Fixed FindPos() math off-by-one errors
33417           - Changed DeleteChars() to verify the provided tag covers the
33418             provided position, selections may have a tag that doesn't cover
33419             the position if the selection is at a tag border
33420           - Fixed off-by-one errors in DeleteChars()
33421           - Added missing streamlining check in DeleteChars() to remove
33422             zero-length tags
33423           - Implemented Invalidate() method, now properly calculates exposures
33424             between two given lines/positions
33425           - Implemented SetSelection()
33426           - Obsoleted and removed FixupSelection()
33427           - Improved RecalculateDocument() logic, removing code duplication
33428
33429 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33430
33431         * LibSupport.cs: changes to match different input/output arguments.
33432
33433 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33434
33435         * LibSupport.cs: added libsupport.so init routine.
33436
33437 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
33438         
33439         * ControlBindingsCollection.cs
33440                 - Throws an exception on null datasource when adding
33441                 - Checks for duplicated bindings when adding
33442
33443 2005-06-28  Jackson Harper  <jackson@ximian.com>
33444
33445         * TreeView.cs (OnKeyDown): Support left and right properly
33446         (navigates as well as expanding and collapsing.
33447         - Add support for Multiply, this expands all the selected nodes
33448         children.
33449         - Fix some tabbing.
33450
33451 2005-06-28  Jackson Harper  <jackson@ximian.com>
33452
33453         * TreeView.cs: Implement keyboard navigation, currently supports,
33454         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
33455         support for toggling checkboxes with the space bar.
33456
33457 2005-06-28  Jackson Harper  <jackson@ximian.com>
33458
33459         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
33460         tree.
33461
33462 2005-06-28  Jackson Harper  <jackson@ximian.com>
33463
33464         * TreeView.cs: Add missing event.
33465
33466 2005-06-27  Peter Bartok  <pbartok@novell.com> 
33467
33468         * TextControl.cs:
33469           - Made line ending size configurable (now allows for counting 
33470             lineendings as \n or \r\n)
33471           - Added margin to viewport to keep caret visible on right side
33472           - Fixed translation routines for line/pos to documentpos to consider
33473             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
33474           - Fixed some line-endings to be unix style
33475           - Fixed Document.FormatText to perform it's calculations 1-based
33476           - Added descriptions for a few methods that might otherwise get 
33477             used wrong
33478           - Added NOTE section with some basic conventions to remember at 
33479             the top of the file
33480           - Major fixup for RichTextBox selection drawing:
33481             * Fixed crashes when multiple tags on a single line were selected
33482             * fixed selection box drawing not overlaying text
33483             * fixed bogus offset calculation for tags not starting at index 1
33484             * Switched behaviour from using multiple Substrings of a 
33485               StringBuilder.ToString() to using multiple 
33486               StringBuilder.ToString(start, length) statements, hoping this is
33487               faster (kept original version commented out in the code, in case
33488               original version was faster)
33489         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
33490           alignment != Left
33491         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
33492           call it as well
33493
33494 2005-06-27  Jackson Harper  <jackson@ximian.com>
33495
33496         * TabControl.cs: Move to the left and right with the arrow
33497         keys. These keys don't cycle beyond first and last like
33498         tab. Refresh all the tabs when scrolling them to the left or
33499         right.
33500
33501 2005-06-27  Jackson Harper  <jackson@ximian.com>
33502
33503         * TabControl.cs:
33504           - ToString: Added method
33505           - CreateParams: Remove TODO and comment
33506           - OnKeyDown: Cycle through bounds properly.
33507           - SelectedIndex: Scroll to the right or left if we need to
33508           display the newly selected tab.
33509
33510 2005-06-23  Jackson Harper  <jackson@ximian.com>
33511
33512         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
33513         set.
33514
33515 2005-06-23  Jackson Harper  <jackson@ximian.com>
33516
33517         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
33518         CTRL-SHIFT-TAB, and HOME, END are there any others?
33519
33520 2005-06-23  Jackson Harper  <jackson@ximian.com>
33521
33522         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
33523
33524 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
33525         
33526         * DataGridTextBoxColumn.cs: fixes and enhancements
33527         * ThemeWin32Classic.cs: fixes and enhancements
33528         * DataGridBoolColumn.cs:  fixes and enhancements
33529         * DataGridDrawingLogic.cs:  fixes and enhancements
33530         * CurrencyManager.cs: fixes and enhancements
33531         * DataGrid.cs: fixes and enhancements
33532         * DataGridColumnStyle.cs:  fixes and enhancements
33533
33534 2005-06-22  Jackson Harper  <jackson@ximian.com>
33535
33536         * TabControl.cs: Add some missing methods that just call into the
33537         base. Make the TabPageCollection's IList interface behave in the
33538         same manner as the MS implementation.
33539
33540 2005-06-22  Peter Bartok  <pbartok@novell.com> 
33541
33542         * TextControl.cs: Added sanity check
33543         * TextBoxBase.cs: 
33544           - Fixed wrapping behaviour, don't set wrap on single line controls
33545             (this fixes the breakage of colordialog introduced in an earlier
33546              checkin)
33547           - Added rudimentary support for autoscrolling right-aligned controls
33548             (still needs fixing, also, center alignment scroll is missing)
33549
33550 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
33551         
33552         * ScrollBar.cs: Fixes thumbpos on Maximum values
33553
33554 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
33555         
33556         * PropertyGridView.cs: Pass context information to UITypeEditors 
33557
33558 2005-06-21  Peter Bartok  <pbartok@novell.com> 
33559
33560         * TextBoxBase.cs:
33561           - Now calling PositionCaret with absolute space coordinates
33562           - Enabled vertical scrolling
33563           - Better tracking of scrollbar changes, tied into WidthChange
33564             event
33565           - Improved cursor tracking
33566           - Removed debug output
33567         * TextControl.cs:
33568           - PositionCaret coordinates are now works in absolute space, not 
33569             the canvas
33570           - Improved tracking of document size
33571           - Added events for width and height changes
33572
33573 2005-06-21  Peter Bartok  <pbartok@novell.com>
33574
33575         * Form.cs: Set focus to active control when form is activated
33576         * TextControl.cs: 
33577           - Added word-wrap functionality to RecalculateLine() 
33578           - Added some short function descriptions for VS.Net to aid in
33579             writing dependent controls
33580           - Added Caret property, returning the current coords of the caret
33581           - Added ViewPortWidth and ViewPortHeight properties
33582           - Added Wrap property
33583           - Added CaretMoved event
33584           - Removed some old debug code
33585           - Split() can now create soft splits
33586           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
33587           - Added method to format existing text
33588           - Fixed size/alignment calculations to use viewport
33589           - RecalculateDocument now can handle changing line-numbers while
33590             calculating lines
33591
33592         * TextBox.cs:
33593           - Added some wrap logic, we don't wrap if alignment is not left
33594           - Added casts for scrollbar var, base class switched types to
33595             also support RichTextBoxA
33596           - Implemented handling of scrollbar visibility flags
33597
33598         * TextBoxBase.cs:
33599           - Switched scrollbars type to RichTextBoxScrollBars to support
33600             RichTextBox
33601           - Added tracking of canvas width/height
33602           - Switched scrollbars to be not selectable (to keep focus on text)
33603           - Added central CalculateDocument() method to handle all redraw
33604             requirements
33605           - Added ReadOnly support
33606           - Added WordWrap support
33607           - Fixed handling of Enter key (we now treat it as a DialogKey)
33608           - Fixed caret positioning when h or v scroll is not zero
33609           - Fixed placing/generation of vertical scrollbar
33610           - Added CalculateScrollBars() method to allow updating scrollbar
33611             limits and visibility
33612           - Fixed handling of horizontal scroll
33613           - Added handling of vertical scroll
33614           - Implemented auto-'jump' when caret moves to close to a left or
33615             right border and there is text to be scrolled into view (currently
33616             there's the potential for a stack overflow, until a bug in
33617             scrollbar is fixed)
33618
33619 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
33620         
33621         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
33622
33623 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
33624
33625         * Mime.cs:
33626         - added inodes.
33627         - return application/x-zerosize for files with size zero
33628           (if no extension pattern matches).
33629         - check matches collection for strings too.
33630         - return only the first mime type if the name value
33631           collection has more than one mime type.
33632
33633 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
33634         
33635         * PropertyGrid.cs: Cleaned up some TODOs
33636         * PropertyGridView.cs: Added support for UITypeEditors
33637
33638 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
33639         
33640         * DataGrid.cs: clears cached value
33641
33642 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
33643
33644         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
33645         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
33646         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
33647         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
33648         
33649 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
33650
33651         * ThemeWin32Classic.cs: fixes colour
33652
33653 2005-06-15  Peter Bartok  <pbartok@novell.com>
33654
33655         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
33656         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
33657         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
33658         * Control.cs: Added some MWFCategory and MWFDescription attributes
33659         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
33660
33661 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
33662
33663         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
33664         usage
33665
33666 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
33667
33668         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
33669         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
33670         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
33671         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
33672         * DataGrid.cs: default datagrid settings for Default Styles, fixes
33673         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
33674
33675 2005-06-13  Jackson Harper  <jackson@ximian.com>
33676
33677         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
33678         isn't printed when the user enables dropping. (X11 does accept
33679         drops).
33680         
33681 2005-06-13  Jackson Harper  <jackson@ximian.com>
33682
33683         * TreeView.cs: Remove some TODOS.
33684
33685 2005-06-13  Jackson Harper  <jackson@ximian.com>
33686
33687         * Form.cs: Hook into the mdi framework.
33688         * MdiClient.cs: Use the base control collections add method so
33689         parents get setup correctly. Set the default back colour and dock
33690         style.
33691         * MdiChildContext.cs: New class, this bad actor handles an
33692         instance of an MDI window. Right now there is only basic
33693         support. You can drag, close, and resize windows. Minimize and
33694         Maximize are partially implemented.
33695
33696 2005-06-13  Jackson Harper  <jackson@ximian.com>
33697
33698         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
33699         freaky when both vals are negative. NOTE: There are probably other
33700         places in XplatUIX11 that this needs to be done.
33701
33702 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
33703
33704         * DataGrid.cs: implement missing methods, move KeyboardNavigation
33705         * DataGridColumnStyle.cs: fixes signature
33706
33707 2005-06-12  Jackson Harper  <jackson@ximian.com>
33708
33709         * XplatUIX11.cs: Use sizing cursors similar to the ones on
33710         windows.
33711
33712 2005-06-11  Jackson Harper  <jackson@ximian.com>
33713
33714         * StatusBarPanel.cs: Signature cleanups. Implement
33715         BeginInit/EndInit.
33716
33717 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
33718
33719         * DataGridTextBoxColumn.cs: Honors aligment
33720         * GridColumnStylesCollection.cs: Contains is case unsensitive
33721         * GridTableStylesCollection.cs: several fixes
33722         * DataGridTableStyle.cs: default column creation
33723         * DataGridDrawingLogic.cs: fixes
33724         * CurrencyManager.cs: ListName property
33725         * DataGrid.cs: multiple styles support
33726         * DataGridColumnStyle.cs: fixes
33727         
33728
33729 2005-06-10  Peter Bartok  <pbartok@novell.com>
33730
33731         * Control.cs(Select): Moved SetFocus call to avoid potential
33732           loops if controls change the active control when getting focus
33733         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
33734           the up/down buttons
33735
33736 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
33737
33738         * ImageListConverter.cs: Implemented
33739
33740 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33741
33742         * MonthCalendar.cs: Wired in NumericUpDown control for year
33743
33744 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33745
33746         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
33747           DoubleClick events, since they are not meant to be fired.
33748
33749 2005-06-09  Peter Bartok  <pbartok@novell.com>
33750
33751         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
33752           Jonathan's standalone controls into MWF, implemented missing
33753           events, attributes and methods; added xxxAccessible classes
33754         * AccessibleObject.cs: Made fields internal so other classes
33755           can change them if needed
33756
33757 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
33758
33759         * UpDownBase.cs: Complete implementation
33760         * NumericUpDown.cs: Complete implementation
33761         * DomainUpDown.cs: Complete implementation
33762
33763 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
33764
33765         * DataGridTextBoxColumn.cs: drawing fixes
33766         * DataGridCell.cs: fixes ToString method to match MSNet
33767         * DataGridTableStyle.cs: fixes
33768         * DataGridBoolColumn.cs: fixes, drawing
33769         * DataGridDrawingLogic.cs: fixes, new methods
33770         * DataGridTextBox.cs: Keyboard and fixes
33771         * DataGrid.cs:
33772                 - Keyboard navigation
33773                 - Scrolling fixes
33774                 - Row selection (single, multiple, deletion, etc)
33775                 - Lots of fixes
33776         
33777 2005-06-07  Jackson Harper  <jackson@ximian.com>
33778
33779         * ThemeWin32Classic.cs: Clear the background area when drawing
33780         buttons.
33781
33782 2005-06-06  Peter Bartok  <pbartok@novell.com>
33783
33784         * ImageListStreamer.cs: Fixed signature for GetData
33785         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
33786         * ComboBox.cs:
33787           - Added missing ChildAccessibleObject class
33788           - Added missing OnXXXFocus overrides, switched to using those
33789             instead of the event handler
33790         * Control.cs:
33791           - Added Parent property for ControlAccessibleObject
33792           - Fixed signatures
33793           - Fixed attributes
33794           - Added ResetBindings()
33795         * ListBindingConverter.cs: Implemented some methods
33796         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
33797         * ImageList.cs: Implemented basic handle scheme, removed TODOs
33798         * ContainerControl.cs: Fixed signature, now subscribing to the
33799           ControlRemoved event instead of overriding the handler, LAMESPEC
33800         * CurrencyManager.cs: Added missing attribute
33801         * MonthCalendar.cs: Added missing properties
33802
33803 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33804
33805         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
33806         
33807 2005-06-06  Gaurav Vaish and Ankit Jain
33808
33809         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
33810         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
33811         
33812 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33813
33814         * Control.cs: fixes CreateParams Width / Height.
33815
33816 2005-06-05  Peter Bartok  <pbartok@novell.com>
33817
33818         * Win32DnD.cs: Removed compilation warnings
33819
33820 2005-06-05  Peter Bartok  <pbartok@novell.com>
33821
33822         * Control.cs (CreateParams): Since we don't know if one of the
33823           properties we use is overridden, lets make sure if we fail accessing
33824           we continue with a backup plan
33825
33826 2005-06-05  Peter Bartok  <pbartok@novell.com>
33827
33828         * Win32DnD.cs:
33829           - Removed debug output
33830           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
33831             struct
33832           - Plugged resource leak
33833         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
33834           MS size
33835
33836 2005-06-05  Peter Bartok  <pbartok@novell.com>
33837
33838         * XplatUIWin32.cs: Removed DnD code
33839         * Win32DnD.cs: Implemented drop source and drop target functionality
33840
33841 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33842
33843         * UpDownBase.cs: remove duplicate addition of event, enable some code
33844         that was commented out.
33845         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
33846         Validate input when a key is pressed. It works fine now for every
33847         combination of Hexadecimal. Only missing some drawing love when sharing
33848         space with other controls.
33849
33850 2005-06-04  Peter Bartok  <pbartok@novell.com>
33851
33852         * Control.cs:
33853           - We need to pass a window for DragDrop, so enable callback events
33854           - Added DnD callback events when being a DragSource
33855         * XplatUI.cs (StartDrag): Added window handle argument
33856         * XplatUIDriver.cs (StartDrag): Added window handle argument
33857         * QueryContinueDragEventArgs: Made fields internally accessible so
33858           drivers can set them
33859         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
33860           can set them
33861
33862 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
33863
33864         * DataGridTextBoxColumn.cs: column text editing
33865         * DataGridTableStyle.cs: Respect columns styles created by the user
33866         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
33867         * DataGridBoolColumn.cs: bool column editing
33868         * DataGrid.cs: fixes to scrolling, properties, etc
33869         * DataGridTextBox.cs: handle keyboard
33870         * DataGridColumnStyle.cs: fixes
33871
33872 2005-06-02  Jackson Harper  <jackson@ximian.com>
33873
33874         * ImageListStreamer.cs: Somewhat broken implementation of
33875         GetObjectData. The RLE needs some work to match MS properly.
33876
33877 2005-06-02  Jackson Harper  <jackson@ximian.com>
33878
33879         * X11Dnd.cs: Attempting to keep at least one file in MWF
33880         monostyled.
33881
33882 2005-06-02  Peter Bartok  <pbartok@novell.com>
33883
33884         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
33885           that way
33886
33887 2005-06-02  Peter Bartok  <pbartok@novell.com>
33888
33889         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
33890         * XplatUI.cs: Added DoDragDrop() method
33891         * XplatUIDriver.cs: Added DoDragDrop() method
33892
33893 2005-06-02  Jackson Harper  <jackson@ximian.com>
33894
33895         * Splitter.cs: Implement BorderStyle.
33896
33897 2005-06-02  Jackson Harper  <jackson@ximian.com>
33898
33899         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
33900         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
33901         X11 using XDND.
33902
33903 2005-06-02  Peter Bartok  <pbartok@novell.com>
33904
33905         * DataObject.cs:
33906           - Added Data setter
33907           - Fixed broken insertion code for SetData, now also
33908             overwrites any existing entry of the same format name
33909         * Hwnd.cs: Added list of pointers that automatically gets
33910           freed when the window is disposed
33911         * XplatUI.cs: Call driver initialization method when loading
33912           a driver
33913         * Control.cs:
33914           - OnDragLeave takes EventArgs, not DragEventArgs
33915           - Added setting of WS_EX_ACCEPTFILES style when dropping is
33916             supported
33917           - Forces style update when drop state changes
33918         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
33919           not perfect since we cannot (yet) call the IDataObject.GetData()
33920           method, we keep getting 0x80004005 error, dunno why)
33921
33922 2005-06-02  Peter Bartok  <pbartok@novell.com>
33923
33924         * DragEventArgs.cs: Make fields internal so we can cache the
33925           object and re-set the fields from XplatUI
33926
33927 2005-06-02  Jackson Harper  <jackson@ximian.com>
33928
33929         * Control.cs: Add some internal methods so the DnD subsystem can
33930         raise DnD events. Also call into the driver when AllowDrop is set.
33931         * XplatUI.cs:
33932         * XplatUIDriver.cs: New method for setting whether or not a window
33933         is allowed to accept drag and drop messages.
33934                 
33935 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
33936         
33937         * ScrollBar.cs: Make sure that values sent in Scroll events
33938         are always between Maximum and Minimum.
33939
33940 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
33941
33942         * Menu.cs: Call MenuChanged when menuitem visibility has been
33943         changed.
33944         * MenuItem.cs: Rebuild menu when item is (not) visible.
33945         * MainMenu.cs: MainMenu has special MenuChanged.
33946         * Theme.cs: Caption and FrameBorderSize are not fixed.
33947         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
33948         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
33949         * XplatUIX11.cs,
33950         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
33951         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
33952
33953 2005-05-30  Jackson Harper  <jackson@ximian.com>
33954
33955         * DataFormat.cs: We can't statically initialize this stuff because
33956         it calls into the xplatui and could create a loop. So we lazy init
33957         it.
33958
33959 2005-05-28  Jackson Harper  <jackson@ximian.com>
33960
33961         * Control.cs: Proper implementation of Product(Name/Version).
33962
33963 2005-05-27  Jackson Harper  <jackson@ximian.com>
33964
33965         * DataObject.cs: Dont crash if no data is found.
33966
33967 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
33968         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
33969                 as per status page, guessing it should be set to true
33970
33971 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
33972
33973         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
33974         * DataGridTableStyle.cs: set proper formatting text, def header text
33975         * ThemeWin32Classic.cs: new themable paramaters
33976         * DataGridBoolColumn.cs: paint check box, get data, fixes
33977         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
33978         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
33979         * DataGridColumnStyle.cs: fixes
33980         * Theme.cs: new themable paramaters
33981                 
33982 2005-05-26  Peter Bartok  <pbartok@novell.com>
33983
33984         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
33985
33986 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33987         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
33988
33989 2005-05-24  Peter Bartok  <pbartok@novell.com>
33990
33991         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
33992           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
33993           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
33994           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
33995           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
33996           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
33997           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
33998           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
33999           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
34000           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
34001           missing attributes, etc
34002         * DataGridPreferredColumnWidthTypeConverter.cs: Added
34003
34004 2005-05-24  Peter Bartok  <pbartok@novell.com>
34005
34006         * Help.cs: Added, implemented trivial functions, throws up MessageBox
34007           when user tries to get help
34008         * DataObject.cs, DataFormats.cs, LinkArea.cs,
34009           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
34010           to suppress warnings
34011         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
34012           avoid unreachable code warning
34013
34014 2005-05-20  Peter Bartok  <pbartok@novell.com>
34015
34016         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
34017
34018 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
34019
34020         * DataGridTextBoxColumn.cs: Basic painting methods
34021         * DataGridTableStyle.cs: Set table style in the column
34022         * ThemeWin32Classic.cs: Use Theme for colors
34023         * DataGridDrawingLogic.cs: Implement more drawing
34024         * DataGrid.cs: drawing, theming, enhacements, fixes
34025         * DataGridColumnStyle.cs: fixes, drawing
34026         * Theme.cs: theming for Datagrid
34027
34028 2005-05-20  Peter Bartok  <pbartok@novell.com>
34029
34030         * Cursor.cs: Implemented GetObjectData() method
34031
34032 2005-05-20  Peter Bartok  <pbartok@novell.com>
34033
34034         * Cursors.cs: Added setting of cursor name
34035         * Cursor.cs:
34036           - Implemented constructors
34037           - Implemented Draw and DrawStretched
34038           - Implemented Current property
34039           - Implemented == and != operators
34040           - Implemented Dispose()
34041           - Implemented ToString
34042           - Added missing attributes
34043         * XplatUIX11.cs:
34044           - Added missing reset for OverrideCursor when DoEvents is called
34045           - Fixed creation of cursor, logic was wrong
34046         * XplatUIWin32.cs:
34047           - Added missing reset for OverrideCursor when DoEvents is called
34048           - Fixed creation of cursor, bit arrays were swapped
34049         * Clipboard.cs: Removed obsolete MonoTODO attribute
34050
34051 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
34052
34053         * ComboBox.cs: fixes OnSelectedItemChanged
34054         * ControlBindingsCollection.cs: fixes item range check
34055
34056 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
34057
34058         * UpDownBase.cs:
34059                 - Calc preferred height properly
34060                 - Implement missing properties
34061                 
34062         * NumericUpDown.cs: Implement missing events
34063
34064 2005-05-19  Jackson Harper  <jackson@ximian.com>
34065
34066         * TabControl.cs: New method that resizes the tab pages before
34067         redrawing them. This as needed as the control is double buffered
34068         and sizing will not be recalculated unless ResizeTabPages is
34069         called.
34070         * TabPage.cs: Set base.Text instead of Text in the constructor so
34071         that UpdateOwner does not get called. Use the new Redraw method of
34072         TabControl instead of Refresh so the sizing is recalculated.
34073         * ThemeWin32Classic.cs: Draw the text for button tabs.
34074
34075 2005-05-19  Jackson Harper  <jackson@ximian.com>
34076
34077         * Control.cs: Paint control background images. Fix typo where
34078         PaintControlBackground was not getting called correctly.
34079
34080 2005-05-19  Peter Bartok  <pbartok@novell.com>
34081
34082         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
34083           I can investigate, apparently I broke FileDialog
34084
34085 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
34086
34087         * AxHost.cs: Some simple properties.
34088         * Control.cs: window must be accessible after ctor.
34089         * Form.cs: Added TransparencyKey property.
34090         * TextBoxBase.cs: Implemented Clear. Text property can be null.
34091         * XplatUIWin32.cs: SetBorderStyle implemented.
34092
34093 2005-05-18  Peter Bartok  <pbartok@novell.com>
34094
34095         * DataObject.cs: Entries are not global but particular to the
34096           DataObject, now it behaves that way
34097         * XplatUIWin32.cs: Implemented Clipboard methods
34098         * Clipboard.cs: Implemented
34099         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
34100         * XplatUIOSX.cs: Updated to final clipboard prototypes
34101         * XplatUIX11.cs: Implemented Clipboard methods
34102         * XplatUIDriver.cs: Updated to final clipboard prototypes
34103         * XplatUIStructs.cs:
34104           - Added BITMAPINFOHEADER struct
34105           - Added ClipboardFormats enum
34106         * X11Structs.cs:
34107           - Added ClipboardStruct
34108           - Added Atom enum items for clipboard types
34109           - Fixed atom types for Selection event structures
34110         * DataFormats.cs:
34111           - Added internal properties and methods for drivers to enumerate
34112             all known formats
34113           - Switched initialization method to allow drivers to assign their
34114             own IDs even for the MS predefined clipboard IDs
34115         * XplatUI.cs: Updated to final clipboard interface
34116
34117 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
34118         * PropertyGridView.cs: Fixed compiler warnings.
34119
34120 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
34121         * PropertyGrid.cs: Added some event calls
34122         * PropertyGridView.cs: Change drawing code to use double buffering
34123         * PropertyGridTextBox.cs: Changed Text property name
34124         * GridItem.cs: Added Bounds property.
34125         * GridEntry.cs: Added Bounds property.
34126
34127 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
34128
34129         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
34130         since GetType() may not return the correct type if the object is
34131         a remoting proxy.
34132
34133 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
34134
34135         * TreeNodeCollection.cs: fixes get/set item ranges
34136         
34137 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
34138
34139         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
34140                 
34141 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
34142
34143         * ComboBox.cs: Fix item range comparation
34144         * ListView.cs: Fix item range comparation
34145
34146 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
34147
34148         * FontDialog.cs:
34149           - Clear example panel when OnPaint is called
34150           - Better solution for displaying the example panel text
34151           - Select default indexes in the ListBoxes
34152
34153 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
34154
34155         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
34156
34157 2005-05-11  Peter Bartok  <pbartok@novell.com>
34158
34159         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
34160         * SelectionRangeConverter.cs: Implemented
34161         * PropertyGrid.cs: Fixed attribute value
34162         * Control.cs:
34163           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
34164           - Added Sebastien Pouliot's CAS Stack Propagation fixes
34165         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
34166           that's common to all drivers. First methods to go there are
34167           Sebastien Pouliot's CAS Stack Propagation helper methods
34168         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
34169           Sebastien Pouliot for CAS Stack Propagation
34170
34171 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
34172
34173         * OSXStructs.cs:
34174           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
34175
34176 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
34177
34178         * DataGridTextBoxColumn.cs: fixed some members
34179         * GridColumnStylesCollection.cs: indexed column is case insensitive
34180         * DataGridTableStyle.cs: fixes
34181         * ThemeWin32Classic.cs: add new theme parameter
34182         * Theme.cs: add new theme parameter
34183         * DataGridDrawingLogic.cs: Datagrid's drawing logic
34184         * DataGrid.cs: fixes, new internal properties, etc.
34185         * DataGridColumnStyle.cs: allows to set grid value
34186         *
34187
34188 2005-05-10  Peter Bartok  <pbartok@novell.com>
34189
34190         * AccessibleObject.cs:
34191           - Removed MonoTODO attribute on help, method is correct
34192           - Fixed Bounds property
34193         * AxHost.cs: Moved MonoTODO
34194         * ButtonBase.cs: Now setting AccessibleObject properties
34195         * RadioButton.cs: Setting proper AccessibleObject role
34196         * CheckBox.cs: Setting proper AccessibleObject role
34197         * ControlBindingsCollection.cs: Added properties, methods and attributes
34198         * DataFormats.cs: Fixed awkward internal API, and changed to enable
34199           userdefined DataFormats.Format items as well
34200         * ListControl.cs: Removed data_member from the public eye
34201         * OpenFileDialog.cs:
34202           - Made class sealed
34203           - Added missing attributes
34204         * SaveFileDialog.cs: Added missing attributes
34205         * ImageListStreamer.cs: Fixed code that caused warnings
34206         * LinkLabel.cs: Removed unreachable code
34207         * TreeView.cs: Fixed code that caused warnings
34208         * PropertyGridView.cs: Fixed code that caused warnings
34209         * GridColumnStylesCollection.cs: Added missing attributes
34210         * GridTableStylesCollection: Added missing attribute
34211         * PropertyManager: Added .ctor
34212         * SecurityIDType: Added
34213         * DataObject.cs: Implemented class
34214         * LinkArea.cs: Added missing attribute
34215
34216 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
34217
34218         * RadioButton.cs: call base method to allow to fire OnClick event
34219         * UpDownBase.cs: OnMouseUp call base method
34220         * CheckedListBox.cs: call base method before returning
34221         * TrackBar.cs: call base method before returning
34222         
34223
34224 2005-05-10  Peter Bartok  <pbartok@novell.com>
34225
34226         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
34227           for messages
34228
34229 2005-05-10  Peter Bartok  <pbartok@novell.com>
34230
34231         * DataFormats.cs: Implemented
34232         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
34233           XplatUIX11.cs: Added Clipboard APIs
34234         * XplatUIWin32.cs: Implemented Clipboard APIs
34235         * FolderBrowserDialog.cs: Added missing event, attributes
34236
34237 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
34238
34239         * CheckBox.cs: call base method to allow to fire OnClick event
34240
34241 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
34242
34243         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
34244
34245 2005-05-06  Peter Bartok  <pbartok@novell.com>
34246
34247         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
34248         * Screen.cs: Implemented
34249         * HelpNavigator.cs: Added
34250         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
34251           property
34252         * HelpProvider.cs: Implemented all we can do until we have a CHM
34253           help library (which means that "What's This" does work now)
34254
34255 2005-05-06  Jackson Harper  <jackson@ximian.com>
34256
34257         * XplatUIX11.cs: Fix waking up the main loop.
34258                 
34259 2005-05-05  Peter Bartok  <pbartok@novell.com>
34260
34261         * XplatUI.cs: Updated revision
34262         * Form.cs: Removed enless loop
34263         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
34264         * Label.cs (OnPaint): Added call to base.OnPaint()
34265         * ToolTip.cs: Made ToolTipWindow reusable for other controls
34266         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
34267         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
34268         * AxHost.cs: Added
34269         * ButtonBase.cs: Moved base.OnPaint() call to end of method
34270         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
34271           to ToolTip.ToolTipWindow for drawing and size methods; this allows
34272           reuse of ToolTipWindow by other controls
34273         * SizeGrip.cs: Moved base.OnPaint() call to end of method
34274         * XplatUIX11.cs: Now clipping drawing area (experimental)
34275         * PictureBox.cs: Moved base.OnPaint() call to end of method
34276         * Theme.cs: Fixed ToolTip abstracts to match new format
34277         * ErrorProvider.cs: Implemented
34278
34279 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
34280
34281         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
34282         * LinkLabel.cs:
34283                 - Adds cursors
34284                 - Handles focus
34285                 - Implements LinkBehavior
34286                 - Fixes many issues
34287
34288 2005-05-03  Jackson Harper  <jackson@ximian.com>
34289
34290         * ListView.cs: Calculate the scrollbar positioning on resize and
34291         paint, so they get put in the correct place.
34292
34293 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
34294
34295         * ColorDialogs.cs: The small color panels are now handled by
34296           SmallColorControl. This fixes drawing of the focus rectangle
34297           and adds a 3D border.
34298
34299 2005-05-03  Peter Bartok  <pbartok@novell.com>
34300
34301         * Control.cs: Modified version of Jonathan Chamber's fix for
34302           double-buffering
34303
34304 2005-05-03  Jackson Harper  <jackson@ximian.com>
34305
34306         * ListView.cs: Remove redraw variable. Control now handles whether
34307         or not a redraw needs to be done, and will only raise the paint
34308         event if redrawing is needed.
34309
34310 2005-05-03  Jackson Harper  <jackson@ximian.com>
34311
34312         * Splitter.cs: No decorations for the splitter form. Cache the
34313         hatch brush.
34314
34315 2005-05-03  Jackson Harper  <jackson@ximian.com>
34316
34317         * TreeView.cs: Use dashed lines to connect nodes. Use the
34318         ControlPaint method for drawing the focus rect instead of doing
34319         that in treeview.
34320
34321 2005-05-02  Peter Bartok  <pbartok@novell.com>
34322
34323         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
34324
34325 2005-04-29  Jackson Harper  <jackson@ximian.com>
34326
34327         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
34328         entire image buffer. Just clear the clipping rectangle.
34329
34330 2005-04-29  Jackson Harper  <jackson@ximian.com>
34331
34332         * ThemeWin32Classic.cs: Don't draw list view items that are
34333         outside the clipping rectangle.
34334
34335 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
34336
34337         * ListBox.cs: added horizontal item scroll
34338
34339 2005-04-29  Jackson Harper  <jackson@ximian.com>
34340
34341         * ThemeWin32Classic.cs: Remove some old debug code that was
34342         causing flicker with the new double buffering code.
34343
34344 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
34345
34346         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
34347         behave like combobox and comboboxlist (still not sure if this is
34348         correct though).
34349
34350 2005-04-28  Jackson Harper  <jackson@ximian.com>
34351
34352         * ThemeWin32Classic.cs: Don't fill the middle of progress
34353         bars. This fills areas outside of the clip bounds that don't need
34354         to be filled.
34355
34356 2005-04-28  Jackson Harper  <jackson@ximian.com>
34357
34358         * Control.cs: Don't expose functionality to touch the image buffers.
34359         * ProgressBar.cs:
34360         * ListView.cs: We do not need to (and no longer can) manipulate
34361         the image buffers directly. All of this is handled by Control.
34362
34363 2005-04-28  Peter Bartok  <pbartok@novell.com>
34364
34365         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
34366           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
34367           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
34368
34369 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
34370
34371         * Combobox:
34372                 - Adjust control's height for non-simple comboboxes (bug fix)
34373                 - Remove dead code
34374         * MenuAPI.cs: remove unused var
34375         * ScrollBar.cs: remove unsed var
34376                  
34377         * ListBox.cs: unselect items when clearing
34378
34379 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
34380
34381         * ListControl.cs: honors OnPositionChanged and default Selected Item
34382         * ListBox.cs: unselect items when clearing
34383
34384 2005-04-27  Jackson Harper  <jackson@ximian.com>
34385
34386         * X11Keyboard.cs: Initialize a default keyboard and give a warning
34387         if a "correct" keyboard is not found. This will make us not crash,
34388         but might give some users bad keyboard layouts...seems to be the
34389         same thing rewind does.
34390
34391 2005-04-27  Jackson Harper  <jackson@ximian.com>
34392
34393         * BindingManagerBase.cs: Attach the current/position changed
34394         handlers to their respective events.
34395
34396 2005-04-27  Jackson Harper  <jackson@ximian.com>
34397
34398         * Control.cs: Make sure that the first WM_PAINT does a full draw,
34399         not just a blit.
34400         * ThemeWin32Classic.cs: Don't fill the background for picture
34401         boxes. This could overright user drawing.
34402         * ComboBox.cs: Just fill the clipping rect not the entire client
34403         rect when drawing the background. This prevents pieces of the
34404         image buffer from getting overwritten and is theoretically faster.
34405
34406 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
34407
34408         * ComboBox.cs: Databinding support fixes, fire missing events
34409         * ListControl.cs: implement missing methods and properties, fixes
34410         * ThemeWin32Classic.cs: Databiding support on Drawing
34411         * CheckedListBox.cs: Databinding support fixes, fire missing events
34412         * ListBox.cs: Databinding support fixes, fire missing events
34413         
34414 2005-04-25  Peter Bartok  <pbartok@novell.com>
34415
34416         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
34417
34418 2005-04-25  Jackson Harper  <jackson@ximian.com>
34419
34420         * TreeView.cs: Use the horizontal scrollbars height not width when
34421         determining how much of the client area is available.
34422
34423 2005-04-25  Jackson Harper  <jackson@ximian.com>
34424
34425         * Control.cs: Double buffering is handled differently now. As per
34426         the spec, the extra buffer is created in the WM_PAINT message and
34427         passed down to the control's drawing code.
34428         * GroupBox.cs:
34429         * Label.cs:
34430         * CheckBox.cs:
34431         * ProgressBar.cs:
34432         * RadioButton.cs:
34433         * ColorDialog.cs:
34434         * ComboBox.cs:
34435         * PropertyGridView.cs:
34436         * UpDownBase.cs:
34437         * MessageBox.cs:
34438         * MenuAPI.cs:
34439         * ListView.cs:
34440         * ButtonBase.cs:
34441         * SizeGrip.cs:
34442         * ScrollBar.cs:
34443         * ListBox.cs:
34444         * TrackBar.cs:
34445         * ToolBar.cs:
34446         * PictureBox.cs:
34447         * DateTimePicker.cs:
34448         * StatusBar.cs:
34449         * TreeView.cs: Update to new double buffering system.
34450         * MonthCalendar.cs: Uncomment block, as Capture is now
34451         working. Update to new double buffering
34452         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
34453         * PaintEventArgs.cs: New internal method allows us to set the
34454         graphics object. This is used for double buffering.
34455         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
34456         rectangle. The internal paint_area var has been removed from
34457         StatusBar. The clipping rect should be used instead.
34458         * Theme.cs: Give the PictureBox drawing method a clipping rect.
34459         * TabPage.cs: The RefreshTabs method was removed, so just call the
34460         tab controls Refresh method now.
34461         * TabControl.cs: Update to new double buffering. Make sure the
34462         handle is created before sizing the tab pages, otherwise we will
34463         get stuck in a loop.
34464
34465 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
34466
34467         * LinkLabel.cs: Fix typo, bug #74719; patch
34468           from Borja Sanchez Zamorano
34469
34470 2005-04-22  Jackson Harper  <jackson@ximian.com>
34471
34472         * TreeNode.cs: Implement Handle stuff.
34473         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
34474
34475 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
34476
34477         * DataGridTextBoxColumn.cs: call base constructors, fixes
34478         * GridColumnStylesCollection.cs: missing events, methods, and functionality
34479         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
34480         * DataGridTableStyle.cs: implements create default column styles
34481         * DataGridBoolColumn.cs: which types can handle
34482         * DataGrid.cs: missing methods, fixes, new functionality
34483         * DataGridColumnStyle.cs: fixes
34484
34485 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
34486         * FolderBrowserDialog.cs:
34487         - Use a thread to fill the TreeView
34488         - Adjusted some sizes
34489
34490 2005-04-19  Peter Bartok  <pbartok@novell.com>
34491
34492         * LinkLabel.cs: (Re-)create the pieces when setting the Text
34493           property. Fixes #74360.
34494
34495 2005-04-19  Jackson Harper  <jackson@ximian.com>
34496
34497         * XEventQueue.cs: Lock when getting the lockqueue size.
34498         * PictureBox.cs: Call base OnPaint
34499         
34500 2005-04-19  Peter Bartok  <pbartok@novell.com>
34501
34502         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
34503           messages were no longer being processed (this broke BeginInvoke)
34504
34505           
34506 2005-04-18  Jackson Harper  <jackson@ximian.com>
34507
34508         * TreeView.cs: buglet that caused node images to get drawn
34509         regardless of whether or not they were in the clipping rectangle.
34510
34511 2005-04-18  Jackson Harper  <jackson@ximian.com>
34512
34513         * CurrencyManager.cs: There are four rules for GetItemProperties:
34514         - If the type is an array use the element type of the array
34515         - If the type is a typed list, use the type
34516         - If the list contains an Item property that is not an object, use
34517         that property
34518         - use the first element of the list if there are any elements in
34519         the list.
34520         
34521 2005-04-17  Jackson Harper  <jackson@ximian.oom>
34522
34523         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
34524         click. This handles offsets for scrolling properly and reduces
34525         memory. Also fixed GetNode to not offset now that TopNode works
34526         properly.
34527         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
34528         
34529 2005-04-17  Jackson Harper  <jackson@ximian.com>
34530
34531         * CursorConverter.cs: Initial implementation.
34532
34533 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
34534
34535         * ListControl.cs: work towards complex data binding support on ListControl
34536         * CurrencyManager.cs: work towards complex data binding support on ListControl
34537         * ListBox.cs: work towards complex data binding support on ListControl
34538
34539
34540 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
34541
34542         * GridTableStylesCollection.cs: fixes name and constructor
34543         * DataGridTableStyle.cs: fixes
34544         * DataGridBoolColumn.cs: fixes names and constructors
34545         * DataGrid.cs: define methods and properties. Some init implementations
34546         * DataGridCell.cs: define methods and properties. Some init implementations
34547         * GridTablesFactory.cs: Define methods and properties
34548
34549 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
34550
34551         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
34552         graphics port changes.  We still want the coordinates in global screen
34553         coordinates.
34554
34555 2005-04-14  Jackson Harper  <jackson@ximian.com>
34556
34557         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
34558         check plus minus or checkbox clicks unless those features are enabled.
34559
34560 2005-04-14  Jackson Harper  <jackson@ximian.com>
34561
34562         * TreeView.cs: Add methods for setting the top and bottom visible
34563         nodes. TreeNode::EnsureVisible uses these methods.
34564         * TreeNode.cs: Implement EnsureVisible
34565
34566 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
34567
34568         * Form.cs: Pospone menu assignation if the window has not been created yet
34569         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
34570         size and position
34571
34572 2005-04-12  Jackson Harper  <jackson@ximian.com>
34573
34574         * TreeView.cs: Set the TopNode properly when scrolling
34575         occurs. This has the added benifit of reducing the amount of
34576         walking that needs to be done when drawing. Also removed an old
34577         misleading TODO.
34578         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
34579         
34580 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
34581
34582         * Timer.cs: fixes interval setting when the timer is already enabled
34583         
34584 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
34585
34586         * FolderBrowserDialog.cs: First approach
34587
34588 2005-04-09  Peter Bartok  <pbartok@novell.com>
34589
34590         * FolderBrowserDialog: Added
34591
34592 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
34593
34594         * LinkLabel.cs: move drawing code into the theme
34595         * ThemeWin32Classic.cs: drawing code and painting background bugfix
34596         * Theme.cs: define DrawLinkLabel method
34597
34598 2005-04-05  Jackson Harper  <jackson@ximian.com>
34599
34600         * BindingContext.cs: Use weak references so these bad actors don't
34601         stay alive longer then they need to.
34602
34603 2005-04-05  Jackson Harper  <jackson@ximian.com>
34604
34605         * ListControl.cs: Basic implementation of complex databinding.
34606         * ComboBox.cs:
34607         * ListBox.cs: Add calls to ListControl databinding methods.
34608
34609 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
34610
34611         * FileDialog.cs:
34612           - Don't change PopupButtonState to Normal when the
34613             PopupButton gets pressed several times.
34614           - Renamed ButtonPanel to PopupButtonPanel
34615
34616 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
34617
34618         * ColorDialog.cs: Use cached objects instead of creating them
34619         * LinkLabel.cs: Use cached objects instead of creating them
34620         * Splitter.cs: Use cached objects instead of creating them
34621         * FontDialog.cs: Use cached objects instead of creating them
34622         * PropertyGridView.cs: Use cached objects instead of creating them
34623         * MessageBox.cs: Use cached objects instead of creating them
34624         * FileDialog.cs: Use cached objects instead of creating them
34625         * ThemeWin32Classic.cs: Use cached objects instead of creating them
34626         * TreeView.cs: Use cached objects instead of creating them
34627         
34628 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
34629
34630         * Control.cs: use Equals to compare the font since no == op
34631         * ScrollBar.cs: use Equals to compare the font since no == op
34632
34633 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
34634
34635         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
34636
34637 2005-04-01  Jackson Harper  <jackson@ximian.com>
34638
34639         * Binding.cs: Implement IsBinding.
34640         * BindingManagerBase.cs:
34641         * PropertyManager.cs:
34642         * CurrencyManager.cs: Add IsSuspended property.
34643
34644 2005-04-01  Jackson Harper  <jackson@ximian.com>
34645
34646         * Binding.cs: Had some IsAssignableFrom calls backwards.
34647
34648 2005-04-01  Jackson Harper  <jackson@ximian.com>
34649
34650         * Binding.cs: Handle null data members when pulling data.
34651         * PropertyManager.cs: Handle the data member being a property that
34652         does not exist.
34653
34654 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
34655
34656         * DataGridTextBoxColumn.cs: fixes signature
34657         * DataGrid.cs: calls right constructor
34658
34659 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
34660
34661         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
34662         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
34663         * GridTableStylesCollection.cs: implements GridTableStylesCollection
34664         * DataGridTableStyle.cs: implements DataGridTableStyle
34665         * DataGridBoolColumn.cs: implements DataGridBoolColumn
34666         * DataGridTextBox.cs: implements DataGridTextBox
34667         * DataGridColumnStyle.cs: implements DataGridColumnStyle
34668
34669 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
34670
34671         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
34672
34673 2005-03-29  Peter Bartok  <pbartok@novell.com>
34674
34675         * Application.cs:
34676           - Properly implemented CompanyName property
34677           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
34678             returns a path that includes CompanyName, ProductName and
34679             Version (fixes bug #70330)
34680
34681 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
34682
34683         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
34684           fixes bug #72588.
34685
34686 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34687
34688         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
34689         
34690           - Added ReadOnly CheckBox
34691           - Further refactoring: moved some code from Open-/SaveFileDialog
34692             to FileDialog
34693
34694 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34695
34696         * OpenFileDialog.cs: Fixed CheckFileExists
34697         * FileDialog.cs:
34698           Moved FileView and DirComboBox outside FileDialog class.
34699           They can now be used outside FileDialog
34700
34701 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34702
34703         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
34704         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
34705
34706 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34707
34708         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34709           - Added missing CreatePrompt property in SaveDialog
34710           - Overall SaveDialog handling should be better now
34711           - Added non standard ShowHiddenFiles property
34712           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
34713           - Added InitialDirectory and RestoreDirectory support
34714
34715 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
34716
34717         * FileDialog.cs: Made dirComboBox usable
34718
34719 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
34720
34721         * FileDialog.cs: Added Filter support (case sensitiv)
34722
34723 2005-03-24  Jackson Harper  <jackson@ximian.com>
34724
34725         * TabControl.cs: Need a couple more pixels for the lines.
34726
34727 2005-03-23  Jackson Harper  <jackson@ximian.com>
34728
34729         * TabControl.cs: Give the tab page focus when it is selected.
34730
34731 2005-03-23  Jackson Harper  <jackson@ximian.com>
34732
34733         * TabControl.cs: Account for the drawing of tabs borders when
34734         invalidating. If the slider was clicked dont do click detection on
34735         the tabs.
34736
34737 2005-03-23  Jackson Harper  <jackson@ximian.com>
34738
34739         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
34740
34741 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
34742
34743         * CategoryGridEntry.cs: Added
34744         * GridItem.cs: Added helper properties
34745         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
34746         * GridEntry.cs: Updated code for collection
34747         * PropertyGrid.cs: Cleaned up some formatting
34748         * PropertyGridView.cs: Added drop down functionality for enums.
34749         * GridItemCollection.cs: Added enumerator logic
34750         * PropertyGridEntry.cs: Added
34751
34752 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34753
34754         * FileDialog.cs:
34755           - Removed unnecessary commented code
34756           - Fixed handling for entering the filename manually in the combobox
34757
34758 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34759
34760         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
34761
34762 2005-03-18  Peter Bartok  <pbartok@novell.com>
34763
34764         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
34765           them being touching the border
34766
34767 2005-03-18  Peter Bartok  <pbartok@novell.com>
34768
34769         * TextControl.cs: Quick hack to center text better
34770
34771 2005-03-18  Peter Bartok  <pbartok@novell.com>
34772
34773         * ControlPaint.cs:
34774           - Don't throw NotImplemented exceptions, just print a notice once
34775             instead (requested by Miguel). This makes running existing SWF
34776             apps a bit easier
34777         * Control.cs:
34778           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
34779           - Added context menu trigger on right click
34780         * Panel.cs: Trigger invalidate on resize
34781         * StatusBar.cs:
34782           - Removed old double-buffer drawing
34783           - Added ResizeRedraw style to force proper update of statusbar
34784         * ListView.cs:
34785           - Removed debug output
34786         * ThemeWin32Classic.cs:
34787           - Fixed drawing of status bar, now draws Text property if there
34788             are no defined panels
34789
34790 2005-03-18  Jackson Harper  <jackson@ximian.com>
34791
34792         * ImageList.cs: When the image stream is set pull all the images
34793         from it.
34794         * ImageListStreamer.cs: Implement reading image list streams.
34795
34796 2005-03-18  Peter Bartok  <pbartok@novell.com>
34797
34798         * ThemeWin32Classic.cs (DrawPictureBox):
34799           - Fixed calculations for centered drawing
34800           - Fixed drawing for normal mode, not scaling the image on normal
34801
34802 2005-03-18  Peter Bartok  <pbartok@novell.com>
34803
34804         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
34805           textbox
34806         * FileDialog.cs:
34807           - Made Open/Save button the accept button for FileDialog
34808           - Tied the cancel button to the IButtonControl cancel button
34809           - Save/Open now properly builds the pathname
34810           - Now handles user-entered text
34811           - Preventing crash on right-click if no item is selected
34812           - Fixed Text property, now uses contents of textbox
34813           - Fixed SelectedText property, now just returns the text part that
34814             is selected in the text box
34815
34816 2005-03-18  Jackson Harper  <jackson@ximian.com>
34817
34818         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
34819         rect, make sure to de-adjust the interior rect after drawing the
34820         tab text.
34821
34822 2005-03-18  Peter Bartok  <pbartok@novell.com>
34823
34824         * MenuAPI.cs: Remove menu *before* executing selected action to
34825           prevent the menu from 'hanging around'
34826           
34827 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
34828
34829         * XplatUIOSX.cs: Implemented WorkingArea property
34830
34831 2005-03-17  Peter Bartok  <pbartok@novell.com>
34832
34833         * XplatUIX11.cs: Fixed menu coord calculations
34834         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
34835           for calculating offsets
34836
34837 2005-03-17  Peter Bartok  <pbartok@novell.com>
34838
34839         * Hwnd.cs: Do not consider menu presence for default client
34840           rectangle location/size
34841         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
34842           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
34843           translation functions
34844         * FileDialog.cs: Fixed (what I presume is a) typo
34845
34846 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
34847
34848         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
34849           X access (avoids X-Async errors)
34850
34851 2005-03-16  Jackson Harper  <jackson@ximian.com>
34852
34853         * TabControl.cs: Raise the SelectedIndexChanged event.
34854
34855 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
34856
34857         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34858           - Removed vertical ToolBar and replaced it with a custom panel
34859             (desktop and home button already work)
34860           - Added Help button (some controls get resized or relocated then)
34861           - Draw correct text depending on Open or Save.
34862           - Fixed some typos...
34863
34864 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
34865
34866         * ScrollBar.cs:
34867           - Only change Maximum and Minimum when need it (bug fix)
34868
34869 2005-03-15  Peter Bartok  <pbartok@novell.com>
34870
34871         * Form.cs: Use Handle for icon, to trigger creation if
34872           the window does not yet exist
34873         * Control.cs:
34874           - CanSelect: Slight performance improvement
34875           - Focus(): Preventing possible recursion
34876           - Invalidate(): Removed ControlStyle based clear flag setting
34877           - WM_PAINT: fixed logic for calling OnPaintBackground
34878           - WM_ERASEBKGND: Fixed logic, added call to new driver method
34879             EraseWindowBackground if the control doesn't paint background
34880         * XplatUIWin32.cs:
34881           - Moved EraseWindowBackground() method to internal methods
34882           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
34883             is sent via SendMessage on BeginPaint call on Win32
34884         * XplatUIX11.cs:
34885           - Added EraseWindowBackground() method
34886           - No longer sends WM_ERASEBKGND on .Expose, but on call to
34887             PaintEventStart, which more closely matches Win32 behaviour
34888           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
34889           - Fixed SetFocus() to properly deal with client and whole windows
34890         * Hwnd.cs: Added ErasePending property
34891         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
34892         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
34893
34894 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
34895
34896         * XplatUIOSX.cs:
34897           - Fix hard loop when timers exist.
34898           - Fix bugs with middle and right click for 3 button mice.
34899
34900 2005-03-11  Peter Bartok  <pbartok@novell.com>
34901
34902         * XplatUIX11.cs:
34903           - get_WorkingArea: Need to call X directly, GetWindowPos only
34904             returns cached data now
34905           - Added sanity check to GetWindowPos hwnd usage
34906
34907 2005-03-11  Jackson Harper  <jackson@ximian.com>
34908
34909         * BindingManagerBase.cs: This method isn't used anymore as
34910         PullData now updates the data in the control.
34911
34912 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
34913
34914         * Form.cs: fixes menu drawing on X11
34915         * MenuAPI.cs:  fixes menu drawing on X11
34916
34917 2005-03-11  Peter Bartok  <pbartok@novell.com>
34918
34919         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
34920           from Jonathan Gilbert; should fix bug #73606
34921         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
34922           in Screen coordinates. Thanks, Jordi.
34923         * Form.cs: Added missing attribute
34924
34925 2005-03-11  Peter Bartok  <pbartok@novell.com>
34926
34927         * Form.cs:
34928           - Rudimentary Mdi support
34929           - Removed outdated FormParent code
34930           - Implemented lots of missing properties and methods, still missing
34931             transparency support
34932           - Added missing attributes
34933           - Implemented support for MaximumBounds
34934           - Added firing of various events
34935         * XplatUI.cs: Added SetIcon() method
34936         * XplatUIDriver.cs: Added SetIcon() abstract
34937         * XplatUIOSX.cs: Stubbed out SetIcon() method
34938         * XplatUIX11.cs:
34939           - Implemented SetIcon() support
34940           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
34941           - Switched to unix line endings
34942         * XplatUIWin32.cs:
34943           - Made POINT internal so for can access it as part of MINMAX
34944           - Implemented SetIcon() support
34945           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
34946             native Mdi support again, might have to go managed)
34947         * Control.cs: Now fires the StyleChanged event
34948         * MdiClient.cs: Added; still mostly empty
34949
34950 2005-03-10  Peter Bartok  <pbartok@novell.com>
34951
34952         * SaveFileDialog.cs: Added emtpy file
34953
34954 2005-03-08  Peter Bartok  <pbartok@novell.com>
34955
34956         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
34957           in turn triggers OnCreateContro) when creating a handle for the
34958           first time.
34959         * TextControl.cs: Fixed endless loop in certain cases when
34960           replacing the current selection
34961
34962 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
34963
34964         * ScrollBar.cs:
34965           - Honors NewValue changes in Scroll events allowing apps to change it
34966           - Adds First and Last Scroll events
34967           - Fixes Thumb events
34968
34969 2005-03-07  Peter Bartok  <pbartok@novell.com>
34970
34971         * Hwnd.cs: Added DefaultClientRectangle property
34972         * XplatUI.cs: Now using the X11 driver Where() method, which provides
34973           more detailed debug information
34974         * XplatUIX11.cs:
34975           - Fixed size-change feedback loop, where we would pull an old size
34976             off the queue and mistakenly change our window's size to an
34977             earlier value
34978           - Now compressing ConfigureNotify events, to reduce looping and
34979             redraw issues
34980         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
34981           is called
34982
34983 2005-03-07  Jackson Harper  <jackson@ximian.com>
34984
34985         * Binding.cs: Push data pushes from data -> property. Check if the
34986         property is readonly when attempting to set it.
34987
34988 2005-03-07  Jackson Harper  <jackson@ximian.com>
34989
34990         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
34991         instead of IsSubclassOf. Pulling data now sets the value on the
34992         control.
34993         * PropertyManager.cs:
34994         * CurrencyManager.cs: Just need to pull data when updating now,
34995         because PullData will set the value on the control.
34996
34997 2005-03-04  Jackson Harper  <jackson@ximian.com>
34998
34999         * Binding.cs: Implement data type parsing and converting on pulled
35000         data. TODO: Are there more ways the data can be converted?
35001
35002 2005-03-04  Jackson Harper  <jackson@ximian.com>
35003
35004         * Binding.cs: Support <Property>IsNull checks. Also bind to the
35005         controls Validating method so we can repull the data when the
35006         control loses focus.
35007
35008 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
35009
35010         * ColumnHeader.cs:
35011           - Fixes null string format
35012           
35013         * ListView.cs:
35014           - Adds enum type checks
35015           - Fixes redrawing and recalc need after changing some properties
35016           - Fixes on focus_item set after the event
35017           - Fixes adding columns after the control has been created
35018           
35019         * ThemeWin32Classic.cs:
35020           - Fixes CheckBox focus rectangle
35021           - Fixes ColumnHeader drawing
35022
35023
35024 2005-03-03  Jackson Harper  <jackson@ximian.com>
35025
35026         * Binding.cs: Bind to <Property>Changed events so we can detect
35027         when properties are changed and update the data.
35028
35029 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
35030
35031         * ImageList.cs:
35032           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
35033           - Fixes ImageList constructor with ImageList container
35034           - Fixes image scaling (wrong parameters at DrawImage)
35035
35036 2005-02-02  Jackson Harper  <jackson@ximian.com>
35037
35038         * Binding.cs: Make property searches case-insensitive. Eliminate
35039         some duplicated code.
35040
35041 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
35042
35043         * ComboBox.cs:
35044                 - Handle focus event
35045                 - Fix scrollbar events
35046                 - Discard highlighted item if remove it
35047                 - Fixes SelectedItem with strings
35048
35049 2005-03-01  Peter Bartok  <pbartok@novell.com>
35050
35051         * Control.cs:
35052           - Fixed Visible property, now follows (once again) parent chain
35053             to return false if any control in the chain is visible=false
35054           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
35055           - Fixed several places where is_visible instead of Visible was used
35056           - Implemented FIXME related to focus selection when setting focused
35057             control to be invisible
35058
35059         * XplatUIWin32.cs: Now using proper method to find out if window is
35060           visible. Thanks to Jordi for pointing it out
35061
35062 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
35063
35064         * ComboBox.cs: show/hide scrollbar instead of creating it
35065
35066 2005-02-27  Jackson Harper  <jackson@ximian.com>
35067
35068         * CurrencyManager.cs: Add PositionChanged stuff.
35069
35070 2005-02-27  Peter Bartok  <pbartok@novell.com>
35071
35072         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
35073         * XplatUIOSX.cs: Added GetMenuOrigin() stub
35074         * XplatUIWin32.cs: Implemented GetMenuOrigin()
35075         * XplatUIX11.cs:
35076           - Implemented GetMenuDC()
35077           - Implemented GetMenuOrigin()
35078           - Implemented ReleaseMenuDC()
35079           - Implemented generation of WM_NCPAINT message
35080           - Implemented generation and handling of WM_NCCALCSIZE message
35081         * Form.cs: Added debug helper message for Jordi's menu work
35082         * Hwnd.cs:
35083           - Modified ClientRect property; added setter, fixed getter to handle
35084             setting of ClientRect
35085           - Added MenuOrigin property
35086
35087 2005-02-26  Peter Bartok  <pbartok@novell.com>
35088
35089         * XplatUIX11.cs:
35090           - Destroys the caret if a window that's being destroyed contains it
35091           - Ignores expose events coming from the X11 queue for windows that
35092             already are destroyed
35093           - Now uses the proper variable for handling DestroyNotify, before we
35094             marked the wrong window as destroyed
35095           - Improved/added some debug output
35096
35097 2005-02-26  Peter Bartok  <pbartok@novell.com>
35098
35099         * X11Keyboard.cs: Fixes to work on 64bit systems
35100
35101 2005-02-26  Peter Bartok  <pbartok@novell.com>
35102
35103         * Control.cs:
35104           - Now calling OnHandleDestroyed from DestroyHandle()
35105             instead of Dispose()
35106           - Removed bogus call to controls.Remove() from DestroyHandle()
35107
35108 2005-02-26  Peter Bartok  <pbartok@novell.com>
35109
35110         * Control.cs: Properly destroy child windows when our handle is
35111           destroyed
35112
35113 2005-02-25  Peter Bartok  <pbartok@novell.com>
35114
35115         * XplatUI.cs:
35116           - Added 'DriverDebug' define to allow tracing XplatUI API calls
35117           - Alphabetized Static Methods and Subclasses
35118
35119         * XplatUIX11.cs:
35120           - Added XException class to allow custom handling of X11 exceptions
35121           - Created custom X11 error handler, tied into XException class
35122           - Added support for MONO_XEXCEPTIONS env var to allow the user
35123             to either throw an exception on X errors or continue running
35124             after displaying the error
35125           - Added handling of DestroyNotify message
35126           - Added handler for CreateNotify message (still disabled)
35127           - Improved (tried to at least) Where method to provide file and lineno
35128         * X11Structs.cs:
35129           - Added XErrorHandler delegate
35130           - Added XRequest enumeration (to suppor translation of errors)
35131
35132 2005-02-25  Jackson Harper  <jackson@ximian.com>
35133
35134         * PropertyManager.cs: Implement editing features
35135         * CurrencyManager.cs:
35136         * Binding.cs: First attempt at UpdateIsBinding
35137         * BindingManagerBase.cs: Call UpdateIsBinding before
35138         pushing/pulling data.
35139
35140 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
35141
35142         * MenuAPI.cs: Respect disabled items
35143         * ThemeWin32Classic.cs
35144                 - Caches ImageAttributes creation for DrawImageDisabled
35145                 - Fixes vertical menu line drawing
35146                 - Draws disabled arrows in disable menu items
35147
35148 2005-02-24  Peter Bartok  <pbartok@novell.com>
35149
35150         * Hwnd.cs:
35151           - Added UserData property to allow associating arbitrary objects
35152             with the handle
35153           - Fixed leak; now removing Hwnd references from static windows array
35154         * XplatUIWin32.cs:
35155           - Fixed Graphics leak in PaintEventEnd
35156           - Removed usage of HandleData, switched over to Hwnd class
35157         * HandleData.cs: Removed, obsoleted by Hwnd.cs
35158
35159 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
35160
35161         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
35162         * ScrollBar.cs: Fixes bug
35163         * TrackBar.cs: removes death code, clipping, mimize refreshes,
35164          keyboard navigation enhancements
35165
35166 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
35167
35168         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
35169         * GroupBox.cs: Add control styles
35170         * Label.cs: Add control styles
35171         * UpDownBase.cs: Add control styles
35172         * ListBox.cs: Add control styles
35173         * XplatUIWin32.cs: Fixes wrong parameter order
35174
35175
35176 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
35177
35178         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
35179
35180 2005-02-23  Jackson Harper  <jackson@ximian.com>
35181
35182         * PropertyManager.cs: Implement property binding. This doesn't
35183         seem to work yet though as (I think) there are some bugs in
35184         System.ComponentModel.PropertyDescriptor.
35185         * BindingContext.cs: Use new PropertyManager constructor.
35186
35187 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
35188
35189         * ProgressBar.cs: use clip region in ProgressBar
35190         * ThemeWin32Classic.cs: use clip region in ProgressBar
35191
35192 2004-02-22  Jackson Harper  <jackson@ximian.com>
35193
35194         * BindingsCollection.cs: Remove some debug code.
35195
35196 2005-02-22  Jackson Harper  <jackson@ximian.com>
35197
35198         * BindingContext.cs:
35199         * ControlBindingsCollection.cs:
35200         * CurrencyManager.cs:
35201         * Binding.cs:
35202         * BindingManagerBase.cs: Initial implementation
35203         * BindingsCollection.cs: Add an internal contains method that the
35204         BindingManagerBase uses to ensure bindings aren't added twice to
35205         the collection.
35206         * PropertyManager.cs: Stubbed out.
35207         * Control.cs:
35208         * ContainerControl.cs: Hook up databinding
35209         
35210 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
35211
35212         * XplatUIOSX.cs:
35213           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
35214           Fixed Invalidate/Update chain.
35215           Fixed tons of other minor bugs (this is almost a complete rewrite).
35216
35217 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
35218
35219         * ComboBox.cs: do subcontrol creation when the control is created
35220
35221 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
35222
35223         * Label.cs: fixes image drawing (image and imagelist)
35224         * ThemeWin32Classic.cs: cache brushes
35225         
35226 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
35227
35228         * Form.cs: Move menu drawing code to Theme class
35229         * ComboBox.cs: Move ComboBox drawing code to Theme class
35230         * MenuItem.cs: Move menu drawing code to Theme class
35231         * MenuAPI.cs: Move menu drawing code to Theme class
35232         * ThemeWin32Classic.cs: New methods
35233         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
35234         * ListBox.cs: Move Listbox drawing code to Theme class
35235         * Theme.cs: New methods
35236
35237 2005-02-20  Peter Bartok  <pbartok@novell.com>
35238
35239         * Control.cs:
35240           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
35241             only process mnemonics on those)
35242           - Fixed event sequence for key handling; first calling
35243             ProcessKeyEventArgs now
35244         * TextBoxBase.cs:
35245           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
35246             for processing non-character keys
35247           - Fixed WM_CHAR to generate proper event sequence before processing
35248         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
35249           generation
35250
35251 2005-02-19  Peter Bartok  <pbartok@novell.com>
35252
35253         * UserControl.cs: Added TextChanged event; added attributes
35254         * SizeGrip.cs: Implemented resizing and optional display of grip
35255         * Form.cs: Fixed attribute
35256         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
35257           Changed meaning of ScrollWindow bool argument; instead of the
35258           clear attribute (which will be true usually anyway), it gives the
35259           option of moving child controls as well.
35260         * XplatUIX11.cs:
35261           - Changed to match new ScrollWindow argument
35262           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
35263             now handles the implicit parent window a WM puts around us
35264         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
35265           to work)
35266         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
35267         * TreeView.cs: Adjusted to new ScrollWindow arguments
35268
35269 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
35270
35271         * Form.cs: Menu integration with non-client area
35272         * MenuItem.cs: Menu integration with non-client area
35273         * MenuAPI.cs: Menu integration with non-client area
35274
35275 2005-02-18  Peter Bartok  <pbartok@novell.com>
35276
35277         * MethodInvoker.cs: Added
35278         * MdiLayout.cs: Added
35279         * SendKeys.cs: Started implementation
35280         * ErrorIconAlignment.cs: Added
35281
35282 2005-02-18  Peter Bartok  <pbartok@novell.com>
35283
35284         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
35285         * Form.cs: Added handling for Menu-related Non-client messages
35286
35287 2005-02-17  Peter Bartok  <pbartok@novell.com>
35288
35289         * UpDownBase.cs: Fixed typo, compilation errors
35290         * DomainUpDown.cs: Fixed attribute value
35291
35292 2005-02-16  Miguel de Icaza  <miguel@novell.com>
35293
35294         * UpDownBase.cs: Attach entry events.
35295         Propagate events.
35296         Add ForeColor property, Focused, InterceptArrowKeys (interception
35297         does not work yet).
35298
35299 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
35300
35301         * Form.cs:
35302                 - Redraw non client are on Setmenu
35303                 - Calc proper menu starting point
35304
35305 2005-02-17  Peter Bartok  <pbartok@novell.com>
35306
35307         * Application.cs: Fixed message_filter check
35308
35309 2005-02-17  Peter Bartok  <pbartok@novell.com>
35310
35311         * Application.cs: Now calls registered message filters
35312         * DockStyle.cs: Fixed attribute
35313         * Form.cs: Fixed attribute
35314         * Menu.cs: Fixed attribute
35315         * ToolTip.cs: Fixed attribute
35316         * TreeNode.cs: Added missing attributes and arranged in regions
35317         * PropertyGrid.cs: Fixed signatures
35318         * TreeNodeCollection.cs: Added attributes
35319         * Splitter.cs: Added missing attributes; arranged into regions
35320         * TabPage.cs: Added missing attributes; arranged into regions
35321         * TextBoxBase.cs: Added missing attributes
35322         * TextBox.cs: Added missing attributes
35323         * ArrangeDirection.cs: Added missing attributes
35324         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
35325         * ToolBarButton.cs: Fixed attributes
35326         * AnchorStyles.cs: Fixed attribute
35327         * TrackBar.cs: Fixed attributes
35328         * TabControl.cs: Added missing attributes and arranged into regions
35329         * ToolBar.cs: Fixed attribute
35330         * StatusBar.cs: Fixed signature, organized into regions and added
35331           attributes
35332         * StatusBarPanel.cs: Fixed attributes
35333         * ContentsResizedEventArgs.cs: Implemented
35334         * ContentsResizedEventHandler.cs: Implemented
35335         * DateBoldEventArgs.cs: Implemented
35336         * DateBoldEventHandler.cs: Implemented
35337         * UpDownEventArgs.cs: Implemented
35338         * UpDownEventHandler.cs: Implemented
35339         
35340 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
35341
35342         * Form.cs: first Menu NC refactoring
35343         * MenuAPI.cs: first Menu NC refactoring
35344         
35345 2005-02-16  Peter Bartok  <pbartok@novell.com>
35346
35347         * ImeMode.cs: Added missing attributes
35348         * Menu.cs: Fixed attribute
35349         * GroupBox.cs: Fixed attribute
35350         * Label.cs: Fixed attribute
35351         * ColorDialog.cs (RunDialog): Removed TODO attribute
35352         * ComboBox.cs: Fixed attributes
35353         * ListControl.cs: Added missing attributes
35354         * PropertyGrid.cs: Fixed attributes
35355         * Control.cs: Fixed attributes
35356         * ListViewItem.cs: Added TypeConverter attribute
35357         * NotifyIcon.cs: Fixed attributes
35358         * ListView.cs: Fixed attributes
35359         * ButtonBase.cs: Fixed attribute
35360         * ImageList.cs: Added missing attributes
35361         * ContainerControl.cs: Fixed signature
35362         * CheckedListBox.cs: Fixed attribute; added missing attributes
35363         * Panel.cs: Fixed attributes
35364         * PropertyTabChangedEventArgs.cs: Added missing attribute
35365         * PropertyValueChangedEventArgs.cs: Added missing attribute
35366         * Binding.cs: Fixed attribute
35367         * ListViewItemConverter: Implemented ListViewSubItemConverter class
35368         * ListBox.cs: Fixed attribute; added missing attributes;
35369         * ScrollableControl.cs: Added missing attributes
35370         * PictureBox.cs: Added missing attributes; implemented missing property
35371         * DateTimePicker.cs: Added missing attributes
35372         * Theme.cs (ToolWindowCaptionHeight): Fixed type
35373         * MonthCalendar.cs: Fixed attributes
35374         * StatusBarPanel.cs: Added missing attributes
35375         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
35376
35377 2005-02-16  Peter Bartok  <pbartok@novell.com>
35378
35379         * TextBoxBase.cs: The previous method to enforce height yet remember
35380           the requested high was less than ideal, this is an attempt to do
35381           it better.
35382         * Control.cs: Added comment about possible problem
35383         * Copyright: Updated format
35384         * GridItemType.cs: Fixed swapped values
35385
35386 2005-02-15  Jackson Harper  <jackson@ximian.com>
35387
35388         * BaseCollection.cs: Use property so we never access an
35389         uninitialized list. Also initialize the list in the property.
35390
35391 2005-02-15  Peter Bartok  <pbartok@novell.com>
35392
35393         * GroupBox.cs (ProcessMnemonic): Implemented
35394         * Label.cs (ProcessMnemonic): Implemented
35395         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
35396           hotkeys
35397
35398 2005-02-15  Peter Bartok  <pbartok@novell.com>
35399
35400         * RadioButton.cs (ProcessMnemonic): Implemented
35401         * CheckBox.cs (ProcessMnemonic): Implemented
35402         * Control.cs:
35403           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
35404             handling
35405           - Added internal method to allow calling ProcessMnemonic from other
35406             controls
35407         * ContainerControl.cs:
35408           - Started support for handling validation chain handling
35409           - Implemented ProcessMnemonic support
35410           - Added Select() call to Active, to make sure the active control
35411             receives focus
35412         * Form.cs: Setting toplevel flag for Forms (this was lost in the
35413           FormParent rewrite)
35414         * ThemeWin32Classic.cs:
35415           - DrawCheckBox(): Fixed stringformat to show hotkeys
35416           - DrawRadioButton(): Fixed stringformat to show hotkeys
35417         * CommonDialog.cs: Removed WndProc override, not needed
35418
35419 2005-02-14  Peter Bartok  <pbartok@novell.com>
35420
35421         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
35422           missed those in the rewrite
35423
35424 2005-02-14  Miguel de Icaza  <miguel@novell.com>
35425
35426         * NumericUpDown.cs (Increment, ToString): Add.
35427         (DecimalPlaces): implement.
35428         
35429         Add attributes.
35430         
35431         * UpDownBase.cs: Add the designer attributes.
35432
35433 2005-02-13  Peter Bartok  <pbartok@novell.com>
35434
35435         * Panel.cs: Removed border_style, now in Control
35436         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
35437           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
35438
35439 2005-02-13  Peter Bartok  <pbartok@novell.com>
35440
35441         * MouseButtons.cs: Added missing attributes
35442         * XplatUIStructs.cs: Added enumeration for title styles
35443         * LeftRightAlignment.cs: Added missing attributes
35444         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
35445           it compatible with Graphics.FromHwnd()
35446         * SelectedGridItemChangedEventArgs.cs: Fixed property type
35447         * Keys.cs: Added missing attributes
35448         * SelectionRange.cs: Added missing attributes
35449         * SelectionRangeConverter.cs: Added
35450         * XplatUI.cs:
35451           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
35452             ReleaseMenuDC methods
35453           - Renamed ReleaseWindow to UngrabWindow
35454           - Added proper startup notice to allow version identification
35455         * Form.cs:
35456           - Added missing attributes
35457           - Removed FormParent concept
35458         * Label.cs: Removed border_style field, now in Control
35459         * RadioButton.cs: Now properly selects RadioButton when focus is
35460           received
35461         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
35462         * Control.cs:
35463           - Added missing attributes
35464           - Added borderstyle handling
35465           - Removed FormParent concept support
35466           - Fixed calls to XplatUI to match changed APIs
35467           - Fixed bug that would case us to use disposed Graphics objects
35468           - Removed unneeded internal methods
35469           - PerformLayout(): Fixed to handle DockStyle.Fill properly
35470           - SelectNextControl(): Fixed to properly check common parents
35471         * TextBoxBase.cs: Removed border_style field (now in Control)
35472         * MessageBox.cs:
35473           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
35474             fixed calculations for form size
35475           - Added support for localized strings and icons
35476           - Improved form size calculations, added border
35477         * ListView.cs: Removed border_style field (now in Control)
35478         * X11Structs.cs: Moved several structs from X11 driver here
35479         * X11Keyboard.cs: Changed debug message
35480         * Application.cs: Removed FormParent concept support
35481         * CommonDialog.cs:
35482           - Resetting end_modal flag
35483           - Removed FormParent concept support
35484         * NativeWindow.cs: Removed FormParent concept support
35485         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
35486           Client area and Non-Client whole window to allow support for WM_NC
35487           messages
35488         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
35489           prevent using it until it supports Hwnd as per Geoff Norton's request
35490         * ToolBar.cs: Fixed drawing, was not doing proper drawing
35491         * PictureBox.cs: Removed border_style field, now in Control
35492         * XplatUIWin32.cs: Added new driver methods
35493
35494 2005-02-12  Peter Bartok  <pbartok@novell.com>
35495
35496         * OpacityConverter.cs: Implemented
35497         * Hwnd.cs: Internal class to support drivers that need to emulate
35498           client area/non-client area window behaviour
35499
35500 2005-02-11  Peter Bartok  <pbartok@novell.com>
35501
35502         * KeysConverter.cs: Implemented
35503
35504 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
35505
35506         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
35507         * LinkLabel: Added missing attributes
35508         * MainMenu.cs: fixes ToString
35509         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
35510         * ListBox.cs: fixes event position
35511         * TrackBar.cs: adds missing attributes and events
35512         
35513 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
35514
35515         * MenuItem.cs: Use SystemInformation and bug fixes
35516         * MenuAPI.cs: Use SystemInformation and bug fixes
35517
35518 2005-02-09  Jackson Harper  <jackson@ximian.com>
35519
35520         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
35521         their keystate otherwise things like VK_MENU get stuck "on".
35522
35523 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
35524
35525         * ListBox.cs: Fixes AddRange bug
35526         
35527 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
35528
35529         * ProgressBar.cs
35530                 - Add missing attributes
35531                 - Add missing method
35532                 
35533         * CheckedListBox.cs: Added missing attributes
35534                 - Add missing attributes
35535                 - Remove extra method
35536         
35537         * ComboBox.cs: Added missing attributes
35538         * VScrollBar.cs: Added missing attributes
35539         * ScrollBar.cs:  Added missing attributes
35540         * ListBox.cs: Fixes signature, add missing consts
35541         * LinkArea.cs:   Added missing attributes
35542         
35543
35544 2005-02-08  Peter Bartok  <pbartok@novell.com>
35545
35546         * Menu.cs: Added missing attributes
35547         * MainMenu.cs: Added missing attributes
35548         * GroupBox.cs: Added missing attributes
35549         * Label.cs: Added missing attributes
35550         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
35551         * ColorDialog.cs:
35552           - Added Instance and Options properties
35553           - Added missing attributes
35554         * Cursor.cs: Made Serializable
35555         * NotifyIcon: Added missing attributes
35556         * MenuItem.cs: Added missing attributes
35557         * TextBoxBase.cs: Implemented AppendText() and Select() methods
35558         * Panel.cs: Added Missing attributes
35559         * MonthCalendar.cs: Fixed CreateParams
35560
35561 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
35562         
35563         * LinkLabel.cs:
35564                 - Fixes signature
35565                 - Fixes issues with links
35566                 - Adds the class attributes
35567
35568 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
35569         
35570         * ComboBox.cs:
35571                 - Fixes button when no items available in dropdown
35572                 - Fixes repainting problems
35573                 - Adds the class attributes
35574                 
35575 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35576
35577         * XplatUIOSX.cs: Detect the menu bar and title bar height from
35578         the current theme.  Cache these on startup.
35579
35580 2005-02-07  Jackson Harper  <jackson@ximian.com>
35581
35582         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
35583         the scrollbar buttons when they are depressed.
35584
35585 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35586
35587         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
35588         Get the display size from the main displayid.  We currently dont
35589         support multiple display configurations.
35590
35591 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35592
35593         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
35594
35595 2005-02-07  Miguel de Icaza  <miguel@novell.com>
35596
35597         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
35598
35599 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
35600
35601         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
35602
35603 2005-02-04  Jackson Harper  <jackson@ximian.com>
35604
35605         * ThemeWin32Classic.cs: Respect the clipping rect when
35606         drawing. Only fill the intersection of clips and rects so there
35607         isn't a lot of large fills.
35608         * ScrollBar.cs: Pass the correct clipping rect to the theme
35609         engine. Remove some debug code.
35610
35611 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
35612         
35613         * DateTimePicker.cs:
35614                 - Fixed crash on DateTime.Parse, use Constructor instead
35615
35616 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
35617         
35618         * MenuItem.cs:
35619         * MenuAPI.cs:
35620                 - Owner draw support (MeasureItem and DrawItem)
35621
35622 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
35623         
35624         *  Menu.cs:
35625                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
35626                 - Fixes MenuItems.Add range
35627         * MenuItem.cs:
35628                 - MergeMenu and Clone and CloneMenu functions
35629
35630 2005-02-03  Jackson Harper  <jackson@ximian.com>
35631
35632         * ScrollBar.cs: Make abstract
35633         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
35634         is abstract.
35635
35636 2005-02-03  Jackson Harper  <jackson@ximian.com>
35637
35638         * ScrollBar.cs: First part of my scrollbar fixups. This removes
35639         all the unneeded refreshes and uses invalidates with properly
35640         computed rects.
35641
35642 2005-02-03  Peter Bartok  <pbartok@novell.com>
35643
35644         * ComponentModel.cs: Added
35645         * IDataGridEditingService.cs: Added
35646         * Timer.cs: Added missing attributes
35647         * ToolTip.cs: Added missing attributes
35648
35649 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
35650
35651         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
35652
35653 2005-02-03  Peter Bartok  <pbartok@novell.com>
35654
35655         * ListBox.cs: Added missing attributes
35656
35657 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
35658         
35659         * ListBox.cs:
35660                 - Fixes font height after font change
35661                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
35662                 
35663 2005-02-02  Peter Bartok  <pbartok@novell.com>
35664
35665         * HandleData.cs: Introduced static methods to allow class
35666           to be more self-contained and track it's own HandleData objects
35667         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
35668           HandleData to use new static methods
35669
35670 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
35671
35672         * Combobox.cs:
35673                 - Fixes default size and PreferredHeight
35674                 - Missing events
35675                 - ObjectCollection.Insert implementation
35676                 
35677         * ListControl.cs
35678                 - Fixes signature
35679         * ListBox.cs:
35680                 - Several fixes
35681                 - ObjectCollection.Insert implementation
35682                 - No selection after clean
35683                 - Small fixes
35684
35685 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35686
35687         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
35688
35689 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
35690
35691         * Combobox.cs:
35692                 - Caches ItemHeight calculation for OwnerDrawVariable
35693                 - Handles dropdown properly
35694                 - Fixes several minor bugs
35695
35696 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35697
35698         * ListBox.cs:
35699                 - Fixes 71946 and 71950
35700                 - Fixes changing Multicolumn on the fly
35701                 - Fixes keyboard navigation on Multicolumn listboxes
35702
35703 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35704         
35705         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
35706         crash reporter log.
35707
35708 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35709
35710         * XplatUIOSX.cs: Allow applications to actually exit.
35711
35712 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35713
35714         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
35715         their parent at creation time rather than lazily later.  Fixes a major
35716         regression we were experiencing.
35717
35718 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35719
35720         * ThemeWin32Classic.cs: more date time picker painting fixes
35721         * DateTimePicker.cs: more monthcalendar drop down fixes
35722         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
35723
35724 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35725
35726         * ScrollBar.cs:
35727                 - When moving the thumb going outside the control should stop the moving
35728                 - Adds the firing of missing events
35729                 - Fixes no button show if Size is not specified
35730                 - End / Home keys for keyboard navigation
35731
35732 2005-01-30  Peter Bartok  <pbartok@novell.com>
35733
35734         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
35735           sanity check to prevent theoretical loop
35736         * XplatUIWin32.cs (SetVisible): Removed debug output
35737         * XplatUIX11.cs (SystrayChange): Added sanity check
35738         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
35739         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
35740           behaviour, valid until the X11 client window rewrite is done
35741         * TextBox.cs (ctor): Setting proper default foreground and background
35742           colors
35743
35744 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
35745
35746         * Theme: Added DrawDateTimePicker to interface
35747         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
35748         * DateTimePicker.cs: Created (still needs keys and painting code)
35749         * DateTimePickerFormat.cs: added
35750         * MonthCalendar.cs: fixed CreateParams for popup window mode
35751           
35752 2005-01-29  Peter Bartok  <pbartok@novell.com>
35753
35754         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
35755           this should also the calculations for ligher/darker
35756         * Theme.cs: Fixed defaults for ScrollBar widths/heights
35757
35758 2005-01-29  Peter Bartok  <pbartok@novell.com>
35759
35760         * ArrangeDirection.cs: Added
35761         * ArrangeStartingPositon.cs: Added
35762         * SystemInformation.cs: Implemented
35763         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35764           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
35765           used by SystemInformation class
35766         * X11Strucs.cs: Added XSizeHints structure
35767         * MenuAPI.cs:
35768           - Fixed CreateParams to make sure the menu window is always visible
35769           - TrackPopupMenu: Added check to make sure we don't draw the
35770             menu offscreen
35771
35772 2005-01-29  Peter Bartok  <pbartok@novell.com>
35773
35774         * HandleData.cs: Added method for altering invalid area
35775         * TextBoxBase.cs: Implemented TextLength
35776
35777 2005-01-28  Peter Bartok  <pbartok@novell.com>
35778
35779         * XplatUIX11.cs: Improvement over last patch, not sending
35780           the WM_PAINT directly anymore, instead we scroll any pending
35781           exposed areas and let the system pick out the WM_PAINT later
35782
35783 2005-01-28  Peter Bartok  <pbartok@novell.com>
35784
35785         * SWF.csproj: Deleted, no longer used. Instead,
35786           Managed.Windows.Forms/SWF.csproj should be used
35787         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
35788           directly, to avoid a potential race condition with the next
35789           scroll
35790
35791 2005-01-28  Peter Bartok  <pbartok@novell.com>
35792
35793         * XplatUI.cs: Made class internal
35794
35795 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
35796
35797         * CheckedListBox.cs:
35798                 - Draw focus
35799                 - Fixed Drawing
35800                 - Missing methods and events
35801
35802 2005-01-27  Peter Bartok  <pbartok@novell.com>
35803
35804         * Application.cs (Run): Don't use form if we don't have one
35805
35806 2005-01-27  Peter Bartok  <pbartok@novell.com>
35807
35808         * TextBoxBase.cs (get_Lines): Fixed index off by one error
35809
35810 2005-01-27  Peter Bartok  <pbartok@novell.com>
35811
35812         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
35813         * GridItem.cs: Added; Patch by Jonathan S. Chambers
35814         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
35815         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
35816         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
35817         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
35818         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35819         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35820         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35821         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35822         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35823         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35824
35825 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35826
35827         * Combobox.cs:
35828                 - Draw focus on Simple Combobox
35829                 - Fixes drawing issues
35830                 - fixes 71834
35831
35832 2005-01-27  Peter Bartok  <pbartok@novell.com>
35833
35834         * Form.cs:
35835           - Place window in default location, instead of hardcoded 0/0
35836           - Send initial LocationChanged event
35837         * Control.cs:
35838           - UpdateBounds after creation to find out where the WM placed us
35839           - Make sure that if the ParentForm changes location the Form
35840             is notified
35841         * XplatUIX11.cs: XGetGeometry will not return the coords relative
35842             to the root, but to whatever the WM placed around us.
35843             Translate to root coordinates before returning toplevel
35844             coordinates
35845         * XplatUIWin32.cs: Removed debug output
35846         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
35847           flag to GetWindowPos, to allow translation of coordinates on X11
35848
35849 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35850
35851         * ListBox.cs: connect LostFocus Event
35852
35853 2005-01-27  Peter Bartok  <pbartok@novell.com>
35854
35855         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35856           XplatUIX11.cs: Extended the Systray API
35857         * Form.cs: Removed debug output
35858         * Application.cs: Fixed focus assignment, always need to call
35859           XplatUI.Activate() since Form.Activate() has rules that may
35860           prevent activation
35861         * NotifyIcon.cs: Should be complete now
35862         * ToolTip.cs: Worked around possible timer bug
35863
35864 2005-01-27  Jackson Harper  <jackson@ximian.com>
35865
35866         * TabControl.cs:
35867         - Only invalidate the effected tabs when the
35868         selected index changes. This reduces drawing and gets rid of some
35869         flicker.
35870         - Only refresh if the tabs need to be shifted, otherwise only
35871         invalidate the slider button.
35872         - On windows the tabs are not filled to right if the slider is
35873         visible.
35874         
35875 2005-01-27  Jackson Harper  <jackson@ximian.com>
35876
35877         * TabControl.cs: Only refresh on mouseup if we are showing the
35878         slider. Also only invalidate the button whose state has changed.
35879
35880 2005-01-26  Peter Bartok  <pbartok@novell.com>
35881
35882         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
35883         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
35884           and SystrayRemove() methods
35885         * XplatUIOSX.cs: Stubbed Systray methods
35886         * XplatUIX11.cs:
35887           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
35888             methods
35889           - Fixed broken XChangeProperty calls (marshalling messed up things)
35890         * X11Structs.cs: Added enums and structs required for Size hinting
35891         * NotifyIcon.cs: Added & implemented
35892
35893 2005-01-26  Jackson Harper  <jackson@ximian.com>
35894
35895         * TabControl.cs: Space vertically layed out tabs properly.
35896
35897 2005-01-26  Peter Bartok  <pbartok@novell.com>
35898
35899         * Form.cs (CreateClientParams): Always set the location to 0,0
35900           since we're a child window.
35901
35902         * Control.cs (SetVisibleCore): Always explicitly setting the location
35903           of a toplevel window, apparently X11 doesn't like to move windows
35904           while they're not mapped.
35905
35906 2005-01-26  Jackson Harper  <jackson@ximian.com>
35907
35908         * TabControl.cs: Implement FillToRight size mode with vertically
35909         rendered tabs.
35910
35911 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35912
35913         * ControlPaint.cs, ThemeWin32Classic.cs
35914                 - Fixes DrawFocusRectangle
35915
35916 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35917
35918         * MenuAPI.cs:
35919                 - MenuBar tracking only starts when item is first clicked
35920                 - Fixes menu hidding for multiple subitems
35921                 - Unselect item in MenuBar when item Executed
35922                 - Fixes bug 71495
35923
35924 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
35925
35926         * ListControl.cs:
35927                 - IsInputKey for ListBox
35928         * ListBox.cs:
35929                 - Focus item
35930                 - Shift and Control item selection
35931                 - Implement SelectionMode.MultiExtended
35932                 - Fixes RightToLeft
35933         * ComboBox.cs:
35934                 - IsInputKey implemented
35935                 - Do not generate OnTextChangedEdit on internal txt changes
35936                 
35937 2005-01-23  Peter Bartok  <pbartok@novell.com>
35938
35939         * AccessibleObject.cs: Partially implemented Select()
35940         * MonthCalendar.cs: Added missing attributes and events
35941         * Form.cs: Fixed CreateParams behaviour, now controls derived from
35942           form can properly override CreateParams.
35943         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35944           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
35945           Control performs Invalidate & Update
35946         * NativeWindow (CreateHandle): Added special handling for Form
35947           and Form.FormParent classes to allow overriding of From.CreateParams
35948         * Control.cs:
35949           - ControlNativeWindow: Renamed 'control' variable to more intuitive
35950             name 'owner'
35951           - ControlNativeWindow: Added Owner property
35952           - Removed usage of Refresh() on property changes, changed into
35953             Invalidate(), we need to wait until the queue is processed for
35954             updates, direct calls might cause problems if not all vars for
35955             Paint are initialized
35956           - Added call to UpdateStyles() when creating the window, to set any
35957             styles that CreateWindow might have ignored.
35958           - Added support for Form CreateParent overrides to UpdateStyles()
35959         * MessageBox.cs: Removed no longer needed FormParent override stuff,
35960           CreateParams are now properly overridable
35961         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
35962           CreateParams are now properly overridable
35963
35964 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
35965
35966         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
35967         OnTextBoxChanged.
35968
35969         Capture LostFocus and OnTextBoxChanged.  The later introduces a
35970         recursive invocation that I have not figured out yet.
35971
35972         Reset the timer when not using (it was accumulating).
35973
35974
35975         (OnTextBoxChanged): Set UserEdit to true here to track whether the
35976         user has made changes that require validation.
35977
35978         Reset changing to avoid loops.
35979
35980 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
35981
35982         * NumericUpDown.cs: Display value at startup.
35983
35984         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
35985         ValidateEditText.
35986
35987         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
35988         filled in.  Added some basic parsing of text.
35989
35990         Still missing the OnXXX method overrides, and figuring out the
35991         events that must be emitted.
35992
35993         * UpDownBase.cs: Handle UserEdit on the Text property.
35994         
35995 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
35996
35997         * ComboBox.cs:
35998           - Fixes IntegralHeight
35999           - ToString method
36000
36001 2005-01-21  Jackson Harper  <jackson@ximian.com>
36002
36003         * TabControl.cs: Set the SelectedIndex property when SelectedTab
36004         is set so that the page visibility is updated and the tabs are
36005         sized correctly.
36006
36007 2005-01-21  Jackson Harper  <jackson@ximian.com>
36008
36009         * TabControl.cs: Use cliping rectangle for blitting. Give the
36010         theme the clipping rect so we can do clipping while
36011         drawing. Remove some debug code.
36012
36013 2005-01-21  Jackson Harper  <jackson@ximian.com>
36014
36015         * TabPage.cs: Add a new method so tab pages can force the tab
36016         control to recalculate the tab page sizes.
36017         * TabControl.cs: UpdateOwner needs to make the tab control recalc
36018         sizes.
36019
36020 2005-01-20  Jackson Harper  <jackson@ximian.com>
36021
36022         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
36023
36024 2005-01-20  Jackson Harper  <jackson@ximian.com>
36025
36026         * TreeView.cs: Set the bounds for nodes properly. They were
36027         getting screwed up when checkboxes were not enabled, but images
36028         were.
36029
36030 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
36031
36032         * ListBox.cs:
36033                 - Owner draw support
36034                 - Fixes
36035                 
36036 2005-01-20  Jackson Harper  <jackson@ximian.com>
36037
36038         * XplatUIStructs.cs: More misc keys
36039         * X11Keyboard.cs: Ignore some control keys.
36040
36041 2005-01-20  Jackson Harper  <jackson@ximian.com>
36042
36043         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
36044         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
36045
36046 2005-01-19  Peter Bartok  <pbartok@novell.com>
36047
36048         * Control.cs: Un-selecting the control when it is loosing focus
36049
36050 2005-01-19  Jackson Harper  <jackson@ximian.com>
36051
36052         * TreeView.cs: Hook up to the text controls leave event so we can
36053         end editing when the users clicks outside the text box.
36054         
36055 2005-01-19  Jackson Harper  <jackson@ximian.com>
36056
36057         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
36058         get set in the conversion array.
36059
36060 2005-01-19  Peter Bartok  <pbartok@novell.com>
36061
36062         * Application.cs (ModalRun): Added a call to CreateControl to ensure
36063           focus is properly set
36064         * Button.cs:
36065           - Added missing attributes
36066           - removed styles, those are already set in the base class
36067         * ButtonBase.cs:
36068           - Added missing attributes
36069           - Added clip window styles
36070         * CheckBox.cs: Added missing attributes
36071         * CommonDialog.cs:
36072           - FormParentWindow.CreateParams: Added required clip styles
36073         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
36074           also filters modifier keys
36075         * MessageBox.cs:
36076           - Added assignment of Accept and Cancel button to enable Enter
36077             and Esc keys in MessageBox dialogs
36078           - FormParentWindow.CreateParams: Added required clip styles
36079         * RadioButton.cs: Added missing attributes
36080         * TextControl.cs: No longer draws selection if control does not
36081           have focus
36082         * TextBoxBase.cs:
36083           - Now draws simple rectangle around test area to make it obvious
36084             there's a control. This is a hack until we properly support borders
36085           - A few simple fixes to support selections better, now erases selected
36086             text when typing, and resets selection when using movement keys
36087
36088 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
36089
36090         * UpDownBase.cs: Added some new properties.
36091
36092         * DomainUpDown.cs: Implement a lot to get my test working.
36093
36094 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
36095
36096         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
36097
36098 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
36099
36100         * OSXStructs (WindowAttributes): Fixed csc complaints
36101
36102 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
36103
36104         * XplayUIOSX.cs:
36105           OSXStructs.cs: Initial refactor to move enums and consts into
36106           OSXStructs and use them in the driver for greater readability.
36107
36108 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
36109
36110         * XplatUIOSX.cs: Initial support for Standard Cursors.
36111         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
36112
36113 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
36114
36115         * ComboBox.cs: ability to change style when the ctrl is already
36116         created, missing methods and events, bug fixes, signature fixes
36117
36118 2005-01-19  Peter Bartok  <pbartok@novell.com>
36119
36120         * Cursors.cs (ctor): Added ctor to fix signature
36121
36122 2005-01-18  Peter Bartok  <pbartok@novell.com>
36123
36124         * Button.cs: Implemented DoubleClick event
36125         * ButtonBase.cs:
36126           - Fixed keyboard handling to behave like MS, where the press of
36127             Spacebar is equivalent to a mousedown, and the key release is
36128             equivalent to mouseup. Now a spacebar push will give the same
36129             visual feedback like a mouse click.
36130           - Added missing attributes
36131           - Added ImeModeChanged event
36132           - Added support for generating DoubleClick event for derived classes
36133         * CheckBox.cs:
36134           - Implemented DoubleClick event
36135           - Added missing attributes
36136         * CommonDialog.cs: Added missing attribute
36137         * ContextMenu.cs: Added missing attributes
36138         * RadioButton.cs:
36139           - AutoChecked buttons do not allow to be unselected when clicked
36140             (otherwise we might end up with no selected buttons in a group)
36141           - Added missing attributes
36142           - Implemented DoubleClickEvent
36143         * ThreadExceptionDialog.cs: Enabled TextBox code
36144
36145 2005-01-18  Peter Bartok  <pbartok@novell.com>
36146
36147         * Form.cs: Removed debug output
36148         * Button.cs: Added support for DoubleClick method
36149
36150 2005-01-18  Peter Bartok  <pbartok@novell.com>
36151
36152         * Form.cs:
36153           - Added method to parent window that allows triggering size
36154             calculations when a menu is added/removed
36155           - set_Menu: Cleaned up mess from early days of Form and Control,
36156             now properly triggers a recalc when a menu is added/removed
36157           - Added case to select form itself as focused form if no child
36158             controls exist
36159           - Added PerformLayout call when showing dialog, to ensure properly
36160             placed controls
36161         * Control.cs:
36162           - Select(): Made internal so Form can access it
36163           - Focus(): Only call Xplat layer if required (avoids loop), and sets
36164             status
36165         * Application.cs (Run): Removed hack and calls PerformLayout instead
36166           to trigger calculation when Form becomes visible
36167
36168 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
36169
36170         * ComboBox.cs: fixes for ownerdraw
36171
36172 2005-01-18  Peter Bartok  <pbartok@novell.com>
36173
36174         * TextControl.cs:
36175           - Sentinel is no longer static, each Document gets it's own, this
36176             avoids locking or alternatively overwrite problems when more
36177             than one text control is used simultaneously.
36178           - Switched to use Hilight and HilightText brushes for text selection
36179
36180         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
36181
36182 2005-01-18  Peter Bartok  <pbartok@novell.com>
36183
36184         * Control.cs:
36185           - Hooked up the following events:
36186                 o ControlAdded
36187                 o ControlRemoved
36188                 o HandleDestroyed
36189                 o ImeModeChanged
36190                 o ParentChanged
36191                 o TabStopChanged
36192                 o Invalidated
36193                 o SystemColorsChanged
36194                 o ParentFontChanged
36195                 o Move
36196           - Removed debug output
36197           - Added a call to the current theme's ResetDefaults when a color change
36198             is detected
36199         * Form.cs: Now setting the proper ImeMode
36200         * Theme.cs: Defined a method to force recreation of cached resources
36201           and rereading of system defaults (ResetDefaults())
36202         * ThemeWin32Classic.cs: Added ResetDefaults() stub
36203
36204 2005-01-17  Peter Bartok  <pbartok@novell.com>
36205
36206         * Control.cs: Added missing attributes
36207
36208 2005-01-17  Jackson Harper  <jackson@ximian.com>
36209
36210         * TreeNode.cs: Implement editing. Add missing properties selected
36211         and visible.
36212         * TreeView.cs: Implement node editing. Also some fixes to use
36213         Invalidate (invalid area) instead of Refresh when selecting.
36214
36215 2005-01-17  Peter Bartok  <pbartok@novell.com>
36216
36217         * Control.cs:
36218           - Implemented InvokeGotFocus() method
36219           - Implemented InvokeLostFocus() method
36220           - Implemented InvokePaint() method
36221           - Implemented InvokePaintBackground() method
36222           - Implemented InvokeClick() method
36223           - Implemented FindForm() method
36224           - Implemented RectangleToClient() method
36225           - Implemented ClientToRectangle() method
36226           - Implemented ResetBackColor() method
36227           - Implemented ResetCursor() method
36228           - Implemented ResetFont() method
36229           - Implemented ResteForeColor() method
36230           - Implemented ResetImeMode() method
36231           - Implemented ResetLeftToRight() method
36232           - Implemented ResetText() method
36233           - Implemented Scale() methods
36234           - Implemented ScaleCore() method
36235           - Implemented Update() method
36236           - Removed unused variables
36237           - Stubbed AccessibilityNotifyClients and
36238             ControlAccessibleObject.NotifyClients() methods (dunno what to do
36239             with those yet)
36240           - Now setting proper default for RightToLeft property
36241           - Fixed bug in SetClientSizeCore that would cause windows to get
36242             really big
36243           - Now sending Click/DoubleClick events
36244           - Now selecting controls when left mouse button is clicked on
36245             selectable control
36246         * AccessibleEvents.cs: Added
36247         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
36248         * XplatUIOSX.cs: Stubbed UpdateWindow() method
36249         * XplatUIWin32.cs: Implemented UpdateWindow() method
36250         * XplatUIX11.cs: Implemented UpdateWindow() method
36251         * Form.cs: Removed stray semicolon causing CS0162 warning
36252         * ThemeWin32Classic.cs: Fixed unused variable warnings
36253         * ScrollableControl.cs: Now calls base method for ScaleCore
36254         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
36255           style to avoid interference with internal click handler (which is
36256           different than standard Control click handling)
36257         * RadioButton.cs:
36258           - Now unchecks all sibling radio buttons when control is
36259             selected (Fixes #68756)
36260           - Removed internal tabstop variable, using the one inherited from
36261             Control
36262
36263 2005-01-17  Jackson Harper  <jackson@ximian.com>
36264
36265         * NavigateEventArgs.cs: Fix base type.
36266         * LinkLabel.cs: Sig fix
36267         
36268 2005-01-17  Jackson Harper  <jackson@ximian.com>
36269
36270         * TreeView.cs: Only invalidate the effected nodes bounds when
36271         selecting nodes.
36272
36273 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
36274
36275         * XplatUIWin32.cs: fixes Win32 marshaling
36276         * XplatUIX11.cs: fixes method signature
36277
36278 2005-01-17  Peter Bartok  <pbartok@novell.com>
36279
36280         * XplatUIX11.cs: Clean up resources when we no longer need them
36281
36282 2005-01-17  Peter Bartok  <pbartok@novell.com>
36283
36284         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
36285           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
36286           and DestroyCursor() methods.
36287         * Cursor.cs: Partially implemented, now supports standard cursors;
36288           still contains some debug code
36289         * Cursors.cs: Implemented class
36290         * Control.cs:
36291           - WndProc(): Added handling of WM_SETCURSOR message, setting the
36292             appropriate cursor
36293           - Implemented Cursor property
36294           - Replaced break; with return; more straightforwar and possibly
36295             faster
36296           - Now properly setting the result for WM_HELP
36297         * X11Structs.cs: Added CursorFontShape enum
36298         * XplatUIStructs.cs:
36299           - Added StdCursor enum (to support DefineStdCursor() method)
36300           - Added HitTest enum (to support sending WM_SETCURSOR message)
36301         * XplatUIX11.cs:
36302           - Now sends the WM_SETCURSOR message
36303           - Implemented new cursor methods
36304         * XplatUIOSX.cs: Stubbed new cursor methods
36305         * XplatUIWin32.cs:
36306           - Implemented new cursor methods
36307           - Added GetSystemMetrics function and associated enumeration
36308
36309 2005-01-15  Peter Bartok  <pbartok@novell.com>
36310
36311         * Control.cs:
36312           - WndProc(): Now handles EnableNotifyMessage
36313           - SelectNextControl(): Fixed bug where if no child or sibling
36314             controls exist we looped endlessly
36315
36316 2005-01-14  Jackson Harper  <jackson@ximian.com>
36317
36318         * TreeView.cs: Recalculate the tab pages when a new one is added
36319         so that the proper bounding rects are created.
36320
36321 2005-01-14  Jackson Harper  <jackson@ximian.com>
36322
36323         * TreeView.cs: Draw a gray box instead of a grip in the lower
36324         right hand corner when there are both horizontal and vertical
36325         scroll bars.
36326
36327 2005-01-14  Jackson Harper  <jackson@ximian.com>
36328
36329         * Control.cs: When erasing backgrounds use FromHwnd instead of
36330         FromHdc when there is a NULL wparam. This occurs on the X driver.
36331         * XplatUIX11.cs: Set the wparam to NULL.
36332
36333 2005-01-13  Jackson Harper  <jackson@ximian.com>
36334
36335         * PictureBox.cs: Implement missing methods (except ToString, need
36336         to test that on windows) and events. When visibility is changed we
36337         need to redraw the image because the buffers are killed. When size
36338         is changed refresh if the sizemode needs it.
36339
36340 2005-01-13  Peter Bartok  <pbartok@novell.com>
36341
36342         * Control.cs (SelectNextControl): Was using wrong method to select
36343           a control
36344
36345 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
36346
36347         * ComboBox.cs: fixes dropstyle
36348
36349 2005-01-13  Peter Bartok  <pbartok@novell.com>
36350
36351         * Form.cs:
36352           - Implemented Select() override
36353           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
36354           - Now sets keyboard focus on startup
36355         * Control.cs (SelectNextControl): Now properly handles directed=true
36356         * TextBoxBase.cs:
36357           - WndProc: Now passes tab key on to base if AcceptTabChar=false
36358           - Added (really bad) focus rectangle (mostly for testing)
36359         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
36360           to enforce redraw on focus changes
36361         * ContainerControl.cs:
36362           - Fixed detection of Shift-Tab key presses
36363           - Fixed traversal with arrow keys
36364         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
36365           gonna keep this or if it's complete yet
36366         
36367 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
36368
36369         * ComboBox.cs: missing properties, fixes
36370
36371 2005-01-13  Peter Bartok  <pbartok@novell.com>
36372
36373         * Panel.cs (ctor): Setting Selectable window style to off
36374         * Splitter.cs (ctor): Setting Selectable window style to off
36375         * GroupBox.cs (ctor): Setting Selectable window style to off
36376         * Label.cs (ctor): Setting Selectable window style to off
36377
36378 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
36379
36380         * UpDownBase.cs (InitTimer): If the timer has been already
36381         created, enable it.
36382
36383         Use a TextBox instead of a Label.
36384
36385 2005-01-12  Jackson Harper  <jackson@ximian.com>
36386
36387         * TreeView.cs: Refresh the tree after sorting the nodes. Always
36388         draw the connecting node lines (when ShowLines is true).
36389         * TreeNode.cs: The nodes index can now be updated. This is used
36390         when a node collection is sorted.
36391         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
36392         insert or an existing unsorted node collection can be sorted.
36393         
36394 2005-01-12  Peter Bartok  <pbartok@novell.com>
36395
36396         * ContainerControl.cs: Implemented ProcessDialogKeys()
36397
36398 2005-01-12  Peter Bartok  <pbartok@novell.com>
36399
36400         * Control.cs:
36401           - Implemented SelectNextControl() method
36402           - Several focus related bug fixes
36403           - Fixed Docking calculations to match MS documentation and
36404             behaviour
36405
36406 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
36407
36408         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
36409         bug fixes
36410
36411 2005-01-12  Peter Bartok  <pbartok@novell.com>
36412
36413         * Control.cs:
36414           - Fixed broken Contains() method
36415           - Implemented GetNextControl() method. Finally. This is the pre-
36416             requisite for focus handling.
36417
36418 2005-01-12  Peter Bartok  <pbartok@novell.com>
36419
36420         * OSXStrucs.cs: Added
36421
36422 2005-01-12  Peter Bartok  <pbartok@novell.com>
36423
36424         * XplatUIWin32.cs:
36425           - Removed PeekMessageFlags
36426           - Implemented SetWindowStyle() method
36427         * XplatUIStructs.cs: Added PeekMessageFlags
36428         * X11Structs: Added missing border_width field to XWindowChanges struct
36429         * XplatUIX11.cs:
36430           - PeekMessage: Now throws exception if flags which are not yet
36431             supported are passed
36432           - Implemented SetWindowStyle() method
36433           - Fixed SetZOrder to handle AfterHwnd properly
36434         * XplatUI.cs: Added SetWindowStyle() method
36435         * XplatUIDriver.cs: Added SetWindowStyle() abstract
36436         * Control.cs:
36437           - Implemented UpdateStyles() method
36438           - Implemented UpdateZOrder() method
36439         * XplatUIOSX.cs: Added SetWindowStyle() stub
36440
36441 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
36442
36443         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
36444         button mouse).
36445
36446
36447 2005-01-11  Jackson Harper  <jackson@ximian.com>
36448
36449         * TreeView.cs: Still need to draw lines to siblings even if out of
36450         the current node is out of the clip.
36451
36452 2005-01-11  Jackson Harper  <jackson@ximian.com>
36453
36454         * TreeView.cs: When setting the hbar/vbar/grip position use
36455         SetBounds so that perform layout is only called once. Also suspend
36456         and resume layout so layout is only done once for all controls.
36457         - Removed some debug fluff
36458         * SizeGrip.cs: Call base implmentation in overriding methods.
36459         - When visibility is changed the drawing buffers are killed so we
36460         need to redraw.
36461
36462 2005-01-11  Jackson Harper  <jackson@ximian.com>
36463
36464         * TreeView.cs: Calculate the open node count while drawing. This
36465         saves us an entire tree traversal for every paint operation. Use
36466         a member var for the open node count so less vars are passed around.
36467
36468 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
36469
36470         * MonthCalendar.cs:
36471         - fixed selection to use mousemove, not mouse polling on timer
36472         * ThemeWin32Classic.cs
36473         - removed redundant unused variable "no_more_content"
36474         
36475 2005-01-11  Peter Bartok  <pbartok@novell.com>
36476
36477         * XplatUIX11.cs (DoEvents): Needs to return when no more events
36478           are pending, so it now calls PeekMessage instead of GetMessage;
36479           implemented a incomplete version of PeekMessage
36480         
36481 2005-01-11  Peter Bartok  <pbartok@novell.com>
36482
36483         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
36484           I18n issues
36485         * TextBoxBase.cs: Added sending of TextChanged event
36486
36487 2005-01-10  Jackson Harper  <jackson@ximian.com>
36488
36489         * TreeView.cs: Try not to draw outside the clipping rectangle on
36490         each node element.
36491
36492 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
36493
36494         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
36495
36496 2005-01-10  Jackson Harper  <jackson@ximian.com>
36497
36498         * TreeView.cs:
36499         - Implement fast scrolling. Now only the newly
36500         exposed nodes are drawn and the old image is moved using the
36501         XplatUI::ScrollWindow method.
36502         - Factor in height of nodes when calculating whether or not the
36503         node is in the clipping rect.
36504
36505 2005-01-10  Jackson Harper  <jackson@ximian.com>
36506
36507         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
36508
36509 2005-01-10  Peter Bartok  <pbartok@novell.com>
36510
36511         * Application.cs: Added temporary hack to resolve all our resize
36512           required issues on startup. This will get fixed properly at
36513           some point in the future
36514
36515 2005-01-10  Jackson Harper  <jackson@ximian.com>
36516
36517         * SizeGrip.cs: New internal class that is used as a sizing
36518         grip control...hence the name.
36519
36520 2005-01-10  Peter Bartok  <pbartok@novell.com>
36521
36522         * Control.cs: Implemented proper TabIndex handling, now assigning
36523           a tabindex when a control is added to a container
36524         * GroupBox.cs (ctor): Now sets the Container style bit, required
36525           for Control.GetNextControl()
36526
36527 2005-01-09  Jackson Harper  <jackson@ximian.com>
36528
36529         * TextBoxBase.cs: Clear window when scrolling (fixes build).
36530
36531 2005-01-09  Peter Bartok <pbartok@novell.com>
36532
36533         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
36534           XplatUIX11.cs: Added ability to control ScrollWindow expose and
36535           an overload for ScrollWindow to allow only scrolling a rectangle
36536
36537 2005-01-09  Peter Bartok <pbartok@novell.com>
36538
36539         * Form.cs:
36540           - Implemented SetDesktopBounds method
36541           - Implemented SetDesktopLocation method
36542
36543 2005-01-08  Jackson Harper  <jackson@ximian.com>
36544
36545         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
36546         the node count has changed, this removes to VScroll::Refresh calls
36547         when drawing.
36548
36549 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
36550
36551         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
36552
36553 2005-01-07  Jackson Harper  <jackson@ximian.com>
36554
36555         * TreeNode.cs: Just update the single node when it is
36556         checked. Don't refresh after toggling, the Expand/Collapse already
36557         handles this.
36558         * TreeView.cs: Respect clipping a little more when drawing. Try
36559         not to redraw things that don't need to be redrawn. Just hide the
36560         scrollbars when they are no longer needed instead of removing
36561         them, so they don't have to be created again and again.
36562         
36563 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
36564
36565         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
36566         coordinates to window space to place the caret properly, FIXED.
36567         Implement GetWindowState & SetWindowState
36568
36569 2005-01-06  Peter Bartok <pbartok@novell.com>
36570
36571         * Form.cs:
36572           - Implemented ClientSize property
36573           - Implemented DesktopBounds property
36574           - Implemented DesktopLocation property
36575           - Implemented IsRestrictedWindow property
36576           - Implemented Size property
36577           - Implemented TopLevel property
36578           - Implemented FormWindowState property
36579         * Control.cs:
36580           - Implemented GetTopLevel() method
36581           - Implemented SetTopLevel() method
36582         * X11Structs.cs (Atom):
36583           - Added AnyPropertyType definition
36584           - Added MapState definiton and updated XWindowAttribute struct
36585         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
36586         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
36587         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
36588         * XplatUIWin32.cs:
36589           - Implemented GetWindowState() and SetWindowState() methods
36590           - Fixed Win32GetWindowLong return type
36591         * XplatUIX11.cs:
36592           - Introduced central function for sending NET_WM messages
36593           - Implemented GetWindowState() and SetWindowState() methods
36594         * TextBoxBase.cs (set_Lines):
36595           - Now uses Foreground color for text added via Text property (Duh!)
36596           - Added code to remember programmatically requested size (fixes
36597             behaviour when Multiline is set after Size)
36598           - Added AutoSize logic
36599
36600 2005-01-06  Jackson Harper  <jackson@ximian.com>
36601
36602         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
36603
36604 2005-01-06  Jackson Harper  <jackson@ximian.com>
36605
36606         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
36607         set to less then 0.
36608
36609 2005-01-06  Jackson Harper  <jackson@ximian.com>
36610
36611         * ScrollableControl.cs: Lazy init the scrollbars.
36612         
36613 2005-01-06  Jackson Harper  <jackson@ximian.com>
36614
36615         * Theme.cs: Speed up getting pens and solid brushes, by using
36616         their ARGB as a hash instead of tostring and not calling Contains.
36617
36618 2005-01-06  Peter Bartok <pbartok@novell.com>
36619
36620         * Form.cs:
36621           - Implemented OnActivated and OnDeactivate event trigger
36622           - Implemented Activate() method
36623           - Fixed ShowDialog() to activate the form that was active before
36624             the dialog was shown
36625         * XplatUIX11.cs:
36626           - Added global active_window var that tracks the currently active
36627             X11 window
36628           - Now always grabs Property changes from the root window to always
36629             catch changes on the active window property
36630           - Added code to PropertyNotify handler to send Active/Inactive
36631             messages when state changes. This puts X11 and Win32 en par on
36632             WM_ACTIVATE notifications (except for double notifications when
36633             the user clicks away from our modal window to another one of our
36634             windows)
36635
36636 2005-01-05  Jackson Harper  <jackson@ximian.com>
36637
36638         * ImageList.cs: Implment ctor
36639
36640 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36641
36642         * XplatUIOSX.cs: Implement Activate/SetTopmost
36643
36644 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36645
36646         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
36647
36648 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36649
36650         * XplatUIOSX.cs: Implement GetActive/SetFocus.
36651
36652 2005-01-05  Peter Bartok <pbartok@novell.com>
36653
36654         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
36655           XplatUIOSX.cs: Added GetActive method to return the currently
36656           active window for the application (or null, if none is active)
36657         * Form.cs:
36658           - Implemented ActiveForm
36659           - Commented out owner assignment for modal dialogs (causes problems
36660             on Win32, since the owner will be disabled)
36661           - Reworked some Active/Focus handling (still incomplete)
36662         * CommonDialog.cs: Commented out owner assignment for modal dialogs
36663           (causes problems on Win32, since the owner will be disabled)
36664         * IWin32Window: Added ComVisible attribute
36665
36666 2005-01-05  Peter Bartok <pbartok@novell.com>
36667
36668         * ToolTip.cs (WndProc): Enable setting focus now that we have the
36669           required XplatUI functions.
36670
36671 2005-01-05  Peter Bartok <pbartok@novell.com>
36672
36673         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
36674           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
36675           to implement focus and activation handling; still incomplete and
36676           with debug output
36677
36678 2005-01-04  Peter Bartok <pbartok@novell.com>
36679
36680         * TextBoxBase.cs: Changed access level for Document property to
36681           match switch to internal for TextControl
36682
36683 2005-01-04  Peter Bartok <pbartok@novell.com>
36684
36685         * AccessibleObject: Added ComVisible attribute
36686
36687 2005-01-04  Jackson Harper  <jackson@ximian.com>
36688
36689         * X11Keyboard.cs: Remove unneeded var.
36690
36691 2005-01-04  Jackson Harper  <jackson@ximian.com>
36692
36693         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
36694         but PAINT.
36695         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
36696         ClientMessage. This makes apps exit cleanly (more often).
36697         
36698 2005-01-04  Jackson Harper  <jackson@ximian.com>
36699
36700         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
36701         handling focus, return correct colors and fonts,
36702         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
36703         handle selection, horizontal scrolling, and mouse interaction.
36704
36705 2005-01-04  Peter Bartok <pbartok@novell.com>
36706
36707         * ICommandExecutor.cs: Added
36708         * IDataGridColumnStyleEditingNotificationService.cs: Added
36709         * IFeatureSupport.cs: Added
36710         * IFileReaderService.cs: Added
36711         * IDataObject.cs: Added ComVisible attribute
36712         * AmbientProperties.cs: Added
36713         * BaseCollection.cs: Added missing attributes
36714         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
36715         * BaseCollection.cs: Added missing attributes
36716         * Binding.cs: Added TypeConverter attribute
36717         * BindingContext.cs: Added DefaultEvent attribute
36718         * BindingsCollection.cs: Added DefaultEvent attribute
36719         * Button.cs: Added DefaultValue attribute
36720         * DragEventArgs.cs: Added ComVisible attribute
36721         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
36722         * KeyEventArgs.cs: Added ComVisible attribute
36723         * KeyPressEventArgs.cs: Added ComVisible attribute
36724         * MouseEventArgs.cs: Added ComVisible attribute
36725         * NavigateEventArgs.cs: Added
36726         * NavigateEventHandler.cs: Added
36727         * FeatureSupport.cs: Added
36728         * OSFeature.cs: Added
36729         * Theme.cs: Added abstract Version property to support OSFeature
36730         * ThemeWin32Classic.cs: Added Version property to
36731           support OSFeature.Themes
36732         * ProgressBar.cs: Removed OnPaintBackground override, not required since
36733           the proper styles to avoid background drawing are set, also doesn't
36734           match MS signature
36735         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
36736         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
36737         * ScrollEventArgs.cs: Added ComVisible attribute
36738         * SplitterEventArgs.cs: Added ComVisible attribute
36739         * AccessibleSelection.cs: Added Flags attribute
36740         * Appearance.cs: Added ComVisible attribute
36741         * Border3DSide.cs: Added ComVisible attribute
36742         * Border3DStyle.cs: Added ComVisible attribute
36743         * BorderStyle.cs: Added ComVisible attribute
36744         * DragAction.cs: Added ComVisible attribute
36745         * ErrorBlinkStyle.cs: Added
36746         * ScrollEventType.cs: Added ComVisible attribute
36747         * AnchorStyles.cs: Added Editor attribute
36748         * DockStyle.cs: Added Editor attribute
36749         * HorizontalAlignment.cs: Added ComVisible attribute
36750         * HelpEventArgs.cs: Added ComVisible attribute
36751         * PaintEventArgs.cs: Added IDisposable
36752
36753 2005-01-04  Peter Bartok <pbartok@novell.com>
36754
36755         * TextControl.cs: Switched Line, LineTag and Document classes to
36756           internal
36757
36758 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36759
36760         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
36761         Simple mode, fixes, IntegralHeight, etc.
36762
36763 2005-01-04  Peter Bartok <pbartok@novell.com>
36764
36765         * TextBoxBase.cs: Using proper font variable now
36766
36767 2005-01-04  Peter Bartok <pbartok@novell.com>
36768
36769         * Form.cs (ShowDialog): Set parent to owner, if provided
36770         * GroupBox.cs: Removed unused vars
36771         * TextControl.cs:
36772           - Added GetHashCode() for Document and LineTag classes
36773           - Removed unused variables
36774           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
36775             to allow translation between continuous char position and line/pos
36776         * CheckBox.cs: Removed vars that are provided by base class
36777         * RadioButton.cs: Removed vars that are provided by base class, added
36778           new keyword where required
36779         * LinkLabel.cs: Added new keyword where required
36780         * Control.cs (WndProc): Removed unused variable
36781         * TextBoxBase.cs:
36782           - Finished SelectionLength property
36783           - Implemented SelectionStart property
36784           - Implemented Text property
36785           - Removed unused vars
36786         * MessageBox.cs: Added new keyword where required
36787         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
36788           WndProc signature
36789         * MenuAPI.cs: Added new keyword where required
36790         * ButtonBase.cs: Removed vars that are provided by base class, added
36791           new keyword where required
36792         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
36793           argument to double, to allow compiling with csc 2.0 (Atsushi ran
36794           into this)
36795         * Application.cs (Run): Now triggers the ThreadExit event
36796         * CommonDialog.cs: Added new keyword where required; now properly sets
36797           parent (owner) for dialog
36798         * XplatUIX11.cs: Commented out unused vars
36799         * StatusBar.cs: Fixed signature for Text property
36800         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
36801
36802 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36803
36804         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
36805         TrackBar.cs, MonthCalendar.cs: remove unused vars
36806
36807 2005-01-03  Jackson Harper  <jackson@ximian.com>
36808
36809         * ThemeWin32Classic.cs:
36810         * X11Keyboard.cs: Remove unused vars.
36811
36812 2005-01-03  Peter Bartok  <pbartok@novell.com>
36813
36814         * TextBox.cs:
36815           - set_Text: Tied into TextControl
36816           - set_TextAlignment: Tied into TextControl
36817         * TextControl.cs:
36818           - Added alignment properties and implemented alignment handling
36819             and drawing (still has a bug, not generating proper expose events)
36820           - Added new Line() constructor to allow passing the line alignment
36821           - Fixed selection setting, properly handling end<start now
36822           - Added aligment considerations to RecalculateDocument()
36823         * TextBoxBase.cs:
36824           - Now properly enforces control height for single line controls
36825           - Added support for CharacterCasing
36826           - Added IsInputKey override
36827           - Fixed Keys.Enter logic
36828           - Added SetBoundsCore override
36829           - Fixed mouse selection handling
36830
36831 2005-01-03  Jackson Harper  <jackson@ximian.com>
36832
36833         * TreeView.cs:
36834           - Collapse and uncheck all nodes when CheckBoxes is disabled.
36835           - Checkboxes are always aligned to the bottom of the node,
36836           regardless of item height.
36837           - Use the node bounds to draw the text so we can center it when
36838           the item height is greater then the font height.
36839           - Node::Bounds are only the text part of the node.
36840         * TreeNode.cs: New method to combine collapsing and unchecking all
36841           nodes recursively.
36842
36843 2005-01-02  Jackson Harper  <jackson@ximian.com>
36844
36845         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
36846         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
36847         tree when a check is changed. TODO: Only refresh the checked node.
36848
36849 2004-12-30  Jackson Harper  <jackson@ximian.com>
36850
36851         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
36852         * TreeNode.cs: When collapsing make sure to never collapse the
36853         root node.
36854
36855 2004-12-29  Jackson Harper  <jackson@ximian.com>
36856
36857         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
36858         
36859 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
36860
36861         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
36862
36863 2004-12-28  Peter Bartok  <pbartok@novell.com>
36864
36865         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
36866           not yet assigned
36867
36868 2004-12-28  Peter Bartok  <pbartok@novell.com>
36869
36870         * Control.cs (WndProc): Added WM_HELP handler, now generates
36871           HelpRequested event
36872         * Form.cs: Added HelpButton property and required support code
36873         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
36874
36875 2004-12-28  Peter Bartok  <pbartok@novell.com>
36876
36877         * CommonDialog.cs:
36878           - Made DialogForm.owner variable internal
36879           - Added check to ensure owner form is set before setting
36880             owner properties in CreateParams
36881
36882 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
36883
36884         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
36885           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
36886           GetCursorPos.  Fix major visibility issues.  Rework the windowing
36887           system to support borderless/titleless windows (implements menus).
36888           Fix GetWindowPos.  Implement initial background color support for
36889           views.
36890
36891 2004-12-28  Peter Bartok  <pbartok@novell.com>
36892
36893         * Form.cs (get_CreateParams): Make sure we have an owner before using
36894           the owner variable. Implement proper default if no owner exists
36895
36896 2004-12-28  Peter Bartok  <pbartok@novell.com>
36897
36898         * In preparation for making Managed.Windows.Forms the default build target
36899           for System.Windows.Forms, the following stubbed files were added.
36900           Dialogs are currently being implemented by contributors and are only
36901           short-term place holders.
36902         * ColorDialog.cs: Initial check-in (minmal stub)
36903         * DataGrid.cs: Initial check-in (minimal stub)
36904         * DataGridLineStyle.cs: Initial check-in (minimal stub)
36905         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
36906         * DataGridTableStyle.cs: Initial check-in (minimal stub)
36907         * FontDialog.cs: Initial check-in (minimal stub)
36908         * FileDialog.cs: Initial check-in (minimal stub)
36909         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
36910         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
36911         * OpenFileDialog: Initial check-in (minimal stub)
36912         * IComponentEditorPageSite.cs: Initial check-in
36913         * Splitter.cs: Initial check-in (for Jackson)
36914         * SplitterEventArgs.cs: Initial check-in (for Jackson)
36915         * SplitterEventHandler.cs: Initial check-in (for Jackson)
36916         * TextBox.cs: Initial check-in; still needs some wiring to
36917           TextControl backend
36918         * Form.cs: Implemented ControlBox property
36919         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
36920         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
36921         * TextControl.cs: Added selection functionality; added todo header
36922         * TextBoxBase.cs:
36923           - Implemented Lines property
36924           - Implemented TextHeight property
36925           - Implemented SelectedText property
36926           - Implemented SelectionLength property
36927           - Implemented SelectAll method
36928           - Implemented ToString method
36929           - Removed and cleaned up some debug code
36930           - Implemented (still buggy) mouse text selection
36931
36932 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
36933
36934         * ComboBox.cs: Complete DropDownList implementation, fixes.
36935
36936 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
36937
36938         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
36939         * ComboBoxStyle.cs: ComboBoxStyle enum
36940         * ComboBox.cs: Initial work on ComboBox control
36941
36942 2004-12-21  Peter Bartok  <pbartok@novell.com>
36943
36944         * Control.cs (ctor, CreateParams): Moved setting of is_visible
36945           forward so that anything that creates a window gets the default,
36946           also no longer uses Visible property in CreateParams to avoid
36947           walking up the parent chain and possibly get the wrong visible
36948           status. Fixed IsVisible to no longer walk up to the parent.
36949
36950 2004-12-21  Peter Bartok  <pbartok@novell.com>
36951
36952         * Form.cs (ShowDialog): Unset modality for the proper window
36953  
36954 2004-12-20  Peter Bartok  <pbartok@novell.com>
36955
36956         * CommonDialog.cs: Initial check-in
36957
36958 2004-12-20  Peter Bartok  <pbartok@novell.com>
36959
36960         * Control.cs (Visible): Now uses the parent window instead of the
36961           client area window for the property
36962
36963         * Form.cs
36964           - ShowDialog(): Now uses the proper window for modality
36965           - The default visibility state for the form parent is now false. This
36966             will prevent the user from seeing all the changes to the form and
36967             its controls before the application hits Application.Run()
36968           - Removed some stale commented out code
36969
36970         * NativeWindow.cs:
36971           - Added FindWindow() method to have a method to check for existence
36972             of a window handle
36973           - Added ability to override default exception handling (for example
36974             when debugging with VS.Net; to do this the ExternalExceptionHandler
36975             define must be set
36976           - Removed some useless debug output
36977
36978         * XplatUIX11.cs:
36979           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
36980             not working as expected
36981           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
36982             property to allow switching back to the modal window if focus is
36983             given to another one of our windows (Application Modal)
36984           - Now only sets override_redirect if we create a window
36985             without WS_CAPTION
36986           - Moved EventMask selection before mapping of newly created window
36987             so we can catch the map event as well
36988           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
36989           - Added various Atom related DllImports
36990           - Implemented Exit() method
36991           - .ctor() : No longer shows window if WS_VISIBLE is not defined
36992             in the CreateParams
36993
36994         * MessageBox.cs: Now properly deals with the FormParent window by
36995           providing an override the FormParent CreateParams property to
36996           set as POPUP instead of OVERLAPPED window.
36997
36998 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36999
37000         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
37001         Minor code cleanup.
37002
37003 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
37004         
37005         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
37006
37007 2004-12-18  Peter Bartok  <pbartok@novell.com>
37008
37009         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
37010           implementing SetModal() method
37011
37012 2004-12-18  Peter Bartok  <pbartok@novell.com>
37013
37014         * X11Structs.cs (XGCValues): Fixed type of function element
37015         * XplatUI.cs: Added ScrollWindow() method
37016         * XplatUIDriver.cs: Added ScrollWindow() abstract
37017         * XplatUIWin32.cs: Implemented ScrollWindow() method
37018         * XplatUIX11.cs: Implemented ScrollWindow() method
37019         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
37020
37021 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
37022
37023         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
37024         Some more keyboard support (INCOMPLETE)
37025
37026 2004-12-17  Peter Bartok  <pbartok@novell.com>
37027
37028         * TextControl.cs:
37029         - Added color attribute to line tags.
37030         - Added color argument to all functions dealing with tags
37031         - Added color argument support to various functions
37032         - Fixed miss-calculation of baseline/shift in certain circumstances
37033
37034         * TextBoxBase.cs: Added new color option to test code
37035
37036 2004-12-17  Jackson Harper  <jackson@ximian.com>
37037
37038         * TreeNode.cs:
37039         * MonthCalendar.cs: Signature fixes
37040
37041 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
37042
37043         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
37044         keyboard event moved it.  Create a new graphics context for each paint resolves this
37045
37046 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
37047
37048         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
37049         Make caret exist and go blink blink.  Initial keyboard support.
37050         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
37051         works.
37052
37053 2004-12-17  Jackson Harper  <jackson@ximian.com>
37054
37055         * XplatUIStructs.cs: Updated set of virtual keycodes.
37056         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
37057
37058 2004-12-17  Jackson Harper  <jackson@ximian.com>
37059
37060         * XplatUIX11.cs: Prune old keyboard code.
37061
37062 2004-12-17  Jackson Harper  <jackson@ximian.com>
37063
37064         * XplatUIX11.cs: When generating mouse wparams get the modifier
37065         keys from the ModifierKeys property.
37066
37067 2004-12-17  Jackson Harper  <jackson@ximian.com>
37068
37069         * X11Keyboard.cs: Send up/down input when generating
37070         messages. Remove some unused vars.
37071
37072 2004-12-17  Jackson Harper  <jackson@ximian.com>
37073
37074         * TabControl.cs:
37075         * TreeView.cs: get rid of warnings.
37076
37077 2004-12-17  Jackson Harper  <jackson@ximian.com>
37078
37079         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
37080
37081 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
37082
37083         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
37084           CheckedListBox.cs: Implementation
37085
37086 2004-12-17  Peter Bartok  <pbartok@novell.com>
37087
37088         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
37089
37090 2004-12-16  Peter Bartok  <pbartok@novell.com>
37091
37092         * TextControl.cs:
37093           - InsertCharAtCaret(): Fixed start pos fixup
37094           - CaretLine_get: No longer derives the line from the tag, the tag
37095             could be stale if lines in the document have been added or deleted
37096           - RebalanceAfterDelete(): Fixed bug in balancing code
37097           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
37098           - Line.Streamline(): Now can also elminate leading empty tags
37099           - DumpTree(): Added a few more tests and prevented exception on
37100             uninitialized data
37101           - Added Debug section for Combining lines
37102           - Delete(): Now copies all remaining properties of a line
37103           
37104         * TextBoxBase.cs:
37105           - Left mousebutton now sets the caret (and middle button still acts
37106             as formatting tester, which must go away soon)
37107           - Added Debug section for Deleting/Combining lines
37108           - Fixed calculations for UpdateView after Combining lines
37109
37110 2004-12-16  Peter Bartok  <pbartok@novell.com>
37111
37112         * TextControl.cs: Now properly aligns text on a baseline, using the
37113           new XplatUI.GetFontMetrics() method. Simplified several calculations
37114         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
37115           defined
37116
37117 2004-12-16  Peter Bartok  <pbartok@novell.com>
37118
37119         * XplatUI.cs: Added GetFontMetrics() method
37120         * XplatUIDriver.cs: Added GetFontMetrics() abstract
37121         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
37122           into libgdiplus, our private GetFontMetrics function
37123         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
37124         * XplatUIWin32.cs: Implemented GetFontMetrics() method
37125
37126 2004-12-16  Jackson Harper  <jackson@ximain.com>
37127
37128         * XplatUIStruct.cs: Add enum for dead keys
37129         * X11Keyboard.cs: Map and unmap dead keys.
37130
37131 2004-12-16  Jackson Harper  <jackson@ximian.com>
37132
37133         * X11Keyboard.cs: Detect and use the num lock mask.
37134
37135 2004-12-16  Peter Bartok  <pbartok@novell.com>
37136
37137         * Control.cs (CreateGraphics): Added check to make sure the
37138           handle of the window exists before calling Graphics.FromHwnd()
37139
37140 2004-12-16  Peter Bartok  <pbartok@novell.com>
37141
37142         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
37143           contains a lot of code that's not supposed to be there for the
37144           real thing, but required for developing/testing the textbox
37145           backend.
37146
37147 2004-12-16  Peter Bartok  <pbartok@novell.com>
37148
37149         * TextControl.cs:
37150         - Fixed Streamline method
37151         - Added FindTag method to Line
37152         - Added DumpTree method for debugging
37153         - Added DecrementLines() method for deleting lines
37154         - Fixed UpdateView to update the cursor to end-of-line on single-line
37155           updates
37156         - Added PositionCaret() method
37157         - Fixed MoveCaret(LineDown) to move into the last line, too
37158         - Added InsertChar overload
37159         - Fixed InsertChar tag offset calculations
37160         - Added DeleteChar() method
37161         - Added Combine() method for folding lines
37162         - Fixed Delete() method, no longer allocates wasted Line object and
37163           now copies all properties when swapping nodes
37164         - Delete() method now updates document line counter
37165
37166 2004-12-15  Jackson Harper  <jackson@ximian.com>
37167
37168         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
37169         * X11Keyboard.cs: Expose the currently selected modifier keys
37170         through a property.
37171
37172 2004-12-15  Peter Bartok  <pbartok@novell.com>
37173
37174         * TextControl.cs: Initial check-in. Still incomplete
37175
37176 2004-12-15  Jackson Harper  <jackson@ximian.com>
37177
37178         * TreeNode.cs:
37179         * TreeView.cs: Fix build on csc (second time today ;-))
37180
37181 2004-12-15  Jackson Harper  <jackson@ximian.com>
37182
37183         * TreeView.cs: Store the treenodes plus/minus box bounds when it
37184         is calculated and use this for click testing.
37185         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
37186
37187 2004-12-15  Jackson Harper  <jackson@ximian.com>
37188
37189         * TreeView.cs: Pass the nodes image index to the image list when
37190         drawing that image.
37191
37192 2004-12-15  Jackson Harper  <jackson@ximian.com>
37193
37194         * X11Keyboard.cs: Set messages hwnd.
37195         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
37196         post_message calls.
37197
37198 2004-12-15  Jackson Harper  <jackson@ximian.com>
37199
37200         * X11Keyboard.cs: Fix to compile with csc.
37201         
37202 2004-12-15  Jackson Harper  <jackson@ximian.com>
37203
37204         * X11Structs.cs: Add key mask values
37205         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
37206         * X11Keyboard.cs: New file - Extrapolates and interpolates key
37207         down/up foo into WM_CHAR foo
37208         * KeyboardLayouts.cs: Common keyboard layouts
37209         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
37210         post messages into the main queue.
37211
37212 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
37213
37214         * Button.cs: implement ProcessMnemonic
37215         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
37216           brushes everytime
37217         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
37218         * ButtonBase.cs: Show HotkeyPrefix (not the &)
37219
37220 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
37221         
37222         * MonthCalendar.cs: Implemented click-hold for next/previous month
37223           and date selection
37224           
37225 2004-12-11  Peter Bartok  <pbartok@novell.com>
37226
37227         * X11Structs.cs:
37228           - Added XKeyboardState (moved from XplatUIX11.cs)
37229           - Added XCreateGC related enums and structures
37230           - Added GXFunction for XSetFunction
37231
37232         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
37233
37234         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
37235           CaretVisible() calls
37236
37237         * ToolTip.cs: Added code to prevent stealing focus from app windows
37238
37239         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
37240           DestroyCaret, SetCaretPos and CaretVisible)
37241
37242         * XplatUIX11.cs:
37243           - Added implementation for caret functions
37244           - Moved hover variables into a struct, to make it a bit easier
37245             on the eyes and to debug
37246           - Removed XKeyboardState (moved to XplatUIX11.cs)
37247           - Moved Keyboard properties into the properties region
37248
37249         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
37250           call to get a graphics context for our control
37251
37252         * XplatUIOSX.cs: Added empty overrides for the new caret functions
37253
37254         * TreeView.cs: Fixed bug. No matter what color was set it would always
37255           return SystemColors.Window
37256
37257         * XplatUIWin32.cs: Implemented caret overrides
37258
37259 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
37260
37261         * ListBox.cs: fire events, implement missing methods and properties,
37262         sorting.
37263
37264 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
37265
37266         * MonthCalendar.cs: invalidation bug fixing
37267         * ThemeWin32Classic.cs: paint fixing
37268
37269 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
37270
37271         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
37272         prepare the CGContextRef there now.
37273
37274 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
37275
37276         * MonthCalendar.cs:
37277           - optimisationL only invalidate areas that have changed
37278         * ThemeWin32Classic.cs:
37279           - only paint parts that intersect with clip_area
37280
37281 2004-12-09  Peter Bartok  <pbartok@novell.com>
37282
37283         * Application.cs: Undid changes from r37004 which cause problems
37284         on X11
37285
37286 2004-12-09  Ravindra  <rkumar@novell.com>
37287
37288         * ToolBar.cs: Added support for displaying ContextMenu
37289         attached to a button on ToolBar.
37290         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
37291         property.
37292
37293 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
37294
37295         * Label.cs: autosize works in text change and removes unnecessary
37296         invalidate
37297
37298 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
37299
37300         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
37301         remove warnings
37302
37303 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
37304
37305         * XplatUIOSX.cs: Added mouse move/click/grab support
37306         Remove some debugging WriteLines not needed anymore.
37307         Add window resizing/positioning.
37308         Fix visibility on reparenting.
37309
37310 2004-12-08  Peter Bartok  <pbartok@novell.com>
37311
37312         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
37313
37314 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
37315
37316         * XplatUIOSX.cs: Initial checkin
37317         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
37318
37319 2004-12-03  Ravindra <rkumar@novell.com>
37320
37321         * ListView.cs: Added some keybindings and fixed scrolling.
37322         ScrollBars listen to ValueChanged event instead of Scroll
37323         Event. This would let us take care of all changes being
37324         done in the scrollbars' values programmatically or manually.
37325         * ListView.cs (CanMultiselect): Added a check for shift key.
37326         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
37327         * ListViewItem.cs (Clone): Fixed. We need to make a copy
37328         of ListViewSubItemCollection as well.
37329
37330 2004-12-06  Peter Bartok <pbartok@novell.com>
37331
37332         * Control.cs (Parent): Added check and exception to prevent
37333         circular parenting
37334
37335 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
37336
37337         * ListBox.cs: implemented clipping, selection single and multiple,
37338         bug fixing
37339
37340 2004-12-03  Ravindra <rkumar@novell.com>
37341
37342         * ListView.cs (ListView_KeyDown):
37343         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
37344         when CTRL key is pressed.
37345         * ListViewItem.cs (Selected): Fixed setting the property.
37346
37347 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
37348
37349         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
37350
37351         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
37352         MinimizeBox, ShowInTaskbar, TopMost properties.
37353
37354         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
37355         will be implemented).
37356
37357 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
37358
37359         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
37360
37361         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
37362         tests.
37363         
37364         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
37365         
37366         * TreeView.cs: BackColor is Colors.Window.
37367
37368 2004-12-01  Jackson Harper  <jackson@ximian.com>
37369
37370         * TreeView.cs: When resizing the tree if the user is making it
37371         smaller we don't get expose events, so we need to handle adding
37372         the horizontal scrollbar in the size changed handler as well as
37373         the expose handler.
37374
37375 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
37376
37377         * DrawItemState.cs: fixes wrong enum values
37378
37379 2004-12-01  Jackson Harper  <jackson@ximian.com>
37380
37381         * TreeView.cs: Resize the hbar as well as the vbar on resize.
37382
37383 2004-12-01  Jackson Harper  <jackson@ximian.com>
37384
37385         * NodeLabelEditEventArgs.cs:
37386         * NodeLabelEditEventHandler.cs:
37387         * OpenTreeNodeEnumerator.cs:
37388         * TreeNode.cs:
37389         * TreeNodeCollection.cs:
37390         * TreeView.cs:
37391         * TreeViewAction.cs:
37392         * TreeViewCancelEventArgs.cs:
37393         * TreeViewCancelEventHandler.cs:
37394         * TreeViewEventArgs.cs:
37395         * TreeViewEventHandler.cs: Initial implementation.
37396
37397 2004-12-01  Ravindra <rkumar@novell.com>
37398
37399         * ListView.cs (CalculateListView): Fixed scrolling related
37400         calculations. Also, removed some debug statements from other
37401         places.
37402         * ListViewItem.cs: Changed access to 'selected' instance variable
37403         from private to internal.
37404         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
37405
37406 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
37407
37408         * ThemeWin32Classic.cs: remove cache of brush and pens for
37409         specific controls and use the global system, fixes scrollbutton
37410         bugs (for small sizes, disabled, etc)
37411         
37412         * ScrollBar.cs: does not show the thumb for very small controls
37413         (as MS) and allow smaller buttons that the regular size
37414
37415 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
37416
37417         * UpDownBase.cs: Add abstract methods for the interface.
37418         Add new virtual methods (need to be hooked up to TextEntry when it
37419         exists).
37420         Add override methods for most features.
37421         Computes the size, forces the height of the text entry.
37422
37423         * NumericUpDown.cs: Put here the current testing code.
37424
37425         * Set eol-style property on all files that do not have mixed line
37426         endings, to minimize the future problems.  There are still a few
37427         files with mixed endings, and someone should choose whether they
37428         want to move it or not.
37429
37430 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
37431
37432         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
37433         System.Colors
37434         
37435 2004-11-30  Ravindra <rkumar@novell.com>
37436
37437         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
37438         drawing and replaced use of SystemColors by theme colors.
37439         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
37440         * ListView.cs (ListViewItemCollection.Add): Throw exception when
37441         same ListViewItem is being added more than once.
37442
37443 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
37444
37445         * MonthCalendar.cs:
37446           - ControlStyles love to make the control not flicker
37447           
37448 2004-11-30  Peter Bartok  <pbartok@novell.com>
37449
37450         * CharacterCasing.cs: Added
37451
37452 2004-11-29  Peter Bartok  <pbartok@novell.com>
37453
37454         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
37455           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
37456           I am removing these files as they conflict with already completed
37457           work. While it is fantastic to get contributions to MWF, I
37458           respectfully ask that everyone please coordinate their contributions
37459           through mono-winforms-list or #mono-winforms at this time. We're
37460           explicitly avoiding stubbing and don't want controls that don't have
37461           their basic functionality implemented in svn. Please also see
37462           http://www.mono-project.com/contributing/winforms.html
37463
37464
37465 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
37466
37467         * Application.cs (ModalRun): Don't hang after exit.
37468
37469         * Theme.cs: New TreeViewDefaultSize property.
37470
37471         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
37472         with less hardcoded SystemColors constant.
37473         Implemented TreeViewDefaultSize.
37474
37475         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
37476         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
37477
37478
37479 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
37480
37481         * MonthCalendar.cs:
37482           - Fix NextMonthDate and PrevMonthDate click moving calendar
37483
37484 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
37485
37486         * MonthCalendar.cs:
37487           - Fix usage of ScrollChange Property when scrolling months
37488
37489 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
37490
37491         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
37492          - Fixes menu destroying
37493          - Support adding and removing items on already created menus
37494
37495 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
37496
37497         * MonthCalendar.cs:
37498           - Re-worked all bolded dates handling to match win32
37499         * ThemeWin32Classic.cs:
37500           - Fixed rendering with bolded dates
37501
37502 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
37503
37504         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
37505         - Horizontal scroolbar
37506         - Multicolumn
37507         - Fixes
37508
37509
37510 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
37511
37512         * MonthCalendar.cs:
37513           - Fix Usage of MaxSelectionCount from SelectionRange
37514           - Fixed Shift + Cursor Selection
37515           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
37516           - Fixed normal cursor selection to be compat with win32
37517           - Fixed Shift + Mouse Click selection
37518
37519 2004-11-24  Peter Bartok <pbartok@novell.com>
37520
37521         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
37522         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
37523         * XplatUIX11.cs:
37524           - CreatedKeyBoardMsg now updates keystate with Alt key
37525           - Added workaround for timer crash to CheckTimers, Jackson will
37526             develop a proper fix and check in later
37527           - Implemented DispatchMessage
37528           - Removed calling the native window proc from GetMessage (call
37529             now moved to DispatchMessage)
37530
37531         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
37532           the keydata (Fixes bug #69831)
37533
37534         * XplatUIWin32.cs:
37535           - (DispatchMessage): Switched to return IntPtr
37536           - Added DllImport for SetFocus
37537
37538 2004-11-24  Ravindra <rkumar@novell.com>
37539
37540         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
37541         background drawing.
37542         * ListViewItem.cs: Fixed various properties, calculations
37543         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
37544         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
37545         and some internal properties. Fixed MouseDown handler and Paint
37546         method.
37547
37548 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37549
37550         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
37551
37552 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37553
37554         * ContainerControl.cs: correct accidental check in of local changes
37555
37556 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37557
37558         * ThemeWin32Classic.cs:
37559                 - Fixed Drawing Last month in grid (sometimes not showing)
37560         * MonthCalendar.cs:
37561                 - Fixed title width calculation bug (makeing title small)
37562
37563 2004-11-23  Peter Bartok <pbartok@novell.com>
37564
37565         * XplatUIX11.cs:
37566           - Added generation of WM_MOUSEHOVER event
37567           - Added missing assignment of async_method atom
37568           - Fixed WM_ERASEBKGND; now only redraws the exposed area
37569
37570 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
37571
37572         * ThemeWin32Classic.cs:
37573                 - Fixed Drawing of today circle when showtodaycircle not set
37574                 - fixed drawing of first and last month in the grid (gay dates)
37575         * MonthCalendar.cs:
37576                 - Fixed Drawing of today circle
37577                 - Fixed drawing of grady dates
37578                 - Fixed HitTest for today link when ShowToday set to false
37579                 - Fixed DefaultSize to obey ShowToday
37580
37581 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
37582
37583         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
37584         * System.Windows.Forms/Theme.cs
37585         * MonthCalendar.cs: added for MonthCalendar
37586         * SelectionRange.cs: added for MonthCalendar
37587         * Day.cs: added for MonthCalendar: added for MonthCalendar
37588         * DateRangeEventArgs.cs: added for MonthCalendar
37589         * DateRangeEventHandler.cs: added for MonthCalendar
37590
37591 2004-11-22  Ravindra <rkumar@novell.com>
37592
37593         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
37594         property.
37595
37596 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
37597
37598         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
37599         event handler.
37600         
37601         * NumericUpDown.cs: Added new implementation.
37602         * UpDownBase.cs: Added new implementation.
37603
37604         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
37605         implementations.
37606         
37607         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
37608         implementations.
37609
37610         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
37611         methods.
37612
37613 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
37614
37615         * Timer.cs  (Dispose): Should call the base dispose when
37616         overriding.
37617
37618 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
37619
37620         * ScrollBar.cs: updates thumb position when max, min or increment
37621         is changed
37622
37623 2004-11-21  Ravindra <rkumar@novell.com>
37624
37625         * ListView.cs: Implemented item selection, activation and
37626         column header style. Fixed properties to do a redraw, if
37627         required. Added support for MouseHover, DoubleClick, KeyDown
37628         and KeyUp event handling and some minor fixes.
37629         * ListViewItem.cs: Fixed constructor.
37630         * ThemeWin32Classic.cs: Improved drawing for ListView.
37631
37632 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
37633
37634         * ThemeWin32Classic.cs: initial listbox drawing code
37635         * DrawMode.cs: new enumerator
37636         * ListControl.cs: stubbed class
37637         * ListBox.cs: initial implementation
37638         * Theme.cs: new methods definitions
37639         * SelectionMode.cs: new enumerator
37640
37641 2004-11-17  Peter Bartok  <pbartok@novell.com>
37642
37643         * XplatUIWin32.cs: Added double-click events to the class style
37644         * Control.cs (WndProc):
37645           - Added handling of click-count to MouseDown/ MouseUp events.
37646           - Added handling of middle and right mouse buttons
37647           - Removed old debug code
37648
37649 2004-11-17  Jackson Harper  <jackson@ximian.com>
37650
37651         * XplatUIX11.cs: Use the new Mono.Unix namespace.
37652
37653 2004-11-17  Ravindra <rkumar@novell.com>
37654
37655         * ListView.cs: Added event handling for MouseMove/Up/Down.
37656         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
37657         * ThemeWin32Classic.cs: We need to clear the graphics context and
37658         draw column header in a proper state.
37659
37660
37661 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
37662
37663         *  Menu.cs: fixes signature
37664
37665 2004-11-16  Peter Bartok  <pbartok@novell.com>
37666
37667         * XplatUIX11.cs (GetMessage): Implemented generation of
37668           double click mouse messages
37669
37670 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
37671
37672         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
37673         not by menu
37674
37675 2004-11-11  Peter Bartok  <pbartok@novell.com>
37676
37677         * HandleData.cs: Added Visible property
37678         * XplatUIX11.cs (IsVisible): Now uses Visible property from
37679           HandleData
37680         * XplatUIX11.cs: Removed old debug leftovers
37681         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
37682         * Control.cs (WndProc): Removed old debug leftovers,
37683           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
37684           needed WM_SIZE handling
37685
37686 2004-11-11  Jackson Harper  <jackson@ximian.com>
37687
37688         * OwnerDrawPropertyBag.cs:
37689         * TreeViewImageIndexConverter.cs: Initial implementation
37690
37691 2004-11-10  Jackson Harper  <jackson@ximian.com>
37692
37693         * ThemeWin32Classic.cs:
37694         * TabControl.cs: instead of moving tabs by the slider pos just
37695         start drawing at the tab that is offset by the slider. This way
37696         scrolling always moves by exactly one tab.
37697
37698 2004-11-10  Jackson Harper  <jackson@ximian.com>
37699
37700         * TabControl.cs: You can only scroll left when the slider has
37701         already ben moved right.
37702         
37703 2004-11-10  Jackson Harper  <jackson@ximian.com>
37704
37705         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
37706         the clip area.
37707         
37708 2004-11-10  Jackson Harper  <jackson@ximian.com>
37709
37710         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
37711         clip area.
37712         
37713 2004-11-09  Jackson Harper  <jackson@ximian.com>
37714
37715         * TabControl.cs (CalcXPos): New helper method so we can determine
37716         the proper place to start drawing vertical tabs.
37717         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
37718         
37719 2004-11-09  Jackson Harper  <jackson@ximian.com>
37720
37721         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
37722         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
37723         and Bottom, left and right are illegal values for this and
37724         multiline is enabled when the alignment is set to left or right.
37725         (DrawTab): Each alignment block should draw the text itself now
37726         because Left requires special love. Also add rendering for Left
37727         aligned tabs.
37728         
37729 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
37730
37731         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
37732         does not destroy the windows, removes debugging messages
37733
37734 2004-11-09  jba  <jba-mono@optusnet.com.au>
37735
37736         * ThemeWin32Classic.cs
37737         (DrawButtonBase): Fix verticle text rect clipping in windows
37738         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37739         rendering and incorrect text rect clipping
37740         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37741         rendering and incorrect text rect clipping
37742         
37743 2004-11-08  Jackson Harper  <jackson@ximian.com>
37744
37745         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
37746         bottom when they are bottom aligned so the bottoms of the tabs get
37747         displayed.
37748         * TabControl.cs (DropRow): Move rows up instead of down when the
37749         tab control is bottom aligned.
37750
37751 2004-11-08 13:59  pbartok
37752
37753         * XplatUIX11.cs:
37754           - Added handling for various window styles
37755           - Added handling for popup windows
37756           - Added SetTopmost handling
37757
37758 2004-11-08 13:55  pbartok
37759
37760         * XplatUIWin32.cs:
37761           - Added argument to SetTopmost method
37762           - Fixed broken ClientToScreen function
37763
37764 2004-11-08 13:53  pbartok
37765
37766         * XplatUIStructs.cs:
37767           - Added missing WS_EX styles
37768
37769 2004-11-08 13:53  pbartok
37770
37771         * XplatUI.cs, XplatUIDriver.cs:
37772           - Added argument to SetTopmost
37773
37774 2004-11-08 13:52  pbartok
37775
37776         * X11Structs.cs:
37777           - Added XSetWindowAttributes structure
37778           - Improved XWindowAttributes structure
37779           - Added SetWindowValuemask enum
37780           - Added window creation arguments enum
37781           - Added gravity enum
37782           - Added Motif hints structure
37783           - Added various Motif flags and enums
37784           - Added PropertyMode enum for property functions
37785
37786 2004-11-08 13:50  pbartok
37787
37788         * Form.cs:
37789           - Fixed arguments for updated SetTopmost method
37790
37791 2004-11-08 13:49  pbartok
37792
37793         * ToolTip.cs:
37794           - Fixed arguments for updated SetTopmost function
37795           - Fixed usage of PointToClient
37796
37797 2004-11-08 13:44  pbartok
37798
37799         * MenuAPI.cs:
37800           - Added Clipping of children and siblings
37801
37802 2004-11-08 13:41  pbartok
37803
37804         * MainMenu.cs:
37805           - Removed SetMenuBarWindow call. We do this in Form.cs
37806
37807 2004-11-08 13:40  jackson
37808
37809         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
37810           scrolling jimmi in the correct location with bottom aligned tabs
37811
37812 2004-11-08 13:36  pbartok
37813
37814         * ContainerControl.cs:
37815           - Implemented BindingContext
37816           - Implemented ParentForm
37817
37818 2004-11-08 12:46  jackson
37819
37820         * TabControl.cs: Put bottom rendered tabs in the right location
37821
37822 2004-11-08 07:15  jordi
37823
37824         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
37825           removes dead code
37826
37827 2004-11-05 17:30  jackson
37828
37829         * TabControl.cs: When selected tabs are expanded make sure they
37830           don't go beyond the edges of the tab control
37831
37832 2004-11-05 14:57  jackson
37833
37834         * TabControl.cs: Reset show_slider so if the control is resized to
37835           a size where it is no longer needed it's not displayed anymore
37836
37837 2004-11-05 13:16  jackson
37838
37839         * TabControl.cs: Make tab pages non visible when added to the
37840           control
37841
37842 2004-11-05 12:42  jackson
37843
37844         * TabControl.cs: Implement SizeMode.FillToRight
37845
37846 2004-11-05 12:16  jackson
37847
37848         * Control.cs: Do not call CreateHandle if the handle is already
37849           created
37850
37851 2004-11-05 11:46  jackson
37852
37853         * TabControl.cs: Remove superflous call to CalcTabRows
37854
37855 2004-11-05 09:07  jackson
37856
37857         * XplatUIX11.cs: Update for Mono.Posix changes
37858
37859 2004-11-05 07:00  ravindra
37860
37861         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
37862           scrolling.
37863
37864 2004-11-04 22:47  jba
37865
37866         * ThemeWin32Classic.cs:
37867           - Fix Button rendering for FlatStyle = Flat or Popup
37868           - Fix RadioButton and CheckBox rendering when Appearance = Button
37869             (normal and flatstyle).
37870           - Correct outer rectangle color when drawing focus rectangle
37871           - Adjust button bounds to be 1 px smaller when focused
37872           - Make button not draw sunken 3d border when pushed (windows compat)
37873           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
37874           - Offset the text in RadioButton and Checkbox when being rendered as
37875           a button.
37876           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
37877           radiobuttons
37878           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
37879           - Fixed disabled text rendering for normally rendered radiobuttons
37880
37881 2004-11-04 10:26  jackson
37882
37883         * TabControl.cs: Recalculate tab rows when resizing
37884
37885 2004-11-04 07:47  jordi
37886
37887         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
37888           collection completion, drawing issues, missing features
37889
37890 2004-11-04 05:03  ravindra
37891
37892         * ScrollBar.cs:
37893                 - We need to recalculate the Thumb area when
37894                 LargeChange/maximum/minimum values are changed.
37895           - We set the 'pos' in UpdatePos() method to minimum, if it's less
37896                 than minimum. This is required to handle the case if large_change is
37897                 more than max, and use LargeChange property instead of large_change
37898                 variable.
37899           - We return max+1 when large_change is more than max, like MS does.
37900
37901 2004-11-04 04:29  ravindra
37902
37903         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
37904                 - Changed default value signatures (prefixed all with ListView).
37905                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
37906                 ListView.
37907           - Fixed calculations for ListViewItem and implemented Clone()
37908           method.
37909
37910 2004-11-04 04:26  ravindra
37911
37912         * Theme.cs, ThemeWin32Classic.cs:
37913                 - Changed default ListView values signatures (prefixed all with
37914                 ListView).
37915           - Fixed default size values for VScrollBar and HScrollBar.
37916                 - Fixed DrawListViewItem method.
37917
37918 2004-11-04 04:05  ravindra
37919
37920         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
37921
37922 2004-11-04 04:04  ravindra
37923
37924         * ImageList.cs: Implemented the missing overload for Draw method.
37925
37926 2004-11-03 19:29  jackson
37927
37928         * TabControl.cs: Handle dropping rows on selection properly
37929
37930 2004-11-03 11:59  jackson
37931
37932         * TabControl.cs: remove debug code
37933
37934 2004-11-03 11:52  jackson
37935
37936         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
37937           the scrolly widgerywoo
37938
37939 2004-11-02 13:52  jackson
37940
37941         * TabControl.cs: Resize the tab pages and tabs when the tab control
37942           is resized
37943
37944 2004-11-02 13:40  jackson
37945
37946         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
37947           selected tab to the bottom
37948
37949 2004-11-02 13:39  jackson
37950
37951         * TabPage.cs: Store the tab pages row
37952
37953 2004-11-02 12:33  jordi
37954
37955         * MenuItem.cs: fixes handle creation
37956
37957 2004-11-02 11:42  jackson
37958
37959         * TabControl.cs: signature fix
37960
37961 2004-11-02 08:56  jackson
37962
37963         * TabControl.cs: Calculate whether the tab is on an edge properly.
37964           Remove top secret debugging code
37965
37966 2004-11-01 19:57  jackson
37967
37968         * TabControl.cs: Add click handling, and proper sizing
37969
37970 2004-11-01 19:47  jackson
37971
37972         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
37973           tab controls
37974
37975 2004-11-01 19:39  jackson
37976
37977         * TabPage.cs: add internal property to store the bounds of a tab
37978           page
37979
37980 2004-10-30 04:23  ravindra
37981
37982         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
37983           values.
37984
37985 2004-10-30 04:21  ravindra
37986
37987         * ListView.cs, ListViewItem.cs: Added support for scrolling and
37988           fixed calculations.
37989
37990 2004-10-30 03:06  pbartok
37991
37992         * XplatUIX11.cs:
37993           - Removed extension of DllImported libs
37994
37995 2004-10-29 09:55  jordi
37996
37997         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
37998           navigation, itemcollection completion, menu fixes
37999
38000 2004-10-27 22:58  pbartok
38001
38002         * XplatUIX11.cs:
38003           - Now throws a nice error message when no X display could be opened
38004
38005 2004-10-26 13:51  jordi
38006
38007         * ListView.cs: removes warning
38008
38009 2004-10-26 03:55  ravindra
38010
38011         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
38012           ThemeWin32Classic.cs: Some formatting for my last checkins.
38013
38014 2004-10-26 03:36  ravindra
38015
38016         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
38017           control and default values.
38018
38019 2004-10-26 03:35  ravindra
38020
38021         * Theme.cs: Added some default values for ListView control.
38022
38023 2004-10-26 03:33  ravindra
38024
38025         * ToolBar.cs: ToolBar should use the user specified button size, if
38026           there is any. Added a size_specified flag for the same.
38027
38028 2004-10-26 03:33  ravindra
38029
38030         * ColumnHeader.cs: Added some internal members and calculations for
38031           ColumnHeader.
38032
38033 2004-10-26 03:32  ravindra
38034
38035         * ListViewItem.cs: Calculations for ListViewItem.
38036
38037 2004-10-26 03:31  ravindra
38038
38039         * ListView.cs: Added some internal members and calculations for
38040           ListView.
38041
38042 2004-10-22 13:31  jordi
38043
38044         * MenuAPI.cs: speedup menus drawing
38045
38046 2004-10-22 13:16  jackson
38047
38048         * XplatUIX11.cs: Make sure to update exposed regions when adding an
38049           expose event
38050
38051 2004-10-22 11:49  jackson
38052
38053         * Control.cs: oops
38054
38055 2004-10-22 11:41  jackson
38056
38057         * Control.cs: Check to see if the window should have its background
38058           repainted by X when drawing.
38059
38060 2004-10-22 11:31  jackson
38061
38062         * XplatUIX11.cs: When invalidating areas only use XClearArea if
38063           clear is true, this way we do not get flicker from X repainting the
38064           background
38065
38066 2004-10-22 11:28  jackson
38067
38068         * XEventQueue.cs: Queue properly
38069
38070 2004-10-21 09:38  jackson
38071
38072         * XEventQueue.cs: Fix access modifier
38073
38074 2004-10-21 09:36  jackson
38075
38076         * XEventQueue.cs: Don't loose messages
38077
38078 2004-10-21 09:22  jackson
38079
38080         * XEventQueue.cs: Don't loose messages
38081
38082 2004-10-20 04:15  jordi
38083
38084         * BootMode.cs: enum need it by SystemInfo
38085
38086 2004-10-19 21:58  pbartok
38087
38088         * XplatUIWin32.cs:
38089           - Small sanity check
38090
38091 2004-10-19 21:56  pbartok
38092
38093         * Form.cs:
38094           - Added private FormParentWindow class which acts as the container
38095             for our form and as the non-client area where menus are drawn
38096           - Added/Moved required tie-ins to Jordi's menus
38097           - Fixed/Implemented the FormStartPosition functionality
38098
38099 2004-10-19 21:52  pbartok
38100
38101         * Control.cs:
38102           - Removed unneeded locals
38103           - Added code to all size and location properties to understand and
38104             deal with the parent container of Form
38105
38106 2004-10-19 21:33  pbartok
38107
38108         * Application.cs:
38109           - Fixed to deal with new Form subclasses for menus
38110
38111 2004-10-19 17:48  jackson
38112
38113         * XEventQueue.cs: commit correct version of file
38114
38115 2004-10-19 16:50  jackson
38116
38117         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
38118
38119 2004-10-19 16:15  jordi
38120
38121         * MenuAPI.cs: MenuBarCalcSize returns the height
38122
38123 2004-10-19 08:31  pbartok
38124
38125         * Control.cs:
38126           - Added missing call to PreProcessMessage before calling OnXXXKey
38127           methods
38128
38129 2004-10-19 00:04  ravindra
38130
38131         * ToolTip.cs: Fixed constructor.
38132
38133 2004-10-18 09:31  jordi
38134
38135         * MenuAPI.cs: menuitems in menubars do not have shortcuts
38136
38137 2004-10-18 09:26  jordi
38138
38139         * MenuItem.cs: fixes MenuItem class signature
38140
38141 2004-10-18 08:56  jordi
38142
38143         * MenuAPI.cs: prevents windows from showing in the taskbar
38144
38145 2004-10-18 00:28  ravindra
38146
38147         * ToolTip.cs: Suppressed a warning message.
38148
38149 2004-10-18 00:27  ravindra
38150
38151         * Control.cs: Default value of visible property must be true.
38152
38153 2004-10-17 23:19  pbartok
38154
38155         * ToolTip.cs:
38156           - Complete implementation
38157
38158 2004-10-17 23:19  pbartok
38159
38160         * XplatUIX11.cs:
38161           - Added EnableWindow method
38162           - Added SetModal stub
38163           - Added generation of WM_ACTIVATE message (still needs testing)
38164           - Added SetTopMost stub
38165           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
38166
38167 2004-10-17 23:17  pbartok
38168
38169         * XplatUIWin32.cs:
38170           - Removed VirtualKeys to XplatUIStructs
38171           - Implemented SetTopMost method
38172           - Implemented EnableWindow method
38173           - Bugfix in ScreenToClient()
38174           - Bugfixes in ClientToScreen()
38175
38176 2004-10-17 22:51  pbartok
38177
38178         * XplatUIStructs.cs:
38179           - Added WS_EX styles to WindowStyles enumeration
38180
38181 2004-10-17 22:50  pbartok
38182
38183         * XplatUI.cs, XplatUIDriver.cs:
38184           - Added method for enabling/disabling windows
38185           - Added method for setting window modality
38186           - Added method for setting topmost window
38187
38188 2004-10-17 22:49  pbartok
38189
38190         * ThemeWin32Classic.cs:
38191           - Added ToolTip drawing code
38192
38193 2004-10-17 22:49  pbartok
38194
38195         * Theme.cs:
38196           - Added ToolTip abstracts
38197
38198 2004-10-17 22:47  pbartok
38199
38200         * Form.cs:
38201           - Fixed Form.ControlCollection to handle owner relations
38202           - Added Owner/OwnedForms handling
38203           - Implemented Z-Ordering for owned forms
38204           - Removed unneeded private overload of ShowDialog
38205           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
38206             so I hope)
38207           - Fixed Close(), had wrong default
38208           - Added firing of OnLoad event
38209           - Added some commented out debug code for Ownership handling
38210
38211 2004-10-17 22:16  pbartok
38212
38213         * Control.cs:
38214           - Fixed/implemented flat list of controls
38215
38216 2004-10-17 22:14  pbartok
38217
38218         * Application.cs:
38219           - Added code to simulate modal dialogs on Win32
38220
38221 2004-10-17 16:11  jordi
38222
38223         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
38224           mouse event
38225
38226 2004-10-17 13:39  jordi
38227
38228         * MenuAPI.cs: menu drawing fixes
38229
38230 2004-10-15 09:10  ravindra
38231
38232         * StructFormat.cs: General Enum.
38233
38234 2004-10-15 09:09  ravindra
38235
38236         * SizeGripStyle.cs: Enum for Form.
38237
38238 2004-10-15 09:08  ravindra
38239
38240         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
38241           in Theme for ListView.
38242
38243 2004-10-15 09:06  ravindra
38244
38245         * ColumnHeader.cs: Flushing some formatting changes.
38246
38247 2004-10-15 09:05  ravindra
38248
38249         * ListViewItem.cs: Implemented GetBounds method and fixed coding
38250           style.
38251
38252 2004-10-15 09:03  ravindra
38253
38254         * ListView.cs: Implemented Paint method and fixed coding style.
38255
38256 2004-10-15 07:34  jordi
38257
38258         * MenuAPI.cs: fix for X11
38259
38260 2004-10-15 07:32  ravindra
38261
38262         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
38263                 - Renamed Paint() method to Draw() for clarity. Also, moved
38264                 DrawImage() to OnPaint().
38265
38266 2004-10-15 07:25  ravindra
38267
38268         * CheckBox.cs, RadioButton.cs:
38269                 - Removed Redraw (), we get it from ButtonBase.
38270                 - Implemented Paint (), to do class specific painting.
38271
38272 2004-10-15 07:16  ravindra
38273
38274         * ButtonBase.cs:
38275                 - Redraw () is not virtual now.
38276                 - Added an internal virtual method Paint (), so that
38277                 derived classes can do their painting on their own.
38278                 - Modified OnPaint () to call Paint ().
38279
38280 2004-10-15 06:43  jordi
38281
38282         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
38283           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
38284
38285 2004-10-15 00:30  ravindra
38286
38287         * MessageBox.cs:
38288                 - MessageBox on windows does not have min/max buttons.
38289                 This change in CreateParams fixes this on Windows. We
38290                 still need to implement this windowstyle behavior in
38291                 our X11 driver.
38292
38293 2004-10-14 05:14  ravindra
38294
38295         * ToolBar.cs:
38296                 - Changed Redraw () to do a Refresh () always.
38297                 - Fixed the MouseMove event handling when mouse is pressed,
38298                 ie drag event handling.
38299                 - Replaced the usage of ToolBarButton.Pressed property to
38300                 ToolBarButton.pressed internal variable.
38301
38302 2004-10-14 05:10  ravindra
38303
38304         * ToolBarButton.cs:
38305                 - Added an internal member 'inside' to handle mouse move
38306                 with mouse pressed ie mouse drag event.
38307                 - Changed 'Pressed' property to return true only when
38308                 'inside' and 'pressed' are both true.
38309                 - Some coding style love.
38310
38311 2004-10-14 00:17  ravindra
38312
38313         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
38314           public method.
38315
38316 2004-10-14 00:15  ravindra
38317
38318         * ButtonBase.cs: Redraw () related improvements.
38319
38320 2004-10-14 00:14  ravindra
38321
38322         * MessageBox.cs: Moved InitFormSize () out of Paint method and
38323           removed unnecessary calls to Button.Show () method.
38324
38325 2004-10-13 17:50  pbartok
38326
38327         * XplatUIX11.cs:
38328           - Formatting fix
38329           - Removed destroying of window until we solve the problem of X
38330             destroying the window before us on shutdown
38331
38332 2004-10-13 16:32  pbartok
38333
38334         * ButtonBase.cs:
38335           - Now Redraws on MouseUp for FlatStyle Flat and Popup
38336
38337 2004-10-13 14:18  pbartok
38338
38339         * XplatUIX11.cs:
38340           - Added code to destroy the X window
38341
38342 2004-10-13 14:18  pbartok
38343
38344         * XplatUIWin32.cs:
38345           - Added code to destroy a window
38346
38347 2004-10-13 14:12  pbartok
38348
38349         * ButtonBase.cs:
38350           - Added the Redraw on Resize that got dropped in the last rev
38351
38352 2004-10-13 09:06  pbartok
38353
38354         * ThemeWin32Classic.cs:
38355           - Path from John BouAntoun:
38356             * Fix check rendering (centre correctly for normal style, offset
38357               correctly for FlatStyle).
38358             * Fix border color usage (use backcolor) for FlatStyle.Popup
38359             * Use checkbox.Capture instead of checkbox.is_pressed when
38360               rendering flatstyle states.
38361
38362 2004-10-12 21:48  pbartok
38363
38364         * ThemeWin32Classic.cs:
38365           - Removed all occurences of SystemColors and replaced them with the
38366             matching theme color
38367
38368 2004-10-12 21:41  pbartok
38369
38370         * ThemeWin32Classic.cs:
38371           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
38372             him using the function for flatstyle drawing
38373           - Changed functions to use the new version of CPDrawBorder3D
38374
38375 2004-10-12 21:15  pbartok
38376
38377         * ControlPaint.cs:
38378           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
38379             match MS documentation. They need to return defined colors if the
38380             passed color matches the configured control color. Thanks to John
38381             BouAntoun for pointing this out.
38382
38383 2004-10-12 20:57  pbartok
38384
38385         * Control.cs:
38386           - Fix from John BouAntoun: Raise ForeColorChanged event when text
38387             color is changed
38388
38389 2004-10-12 20:46  pbartok
38390
38391         * CheckBox.cs:
38392           - Fix from John BouAntoun: Now properly sets the Appearance property
38393
38394 2004-10-12 20:45  pbartok
38395
38396         * ThemeWin32Classic.cs:
38397           - Fixes from John BouAntoun: now handles forecolors and backcolors
38398             for flatstyle rendered controls much better; It also fixes normal
38399             checkbox rendering when pushed or disabled.
38400
38401 2004-10-08 02:50  jordi
38402
38403         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
38404           work
38405
38406 2004-10-07 08:56  jordi
38407
38408         * ThemeWin32Classic.cs: Removes deletion of cached brushes
38409
38410 2004-10-06 03:59  jordi
38411
38412         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
38413           XplatUIWin32.cs: removes warnings from compilation
38414
38415 2004-10-05 12:23  jackson
38416
38417         * RadioButton.cs: Fix ctor
38418
38419 2004-10-05 11:10  pbartok
38420
38421         * MessageBox.cs:
38422           - Partial implementation by Benjamin Dasnois
38423
38424 2004-10-05 10:15  jackson
38425
38426         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
38427           by John BouAntoun
38428
38429 2004-10-05 03:07  ravindra
38430
38431         * ToolBar.cs:
38432                 - Removed a private method, Draw ().
38433                 - Fixed the ButtonDropDown event handling.
38434                 - Fixed MouseMove event handling.
38435
38436 2004-10-05 03:04  ravindra
38437
38438         * ThemeWin32Classic.cs:
38439                 - Added DrawListView method and ListViewDefaultSize property.
38440                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
38441                 - Changed DOS style CRLF to Unix format (dos2unix).
38442
38443 2004-10-05 03:03  ravindra
38444
38445         * Theme.cs:
38446                 - Added DrawListView method and ListViewDefaultSize property.
38447
38448 2004-10-05 02:42  ravindra
38449
38450         * ToolBarButton.cs: Added an internal member dd_pressed to handle
38451           clicks on DropDown arrow.
38452
38453 2004-10-04 22:56  jackson
38454
38455         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
38456           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
38457           Control handle the buffers, derived classes should not have to
38458           CreateBuffers themselves.
38459
38460 2004-10-04 21:20  jackson
38461
38462         * StatusBar.cs: The control handles resizing the buffers now.
38463
38464 2004-10-04 21:18  jackson
38465
38466         * Control.cs: When resizing the buffers should be invalidated. This
38467           should be handled in Control not in derived classes.
38468
38469 2004-10-04 14:45  jackson
38470
38471         * TabPage.cs: oops
38472
38473 2004-10-04 02:14  pbartok
38474
38475         * LeftRightAlignment.cs:
38476           - Initial check-in
38477
38478 2004-10-04 01:09  jordi
38479
38480         * ThemeWin32Classic.cs: fixes right button position causing right
38481           button not showing on horizontal scrollbars
38482
38483 2004-10-02 13:12  pbartok
38484
38485         * XplatUIX11.cs:
38486           - Simplified the Invalidate method by using an X call instead of
38487             generating the expose ourselves
38488           - Added an expose when the window background is changed
38489           - Implemented ClientToScreen method
38490
38491 2004-10-02 13:08  pbartok
38492
38493         * XplatUIWin32.cs:
38494           - Added Win32EnableWindow method (test for implementing modal
38495           dialogs)
38496           - Added ClientToScreen method and imports
38497
38498 2004-10-02 13:07  pbartok
38499
38500         * XplatUI.cs, XplatUIDriver.cs:
38501           - Added ClientToScreen coordinate translation method
38502
38503 2004-10-02 13:06  pbartok
38504
38505         * KeyPressEventArgs.cs:
38506           - Fixed access level for constructor
38507
38508 2004-10-02 13:06  pbartok
38509
38510         * NativeWindow.cs:
38511           - Changed access level for the window_collection hash table
38512
38513 2004-10-02 13:05  pbartok
38514
38515         * Form.cs:
38516           - Added KeyPreview property
38517           - Added Menu property (still incomplete, pending Jordi's menu work)
38518           - Implemented ProcessCmdKey
38519           - Implemented ProcessDialogKey
38520           - Implemented ProcessKeyPreview
38521
38522 2004-10-02 13:02  pbartok
38523
38524         * Control.cs:
38525           - Added private method to get the Control object from the window
38526           handle
38527           - Implemented ContextMenu property
38528           - Implemented PointToScreen
38529           - Implemented PreProcessMessage
38530           - Implemented IsInputChar
38531           - Implemented IsInputKey
38532           - Implemented ProcessCmdKey
38533           - Completed ProcessKeyEventArgs
38534           - Fixed message loop to call the proper chain of functions on key
38535           events
38536           - Implemented ProcessDialogChar
38537           - Implemented ProcessDialogKey
38538           - Implemented ProcessKeyMessage
38539           - Implemented ProcessKeyPreview
38540           - Added RaiseDragEvent stub (MS internal method)
38541           - Added RaiseKeyEvent stub (MS internal method)
38542           - Added RaiseMouseEvent stub (MS Internal method)
38543           - Added RaisePaintEvent stub (MS Internal method)
38544           - Added ResetMouseEventArgs stub (MS Internal method)
38545           - Implemented RtlTranslateAlignment
38546           - Implemented RtlTranslateContent
38547           - Implemented RtlTranslateHorizontal
38548           - Implemented RtlTranslateLeftRight
38549           - Added generation of KeyPress event
38550
38551 2004-10-02 05:57  ravindra
38552
38553         * ListViewItem.cs: Added attributes.
38554
38555 2004-10-02 05:32  ravindra
38556
38557         * ListView.cs: Added attributes.
38558
38559 2004-10-01 11:53  jackson
38560
38561         * Form.cs: Implement the Close method so work on MessageBox can
38562           continue.
38563
38564 2004-09-30 14:06  pbartok
38565
38566         * XplatUIX11.cs:
38567           - Bug fixes
38568
38569 2004-09-30 11:34  jackson
38570
38571         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
38572
38573 2004-09-30 07:26  ravindra
38574
38575         * ListViewItemConverter.cs: Converter for ListViewItem.
38576
38577 2004-09-30 07:26  ravindra
38578
38579         * SortOrder.cs: Enum for ListView control.
38580
38581 2004-09-30 07:25  ravindra
38582
38583         * ColumnHeader.cs: Supporting class for ListView control.
38584
38585 2004-09-30 07:24  ravindra
38586
38587         * ListView.cs, ListViewItem.cs: Initial implementation.
38588
38589 2004-09-30 07:20  ravindra
38590
38591         * ItemActivation.cs: Enum for ListView Control.
38592
38593 2004-09-29 20:29  pbartok
38594
38595         * XplatUIX11.cs:
38596           - Added lookup of pixel value for background color; tries to get a
38597             color 'close' to the requested color, it avoids having to create a
38598             colormap.  Depending on the display this could mean the used color
38599             is slightly off the desired color. Might have to change it to a more
38600             resource intensive colormap approach, but it will work as a
38601           workaround to avoid red screens.
38602
38603 2004-09-29 14:27  jackson
38604
38605         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
38606
38607 2004-09-28 12:44  pbartok
38608
38609         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
38610           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
38611           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
38612           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
38613           TrackBar.cs, VScrollBar.cs:
38614           - Streamlined Theme interfaces:
38615             * Each DrawXXX method for a control now is passed the object for
38616               the control to be drawn in order to allow accessing any state the
38617               theme might require
38618
38619             * ControlPaint methods for the theme now have a CP prefix to avoid
38620               name clashes with the Draw methods for controls
38621
38622             * Every control now retrieves it's DefaultSize from the current
38623             theme
38624
38625 2004-09-28 12:17  jackson
38626
38627         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
38628           drawing
38629
38630 2004-09-24 14:57  jackson
38631
38632         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
38633           Gives us a nice little performance boost.
38634
38635 2004-09-24 12:02  jackson
38636
38637         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
38638           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
38639           Control and supporting classes. Initial checkin
38640
38641 2004-09-23 13:08  jackson
38642
38643         * Form.cs: Temp build fixage
38644
38645 2004-09-23 01:39  ravindra
38646
38647         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
38648           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
38649           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
38650           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
38651           EventHandlers needed by ListView Control.
38652
38653 2004-09-22 14:12  pbartok
38654
38655         * ScrollableControl.cs:
38656           - Implemented DockPadding property
38657           - Implemented AutoScroll property
38658           - Implemented AutoScrollMargin property
38659           - Implemented AutoScrollMinSize property
38660           - Implemented AutoScrollPosition property
38661           - Implemented DisplayRectangle property (still incomplete)
38662           - Implemented CreateParams property
38663           - Implemented HScroll property
38664           - Implemented VScroll property
38665           - Implemented OnVisibleChanged property
38666
38667 2004-09-22 14:09  pbartok
38668
38669         * Form.cs:
38670           - Added Form.ControllCollection class
38671           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
38672             RemoveOwnedForm (still incomplete, missing on-top and common
38673             minimize/maximize behaviour)
38674           - Added StartPosition property (still incomplete, does not use when
38675             creating the form)
38676           - Added ShowDialog() methods (still incomplete, missing forcing the
38677             dialog modal)
38678
38679 2004-09-22 14:05  pbartok
38680
38681         * Application.cs:
38682           - Added message loop for modal dialogs
38683
38684 2004-09-22 14:02  pbartok
38685
38686         * GroupBox.cs:
38687           - Fixed wrong types for events
38688
38689 2004-09-22 14:00  pbartok
38690
38691         * Shortcut.cs, FormWindowState.cs:
38692           - Fixed wrong values
38693
38694 2004-09-22 12:01  jackson
38695
38696         * Control.cs: Text is never null
38697
38698 2004-09-20 22:14  pbartok
38699
38700         * XplatUIWin32.cs:
38701           - Fixed accessibility level for Idle handler
38702
38703 2004-09-20 18:54  jackson
38704
38705         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38706           XplatUIX11.cs: New message loop that uses poll so we don't get a
38707           busy loop
38708
38709 2004-09-17 10:43  pbartok
38710
38711         * ScrollBar.cs:
38712           - Fixed behaviour of arrow buttons. Now properly behaves like
38713             Buttons (and like Microsoft's scrollbar arrow buttons)
38714
38715 2004-09-17 10:14  pbartok
38716
38717         * ScrollBar.cs:
38718           - Added missing release of keyboard/mouse capture
38719
38720 2004-09-17 06:18  jordi
38721
38722         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
38723           Theme.cs: Very early menu support
38724
38725 2004-09-16 17:45  pbartok
38726
38727         * XplatUIWin32.cs:
38728           - Fixed sending a window to the front
38729           - Added overload for SetWindowPos to avoid casting
38730
38731 2004-09-16 17:44  pbartok
38732
38733         * Control.cs:
38734           - Added SendToBack and BringToFront methods
38735
38736 2004-09-16 07:00  ravindra
38737
38738         * Copyright: Added Novell URL.
38739
38740 2004-09-16 07:00  ravindra
38741
38742         * ToolBar.cs: Invalidate should be done before redrawing.
38743
38744 2004-09-15 21:19  ravindra
38745
38746         * ColumnHeaderStyle.cs: Enum for ListView Control.
38747
38748 2004-09-15 21:18  ravindra
38749
38750         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
38751           ListView Control.
38752
38753 2004-09-13 18:26  jackson
38754
38755         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
38756           properly
38757
38758 2004-09-13 18:13  jackson
38759
38760         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
38761           a second thread and post messages into the main threads message
38762           queue. This makes timing much more consistent. Both win2K and XP
38763           have a minimum timer value of 15 milliseconds, so we now do this
38764           too.
38765
38766 2004-09-13 15:18  pbartok
38767
38768         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38769           XplatUIX11.cs:
38770           - Added Z-Ordering methods
38771
38772 2004-09-13 10:56  pbartok
38773
38774         * Form.cs:
38775           - Fixed #region names
38776           - Moved properties and methods into their proper #regions
38777
38778 2004-09-13 10:51  pbartok
38779
38780         * Form.cs:
38781           - Added Accept and CancelButton properties
38782           - Added ProcessDialogKey() method
38783
38784 2004-09-13 08:18  pbartok
38785
38786         * IWindowTarget.cs:
38787           - Initial check-in
38788
38789 2004-09-10 21:50  pbartok
38790
38791         * Control.cs:
38792           - Added DoDragDrop() [incomplete]
38793           - Properly implemented 'Visible' handling
38794           - Added SetVisibleCore()
38795           - Implemented FindChildAtPoint()
38796           - Implemented GetContainerControl()
38797           - Implemented Hide()
38798
38799 2004-09-10 19:28  pbartok
38800
38801         * Control.cs:
38802           - Moved methods into their appropriate #regions
38803           - Reordered methods within regions alphabetically
38804
38805 2004-09-10 18:57  pbartok
38806
38807         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38808           - Added method to retrieve text from window
38809
38810 2004-09-10 18:56  pbartok
38811
38812         * Control.cs:
38813           - Moved some internal functions into the internal region
38814           - Implemented FontHeight
38815           - Implemented RenderRightToLeft
38816           - Implemented ResizeRedraw
38817           - Implemented ShowFocusCues
38818           - Implemented ShowKeyboardCues
38819           - Implemented FromChildHandle
38820           - Implemented FromHandle
38821           - Implemented IsMnemonic
38822           - Implemented ReflectMessage
38823           - All public and protected Static Methods are now complete
38824
38825 2004-09-10 16:54  pbartok
38826
38827         * Control.cs:
38828           - Implemented remaining missing public instance properties
38829           - Alphabetized some out of order properties
38830
38831 2004-09-10 05:51  ravindra
38832
38833         * PictureBox.cs: Added a check for null image.
38834
38835 2004-09-10 00:59  jordi
38836
38837         * GroupBox.cs: remove cvs tag
38838
38839 2004-09-09 05:25  ravindra
38840
38841         * ToolBar.cs: Make redraw accessible from ToolBarButton.
38842
38843 2004-09-09 05:23  ravindra
38844
38845         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
38846           parent redraw.
38847
38848 2004-09-09 02:28  pbartok
38849
38850         * ThemeWin32Classic.cs:
38851           - Improve disabled string look
38852
38853 2004-09-09 01:15  jordi
38854
38855         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
38856           args and handler
38857
38858 2004-09-08 23:56  ravindra
38859
38860         * ItemBoundsPortion.cs: It's enum, not a class!
38861
38862 2004-09-08 23:47  ravindra
38863
38864         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
38865           Enums for Form.
38866
38867 2004-09-08 21:13  ravindra
38868
38869         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
38870           ListView control.
38871
38872 2004-09-08 21:03  ravindra
38873
38874         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
38875           avoid crash.
38876
38877 2004-09-08 21:01  ravindra
38878
38879         * ScrollableControl.cs: Removed unreachable code.
38880
38881 2004-09-08 06:45  jordi
38882
38883         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
38884
38885 2004-09-08 01:00  jackson
38886
38887         * XplatUIX11.cs: Only run the timers when updating the message
38888           queue. This effectively gives X messages a higher priority then
38889           timer messages. Timers still need love though
38890
38891 2004-09-07 14:01  jackson
38892
38893         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
38894           this for us and the handle is no longer valid.
38895
38896 2004-09-07 13:59  jackson
38897
38898         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
38899           loop that manages to not crash. TODO: Add poll and cleanup timers
38900
38901 2004-09-07 11:12  jordi
38902
38903         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
38904
38905 2004-09-07 03:40  jordi
38906
38907         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
38908           fixes, methods, multiple links
38909
38910 2004-09-06 06:55  jordi
38911
38912         * Control.cs: Caches ClientRectangle rectangle value
38913
38914 2004-09-05 02:03  jordi
38915
38916         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
38917           certain situations
38918
38919 2004-09-04 11:10  jordi
38920
38921         * Label.cs: Refresh when font changed
38922
38923 2004-09-02 16:24  pbartok
38924
38925         * Control.cs:
38926           - Added sanity check to creation of double buffer bitmap
38927
38928 2004-09-02 16:24  pbartok
38929
38930         * ButtonBase.cs:
38931           - Fixed selection of text color
38932           - Fixed handling of resize event; now properly recreates double
38933             buffering bitmap
38934           - Added missing assignment of TextAlignment
38935           - Added proper default for TextAlignment
38936
38937 2004-09-02 14:26  pbartok
38938
38939         * RadioButton.cs:
38940           - Added missing RadioButton.RadioButtonAccessibleObject class
38941
38942 2004-09-02 14:26  pbartok
38943
38944         * Control.cs:
38945           - Added missing Control.ControlAccessibleObject class
38946           - Started to implement Select()ion mechanisms, still very incomplete
38947
38948 2004-09-02 14:25  pbartok
38949
38950         * AccessibleObject.cs:
38951           - Added missing methods
38952
38953 2004-09-02 14:23  pbartok
38954
38955         * AccessibleNavigation.cs, AccessibleSelection.cs:
38956           - Initial check-in
38957
38958 2004-09-02 10:32  jordi
38959
38960         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
38961           pool for pens, brushes, and hatchbruses
38962
38963 2004-09-01 15:30  jackson
38964
38965         * StatusBar.cs: Fix typo
38966
38967 2004-09-01 14:44  pbartok
38968
38969         * RadioButton.cs:
38970           - Fixed state
38971
38972 2004-09-01 14:39  pbartok
38973
38974         * Button.cs, RadioButton.cs:
38975           - Functional initial check-in
38976
38977 2004-09-01 14:01  pbartok
38978
38979         * CheckBox.cs:
38980           - Added missing default
38981           - Added missing region mark
38982
38983 2004-09-01 09:10  jordi
38984
38985         * Label.cs: fixes method signatures, new methods, events, fixes
38986           autosize
38987
38988 2004-09-01 07:19  jordi
38989
38990         * Control.cs: Init string variables with an empty object
38991
38992 2004-09-01 04:20  jordi
38993
38994         * Control.cs: fires OnFontChanged event
38995
38996 2004-08-31 20:07  pbartok
38997
38998         * ButtonBase.cs:
38999           - Enabled display of strings
39000
39001 2004-08-31 20:05  pbartok
39002
39003         * Form.cs:
39004           - Added (partial) implementation of DialogResult; rest needs to be
39005             implemented when the modal loop code is done
39006
39007 2004-08-31 19:55  pbartok
39008
39009         * CheckBox.cs:
39010           - Fixed to match the removal of the needs_redraw concept
39011
39012 2004-08-31 19:55  pbartok
39013
39014         * ButtonBase.cs:
39015           - Removed the rather odd split between 'needs redraw' and redrawing
39016           - Now handles the events that require regeneration (ambient
39017             properties and size)
39018
39019 2004-08-31 19:41  pbartok
39020
39021         * Control.cs:
39022           - Added firing of BackColorChanged event
39023           - Added TopLevelControl property
39024           - Fixed handling of WM_ERASEBKGRND message
39025
39026 2004-08-31 12:49  pbartok
39027
39028         * ButtonBase.cs:
39029           - Removed debug
39030           - Minor fixes
39031
39032 2004-08-31 12:48  pbartok
39033
39034         * CheckBox.cs:
39035           - Finished (famous last words)
39036
39037 2004-08-31 04:35  jordi
39038
39039         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
39040           scrolling bugs, adds new methods
39041
39042 2004-08-30 14:42  pbartok
39043
39044         * CheckBox.cs:
39045           - Implemented CheckBox drawing code
39046
39047 2004-08-30 14:42  pbartok
39048
39049         * ButtonBase.cs:
39050           - Made Redraw() and CheckRedraw() virtual
39051           - Improved mouse up/down/move logic to properly track buttons
39052
39053 2004-08-30 09:44  pbartok
39054
39055         * CheckBox.cs:
39056           - Updated to fix broken build. Not complete yet.
39057
39058 2004-08-30 09:28  pbartok
39059
39060         * CheckState.cs:
39061           - Initial checkin
39062
39063 2004-08-30 09:17  pbartok
39064
39065         * Appearance.cs:
39066           - Initial check-in
39067
39068 2004-08-27 16:12  ravindra
39069
39070         * ToolBarButton.cs: Added TypeConverter attribute.
39071
39072 2004-08-27 16:07  ravindra
39073
39074         * ImageIndexConverter.cs: Implemented.
39075
39076 2004-08-27 14:17  pbartok
39077
39078         * Control.cs:
39079           - Removed unneeded stack vars
39080           - First attempt to fix sizing issues when layout is suspended
39081
39082 2004-08-25 15:35  jordi
39083
39084         * ScrollBar.cs: more fixes to scrollbar
39085
39086 2004-08-25 14:04  ravindra
39087
39088         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
39089           Added the missing divider code and grip for ToolBar Control.
39090
39091 2004-08-25 13:20  pbartok
39092
39093         * Control.cs:
39094           - Control now properly passes the ambient background color to child
39095             controls
39096
39097 2004-08-25 13:20  jordi
39098
39099         * ScrollBar.cs: small bug fix regarding bar position
39100
39101 2004-08-25 12:33  pbartok
39102
39103         * Timer.cs:
39104           - Now only calls SetTimer or KillTimer if the enabled state has
39105           changed
39106
39107 2004-08-25 12:33  pbartok
39108
39109         * XplatUIWin32.cs:
39110           - Fixed timer handling, now seems to work
39111           - Improved error message for window creation
39112
39113 2004-08-25 12:32  pbartok
39114
39115         * Control.cs:
39116           - Fixed generation of MouseUp message
39117
39118 2004-08-25 12:29  jordi
39119
39120         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
39121           and fixes for progressbar
39122
39123 2004-08-24 18:43  ravindra
39124
39125         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
39126           in ToolBar control.
39127
39128 2004-08-24 17:15  pbartok
39129
39130         * Panel.cs:
39131           - Added #region
39132           - Added missing events
39133           - Alphabetized
39134
39135 2004-08-24 17:14  pbartok
39136
39137         * StatusBar.cs, PictureBox.cs:
39138           - Now uses Control's CreateParams
39139
39140 2004-08-24 16:36  pbartok
39141
39142         * XplatUIX11.cs:
39143           - Fixed background color handling
39144           - Fixed sending of enter/leave events on a grab
39145
39146 2004-08-24 16:35  pbartok
39147
39148         * X11Structs.cs:
39149           - Refined definitions for CrossingEvent
39150
39151 2004-08-24 12:37  jordi
39152
39153         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
39154           formmating, methods signature, and adds missing events
39155
39156 2004-08-24 12:24  jordi
39157
39158         * Control.cs: fire OnEnabledChanged event
39159
39160 2004-08-24 11:17  pbartok
39161
39162         * XplatUIWin32.cs:
39163           - Implemented SetTimer() and KillTimer()
39164
39165 2004-08-24 11:16  pbartok
39166
39167         * XplatUIX11.cs:
39168           - Now uses Remove instead of Add to kill the timer
39169
39170 2004-08-24 10:16  jackson
39171
39172         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
39173           picture boxes in the theme now. Draw picture box borders and obey
39174           sizing modes
39175
39176 2004-08-24 05:49  jackson
39177
39178         * Timer.cs: Remove top secret debugging code
39179
39180 2004-08-24 05:34  jackson
39181
39182         * PictureBox.cs: Temp hack to make picture boxes draw their full
39183           image
39184
39185 2004-08-24 05:29  jackson
39186
39187         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39188           XplatUIX11.cs: Move timers to the driver level. On X they are
39189           queued by the driver and checked on idle.
39190
39191 2004-08-24 01:07  jackson
39192
39193         * XplatUIX11.cs: Use a queue for async messages instead of passing
39194           them as ClientMessages since that was totally broken. Also simply
39195           check for events and return an idle message if none are found. This
39196           gives us an idle handler, and prevents deadlocking when no messages
39197           are in the queue.
39198
39199 2004-08-23 18:19  ravindra
39200
39201         * XplatUIWin32.cs: Removed the unwanted destructor.
39202
39203 2004-08-23 17:27  pbartok
39204
39205         * ButtonBase.cs:
39206           - Finishing touches. Works now, just needs some optimizations.
39207
39208 2004-08-23 16:53  jordi
39209
39210         * ScrollBar.cs: small fix
39211
39212 2004-08-23 16:45  pbartok
39213
39214         * Application.cs:
39215           - Removed debug output
39216           - Simplifications
39217
39218 2004-08-23 16:43  jordi
39219
39220         * ScrollBar.cs: [no log message]
39221
39222 2004-08-23 16:10  pbartok
39223
39224         * Form.cs:
39225           - Fixed handling of WM_CLOSE message
39226           - Removed debug output
39227
39228 2004-08-23 16:09  pbartok
39229
39230         * Application.cs:
39231           - Added handling of Idle event
39232           - Added handling of form closing
39233           - Fixed reporting of MessageLoop property
39234           - Removed some unneeded code, should provide a bit of a speedup
39235
39236 2004-08-23 15:22  pbartok
39237
39238         * Control.cs:
39239           - Added InitLayout() method
39240           - Added code to properly perform layout when Anchor or Dock property
39241             is changed
39242           - Changed 'interpretation' of ResumeLayout. MS seems to have a
39243             LAMESPEC, tried to do it in a way that makes sense
39244
39245 2004-08-23 14:10  jordi
39246
39247         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
39248           properties and methods
39249
39250 2004-08-23 13:55  pbartok
39251
39252         * Control.cs:
39253           - Properly fixed Jordi's last fix
39254           - Now uses Cursor's Position property instead of calling XplatUI
39255           directly
39256
39257 2004-08-23 13:44  jordi
39258
39259         * PaintEventHandler.cs: Adding missing attribute
39260
39261 2004-08-23 13:39  pbartok
39262
39263         * Cursor.cs:
39264           - Implemented Position property
39265
39266 2004-08-23 13:39  pbartok
39267
39268         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39269           - Added method to move mouse cursor
39270
39271 2004-08-23 13:39  pbartok
39272
39273         * XplatUIX11.cs:
39274           - Fixed setting of background color
39275           - Added method to move mouse cursor
39276
39277 2004-08-23 13:16  jordi
39278
39279         * Control.cs: avoids null exception
39280
39281 2004-08-22 17:46  jackson
39282
39283         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
39284           PictureBox
39285
39286 2004-08-22 17:40  jackson
39287
39288         * XplatUIX11.cs: Add some missing locks
39289
39290 2004-08-22 15:10  pbartok
39291
39292         * Control.cs, Form.cs:
39293           - Removed OverlappedWindow style from Control, instead it's default
39294             now is child
39295           - Made form windows OverlappedWindow by default
39296
39297 2004-08-22 13:34  jackson
39298
39299         * ScrollBar.cs: Update the position through the Value property so
39300           the OnValueChanged event is raised.
39301
39302 2004-08-22 12:04  pbartok
39303
39304         * SWF.csproj:
39305           - Added Cursor.cs and UserControl.cs
39306
39307 2004-08-22 12:03  pbartok
39308
39309         * Cursor.cs:
39310           - Started implementation, not usable yet
39311
39312 2004-08-22 12:00  pbartok
39313
39314         * UserControl.cs:
39315           - Implemented UserControl (complete)
39316
39317 2004-08-21 19:20  ravindra
39318
39319         * ToolBar.cs: Correcting the formatting mess of VS.NET.
39320
39321 2004-08-21 18:49  ravindra
39322
39323         * ToolBar.cs: Probably this completes the missing attributes in
39324           toolbar control.
39325
39326 2004-08-21 18:03  ravindra
39327
39328         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
39329           Fixed toolbar control signatures.
39330
39331 2004-08-21 16:32  pbartok
39332
39333         * LinkLabel.cs:
39334           - Signature Fixes
39335
39336 2004-08-21 16:30  pbartok
39337
39338         * Label.cs:
39339           - Signature fixes
39340
39341 2004-08-21 16:19  pbartok
39342
39343         * Control.cs, Label.cs:
39344           - Signature fixes
39345
39346 2004-08-21 15:57  pbartok
39347
39348         * ButtonBase.cs:
39349           - Added loads of debug output for development
39350           - Fixed typo in method name
39351
39352 2004-08-21 15:52  pbartok
39353
39354         * ToolBarButtonClickEventArgs.cs:
39355           - Added missing base class
39356
39357 2004-08-21 14:53  pbartok
39358
39359         * Control.cs:
39360           - Updated to match new GrabWindow signature
39361
39362 2004-08-21 14:51  pbartok
39363
39364         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39365           - Added method to get default display size
39366
39367 2004-08-21 14:23  pbartok
39368
39369         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39370           - Added method to query current grab state
39371           - Added argument to allow confining a grab to a window
39372
39373 2004-08-21 14:22  pbartok
39374
39375         * Keys.cs:
39376           - Added [Flags] attribute so that modifiers can be used in bitwise
39377           ops
39378
39379 2004-08-21 14:21  pbartok
39380
39381         * TrackBar.cs, ScrollBar.cs:
39382           - Replaced direct XplatUI calls with their Control counterpart
39383
39384 2004-08-21 13:32  pbartok
39385
39386         * Control.cs:
39387           - Implemented Created property
39388
39389 2004-08-21 13:28  pbartok
39390
39391         * Control.cs:
39392           - Implemented ContainsFocus
39393
39394 2004-08-21 13:26  pbartok
39395
39396         * Control.cs:
39397           - Implemented CausesValidation
39398
39399 2004-08-21 13:21  pbartok
39400
39401         * Control.cs:
39402           - Implemented CanFocus
39403           - Implemented CanSelect
39404           - Implemented Capture
39405
39406 2004-08-21 12:35  pbartok
39407
39408         * XplatUIWin32.cs:
39409           - Fixed bug with Async message handling
39410           - Implemented getting the ModifierKeys
39411
39412 2004-08-21 12:32  jackson
39413
39414         * AsyncMethodResult.cs: Make sure we have the mutex before we
39415           release it. Fixes BeginInvoke on windows
39416
39417 2004-08-21 11:31  pbartok
39418
39419         * XplatUIWin32.cs, XplatUIX11.cs:
39420           - Drivers now return proper mouse state
39421
39422 2004-08-21 10:54  jackson
39423
39424         * Control.cs: Implement EndInvoke
39425
39426 2004-08-21 10:48  jackson
39427
39428         * Timer.cs: Remove unneeded finalizer
39429
39430 2004-08-20 19:52  ravindra
39431
39432         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
39433           in mouse event handling in the ToolBar control.
39434
39435 2004-08-20 19:50  ravindra
39436
39437         * ImageList.cs: Changed draw method to use the arguments passed in
39438           to draw the image.
39439
39440 2004-08-20 18:58  pbartok
39441
39442         * XplatUIStructs.cs:
39443           - Added private message for async communication
39444
39445 2004-08-20 17:38  ravindra
39446
39447         * Control.cs: Made RightToLeft property virtual and removed a
39448           Console.WriteLine.
39449
39450 2004-08-20 14:39  jordi
39451
39452         * ThemeGtk.cs: use style_attach
39453
39454 2004-08-20 14:39  pbartok
39455
39456         * XplatUIWin32.cs:
39457           - Added jackson's Async code from X11 to Win32
39458
39459 2004-08-20 14:09  pbartok
39460
39461         * SWF.csproj:
39462           - Added all new files
39463
39464 2004-08-20 14:09  pbartok
39465
39466         * Control.cs:
39467           - Added call to set window background color
39468
39469 2004-08-20 14:03  pbartok
39470
39471         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39472           - Added method for setting the window background
39473
39474 2004-08-20 14:02  pbartok
39475
39476         * XplatUIWin32.cs:
39477           - Added method for setting the background color
39478           - Added handling for erasing the window background
39479
39480 2004-08-20 13:45  jordi
39481
39482         * TrackBar.cs: fixes timer, new properties and methods
39483
39484 2004-08-20 13:34  jackson
39485
39486         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
39487           correct thread
39488
39489 2004-08-20 13:22  jackson
39490
39491         * Timer.cs: Timer Tick events are now handed through Controls Async
39492           mechanism so the callbacks are executed in the same thread as X
39493
39494 2004-08-20 13:19  jackson
39495
39496         * XplatUIDriver.cs: Expose functionality to send async messages
39497           through the driver
39498
39499 2004-08-20 13:18  jackson
39500
39501         * Control.cs: Implement Begininvoke
39502
39503 2004-08-20 13:14  jackson
39504
39505         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
39506           messages through the driver
39507
39508 2004-08-20 13:12  jackson
39509
39510         * XplatUIX11.cs: Lock before all X operations. Also added Async
39511           method functionality through XSendEvent
39512
39513 2004-08-20 13:11  jackson
39514
39515         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
39516           This will screw up on 64 bit systems)
39517
39518 2004-08-20 13:10  jackson
39519
39520         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
39521           Async messages through X/Win32
39522
39523 2004-08-19 19:39  pbartok
39524
39525         * XplatUIX11.cs:
39526           - Updated code to match new HandleData.DeviceContext type
39527
39528 2004-08-19 19:38  pbartok
39529
39530         * HandleData.cs:
39531           - Made DeviceContext a generic object to allow usage from various
39532           drivers
39533           - Added support for queueing Windows messages
39534
39535 2004-08-19 19:37  pbartok
39536
39537         * XplatUIWin32.cs:
39538           - Added generation of MouseEnter, MouseLeave and MouseHover events
39539           - Added cleanup on EndPaint
39540
39541 2004-08-19 19:17  pbartok
39542
39543         * Control.cs:
39544           - Added handling of WM_MOUSEHOVER
39545           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
39546           code
39547
39548 2004-08-19 18:55  jordi
39549
39550         * ThemeGtk.cs: fixes button order
39551
39552 2004-08-19 18:12  jordi
39553
39554         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
39555
39556 2004-08-19 17:09  pbartok
39557
39558         * Control.cs:
39559           - Added Right property
39560           - Added RightToLeft property
39561
39562 2004-08-19 16:27  jordi
39563
39564         * ThemeGtk.cs: experimental GTK theme support
39565
39566 2004-08-19 16:26  jordi
39567
39568         * ITheme.cs, Theme.cs: move themes from an interface to a class
39569
39570 2004-08-19 16:25  jordi
39571
39572         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
39573           theme enhancaments
39574
39575 2004-08-19 16:04  pbartok
39576
39577         * XplatUIX11.cs:
39578           - Added colormap basics
39579           - Added a way to re-initialize with a different display handle
39580           - Fixed setting of the window background color
39581           - Added various X11 imports related to colors and colormaps
39582
39583 2004-08-19 15:51  pbartok
39584
39585         * X11Structs.cs:
39586           - Removed packing hints (Paolo suggested this a while back)
39587           - fixed colormap type
39588           - Added default Atom types
39589           - Added Screen and color structs and enums
39590
39591 2004-08-19 15:39  pbartok
39592
39593         * ImageList.cs:
39594           - Added missing Draw() method
39595           - Added missing RecreateHandle event
39596
39597 2004-08-19 15:30  pbartok
39598
39599         * Form.cs:
39600           - Added handling of WM_CLOSE
39601
39602 2004-08-18 13:16  jordi
39603
39604         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
39605           a table
39606
39607 2004-08-18 09:56  jordi
39608
39609         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
39610
39611 2004-08-17 15:31  ravindra
39612
39613         * SWF.csproj: Updated project.
39614
39615 2004-08-17 15:25  pbartok
39616
39617         * Control.cs:
39618           - Drawing improvement; don't call UpdateBounds if we are not visible
39619             (or have been minimized)
39620
39621 2004-08-17 15:24  pbartok
39622
39623         * XplatUIWin32.cs:
39624           - Finished IsVisible
39625           - Added Win32GetWindowPlacement
39626
39627 2004-08-17 15:08  jackson
39628
39629         * Panel.cs: Initial checkin of the Panel
39630
39631 2004-08-17 14:25  pbartok
39632
39633         * Control.cs:
39634           - Fixed broken handling of default window sizes
39635
39636 2004-08-17 13:29  jackson
39637
39638         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
39639           has a large startup time.
39640
39641 2004-08-17 10:25  jackson
39642
39643         * HandleData.cs: union areas properly
39644
39645 2004-08-17 10:12  jackson
39646
39647         * HandleData.cs: union areas properly
39648
39649 2004-08-16 20:00  ravindra
39650
39651         * ToolBar.cs, ToolBarButton.cs: Added attributes.
39652
39653 2004-08-16 18:48  ravindra
39654
39655         * ToolBar.cs: Added attributes.
39656
39657 2004-08-16 17:17  ravindra
39658
39659         * SWF.csproj: Updated project.
39660
39661 2004-08-16 17:16  jackson
39662
39663         * XplatUIX11.cs: Check for more expose events before sending a
39664           WM_PAINT so they can all be grouped together. This makes dragging a
39665           window across another window redraw in a sane way.
39666
39667 2004-08-16 15:47  pbartok
39668
39669         * Control.cs:
39670           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
39671             support OnMouseEnter/Leave()
39672           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
39673             exposure handling
39674
39675 2004-08-16 15:46  pbartok
39676
39677         * XplatUIStructs.cs, XplatUIX11.cs:
39678           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
39679           OnMouseEnter/Leave()
39680
39681 2004-08-16 15:34  jackson
39682
39683         * XplatUIX11.cs: Group multiple expose events in HandleData, make
39684           sure messages get the message field set to WM_NULL if they are not
39685           handled.
39686
39687 2004-08-16 15:24  jackson
39688
39689         * HandleData.cs: HandleData is used for storing message information
39690           for window handles
39691
39692 2004-08-15 17:23  ravindra
39693
39694         * ColorDepth.cs: Added attribute.
39695
39696 2004-08-15 17:23  ravindra
39697
39698         * SWF.csproj: Updated project for ToolBar Control.
39699
39700 2004-08-15 17:20  ravindra
39701
39702         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
39703           control and also dos2unix format.
39704
39705 2004-08-15 17:13  ravindra
39706
39707         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
39708           ToolBarButtonClickEventArgs.cs,
39709           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
39710           ToolBarTextAlign.cs: First Implementation of ToolBar control.
39711
39712 2004-08-15 15:31  pbartok
39713
39714         * ButtonBase.cs:
39715           - First (mostly) working version
39716
39717 2004-08-13 16:15  pbartok
39718
39719         * Control.cs:
39720           - Fixed Anchor default
39721
39722 2004-08-13 15:43  pbartok
39723
39724         * Control.cs:
39725           - Changed GetCursorPos signature
39726
39727 2004-08-13 15:42  pbartok
39728
39729         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39730           - Changed signature for GetCursorPos
39731
39732 2004-08-13 15:25  pbartok
39733
39734         * XplatUIX11.cs:
39735           - Cleanup
39736           - Fixed resizing/exposure handling
39737
39738 2004-08-13 15:22  jordi
39739
39740         * ThemeWin32Classic.cs: removes redundant code and fixes issues
39741           with tickposition
39742
39743 2004-08-13 14:55  jordi
39744
39745         * TrackBar.cs: change from wndproc to events
39746
39747 2004-08-13 13:00  jordi
39748
39749         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39750           XplatUIX11.cs: implements PointToClient (ScreenToClient)
39751
39752 2004-08-13 12:53  pbartok
39753
39754         * XplatUIWin32.cs:
39755           - Changed GetWindowPos to also provide client area size
39756           - Fixed broken prototypes for several win32 functions
39757
39758 2004-08-13 12:53  pbartok
39759
39760         * XplatUI.cs, XplatUIDriver.cs:
39761           - Changed GetWindowPos to also provide client area size
39762
39763 2004-08-13 12:52  pbartok
39764
39765         * XplatUIX11.cs:
39766           - Added generation of WM_POSCHANGED
39767           - Changed GetWindowPos to also provide client area size
39768
39769 2004-08-13 12:52  pbartok
39770
39771         * Control.cs:
39772           - Added Dispose() and destructor
39773           - Fixed resizing and bounds calculation
39774           - Fixed Layout
39775           - Added memory savings for invisible windows
39776
39777 2004-08-13 12:46  jordi
39778
39779         * TrackBar.cs: adds timer and grap window
39780
39781 2004-08-13 10:25  jackson
39782
39783         * Timer.cs: SWF Timer
39784
39785 2004-08-12 16:59  pbartok
39786
39787         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39788           - Implemented method to get current mouse position
39789
39790 2004-08-12 14:29  jordi
39791
39792         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
39793           enhancement, fix mouse problems, highli thumb, etc
39794
39795 2004-08-12 13:31  pbartok
39796
39797         * Control.cs:
39798           - Fixed Anchoring bugs
39799
39800 2004-08-12 13:01  jackson
39801
39802         * StatusBar.cs: Don't forget things
39803
39804 2004-08-12 12:54  jackson
39805
39806         * ThemeWin32Classic.cs: Handle owner draw status bars
39807
39808 2004-08-12 12:54  jackson
39809
39810         * StatusBar.cs: Implement missing properties, events, and methods.
39811           Handle mouse clicking
39812
39813 2004-08-12 10:19  jackson
39814
39815         * StatusBarPanelClickEventArgs.cs,
39816           StatusBarPanelClickEventHandler.cs: Classes for handling status
39817           bar panel click events
39818
39819 2004-08-12 10:10  jackson
39820
39821         * Control.cs: Add missing properties
39822
39823 2004-08-12 09:46  pbartok
39824
39825         * BindingsManagerBase.cs:
39826           - Name changed to BindingManagerBase.cs
39827
39828 2004-08-12 09:25  jordi
39829
39830         * ScrollableControl.cs: calls ctrlbase instead of exeception
39831
39832 2004-08-11 16:28  pbartok
39833
39834         * InputLanguageChangingEventArgs.cs:
39835           - Never check in before compiling. Fixes the last check-in
39836
39837 2004-08-11 16:26  pbartok
39838
39839         * InputLanguageChangingEventArgs.cs:
39840           - More signature fixes
39841
39842 2004-08-11 16:20  pbartok
39843
39844         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
39845           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
39846           ImageListStreamer.cs, InputLanguage.cs,
39847           InputLanguageChangedEventArgs.cs,
39848           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
39849           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
39850           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
39851           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39852           - Signature fixes
39853
39854 2004-08-11 16:16  pbartok
39855
39856         * Application.cs:
39857           - Fixed Signature
39858           - Added .Net 1.1 method
39859
39860 2004-08-11 15:25  pbartok
39861
39862         * SWF.csproj:
39863           - Fixed BindingManagerBase.cs filename
39864
39865 2004-08-11 15:22  pbartok
39866
39867         * BindingManagerBase.cs:
39868           - Was checked in with wrong filename
39869
39870 2004-08-11 14:50  pbartok
39871
39872         * SWF.csproj:
39873           - Updated
39874
39875 2004-08-11 13:41  jordi
39876
39877         * XplatUIWin32.cs: Fixes ClientRect
39878
39879 2004-08-11 13:19  pbartok
39880
39881         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39882           XplatUIX11.cs:
39883           - We had SetWindowPos and MoveWindow to set window positions and
39884             size, removed MoveWindow. We have GetWindowPos, so it made sense to
39885             keep SetWindowPos as matching counterpart
39886           - Added some X11 sanity checking
39887
39888 2004-08-11 12:59  pbartok
39889
39890         * Control.cs:
39891           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
39892             (It seems that SetBounds is just a front for SetBoundsCore and
39893              SetBoundsCore updates the underlying window system and
39894              UpdateBounds is responsible for updating the variables associated
39895              with the Control and sending the events)
39896           - Major cleanup of Size handling; we now have two sizes, client_size
39897             and bounds. Bounds defines the window with decorations, client_size
39898             without them.
39899
39900 2004-08-11 12:55  pbartok
39901
39902         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39903           - Added method to calculate difference between decorated window and
39904             raw client area
39905
39906 2004-08-11 12:54  pbartok
39907
39908         * Label.cs:
39909           - Forcing redraw on resize
39910
39911 2004-08-11 11:43  pbartok
39912
39913         * ImageList.cs:
39914           - Removed disposing of the actual images when the list is disposed
39915
39916 2004-08-11 09:13  pbartok
39917
39918         * Control.cs:
39919           - Now properly reparents windows
39920
39921 2004-08-11 08:37  pbartok
39922
39923         * Control.cs:
39924           - Duh!
39925
39926 2004-08-11 07:47  pbartok
39927
39928         * Control.cs:
39929           - Rewrote the collection stuff. Might not be as fast now, not
39930             keeping the number of children around and accessible directly, but
39931             it's more straightforward
39932
39933 2004-08-11 07:44  pbartok
39934
39935         * AccessibleObject.cs:
39936           - Fixed to match ControlCollection rewrite
39937
39938 2004-08-11 07:43  pbartok
39939
39940         * ImageList.cs:
39941           - Added missing creation of the collection list
39942
39943 2004-08-10 20:08  jackson
39944
39945         * StatusBar.cs: Get the paint message from WndProc
39946
39947 2004-08-10 19:31  jackson
39948
39949         * ThemeWin32Classic.cs: Create Brushes as little as possible
39950
39951 2004-08-10 19:20  jackson
39952
39953         * UICues.cs: Add Flags attribute
39954
39955 2004-08-10 19:19  jackson
39956
39957         * StatusBarPanel.cs: Signature cleanup
39958
39959 2004-08-10 19:10  jackson
39960
39961         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
39962           Initial implementation of status bar item drawing
39963
39964 2004-08-10 17:27  jordi
39965
39966         * TrackBar.cs: add missing methods, properties, and restructure to
39967           hide extra ones
39968
39969 2004-08-10 16:24  jackson
39970
39971         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
39972           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
39973           attribute
39974
39975 2004-08-10 13:21  jordi
39976
39977         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
39978           enhancements and standarize on win colors defaults
39979
39980 2004-08-10 12:52  jackson
39981
39982         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
39983           ThemeWin32Classic.cs: Implement DrawItem functionality
39984
39985 2004-08-10 12:47  jordi
39986
39987         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
39988
39989 2004-08-10 12:32  jordi
39990
39991         * Control.cs: throw ontextchange event
39992
39993 2004-08-10 11:43  pbartok
39994
39995         * Control.cs:
39996           - Added more to the still unfinished Dock/Anchor layout code
39997
39998 2004-08-10 11:39  pbartok
39999
40000         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
40001           - Added GetWindowPos method
40002
40003 2004-08-10 11:36  pbartok
40004
40005         * XplatUIWin32.cs:
40006           - Implemented several methods
40007
40008 2004-08-10 09:47  jackson
40009
40010         * TrackBar.cs: Allow control to handle buffering
40011
40012 2004-08-10 09:41  jackson
40013
40014         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
40015
40016 2004-08-10 09:24  jackson
40017
40018         * Label.cs, LinkLabel.cs: Let Control handle buffering.
40019
40020 2004-08-10 09:09  jackson
40021
40022         * StatusBar.cs: Let Control handle all the buffering.
40023
40024 2004-08-10 09:08  jackson
40025
40026         * Control.cs: Control will now handle the buffering code, so each
40027           control does not have to implement this.
40028
40029 2004-08-10 08:34  jackson
40030
40031         * XplatUIDriver.cs: Use default colors from the theme
40032
40033 2004-08-09 17:12  pbartok
40034
40035         * ImageList.cs:
40036           - Fixed several bugs Ravindra pointed out
40037
40038 2004-08-09 16:11  pbartok
40039
40040         * Control.cs:
40041           - Added incomplete dock layout code
40042           - Added support for mouse wheel
40043
40044 2004-08-09 16:09  pbartok
40045
40046         * XplatUIX11.cs:
40047           - Added handling for middle and right mousebutton
40048           - Added handling for mouse wheel
40049           - Added handling for key state and mouse state and position
40050           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
40051           messages
40052
40053 2004-08-09 15:40  jackson
40054
40055         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
40056           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
40057           checkin
40058
40059 2004-08-09 15:37  jackson
40060
40061         * StatusBar.cs: Initial implementation of StatusBar
40062
40063 2004-08-09 15:36  jackson
40064
40065         * ITheme.cs: Add support for drawing status bar and getting status
40066           bar item sizes
40067
40068 2004-08-09 15:35  pbartok
40069
40070         * MouseButtons.cs:
40071           - Fixed values
40072
40073 2004-08-09 15:34  jackson
40074
40075         * ThemeWin32Classic.cs: Add support for drawing status bar and get
40076           status bar item sizes
40077
40078 2004-08-09 15:21  jackson
40079
40080         * ThemeWin32Classic.cs: Use known colors for default control
40081           colours
40082
40083 2004-08-09 15:12  jackson
40084
40085         * ThemeWin32Classic.cs: Make the default font static, it is static
40086           in control so this doesn't change functionality and creating fonts
40087           is sloooooow.
40088
40089 2004-08-09 14:56  pbartok
40090
40091         * X11Structs.cs:
40092           - Added GrabMode enum
40093
40094 2004-08-09 14:55  pbartok
40095
40096         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40097           - Removed Run method, was only required for initial development
40098
40099 2004-08-09 14:51  pbartok
40100
40101         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40102           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
40103           capture
40104
40105 2004-08-09 13:48  pbartok
40106
40107         * XplatUIX11.cs:
40108           - Fixed default sizing for child windows
40109
40110 2004-08-09 12:56  pbartok
40111
40112         * XplatUIX11.cs:
40113           - Added generation of WM_DESTROY message
40114           - Added handling of window manager induced shutdown
40115
40116 2004-08-09 11:31  jackson
40117
40118         * ThemeWin32Classic.cs: New names for control properties
40119
40120 2004-08-09 11:25  jackson
40121
40122         * Control.cs: Use new color names
40123
40124 2004-08-09 11:02  jackson
40125
40126         * XplatUI.cs: Get default window properties from the theme
40127
40128 2004-08-09 11:01  jackson
40129
40130         * ITheme.cs: The theme engine now controls default window
40131           properties
40132
40133 2004-08-09 11:00  jackson
40134
40135         * ThemeWin32Classic.cs: Add default window color properties
40136
40137 2004-08-09 10:17  jackson
40138
40139         * ThemeWin32Classic.cs: Use correct default back color
40140
40141 2004-08-09 10:05  jackson
40142
40143         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
40144           the theme now.
40145
40146 2004-08-09 09:56  jackson
40147
40148         * XplatUI.cs: Remove defaults, these are handled by the theme now.
40149
40150 2004-08-09 09:54  jackson
40151
40152         * Control.cs: Get default properties from the theme.
40153
40154 2004-08-09 09:53  jackson
40155
40156         * ITheme.cs: Themes now handle default control properties
40157
40158 2004-08-09 09:53  jackson
40159
40160         * ThemeWin32Classic.cs: Themes now handle default control
40161           properties so coloring will be consistent
40162
40163 2004-08-08 16:54  jordi
40164
40165         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
40166
40167 2004-08-08 15:08  jordi
40168
40169         * XplatUIX11.cs: fixes keyboard crash
40170
40171 2004-08-08 13:47  jordi
40172
40173         * Label.cs: add cvs header info
40174
40175 2004-08-08 12:09  jackson
40176
40177         * ThemeWin32Classic.cs: Add pen_buttonface
40178
40179 2004-08-08 11:52  jordi
40180
40181         * Label.cs, LinkLabel.cs: [no log message]
40182
40183 2004-08-08 11:34  jordi
40184
40185         * ThemeWin32Classic.cs: Use Windows Standard Colours
40186
40187 2004-08-07 17:32  jordi
40188
40189         * TrackBar.cs: throw exceptions of invalid enums values
40190
40191 2004-08-07 17:31  jordi
40192
40193         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
40194           draw method name
40195
40196 2004-08-07 16:56  jackson
40197
40198         * HorizontalAlignment.cs: Initial checkin
40199
40200 2004-08-07 13:16  jordi
40201
40202         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
40203           methods
40204
40205 2004-08-07 13:05  jordi
40206
40207         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
40208           GetSysColor defines
40209
40210 2004-08-06 18:01  pbartok
40211
40212         * ThemeWin32Classic.cs:
40213           - Fixed some rounding issues with float/int
40214
40215 2004-08-06 18:00  jackson
40216
40217         * DockStyle.cs, AnchorStyles.cs:
40218
40219                   Add flags and serializable attributes.
40220
40221 2004-08-06 17:46  pbartok
40222
40223         * XplatUIX11.cs:
40224           - Implemented GetParent
40225
40226 2004-08-06 17:18  pbartok
40227
40228         * TrackBar.cs:
40229           - Fixed some rounding issues with float/int
40230
40231 2004-08-06 17:17  pbartok
40232
40233         * X11Structs.cs, XplatUIX11.cs:
40234           - Fixed Refresh and Invalidate
40235
40236 2004-08-06 15:30  pbartok
40237
40238         * Control.cs, X11Structs.cs, XplatUIX11.cs:
40239           - Fixed recursive loop when resizing
40240           - Improved/fixed redrawing on expose messages
40241
40242 2004-08-06 09:53  jordi
40243
40244         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
40245           keyboard navigation
40246
40247 2004-08-06 08:02  pbartok
40248
40249         * X11Structs.cs, XplatUIX11.cs:
40250           - Fixed reparenting
40251           - Fixed window border creation
40252
40253 2004-08-05 15:38  pbartok
40254
40255         * XplatUIX11.cs:
40256           - Attempted fix for reparenting problems
40257
40258 2004-08-04 15:14  pbartok
40259
40260         * Control.cs:
40261           - Fixed Invalidation bug (calculated wrong client area)
40262           - Added ClientSize setter
40263
40264 2004-08-04 15:13  pbartok
40265
40266         * Form.cs:
40267           - Added AutoScale properties
40268
40269 2004-08-04 15:13  pbartok
40270
40271         * SWF.csproj:
40272           - Added latest files
40273
40274 2004-08-04 14:11  pbartok
40275
40276         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
40277           XplatUIX11.cs:
40278           - Added Invalidate handling
40279
40280 2004-08-03 17:09  jordi
40281
40282         * XplatUIDriver.cs: fixes spelling mistake
40283
40284 2004-07-27 09:53  jordi
40285
40286         * TrackBar.cs: fixes trackbar events, def classname, methods
40287           signature
40288
40289 2004-07-27 09:29  jordi
40290
40291         * ScrollBar.cs: fixes scrollbar events
40292
40293 2004-07-27 04:38  jordi
40294
40295         * Control.cs: changes to be able to run winforms samples
40296
40297 2004-07-26 11:42  jordi
40298
40299         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
40300           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
40301
40302 2004-07-26 05:41  jordi
40303
40304         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
40305           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
40306           implementation
40307
40308 2004-07-22 09:22  jordi
40309
40310         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
40311           check link overlapping, implement events, and fixes
40312
40313 2004-07-21 10:28  jordi
40314
40315         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
40316
40317 2004-07-21 10:19  jordi
40318
40319         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
40320           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
40321           LinkLabelLinkClickedEventArgs.cs,
40322           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
40323           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
40324           implementation
40325
40326 2004-07-19 13:09  jordi
40327
40328         * Control.cs, Label.cs: label control re-written: added missing
40329           functionlity, events, and properties
40330
40331 2004-07-19 10:49  jordi
40332
40333         * Control.cs: fixes SetBounds logic
40334
40335 2004-07-19 01:29  jordi
40336
40337         * Control.cs: Call RefreshWindow only if the window has created
40338
40339 2004-07-15 14:05  pbartok
40340
40341         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
40342           - Implemented ImageList and ImageList.ImageCollection classes
40343           - Added ColorDepth enumeration
40344           - Updated SWF VS.Net project
40345
40346 2004-07-15 11:06  jordi
40347
40348         * XplatUIStructs.cs: added MsgButons enum
40349
40350 2004-07-15 11:03  jordi
40351
40352         * Control.cs: added basic mouse handeling events
40353
40354 2004-07-15 03:38  jordi
40355
40356         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
40357           Vertical TrackBar control implementation
40358
40359 2004-07-13 09:33  jordi
40360
40361         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
40362
40363 2004-07-13 09:31  jordi
40364
40365         * Control.cs, Form.cs: commit: new properties and fixes form size
40366           problems
40367
40368 2004-07-09 14:13  miguel
40369
40370         * ProgressBar.cs: Spelling
40371
40372 2004-07-09 11:25  pbartok
40373
40374         * ProgressBar.cs:
40375           - Removed usage of Rectangle for drawing. Miguel pointed out it's
40376           faster
40377
40378 2004-07-09 11:17  miguel
40379
40380         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
40381
40382                 * ProgressBar.cs: Fixed spelling for `block'
40383
40384                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
40385                 style guidelines.
40386
40387                 Avoid using the += on rect.X, that exposed a bug in the compiler.
40388
40389 2004-07-08 23:21  pbartok
40390
40391         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
40392           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
40393           BaseCollection.cs, Binding.cs, BindingContext.cs,
40394           BindingMemberInfo.cs, BindingsCollection.cs,
40395           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
40396           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
40397           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
40398           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
40399           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
40400           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
40401           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
40402           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
40403           FrameStyle.cs, GiveFeedbackEventArgs.cs,
40404           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
40405           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
40406           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
40407           InputLanguageChangedEventArgs.cs,
40408           InputLanguageChangedEventHandler.cs,
40409           InputLanguageChangingEventArgs.cs,
40410           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
40411           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
40412           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
40413           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
40414           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
40415           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
40416           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
40417           QueryAccessibilityHelpEventArgs.cs,
40418           QueryAccessibilityHelpEventHandler.cs,
40419           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
40420           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
40421           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
40422           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
40423           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
40424           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
40425           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
40426           XplatUIX11.cs, lang.cs:
40427           - Initial check-in
40428