2010-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2010-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2
3         * StatusStrip.cs:
4         * XplatX11.cs:
5         * X11Structs: Implement the new BeginMoveResize method, designed to
6         instruct the window manager to init a resize operation on a top level
7         form. This is used by StatusStrip.
8         * XplatUI.cs:
9         * XplatUIDriver.cs:
10         * XplatUIWin32.cs:
11         * XplatUICarbon.cs: Fill the gaps by creating stubs and updating the
12         method calls.
13         Fixes #573299.
14
15 2010-02-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16
17         * ComboBox.cs: When creating DrawItemEventArgs pass the fore color and
18         back color arguments depending on the higlight/focus state, just like
19         .net.
20         Fixes #572643.
21
22 2010-01-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23
24         * ComboBox.cs: When the normal drop down window is closed, make sure
25         that the auto complete list -if any- is closed as well, instead of
26         stay open without need.
27
28 2010-01-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
29
30         * TextBox.cs: When showing the autocomplete listbox, make sure it's on
31         top, by calling the raw XplatUI.SetZOrder for it, since we can't
32         properly call BringToFront on it as it is parentless. This fixes an
33         issue when using this feature with ComboBox's own parentless listbox.
34         Fixes the remaining bits of #489339.
35
36 2010-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
37
38         * XplatUI.cs:
39         * XplatUIDriver:
40         * XplatUICarbon:
41         * XplatUIWin32:
42         * XplatUIX11.cs: 
43         * XplatUIStructs: Implement support for different kind of audible
44         alerts in Windows, and update the requiered classes.
45         * MessageBox.cs: 
46         * TextBoxBase.cs: Update calls to XplatUI.AudibleAlert.
47         Fixes #473725.
48
49 2010-01-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
50
51         * ComboBox.cs: When use manually setting DropDownHeight, ignore the
52         MaxDropDownHeight property - also rename our field 'count' to
53         'visible_items_count' to avoid confusion as much as possible.
54         Fixes an issue with several items, showing an incorrect layout.
55
56 2010-01-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
57
58         * RichTextBox.cs: SelectedText should set Modified to true. Observe
59         that this is happening just here, not for the Text property, and
60         neither for the TextBoxBase impl.
61         Fixes #569950.
62
63 2010-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
64
65         * ToolStripMenuItem.cs: Put the Checked/CheckState logic in a single
66         place and synchronize the events properly. Fixes a lack of
67         coordination between the events - which should be fired together.
68
69 2010-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
70
71         * TrackBar.cs: Move our events code to a single method, allowing it to
72         optionally fire the Scroll event. This way we both avoid the
73         duplicated calls to OnScroll and also will be able to fire Scroll
74         *before* OnValueChanged in other places.
75         Fixes #568026.
76
77 2010-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
78
79         * RadioButton.cs: When drawing, if Appearance is Button use the old
80         normal routine in the theme engine, instead of using the one in 2.0,
81         since this last one doesn't support proper rendering of the control as
82         a button.
83         Fixes #567904.
84
85 2010-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
86
87         * GroupBoxRenderer.cs: Properly use SystemColors.GrayText to draw to
88         text of the group box if it is disabled.
89         Fixes #567847.
90
91 2009-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
92
93         * Control.cs: When changing the cursor and updating it, do update the
94         cursor immediately even if there's a child control under the current
95         cursor position - this is exactly what .net does.
96         Fixes #555780.
97
98 2009-11-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
99
100         * DataGrid.cs: In OnLeave, do cancel or end current edit, depending on
101         the commit_new_row value, instead of just trying to cancel if a new
102         row had been added. This is important when modifying existing rows and
103         then moving the focus out of the control.
104
105 2009-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
106
107         * XplatUICarbon.cs: Implement the overriden AudibleAlert
108         function in XplatUICarbon.  Currently it throws
109         NotImplementedException which will kill a WinForms application showing
110         a dialog box.
111         Patch by  Erik Ylvisaker (erik@agatelib.org).
112
113 2009-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
114
115         * DataGrid.cs: In CurrentCell, the check to do nothing in case we are
116         in the same cell as specified *and* not editing is wrong.
117
118 2009-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
119
120         * DataGrid.cs: When removing the cells, don't do anything if the
121         specified row is the extra cell we use to add new ones.
122
123 2009-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
124
125         * DataGrid.cs: CurrentCell should be *used* if the new value is the
126         same as the current one, since we could need to activate the edition
127         in the current row. Also, when beginning the edition, do nothing if,
128         basides having an empty source, we are sure we don't have the new
129         cell, which could obviously start it.
130         Fixes other bits of #323154.
131
132 2009-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
133
134         * DataGrid.cs: When we get notified by a change in the position of our
135         data source, don't set CurrentRow if the source is empty, as there's
136         no need to do anything else in the first place, and second, the logic
137         in the CurrentRow setter (public property) will add a new row by
138         default in this case (that is, when the source is empty).
139         Fixes part of #323154.
140
141 2009-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
142
143         * ToolStripMenuItem.cs: Don't try to use SystemColors.MenuText if fore
144         color is SystemColors.ControlText, as this system color detection
145         should be done *completely*. This is specially important when
146         detecting colors in systems running Gtk+ and dark themes.
147
148 2009-11-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
149
150         * DataGrid.cs: Add a new internal property to get the maximum possible
151         visible rows in the grid. We cannot use VisibleRowCount since this
152         value can, depending on the scroll position, return a +1 or -1 value,
153         so we need an absolute way to know whether we need a scroll bar or
154         not. Also, update VLargeChange to avoid code duplication.
155         Fixes a vertical scroll mismatch happening trying to add a new row
156         while the scrollbar has reached its maximum value.
157
158 2009-11-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
159
160         * DataGridTextBoxColumn.cs:
161         * DataGrid.cs: Position the cursor in the add row should *not* show
162         yet another new row - that will happen till we get any real input data
163         from the user. When that happens, we will also mark the new row as
164         ready to commit - otherwise, when the cursor moves to a different row,
165         the just added row will be discarded. This is exactly what .Net seems
166         to do.
167
168 2009-11-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
169
170         * DataGrid.cs: The large value for our vertical scrollbar should
171         depend on the number of visible rows, instead of trying to re-use the
172         value of VisibleRowCount, which is the value of *current* visible
173         rows, and can easily end messed up if new rows are added/removed.
174
175 2009-11-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
176
177         * DataGrid.cs: When moving the scroll, *dont* ever end the current
178         edit - this could seriously mess up our current edit cycle, specially
179         when adding new rows.
180
181 2009-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
182
183         * TabControl.cs: In OnKeyDown call the base implementation first -
184         this way we let the user tell us whether we should handle the key or
185         not.
186         Fixes #543717.
187
188 2009-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
189
190         * DataGrid.cs: Implement removal of rows the Correct Way by creating a
191         copy of the indexes, as any direct write access to the source will cause to
192         reset the entire selection - also, do the linear de-selection in
193         reverse order to avoid any index mismatch in the source, due to out of
194         synchronization removing the rows.
195
196 2009-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
197
198         * DataGridTextBoxColumn.cs:
199         * DataGrid.cs: Don't use this add-pending behaviour to try to add a
200         new row until we have the first input char - it was helping us to fix
201         other issues we have/had, but it's not matching .net.
202
203 2009-10-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
204
205         * TextBoxBase.cs: When returning the preferred height, and we are
206         supposed to be borderless, return the TopMargin value - usually in
207         borderless mode it has a value of 0, but in the ToolStrip controls we
208         need to set the margin manually.
209         Fixes #551214.
210
211 2009-10-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
212
213         * ToolTip.cs: ShowAlways works at the form level, not at the control
214         level. Fixes #544565.
215
216 2009-10-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
217
218         * ButtonBase.cs: Usually the click routines are handled in Control,
219         but in this class we are handling it ourselved, thus we need to have
220         the same calls, and we were missing the call to MouseClick.
221         Patch by Eric Petit <surfzoid@gmail.com>.
222
223 2009-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
224
225         * ComboBox.cs: When setting Text and data source is being used, if the
226         passed value is not matching any of the items in the source, don't
227         pass it to GetItemText, since it's useless, as GetItemText expects a
228         valid item.
229         Fixes #546009.
230
231 2009-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
232
233         * ListView.cs: When retrieving an item in virtual mode, as part of the
234         process calculate its layout, instead of trying to do it later.
235         * ListViewItem.cs: There's no need to try to infer whether we need to
236         compute layout or not anymore - we just do it every time we are
237         returning an item.
238         This way we should be fixing View changes with cached items, which
239         were storing the previous value, and not updating their contents
240         properly.
241
242 2009-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
243
244         * ColumnHeader.cs: Remove the double linear search in the Index
245         property, by removing the call to Contains, which is not needed.
246         Also, Columns collection can never be null.
247
248 2009-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
249
250         * ColumnHeader.cs: When calculating the width and height of the
251         column, try to expand to the right and use all the free space if we
252         are the last column *and* the resize mode is set to -2/header content.
253         Fixes #544716.
254
255 2009-10-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
256
257         * ListView.cs: When retrieving the top item, take into account the
258         offset represented by the header control, to retrieve the proper
259         value. Patch by Christoph von Wittich (Christoph at ApiViewer.de)
260         Fixes the remaining bits of #543773.
261
262 2009-10-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
263
264         * ListView.cs: TopItem setter should set the value as the top, not
265         only ensuring its visibility.
266         Fixes part of #543773.
267
268 2009-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
269
270         * ListView.cs: For virtual mode, when navigating the items using keyboard,
271         don't use the matrix of positions, and instead calculate the positions
272         based on the number of cols and rows, taking advantage of the fixed
273         positions of items. Use the same idea to implement FirstVisibleIndex,
274         so we avoid iterating over all the items. Patch by Stephen Robinson
275         mono at esar.org.uk.
276         Fixes part of #467418.
277
278 2009-10-12  Dick Porter  <dporter@codicesoftware.com>
279
280         * Splitter.cs: Adjust offsets when more than one splitter is
281         present in a control.  Fixes bug 509472.
282
283 2009-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
284
285         * ListView.cs: When computing the value for groups height don't use
286         text_size field, since in LargeIcon view it sometimes contains a
287         double height value - use Font.Height directly, and also improve the
288         padding value.
289         * ThemeWin32Classic: The same as above.
290         This way the space between the group header, the line, and the items
291         area is not that big in LargeIcon view.
292
293 2009-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
294
295         * ListView.cs: When retrieving the fixed positions for the items in
296         virtual mode, use the row value to compute the coords of the item,
297         instead of the col value, as opposed to SmallIcon/LargeIcon views.
298
299 2009-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
300
301         * ListView.cs: The location of the items should be computed on the fly
302         in virtual mode - that decreased speed overall, but reduces the load
303         time.that decreased speed overall, but reduces the load time. Also,
304         handle the cases where we were using data structures we don't need to
305         use/create for this mode.
306         Fixes part of #467418.
307
308 2009-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
309
310         * ListView.cs: Tile view and VirtualMode can't be applied together.
311         Patch by Stephen Robinson <mono@esar.org.uk>.
312
313 2009-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
314
315         * ListView.cs: When calculating the layout for Details view, don't ask
316         for the items *at all* in case we are in virtual mode. This should
317         re-enable the proper behaviour of virtual mode.
318
319 2009-09-26  Jonathan Pobst  <monkey@jpobst.com>
320
321         * TreeNode.cs: When we invalidate a node, make sure we start at
322         0, instead of the node's Bounds.Left, which does not include
323         the +/-, checkbox, or stateimages.
324         [Fixes bug #542481]
325
326 2009-09-24  Ivan N. Zlatev  <contact@i-nz.net>
327
328         * DataGridView.cs: Compare the name and not displayname of properties 
329         when checking if the column is already bound.
330
331 2009-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
332
333         * RichTextBox.cs: For SelectedRtf, after inserting the stream, adjust
334         the position of the caret by adding the needed chars represented by the new line chars,
335         according to the system, using rich *or* hard new lines as needed. Also do a
336         check to be sure we don't move the cursor position beyond the limits
337         of our text. This should avoid problems with text being pasted,
338         regarding the position of the caret.
339
340 2009-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
341
342         * RichTextBox.cs: When SelectedRtf is set, and we are in the 0
343         position in the x axis, force to re-use any already available line,
344         even if it is not empty. This way pasting text into our textbox in the
345         beginning for non empty lines should work fine.
346
347 2009-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
348
349         * RichTextBox.cs: When we are inserting a flow of rtf text, and we are
350         *not* loading it from a file, try to re-use a line if already
351         available, since the default behaviour of the parser is to create new
352         lines for the document.
353         This should fix a regressions we found after the last fix for #513030.
354
355 2009-09-14  Tom Hindle <tom_hindle@sil.org>
356
357         * ToolStripOverflow.cs: Fixes #536036 by adding null ptr check.
358
359 2009-09-11  Ivan N. Zlatev  <contact@i-nz.net>
360
361         * PropertyGrid.cs: Hide the splitter when the help is hidden.
362
363 2009-09-11  Ivan N. Zlatev  <contact@i-nz.net>
364
365         * InternalWindowManager.cs: Call Invalidate-Update instead of 
366         Refresh for MS compitability. Note also that Refresh is virtual 
367         and several controls override it in order to provide data refresh 
368         functionallity on top of the redraw and they do not expect this 
369         extra refresh call.
370         * Control.cs: In Refresh Invalidate the control and all children 
371         insead of calling Refresh for each of them.
372         [Fixes bug #538336]
373
374 2009-09-11  Ivan N. Zlatev  <contact@i-nz.net>
375
376         * PropertyGrid.cs: Always set the help panel properties on the 
377         internal control, because they are inherited and can change with 
378         the parent.
379         [Fixes bug #525305]
380
381 2009-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
382
383         * RichTextBox.cs: When processing rtf, don't add a new line if we
384         already have one for that position. This way we avoid overriding by
385         mistake our lines when copying/pasting.
386         Fixes #513030.
387
388 2009-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
389
390         * TextControl.cs: When inserting new lines, look for the end of file
391         char, and remove chars after it. This is unlikely to happeng either
392         loading a file, pasting text or pressing a char, but can happen using
393         the TextBox.Text property.
394         Fixes #535884.
395
396 2009-09-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
397
398         * Line.cs: In DeleteCharacters, cache line.Length for every tag, since
399         tag.Start changes will modify it indirectly and then we would end up
400         with wrong values.
401         Fixes #512521.
402
403 2009-09-03  Ivan N. Zlatev  <contact@i-nz.net>
404
405         * BindingSource.cs: Implement support for chained data sources.
406         * ListBindingHelper.cs: Add support for ICurrencyManagerProvider and 
407         clean up.
408         [Fixes part of bug #536547]
409
410 2009-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
411
412         * RichTextBox.cs: When saving the text to a file using SaveFile use
413         Environment.NewLine to separate the lines. This way we should be
414         saving the files according to the system.
415         Fixes the remaining part of #511515.
416
417 2009-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
418
419         * RichText.cs: Remove some unix new line characters and use
420         Environment.NewLine. Fixes part of #511515.
421
422 2009-08-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
423
424         * TextBoxBase.cs: Modified should *not* be modified from the Text
425         property, as our new tests show. It should be to false, however, in
426         Append and Clear; and Paste, Cut, Undo, and direct user input should set it
427         to true. Also, as opposed to what the .net docs say -but proven by our
428         tests-, the changes should be generating a ModifiedChanged event
429         (thus we set the property, instead of the field).
430         Fixes #511267.
431
432 2009-08-27  Ivan N. Zlatev  <contact@i-nz.net>
433
434         * DataGridView.cs: Fire the CellDoubleClicked event.
435         [Fixes bug #533430]
436
437 2009-08-27  Ivan N. Zlatev  <contact@i-nz.net>
438
439         * DataGridView.cs: Add support for column DataGridViewAutoSizeColumnMode
440         DisplayedCells and DisplayedCellsExceptHeader.
441         [Fixes bug #533435]
442
443 2009-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
444
445         * TextControl.cs: When removing a simple char, actually record the
446         action in the undo manager. This way we both support undoing the
447         removal of chars using backspace/delete, as well as keeping data
448         integrity when other undo tasks are performed.
449         Fixes #531983.
450
451 2009-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
452
453         * Control.cs: Remove the ancient code in ResetText, which was setting
454         the internal field to String.Empty, instead of doing it for our Text
455         property, as .net does (which also causes a TextChanged event and all
456         the other related routines).
457         Fixes #531587.
458
459 2009-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
460
461         * TreeNodeCollection.cs: Correctly implement Contains by using a
462         linear search - there's no possible way to use a binary search, since
463         the node instances are not implementing IComparable, nor have a
464         specific order.
465         Fixes #529927.
466
467 2009-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
468
469         * DataGrid.cs: If we are *not* changing a row
470         already added to the source, and thus we are adding a new 
471         row instead, try to move to the previous row when Esc is
472         pressed -if possible-.
473         Fixes some bits of #322974.
474
475 2009-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
476
477         * DataGridTextBoxColumn.cs:
478         * DataGrid.cs: Moving the cell to the add row (the last one) should
479         not immediately add a new row - this should happen until the very
480         first change happens in that textbox.
481         Fixes part of #322974.
482
483 2009-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
484
485         * ToolStripDropDown.cs: When assigning the owner item, use its Font as
486         well.
487
488 2009-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
489
490         * ToolStripItem.cs: When the owner changes its Font, call the
491         OnFontChanged event, so we let our users know that we likely have a
492         new font - since Font is an ambient property.
493         * ToolStripDropDownItem.cs: When our Font changes, propagate that
494         information to our DropDown control, if any.
495         Fixes #531515.
496
497 2009-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
498
499         * DataGrid.cs: 
500         * ThemeWin32Classic.cs: When the user clicks on a new cell, we should reset any
501         previous selection, just like .net does. Also, in the cases where a
502         cell is being edited and it keeps the selected status, use the normal
503         colors for it, and use the selected colors for the rest of the columns of
504         that row.
505         Fixes the remaining bits of #323051.
506
507 2009-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
508
509         * DataGrid.cs: When getting ProcessKeyPreview fired, call Edit() if we
510         are not editing already - so the edition is actually active on our
511         column style textbox. Also, it seems the code handling process the
512         grid keys is repeated, but instead of removing it, just comment it for
513         now.
514         Fixes part of #323051.
515
516 2009-08-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
517
518         * AsyncMethodResult.cs: Store a exception field in case the called
519         method actually caused an exception. This way we can throw it later.
520         * XplatUIDriver.cs: Check if the async method result has an exception
521         - throw it if needed. 
522         The idea is that Control.Invoke throws the exception from the thread
523         that called it, not the main MWF thread. 
524         Patch by Tom Spink <tspink@gmail.com>. Fixes #497175.
525
526 2009-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
527
528         * DataGrid.cs: In mouse move we need to shift the selection in case
529         the pointer is on the row headers.
530         Fixes #323052.
531
532 2009-08-11  Ivan N. Zlatev  <contact@i-nz.net>
533
534         * SplitContainer.cs: Avoid updating the splitter distance if it hasn't 
535         moved. Updating the distance was causing a re-layout which was resetting 
536         the clicks counter and preventing DoubleClick from every firing.
537         [Fixes bug #521387]
538
539 2009-08-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
540
541         * DataGrid.cs: When a new TableStyle is added, don't create new
542         columns for it unless it is empty - this is the correct way to both
543         respect the columns if they were provided by our user, or create them
544         for him in case the column collection is empty.
545         Fixes #323111.
546
547 2009-08-10  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
548
549         * DataGrid.cs: Actually call BindColumns in the handler for
550         ListManager.MetaDataChanged, since the current code is already taking
551         into account the scenario when a custom table style is used - this was
552         confusing us before, and that's why we commented the call to
553         BindColumns. Also call CallAreasAndInvalidate, to properly reflect the
554         changes as needed.
555         Fixes #465021.
556
557 2009-08-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
558
559         * DataGrid.cs: When setting the data source, if we have a user
560         provided table style available, force a complete bind in case the
561         column styles for that table style is empty.
562
563 2009-08-09  Ivan N. Zlatev  <contact@i-nz.net>
564
565         * DataGridViewCell.cs: Handle null and DBNull values.
566
567 2009-08-07 Rodrigo Kumpera  <rkumpera@novell.com>
568
569         * ListBindingHelper.cs: Fix the 1.0 build by making this type available
570         under that profile.
571
572 2009-08-07  Ivan N. Zlatev  <contact@i-nz.net>
573
574         * CurrencyManager.cs: Remove duplicate code.
575
576 2009-08-07  Ivan N. Zlatev  <contact@i-nz.net>
577
578         * DataGridView.cs, DataGridViewCell.cs, DataGridViewColumn.cs: 
579         Massive population performance boost. From seconds to ms.
580         [Fixes bug #528887]
581
582 2009-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
583
584         * DataGrid.cs: When handling mouse down on a column, don't do any sort
585         even if the list supports it if we are empty. This way we avoid an exc
586         sorting the empty list, and keep the UI compatible with .net.
587
588 2009-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
589
590         * DataGrid.cs: In Edit () check we have any row before trying to use
591         the current row. Fixes a IOOR exc with an empty data grid.
592
593 2009-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
594
595         * DataGridColumnStyle.cs: Don't call CheckValidDataSource when setting
596         the owner DataGrid - even if this seems to be the right thing to do,
597         .net is not doind this check at this point, but in later operations.
598         Fixes #465019.
599
600 2009-07-28  Mike Gorse  <mgorse@novell.com>
601
602         * ToolStripMenuItem.cs: Added UIA CheckOnClickChanged event.
603
604 2009-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
605
606         * Application.cs: Make FilterMessage internal for 1.1. Fixes the 1.1 build.
607
608 2009-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
609
610         * XplatUIX11.cs:
611         * XplatUIWin32.cs: We need to filter the messages using
612         Application.FilterMessage for our DoEvents implementations. Observe
613         that I don't like the idea of XplatUI call the upper level Application
614         class, but at this point is easier and simpler to do this call - based
615         on the fact it's only one simple call.
616         Fixes #516735.
617
618 2009-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
619
620         * TreeNodeCollection.cs: When removing the selected node, set the
621         SelectedNode value of TreeView to null if there aren't more nodes left - 
622         this is better than to clear the selected node in Clear, since we need
623         to handle the situation in the Remove methods as well.
624         Fixes #525002.
625
626 2009-07-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
627
628         * ToolStripItemCollection.cs: Find should do a case insensitive
629         search, and should throw an ArgumentNullException if the parameter is
630         an empty string.
631
632 2009-07-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
633
634         * PropertyGrid.cs: Use click handlers for each ToolStripButton instead
635         of using a global handler for the ToolStrip. This way the buttons can
636         be recovered and can have its PerformClick method called properly.
637         Fixes #522454.
638
639 2009-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
640
641         * X11Dnd.cs: Implement support for XdndActionList, so we can get the
642         complete list of the supported actions in the drag source, and use the
643         action passed in the Position message only as a fallback. This will
644         help us with dnd operations with non winforms apps.
645         Fixes #402158.
646
647 2009-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
648
649         * ToolStripItemCollection.cs: Use a List<> instead of an ArrayList in
650         Find. This should fix the exception we were getting when trying to
651         convert the ArrayList to an array of objects (since we were losing the
652         type parameter).
653         Fixes #519944.
654
655 2009-07-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
656
657         * RadioButton.cs: Setting Checked when none of the sibligs is checked
658         should happen *not* in GotFocus, but in the Enter event. This is
659         specially important since we should get that Checked behaviour even if
660         no handle is created yet - and thus, no actual GotFocus call happens at
661         the time.
662         Fixes #520764.
663
664 2009-07-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
665
666         * ComboBox.cs: Adjust manually the top border for out internal
667         ComboBox, since removing the border from it leaves it without any
668         margin. This is not noticeable in a default ComboBox, but it is in an
669         instance shown on top of ToolStrip.
670         Fixes the remaining part of #507462.
671
672 2009-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
673
674         * TextBoxBase.cs: Expose the margin top width as a property, to keep
675         the code clean.
676         * ToolStripTextBox.cs: Since we are actually using no border in the
677         default TextBox impl, and we are drawing the border ourselves, we need
678         to manually set the top margin.
679         Fixes part of #507462.
680
681 2009-07-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
682
683         * PrintPreviewDialog.cs: Record when left was pressed, so we can
684         simulate Tab+Alt when moving the focus throughout our buttons and
685         controls.
686         Fixes the remaining bits of #509142.
687
688 2009-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
689
690         * TabControl.cs: When computing the width of each tab page, use the
691         page's Font instead of the tab control one.
692         Fixes #514368.
693
694 2009-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
695
696         * MenuAPI.cs: When handling the Keys.Left key, don't close the menu if
697         the current menu is specifically a ContextMenu (this is what .net does
698         as well). This way we also avoid a crash caused by MenuTracker trying
699         to use the menu when it was already hidden.
700
701 2009-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
702
703         * PrintPreviewDialog.cs: Remove the code used to handle the
704         DropDown menu, since we are now doing it by default in ToolBar, and
705         just call the base impl as needed.Also, deactivate the dropdown menu
706         before moving the focus to a different button in our toolbar, as .net
707         does.
708         * ContextMenu.cs:
709         * MenuAPI.cs: Make as internal the needed bits to deactivate a
710         ContextMenu, and also to keep some beauty in our api.
711
712 2009-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
713
714         * ToolBar.cs: When handling the key down message, if we are on a
715         drop down button, either show the DropDownMenu or pass the key to its
716         ProcessCmdKey method as needed.
717         Fixes the remaining bits of #509985.
718
719 2009-06-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
720
721         * ToolBar.cs: Isolate the event logic related to OnButtonClick. Also
722         set current_item when navigating with the keyboard, so we can use it
723         properly later. Finally, handle both Enter and Space to fire
724         OnButtonClick *only*, without any other impact, as .net does.
725         Fixes part of #509985.
726
727 2009-06-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
728
729         * MenuAPI.cs: Close any active menu when we get a simple Alt.
730         Fixes #509299.
731
732 2009-06-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
733
734         * ToolBar.cs: In OnButtonClick only change the Pushed value for
735         buttons with toogle style. We were previously doing it for
736         DropDownButton's buttons, but that's not what .net is doing.
737         Fixes #510030.
738
739 2009-06-26  Atsushi Enomoto  <atsushi@ximian.com>
740
741         * XplatUICarbon.cs : support multi-byte text input.
742           Fixed bug #501276.
743
744 2009-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
745
746         * ListBox.cs: When creating DrawItemEventArgs, pass either
747         Theme.ColorHighlightText or ForeColor depending on the selected state
748         of our item, as .net does.
749         Fixes #512115.
750
751 2009-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
752
753         * ComboBox.cs: When handling WM_CHAR, process the message first, and
754         send it to the textbox only if it wasn't handled.
755         Fixes #507459.
756
757 2009-06-18  Jonathan Pobst  <monkey@jpobst.com>
758
759         * ComboBox.cs: Only do my big sort at the end of AddRange if
760         the combobox is actually set to Sorted.
761
762 2009-06-18 Tom Hindle <tom_hindle@sil.org>
763         
764         * XplatUIX11.cs: Enabled Text to coexist with custom data formats.
765         Fixes #511849.
766
767 2009-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
768
769         * ListBox.cs: When calculating the scrollbars for non MultiColumn
770         mode, force the use of the horizontal scrollbar only if
771         ScrollAlwaysVisible is true as well.
772         Fixes #513029.
773
774 2009-06-17  Jonathan Pobst  <monkey@jpobst.com>
775
776         * ComboBox.cs: When using AddRange on a sorted combobox, don't
777         try to use our inefficient sorted insert method, just append
778         it and sort the whole thing at then end.
779         [Fixes bug #511247]
780
781 2009-06-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
782
783         * ToolBar.cs: Expose as internal the code used to show a dropdown menu.
784         * PrintPreviewDialog.cs: Handle the down/up arrow keys for our
785         DropDown element.
786         Fixes #509152.
787
788 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
789
790         * DataGridView.cs: Scrolling fixes.
791         [Fixes bug #512816]
792
793 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
794
795         * DataGridView.cs, DataGridViewRowCollection.cs: Clean up a bit and 
796         optimize for batch adding rows.
797
798 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
799
800         * DataGridView.cs: Avoid calling ReBind twice during the initial data 
801         binding.
802         [Fixes bug #512807]
803
804 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
805
806         * DataGridView.cs: Suppress invalidation during data binding.
807         [Fixes part of bug #512807]
808
809 2009-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
810
811         * PrintPreviewDialog.cs: Tune the navigation among the buttons and
812         controls that are part of our ToolBar, so we can mimic the behaviour
813         observed in .Net, by handling also the arrow keys and doing the
814         preprocess for them too.
815         Fixes the remaining bits of #509142.
816
817 2009-06-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
818
819         * ToolBar.cs: Expose the current item as internal.
820         * PrintPreviewDialog.cs: Tune the TabStop property for
821         PrintPreviewControl/ToolBar so we match the .net scenario regarding
822         Tab navigation. Also implement support to navigate throughout the
823         items in the ToolBar.
824         Fixes #509142.
825
826 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
827
828         * DataGridViewComboBoxCell.cs, DataGridViewComboBoxColumn.cs: 
829         Implement items syncing in the non-databound scenario.
830         [Fixes bug #494031]
831
832 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
833
834         * DataGridView.cs: Call OnCellValidating and OnCellValidated and 
835         handle the Cancel accordingly.
836         [Fixes bug #506838]
837
838 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
839
840         * DataGridViewBand.cs: Fix a typo in DefaultHeaderCellType.
841         [Fixes bug #506796]
842
843 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
844
845         * DataGridViewColumnCollection.cs, DataGridViewRowCollection.cs, 
846         DataGridView.cs: Fire CollectionChangeAction.Refresh collection 
847         changed when Clearing the collections so that the DataGridView 
848         can know and reset the current cell.
849         [Fixes bug #492549]
850
851 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
852
853         * BindingSource.cs: In ResetBindings use the ListChangedEventArgs ctor 
854         with the PropertyDescriptor parameter instead of index, because the 
855         latter will set some irelevant indices. Fixes a bug uncovered by recent
856          fix to ListChangedEventArgs.
857
858 2009-06-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
859
860         * DataObject.cs: When looking for any specific format, do a case
861         insensitive search, as .net does.
862         Fixes #509199.
863
864 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
865
866         * CurrencyManager.cs: In AllowNew firstly check if the list is a 
867         IBindingList and proxy to AllowNew. IBindingList has slightly differet 
868         logic and eventhough it's an IList IsReadOnly should not be used in this 
869         case as it might be True but AllowNew could be True as well.
870         Fixes a bug uncovered by a fix to the Array class.
871
872 2009-06-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
873
874         * ListBindingHelper.cs: In GetListItemType do a null check when
875         looking for IList.Item, since the impl could be explicit, and thus
876         private. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
877         Fixes the remaining part of #507120
878
879 2009-06-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
880
881         * DataObject.cs: Map StringFormat/Text/UnicodeText formats properly,
882         to match them in all the cases, as this is exactly what .net does.
883         Fixes #510728.
884
885 2009-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
886
887         * ListBindingHelper.cs: In GetListItemType handle gracefully the case
888         where an instance of IEnumerator returns a null value for its Current
889         property. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
890         Fixes #507120.
891
892 2009-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
893
894         * ComboBox.cs: Properly detect whether we need to use our vertical
895         scrollbar or not, specially for DropDownList/DropDown styles,
896         depending on the value of DropDownHeight.
897         Fixes #508541.
898
899 2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
900
901         * ToolTip.cs: Call the base implementation in Dispose, but do it
902         before anything else to avoid a regression. This way we do the default
903         routines related to any System.ComponentModel.Container.
904         Fixes #508586.
905
906 2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
907
908         * Clipboard.cs:
909         * XplatUIX11.cs:
910         * DataFormats.cs: Implement support for serializable types in our
911         clipboard.
912         Fixes #357642.
913
914 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
915
916         * ColorDialog.cs: Actually add the help button to the form, so it can
917         be visible.
918         Fixes #478555.
919
920 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
921
922         * PrintPreviewDialog.cs: Don't use Dock.Fill for the
923         PrintPreviewControl, since it will be hidden in the top by our
924         toolbar. Use manual location and anchoring instead.
925         Fixes #474889.
926
927 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
928
929         * FileDialog.cs: When saving the size of the dialog, use the
930         ClientSize instead of Size, so we have always the same size for the
931         form. Patch by Alex Shulgin.
932         Fixes #503064.
933
934 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
935
936         * MessageBox.cs: When showing the dialog call XplatUI.AudibleAlert to
937         show a beep, similar to what .net does. 
938         Fixes #473725.
939
940 2009-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
941
942         * ContainerControl.cs:
943         * MenuStrip.cs
944         * ToolStrip.cs: Implicit mnemonic processing should happen for every
945         ToolStrip child, not only for MenuStrip, so we are going to do that in
946         ToolStrip.ProcessMnemonic, where we already had that exactly
947         functionality, but we are only just checking that either this instance
948         is a ToolStripDropDownMenu instance or Alt has been pressed. Finally
949         remove the extra code, since we are not going to use it now.
950         Fixes the remaining bits of #503663.
951
952 2009-05-21  Neville Gao  <nevillegao@gmail.com>
953
954         * ContextMenu.cs: Cleaned up UIA properties.
955
956 2009-05-20  Dick Porter  <dick@acm.org>
957
958         * XplatUICarbon.cs: Add more locking around MessageQueue
959         manipulations.
960
961 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
962
963         * DateTimePicker.cs: Call Focus in HideMonthCalendar to avoid
964         duplication of code, as well as actually getting the focus back in
965         *any* scenario where the drop down is closed.
966
967 2009-05-18 Tom Hindle <tom_hindle@sil.org>
968         * ScrollableControl.cs: Ignore setting properties HScroll and 
969         VScroll when AutoScroll is true.
970         [Fixes bug #500213]
971
972 2009-05-18  Jonathan Pobst  <monkey@jpobst.com>
973
974         * ToolStripRenderer.cs: Apply patch from Thomas Goldstein to make
975         disabled graphics look closer to the ones that .Net produces.
976         [Fixes bug #473660]
977
978 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
979
980         * DateTimePicker.cs: When calculating the max width for the year part,
981         use the current value, since *all* the possible values are exactly a 4
982         digits number. This way we avoid a ArgumentOutOfRangeException trying
983         to check against different values.
984         Fixes #500917.
985
986 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
987
988         * MessageBox.cs: When handling ProcessDialogChar, check that
989         CancelButton is not null before trying to use it, to avoid a null ref
990         exception. We don't need to do that on the ok/yes buttons, since they
991         always exist.
992         Fixes #503935.
993
994 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
995
996         * ListBox.cs: Handle the key down event in WndProc instead of doing it
997         in an event handler, as we need to avoid any operation in case
998         the user has handled it in its own OnKeyDown handler, and this can't
999         be achieved since our handler would be the first one always.
1000         * FontDialog.cs: Update the calls since our method handling key down
1001         has been renamed.
1002         Fixes #503469.
1003
1004 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1005
1006         * Application.cs: We should dismiss the active ToolStrip when we
1007         receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
1008         keyboard short cut can be properly processed by another menu item.
1009         Fixes part of #503663.
1010
1011 2009-05-13  Andreia Gaita  <avidigal@novell.com>
1012
1013         * HtmlDocument.cs: If the objects are strings, wrap them in ""
1014
1015 2009-05-13  Andreia Gaita  <avidigal@novell.com>
1016
1017         * HtmlDocument.cs: Fix InvokeScript call (duh).
1018
1019 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1020
1021         * TextBox.cs: Expose IsAutoCompleteAvailable as internal.
1022         * ComboBox.cs: If auto complete is being used, it is needed to update
1023         the actual value of the combo box, doing it immediately if the user
1024         presses Enter, or doing it when our combo box loses focus. Finally,
1025         when handling Enter and Escape keys for the combobox, don't try to
1026         hide the listbox if it is not visible in the first place. 
1027         Fixes part of #489339.
1028
1029 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1030
1031         * ToolStripDropDownMenu.cs: Use the height returned by
1032         ToolStripItem.GetPreferredHeight to calculate our own height.
1033
1034 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1035
1036         * TreeNode.cs: When setting Checked, do a double null check, since the
1037         current node can still get a null parent handling
1038         TreeView.OnAfterCheck.
1039         Fixes #502567.
1040
1041 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1042
1043         * Control.cs: When assigning ContextMenu, do a null check before
1044         assigning its container field.
1045
1046 2009-05-08  Brad Taylor  <brad@getcoded.net>
1047
1048         * DateTimePicker.cs: Add a UIA-specific property to ensure that if
1049         is_checkbox_checked is changed, we won't break.
1050
1051 2009-05-08  Andrés G. Aragoneses  <aaragoneses@novell.com>
1052
1053         * ToolStripItem.cs: Prevent NRE when our holder is a
1054         ToolStripDropDownButton and we get Select()ed.
1055
1056 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1057
1058         * ToolStripControlHost.cs: DefaultSize must return the current size of
1059         the Control, not the value returned by GetPreferredSize. Also connect
1060         a handle to the control Resize event, and use it to fire
1061         OnHostedControlReize.
1062         Fixes the remaining bits of #483146.
1063
1064 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1065
1066         * ToolStripDropDown.cs: When performing the layout, use
1067         ToolStripItem.GetPreferredSize ().Height instead of
1068         ToolStripItem.Height, since we are already using it that way in this
1069         same method.
1070         Fixes part of ##483146.
1071
1072 2009-05-08  Brad Taylor  <brad@getcoded.net>
1073
1074         * DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers.  Send
1075         OnUIASelectionChanged when ShowCheckbox is true and the checkbox
1076         recieves focus.  Part of fix for #502029.
1077
1078 2009-05-06  Mike Gorse  <mgorse@novell.com>
1079
1080         * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
1081         Add PerformClick and PerformDoubleClick to PopupButton.
1082         Fixes #499851.
1083
1084 2009-05-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1085
1086         * TabControl.cs: call Focus() to emit GotFocus event at the
1087         proper time when SelectionIndex changes. Fixes #499887.
1088
1089 2009-05-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1090
1091         * MonthCalendar.cs: In SetBoundsCore always do the bounds check to
1092         have valid values, even if BoundSpecified is not including
1093         Size/Height/Width - this is useful when we are in a control using Dock
1094         or Anchor.
1095         Fixes part of #483146.
1096
1097 2009-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1098
1099         * ComboBox.cs: When losing the focus, if our textbox is not null,
1100         close its auto complete list, if any.
1101         Fixes part of #489339.
1102
1103 2009-04-27  Andrés G. Aragoneses  <aaragoneses@novell.com>
1104
1105         * ListView.cs: Make OnColumnClick +internal to be used by a11y.
1106
1107 2009-04-27  Brad Taylor  <brad@getcoded.net>
1108
1109         * ToolStripButton.cs: Emit an internal event when CheckOnClick is
1110         changed.
1111
1112 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1113
1114         * XplatUIX11.cs: Properly support UTF8 when handling the
1115         SelectionRequest event - this is helpful supporting some window
1116         managers, such KDE, that explictly request the text in utf8, as
1117         opposed to gnome, that supports ascii.
1118         Fixes #489393.
1119
1120 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1121
1122         * ToolStripDropDownItem.cs: When assigning a new
1123         ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
1124         Capture duties performed by Application/ToolStripManager are handled
1125         nicely and we don't end up in an inconsisten stat.
1126         Fixes #492815.
1127
1128 2009-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1129
1130         * ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
1131         any ToolStripDropDownItem when receiving a mouse down event in an
1132         empty area.
1133
1134 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
1135
1136         * ToolBarButton.cs: add UIA events for style and dropdownmenu changes.
1137
1138 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
1139
1140         * ToolBarButton.cs: rename a method to include UIA prefix.
1141
1142 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
1143
1144         * ToolBarButton.cs: change visibility of some UIA methods from
1145         protected virtual to private.
1146
1147 2009-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1148
1149         * ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
1150         fire OnDropDownOpened/OnDropDownClosed depending on the new
1151         visibility. This also ensures that any direct access to this instance
1152         will fire the mentioned events for the OwnerItem.
1153         * ToolStripDropDownItem.cs: Remove the invocations to
1154         OnDropDownOpened/OnDropDownClosed, since they are handled in
1155         ToolStripDropDown, as well as updating the
1156         OnDropDownHide/OnDropDownShow calls to be in the right order.
1157         Fixes #496193.
1158
1159 2009-04-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1160
1161         * Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any 
1162         shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the 
1163         event is the same as the owner of the menu item. Also set properly 
1164         SourceControl for ContextMenuStrip, as well as add an internal field to 
1165         contain the control that owns the ContextMenuStrip (we need to know this 
1166         even before the public property is assigned).
1167         Fixes bits of #393775.
1168
1169 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1170
1171         * StatusStrip.cs: Use the same icon as .net when the mouse is over the
1172         size grip.
1173         Fixes #492828.
1174
1175 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1176
1177         * ComboBox.cs: When calculating the height of the ComboListBox,
1178         specially for the 2.0 profile, use MaxDropDownItems if the
1179         DropDownHeight property hasn't been set, and use the later if it has
1180         been set. This way we support both properties.
1181         Fixes #493308.
1182
1183 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1184
1185         * ThreadExceptionDialog.cs: Draw the error icon, previously missing.
1186         Fixes #474253.
1187
1188 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1189
1190         * ContainerControl.cs: Implement support for Control.CausesValidation,
1191         by adding a pending list of controls to be validated in the top
1192         container control, and postpone validation as needed. 
1193         Also remove any control in the validation chain in case it gets removed 
1194         from its owner before the pending validation actually happens.
1195         Fixes #457170.
1196
1197 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1198
1199         * ListBox.cs: The default instance StringFormat field used to draw our
1200         items should use the StringFormatFlags.NoWrap value, so it doesn't try
1201         to put in a different line the text that doesn't fit our bounds, but
1202         show it partially.
1203         Fixes #475581.
1204
1205 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1206
1207         * CheckedListbox.cs: When executing OnItemClick check that the index
1208         is different to -1 before trying to retrieve an item using that value.
1209         Fixes a ArgumentOutOfRangeException thrown when the horizontal
1210         scrollbar was visible but not needed, and then a clicked was received
1211         on its area.
1212
1213 2009-04-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1214
1215         * MaskedTextBox.cs: If Insert is pressed, change the internal
1216         overwrite mode for our default value.
1217         Fixes some bits of #477395.
1218
1219 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1220
1221         * ListView.cs: In EnsureVisible avoid any direct access to items if we
1222         are using virtual mode - otherwise use the bounds stored in a specific
1223         item in a given index. This is specially important when using groups
1224         or when items are re-arranged, since the position in the items
1225         collection can be different than that one being displayed.
1226         Fixes the rest of ##491978.
1227
1228 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1229
1230         * ThemeWin32Classic.cs: Include the previous check for ListView in a
1231         2.0 define as needed.
1232
1233 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1234
1235         * ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups.
1236         Fixes part of #491978.
1237
1238 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1239
1240         * ToolTip.cs: New fields to store the title/icon information.
1241         * ThemeWin32Classic.cs: Implement support for tooltip's title and
1242         icon.
1243         Fixes #491978.
1244
1245 2009-04-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1246
1247         * TabControl.cs: When removing a tab that was previously selected, set
1248         internally the value of selected_index to -1, to avoid trying to
1249         access the previous one when trying to set the new one (and was
1250         already removed from the collection). This is what .net seems to do
1251         too.
1252         Fixes #490937.
1253
1254 2009-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1255
1256         * XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
1257         separated, and we cannot fallback on Text if Rtf is requested but not
1258         present.
1259         * Clipboard.cs: Actually use the format specified by our user when
1260         putting data.
1261
1262 2009-03-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1263
1264         * X11Clipboard.cs: Actually look for the RtfText format when calling
1265         GetRftText in our clipboard formats list, instead of using the
1266         generical Text format.
1267
1268 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1269
1270         * TextBox.cs: Process auto completion properly when we are using the
1271         internal source provided by ComboBox, and also remove some repeated
1272         checks.
1273         Fixes #489339.
1274
1275 2009-03-30 Tom Hindle <tom-hindle@sil.org>
1276         
1277         * DataGridView added Support for Invisible Columns to 
1278         AutoFillColumnsInternal method.
1279
1280 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1281
1282         * X11Structs:
1283         * X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
1284         its own file, since it is adding some functionality and thus is not a
1285         simple struct as before.
1286         * XplatUIX11.cs: Add support to store different formats that could
1287         have been specified by the user when puting data in the Clipboard -
1288         this is important when more than one format is supported (such plain
1289         text and rtf text). Update in the needed places, as well as simplify
1290         the code.
1291         Fixes #489625.
1292
1293 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1294
1295         * XplatUIX11.cs: When handling the SelectionRequest event, use
1296         SelectionRequestEvent instead of SelectionEvent, so we get the right
1297         data for the app asking for clipboard data. Set the member of
1298         SelectioneEvent.property to indicate the place where we are storing
1299         the information as well - this is specially important for gnome/kde
1300         apps using the TARGETS atom to ask for the supported permission before
1301         actually asking for a specific format.
1302         Fixes #489393.
1303
1304 2009-03-28  Ivan N. Zlatev  <contact@i-nz.net>
1305
1306         * DataGridViewCell.cs: We don't support drawing all types of cell borders, 
1307         so fallback and at least draw something instead of nothing.
1308
1309 2009-03-27  Ivan N. Zlatev  <contact@i-nz.net>
1310
1311         * DataGridView.cs: If the column header isn't visible allow resizing 
1312         using the cell column border. Also be sure to reset the cursor properly.
1313         [Fixes bug #489929]
1314
1315 2009-03-26   Carlos Alberto Cortez <calberto.cortez@gmail.com>
1316
1317         * ToolStrip.cs: When disposing, iterate over the items in reverse
1318         order, since disposing the items modifies the collection.
1319         * ToolStripItem.cs: Remove from the owner when disposing.
1320         Fixes #485769.
1321
1322 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
1323
1324         * DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No 
1325         longer throws a NotImplementedException.
1326           Based on a patch by Tom Hindle <tom_hindle@sil.org>
1327         [Fixes bug #488319]
1328
1329 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
1330
1331         * DataGridView.cs: Implement IsCurrentRowDirty. No longer throws 
1332         NotImplementedException.
1333
1334 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
1335
1336         * DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs: 
1337         Fix SortMode clash handling.
1338         [Fixes bug #488263]
1339
1340 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
1341
1342         * DataGridView.cs: Do not show the vertical scrollbar if there is only 
1343         one row or less. For the sake of MSNET compatibility.
1344         [Fixes bug #487988]
1345
1346 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
1347
1348         * DataGridView.cs: When the current cell is moved out of the editing row 
1349         be sure to reset it back to a place holder row.
1350
1351 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
1352
1353         * DataGridView.cs: If IsHandleCreated and the very first row is added 
1354         to the grid in a non-databound scenario - select the first cell.
1355         [Fixes bug #486881]
1356
1357 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
1358
1359         * DataGridView.cs: If we are not databound and empty once the first row 
1360         gets added select the first cell.
1361         [Fixes bug #486881]
1362
1363 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
1364
1365         * DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
1366         DataGridView. They do not belong to a DataGridView.
1367         [Fixes bug #486645]
1368
1369 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
1370
1371         * DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs: 
1372         Set indices and associate with DataGridView only after the item is 
1373         add to the internal list.
1374         [Fixes part of bug #486645]
1375
1376 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
1377
1378         * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount. 
1379         FullRowTemplate already contains all the cells.
1380         [Fixes part of bug #486645]
1381
1382 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
1383
1384         * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal 
1385         to perform Pre and Post removal actions to allow the current cell to be 
1386         moved and all events fired properly before the column is removed.
1387
1388 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
1389
1390         * DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and 
1391         Post removal action to allow the current cell to be moved and all events fired 
1392         properly before the row is removed.
1393
1394 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
1395
1396         * DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
1397         [Fixes bug #486640]
1398
1399 2009-03-18  Jonathan Pobst  <monkey@jpobst.com>
1400
1401         * XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
1402         placement of popup windows on OSX.
1403
1404 2009-03-18  Matt Guo  <matt@mattguo.com>
1405
1406         * FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
1407         [Fixes bug #482690]
1408
1409 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
1410
1411         * DataGridView.cs: Implement the CellMouseDoubleClick event.
1412         [Fixes bug #486262]
1413
1414 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
1415
1416         * DataGridView.cs: Fix scrolling to take into account that the 
1417         scrollbars are actually inside the client area of the datagridview.
1418
1419 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
1420
1421         * DataGridView.cs: Implement mouse wheel scrolling.
1422         [Fixes bug #486159]
1423
1424 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
1425
1426         * DataGridView.cs: When DataSource changes the rebinding should happen 
1427         not if IsHandleCreated but if BindingContext != null.
1428         [Fixes bug #486013]
1429
1430 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
1431
1432         * DataGridView.cs: Browsable(false) properties should be skipped when 
1433         autogenerating the columns.
1434         [Fixes bug #486021]
1435
1436 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1437
1438         * DomainUpDown.cs: When ReadOnly is true, all the text entered by the
1439         user should use a different handling, trying to use every pressed char
1440         as a unique and only one prefix to compare against the items. Also,
1441         refactor some input check code to avoid duplication.
1442         Fixes #458607.
1443
1444 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
1445
1446         * DataGridViewCell.cs: In OwningColumng Handle invalid column index 
1447         silently.
1448         [Fixes bug #485278]
1449
1450 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
1451
1452         * DataGridViewBand.cs: Update our State whenever a property changes.
1453         * DataGridView.cs: Don't be so generous in reseting Displayed, because 
1454         it will spawn lots and lots of unneeded State changed events.
1455         [Fixes bug #484989]
1456
1457 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
1458
1459         * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs: 
1460         Add support for invisible rows and columns.
1461         [Fixes bug #484951]
1462
1463 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
1464
1465         * DataGridViewCell.cs: Escape literal { in ToString.
1466         * DataGridViewTextBoxCell.cs: Fix ToString.
1467         [Fixes bug #484923]
1468
1469 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1470
1471         * MenuAPI.cs: When navigating items using the keyboard properly handle
1472         the case when no item is selected - this way we should try to select
1473         the first or the last item depending on the direction, but no the
1474         second or third one, etc.
1475
1476 2209-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1477
1478         * Form.cs: When calling ProcessCmdKey, just after checking for any
1479         MainMenu, check if there's an active ContextMenu that is *not* owned
1480         by the form - this is needed when a non-focusable control owns a
1481         ContextMenu but its ProcessCmdKey method can't be called since it
1482         can't receive any input.
1483         Fixes #477655.
1484
1485 2009-03-13  Neville Gao  <nevillegao@gmail.com>
1486
1487         * ToolBar.cs: Sent ButtonClick events when button style is DropDown.
1488         * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
1489         ContextMenu is displayed.
1490
1491 2009-03-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1492
1493         * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
1494         WM_HELP message for the associated window, don't call
1495         NativeWindow.WndProc *at all*, since this could send a WM_*
1496         key-related to Control.WndProc. Also, return the keypress message, in
1497         case it needs to be preprocessed for any menu.
1498         Fixes #478476.
1499
1500 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
1501
1502         * DataGridView.cs: When removing the first displayed row and moving 
1503         the current cell up one we must invalidate the first displayed row 
1504         index before calculating the row heights, etc.
1505         [Fixes bug #483202]
1506
1507 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
1508
1509         * DataGridView.cs: Fix three column bugs:
1510            - Rows should be cleared (but not removed) if columns become 0.
1511            - The current cell should get moved
1512            - ColumnCount increase was adding too many columns.
1513
1514 2009-03-07  Ivan N. Zlatev  <contact@i-nz.net>
1515
1516         * DataGridView.cs: Fix RowCount decrease which wasn't working well 
1517         in both scenarions - with and without editing row.
1518
1519 2009-03-06  Ivan N. Zlatev  <contact@i-nz.net>
1520
1521         * DataGridView.cs: Be compatible with MS in that the scroll to 
1522         selection has a synchronous effect. The trick here is that in 
1523         order to avoid unnecessary calculations each time a row/column 
1524         is added/removed we recalculate the whole grid size just before 
1525         just before the scroll to selection.
1526         [Fixes bug #482478]
1527
1528 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1529
1530         * RichTextBox.cs: LoadFile(string path) should pass by default
1531         RichTextBoxStreamType.RichText, without caring about the detection or
1532         extension of the file.
1533
1534 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1535
1536         * RichTextBox.cs: When calling LoadFile, remove the extra EOL
1537         introduced by StreamReader, since it will convert the EOF to an EOL.
1538         Fixes #479646.
1539
1540 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
1541
1542         * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
1543         preferred size twice.
1544
1545 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
1546
1547         * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
1548         string if we aren't on a ToolStripDropDownMenu.
1549
1550 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
1551
1552         * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
1553         code from Item to Button.  Patch from Alex Shulgin.
1554
1555 2009-03-05  Jonathan Pobst  <monkey@jpobst.com>
1556
1557         * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
1558         * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
1559         not a ToolStripDropDown.
1560         * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
1561
1562 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
1563
1564         * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
1565
1566           Based on a patch by Tom Hindle <tom_hindle@sil.org>
1567           [Fixes bug #482133]
1568
1569 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
1570
1571         * DataGridView.cs, DataGridViewElement.cs: 
1572            - Always calls OnDataGridViewChanged() if the new DGV is 
1573            not the same/null as the current one.
1574            - Do not throw NREs when setting TopLeftHeaderCell to null
1575            - Unset the DGV for TopLeftHeaderCell when replacing it
1576           Based on a patch by Tom Hindle <tom_hindle@sil.org>
1577           [Fixes bug #481681]
1578
1579 2009-03-04  Jonathan Pobst  <monkey@jpobst.com>
1580
1581         * ToolStripDropDown.cs: When dismissing control due to ESC, don't
1582         hit a NRE if we are a ContextMenuStrip and do not have a parent.
1583         [Fixes bug #478616]
1584
1585 2009-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1586
1587         * ListView.cs: When removing items from a ListViewItemCollection
1588         contained in ListView (not in ListViewGroup), before actually removing
1589         the items remove them also from their -if any- associated groups. If
1590         the item is present in ListViewGroup.Items but not in ListView.Items,
1591         then don't remove it - this is *exactly* what .net seems to do.
1592         Fixes the remaining bits of #478689.
1593
1594 2009-02-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1595
1596         * ListView.cs: In our MouseDown handler in ItemControl use the item in
1597         the very specific *real* position where the mouse was pressed, using
1598         GetItemAtDisplayIndex for that purpose, instead of directly accessing
1599         Items - this is specially useful when groups with Details view is
1600         used. This is what we do in other places when using groups.
1601         Fixes part of #478689.
1602
1603 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1604
1605         * MaskedTextBox.cs: Properly replace selection when a new valid key
1606         is pressed - even when IsOverwriteMode is false. This is what .net
1607         does.
1608
1609 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1610
1611         * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
1612         true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace, 
1613         since Set will keep the previous value in case of error (just what we
1614         need), but still call MaskedTextProvider.Clear if
1615         RejectOnFirstFailure is false - match .net.
1616
1617 2009-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1618
1619         * MaskedTextBox.cs: When setting Text use the very precise algorithm
1620         that .net uses: iterate over every char of the new value, trying to
1621         use every char, and use a normal call to MaskedTextProvider.Replace
1622         call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected 
1623         in case of error in both cases, as well.
1624         Fixes #477408.
1625
1626 2009-02-25  Neville Gao  <nevillegao@gmail.com>
1627
1628         * ColorDialog.cs: Added UIA Framwork Property:
1629         UIASelectedSmallColorControl.
1630
1631 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1632
1633         * MaskedTextBox.cs: Forgot to update the call of the new method
1634         introduces in the previous patch.
1635
1636 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1637
1638         * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
1639         key. Also create a new method to avoid code duplication between
1640         OnKeyDown and OnKeyPress.
1641         Fixes #477388.
1642
1643 2009-02-24  Ivan N. Zlatev  <contact@i-nz.net>
1644
1645         * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected 
1646         or deselected.
1647         [Fixes bug #479124]
1648
1649 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1650
1651         * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
1652         actually inversed, so put it the right way. Also, don't automatically
1653         look for the next editable item after adding a new one, but way for
1654         the next insertion (this is what .net does) - this is not needed when
1655         MaskedTextProvider.InsertAt is called however, since it already looks for the
1656         next editable position.
1657         Fixes the remaining bits of #477383.
1658
1659 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1660
1661         * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
1662         MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
1663         property after the text was modified, adjust the testPosition value
1664         depending on what method was called.
1665         Fixes part of #477383.
1666
1667 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1668
1669         * ListView.cs: For EnsureVisible, adjust the view port bounds based on
1670         the existence of the column headers, as well as using this information
1671         to adjust the vscrollbar value, so items never get hidden by the
1672         column headers.
1673         Fixes #478498.
1674
1675 2009-02-23  Ivan N. Zlatev  <contact@i-nz.net>
1676
1677         * DataGridView.cs: Make the ScrollBars property work properly.
1678
1679 2009-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1680
1681         * TextBox.cs: Some code lifting for AutoComplete's support. First,
1682         when handling non-navigation keys, save the original Text typed by the
1683         user, and don't motify it BEFORE. This was a design mistake, since the
1684         re-assignation happens only when navigating the append/suggest list,
1685         not while creating the matches. Also, process the Delete key just like 
1686         the backspace one. Finally, when handling WM_CHAR, ignore both Escape
1687         and Enter keys.
1688         Fixes some missing bits of #469967.
1689
1690 2009-02-22  Ivan N. Zlatev  <contact@i-nz.net>
1691
1692         * DataGridView.cs: Fix row removal in the data-bound scenario.
1693
1694 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
1695
1696         * DataGridViewCell.cs: Use strict equality comparison in order to 
1697         prevent superfluous CellValueChanged events.
1698
1699 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
1700
1701         * DataGridView.cs: Do not reset the columns when the data list changes, 
1702         but only the rows. Fixes multiple bugs related to sorting, custom 
1703         column styles being reset and more.
1704
1705 2009-02-19  Jonathan Pobst  <monkey@jpobst.com>
1706
1707         * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
1708         drawing the image.
1709
1710 2009-02-18  Andrés G. Aragoneses  <aaragoneses@novell.com>
1711
1712         * ToolBarButton.cs: Oops, use the correct event (fix r127298).
1713
1714 2009-02-17  Andrés G. Aragoneses  <aaragoneses@novell.com>
1715
1716         * ToolBarButton.cs: Event for Enabled property (needed to fix
1717           UIA #474197).
1718
1719 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1720
1721         * TextBox.cs: When handling WndProc with autocomplete activated,
1722         event if the new text is not causing any change in the look up
1723         algorithm, save it as we normally do when numbers and letters.
1724         Fixes #469967.
1725
1726 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1727
1728         * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
1729         Invalidate the proper bounds in the TreeView, not only resetting the
1730         width.
1731         Fixes #475542.
1732
1733 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1734
1735         * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
1736         BackColor property. This is what .net does in both 1.1 and 2.0.
1737         * TreeView.cs: When selected_node is not the same as highlighted_node,
1738         we need to handle the back color in a different way, trying to use the
1739         node's BackColor if it's not Color.Empty.
1740         Fixes #464200.
1741
1742 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1743
1744         * TreeView.cs: When canceling selection in our MouseUp handler,
1745         invalidate also the previous selected node bounds.
1746         Fixes #464191.
1747
1748 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
1749
1750         * DataGridView.cs: End or if end fails then cancel the current edit 
1751         operation before clearing the data source.
1752
1753 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
1754
1755         * DataGridView.cs: Data-bind only after the handle is created.
1756         [Fixes bug #473680]
1757
1758 2009-02-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1759
1760         * TreeView.cs: When handling the MouseMove event, check if
1761         focused_node and selected_node fields are null - usually they are non
1762         null, since we have always a selected node, but canceling selection by
1763         handling BeforeSelect event leaves the two of them as null.
1764         Fixes #470451.
1765
1766 2009-02-06  Neville Gao  <nevillegao@gmail.com>
1767
1768         * TabControl.cs: Control enabled to support accessibility.
1769         [Fixes Bug #472428]
1770
1771 2009-02-05  Ivan N. Zlatev  <contact@i-nz.net>
1772
1773         * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation: 
1774            - Use ArrayList.Insert instead of the Item property so that the item 
1775            is actually inserted and not an existing item replaced.
1776            - Call DataGridView.OnRowsAddedInternal and drop internal from 
1777            OnRowsAdded for binary compitability. This also fixes several 
1778            redrawing issues.
1779         [Fixes bug #472968]
1780
1781 2009-02-05  Andrés G. Aragoneses  <aaragoneses@novell.com>
1782
1783         * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
1784           the value.
1785
1786 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1787
1788         * ToolBarButton.cs: Add another event (OnUIATextChanged).
1789
1790 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1791
1792         * ToolBarButton: Fix typo in previous commit (r125704).
1793
1794 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1795
1796         * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
1797         when a button gets focus, firing the events from the ToolBar.
1798         r: jpobst
1799
1800 2009-02-04  Mario Carrion  <mcarrion@novell.com>
1801
1802         * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting 
1803         Width.
1804         * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
1805         ColumnHeader to raise ColumnWidthChanged.
1806         [Fixes Bug #467086]
1807
1808 2009-02-03  Ivan N. Zlatev  <contact@i-nz.net>
1809
1810         * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion 
1811         code in the row collection code, so that the completion happens before 
1812         the CollectionChanged event, also better encapsulation.
1813         [Fixes bug #471987]
1814
1815 2009-02-02  Ivan N. Zlatev  <contact@i-nz.net>
1816
1817         * DataGridView.cs: When editing is finished do not remove the editing 
1818         row, because it has already become a real one. Instead add a new one.
1819         [Fixes bug #471754]
1820
1821 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1822
1823         * TreeView.cs: When drawing the node's image, check that the index
1824         specified by the node is valid for the ImageList.
1825         Fixes #471094.
1826
1827 2009-02-02  Andrés G. Aragoneses  <aaragoneses@novell.com>
1828
1829         * ToolBar.cs: Add new UIAPerformClick method to be called by
1830         UIAutomationWinforms when someone calls Invoke() on the
1831         ToolBarButtonProvider. r: jpobst
1832
1833 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1834
1835         * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
1836         MapNotify/UnmapNotify events - we are already firing those events in
1837         the proper places, so we avoid this way to send the same message two
1838         times. I'm leaving the handling code in case we could break something
1839         in the future, as this change seems dangerous (but needed).
1840         Fixes #467546.
1841
1842 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1843
1844         * DataGridView.cs: Complete incomplete rows when they are added to 
1845         the grid.
1846         [Fixes bug #471068]
1847
1848 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1849
1850         * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the 
1851         binding is cleared prior to setting it to null. Fixes a regression 
1852         causing exceptions when the DataSource is set to null and then set 
1853         again to a data source.
1854
1855 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1856
1857         * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs: 
1858            - Make Image/Bitmap cells work.
1859            - Handle images with size greater than the cell.
1860            - Default to MiddleCenter alignment for image cells.
1861         [Fixes bug #471101]
1862
1863 2009-01-30  Ivan N. Zlatev  <contact@i-nz.net>
1864
1865         * UpDownBase.cs: Force Height to PreferredHeight.
1866
1867 2009-01-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1868
1869         * XplatUIX11.cs: We should use utf8 handling clipboard transference
1870         with other x11 applications, and use utf16 when handling clipboard
1871         data in the class library. Update the related points as well.
1872         Fixes #468683.
1873
1874 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
1875
1876         * DataGridViewCell.cs: Format strings according to the supplied 
1877         CellStyle.Format.
1878         [Fixes bug #470384]
1879
1880 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
1881
1882         * DataGridView.cs: Reset the hover cell if it gets moved due to row(s) 
1883         addition or removal. Fixes multiple crashes in OnMouseMove.
1884
1885 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
1886
1887         * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
1888
1889 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
1890
1891         * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the 
1892         current context.
1893         [Fixes bug #469239]
1894
1895 2009-01-26  Andreia Gaita  <avidigal@novell.com>
1896
1897         * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
1898         won't be disabled by default.
1899         Fixes #468690
1900
1901 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
1902
1903         * DataGridView.cs: Do not clear the rows if we are not databound.
1904
1905 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
1906
1907         * DataGridView.cs: Do not be too smart about selecting the first cell 
1908         when the first row is added as this is not what MS does. Fixes the 
1909         failing unit tests.
1910
1911 2009-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1912
1913         * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
1914         take into account the fact that OpenTreeNodeEnumerator needs to call
1915         MoveNext/MovePrevious to actually put the passed node as the one
1916         retrieved in Current. This way this property should work as really
1917         expected in .net.
1918         Fixes part of #467225.
1919
1920 2000-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1921
1922         * TreeView.cs: When calculating the scrollbars, don't use
1923         TreeNode.Bounds, since it still can have the values of the previous
1924         -and now invalid- layout -which depends on TreeView.skipped_nodes, and
1925         could not have been updated as well-, and use the actual number of
1926         visible number of nodes to compute the height needed to contain all
1927         the nodes. Also reset the value of vbar to 0 when disabled - this way
1928         we make sure that, when re-enabled, it will update the visible area of
1929         the treeview, even if the previous value before disabling it is the
1930         same as now. Finally don't do anything for the vbar.ValueChanged
1931         handler - for the case wheer we manually set the value but don't the
1932         vbar is disabled already.
1933         Fixes part of #467225.
1934
1935 2009-01-23  Jonathan Pobst  <monkey@jpobst.com>
1936
1937         * ToolStrip.cs: Switch from foreach to for, in case the collection
1938         somehow changes while enumerating it.
1939
1940 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1941
1942         * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no 
1943         editing control.
1944
1945 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1946
1947         * DataGridView.cs: Fix new row adding/editing in the non-databound 
1948         scenario.
1949
1950 2009-01-21  Mike Gorse  <mgorse@novell.com>
1951
1952         * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
1953           use them.
1954           Added UIAValueParamChangedEvent.
1955
1956 2009-01-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1957
1958         * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
1959         of trying to set as top node the highest parent of the previous top
1960         node. Moving to the bottom of the TreeView after a call to CollapseAll
1961         is exactly what .net does. This should avoid some nasty issue when
1962         CollapseAll is called and we don't need the vertical scroll bar.
1963
1964 2009-01-21  Mario Carrion <mcarrion@novell.com>
1965
1966         * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
1967         and UIATopMostChanged.
1968
1969 2009-01-21  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1970
1971         * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
1972         UIAEnabledChanged, and UIATextChanged events.
1973
1974         * Form.cs: Add UIAMenuChanged event.
1975
1976         * Menu.cs:
1977         * MenuAPI.cs: Note which internal APIs are being used by UIA.
1978
1979 2009-01-21  Neville Gao  <nevillegao@gmail.com>
1980
1981         * ToolBar.cs: Control enabled to support accessibility.
1982         [Fixes Bug #455950]
1983
1984 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1985
1986         * TreeView.cs: When handling mouse up event, check whether
1987         highlighted_node is null or not - usually it should be non-null
1988         alwaays, since the mouse down handler sets it, but some externa
1989         operations, such TreeNodeCollection.Clear, could set it to null.
1990         Fixes #438650.
1991
1992 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1993
1994         * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu 
1995         item is disabled.
1996
1997 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1998
1999         * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
2000         [Fixes bug #467285]
2001
2002 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2003
2004         * MonthCalendar.cs: When handling the selection changes using the
2005         mouse, don't set SelectionRange if the selection range didn't actually
2006         change. This matters because, even if we set the range to the same
2007         previous range, an extra DateChanged event is fired. Just to be clear:
2008         SelectionRage property doesn't check whether the new value is
2009         different to the previous one (by ref equals doesn't work here).
2010         Fixes other bits of #364914.
2011
2012 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2013
2014         * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
2015         selection using the keyboard, since we are already firing this event
2016         when setting SelectionRange. Also don't set SelectionRange if the
2017         previous and the new value are the same (the property, just as .net
2018         does, doesn't check whether the previous value and the new one are the
2019         same). This saves us from firing OnDateChanged event if the selection
2020         range didn't change actually.
2021         Fixes the remaining bits of #364914.
2022
2023 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2024
2025         * ListBox.cs: When removing an item and the last item is selected,
2026         remove it from the selection, and if selection mode is One try to
2027         select the new last item.
2028         Fixes #465422.
2029
2030 2009-01-16  Mike Gorse  <mgorse@novell.com>
2031
2032         * Splitter.cs: Make MaxSize internal so that UIA code can use it.
2033
2034 2009-01-16  Mario Carrion <mcarrion@novell.com>
2035
2036         * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged 
2037         when changing Text. 
2038
2039 2009-01-16  Carlos Alberto Cortez <calberto.cortez@ggmail.com>
2040
2041         * X11Structs.cs:
2042         * XplatUIX11.cs: Properly encode/decode the unicode strings we
2043         store/retrieve in the Clipboard. Also, since we try to convert the
2044         data to different formats, separate the source and the result of
2045         it, so we can always fallback to the original and don't mix wrong
2046         conversions.
2047
2048 2009-01-16  Mike Gorse  <mgorse@novell.com>
2049
2050         * TextControl.cs: Add UIASelectionChanged event.
2051
2052 2009-01-16  Ivan N. Zlatev  <contact@i-nz.net>
2053
2054         * DataGridView.cs: Forward the first key events to the editing control.
2055         [Fixes bug #457307]
2056
2057 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
2058
2059         * Application.cs: Oops, launch the copied handler of PreRun instead of
2060         the global one (gendarme would bark otherwise). (Improving r123375)
2061
2062 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
2063
2064         * XplatUI.cs:
2065         * Application.cs: Move the PreRun event fire to the end of the XplatUI
2066         static ctor (we don't move the PreRun event to this class because its
2067         usage would cause the call to the static ctor). This way we can get
2068         a11y support for dialogs that run without App.Run.
2069
2070 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
2071
2072         * ListView.cs: New internal property to know the inner array's length of
2073         the location of items, in order to avoid a try-catch strategy for the
2074         case when this array has not been resized yet (for reference, look at
2075         r123288). r: jpobst
2076
2077 2009-01-13  Andrés G. Aragoneses  <aaragoneses@novell.com>
2078
2079         * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
2080         reflection calls. This requires UIAutomationWinforms r123213.
2081
2082 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2083
2084         * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
2085         handlers and fire the DateSelected event until MouseUp is reached,
2086         like .net does, instead of firing it for each mouse event.
2087         Fixes part of #364914.
2088
2089 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2090
2091         * TreeView.cs: When the selection gets canceled using the BeforeSelect
2092         event, invalidate the previous highlighted_node bounds, to show the
2093         user that the item was *not* selected.
2094         Fixes #464191.
2095
2096 2009-01-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2097
2098         * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
2099         well as -in DropDown and Simple modes- writing in the textbox should
2100         try to set the requested item as the top one, but navigating with the
2101         keyboard and handling mouse selection don't need that behaviour. Also,
2102         when resetting selected_index handling key press events, reset
2103         ComboListBox.HighlightIndex. 
2104         Fixes the remaining bits of #464188.
2105
2106 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
2107
2108         * DataGridView.cs: Fix crashes when shortcut keys are pressed, but 
2109         there are no cells:
2110            - CurrentCellAddress should be -1, -1 and not 0, 0.
2111            - Be tolerant and fall back to clearing the current cell if either 
2112            column or row is -1 in MoveCurrentCell.
2113            - Misc. more -1 checks.
2114
2115 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
2116
2117         * DataGridView.cs: Preserve the column index. Fixes a regression 
2118         introduced by the data binding position tracking code.
2119
2120 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
2121
2122         * DataGridView.cs: If the bottom of the row matches the client height 
2123         do not regard the row as partially visible. Fixes the weird scrolling 
2124         when there is no scrollbar.
2125
2126 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
2127
2128         * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
2129
2130 2009-01-09  Mario Carrion  <mcarrion@novell.com>
2131
2132         * MessageBox.cs: Fixed internal UIAIconRectangle property.
2133
2134 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
2135
2136         * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
2137
2138 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
2139
2140         * DataGridView.cs: Track the Position in the CurrencyManager.
2141
2142 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
2143
2144         * DataGridView.cs: Implement data-bound new item editing/addition.
2145         * DataGridViewRowCollection.cs: Make it possible for us to internally 
2146         remove the edit row.
2147         [Fixes bugs #457107, #457308, #325240]
2148
2149 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
2150
2151         * CurrencyManager.cs: Even if Position is set to a greater value than the 
2152         list count reset it to position of the last item.
2153
2154 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
2155
2156         * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList. 
2157         Fix that in order to make CancelNew to work.
2158
2159 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
2160
2161         * BindingSource.cs: When adding a new item try to delegate to the internal 
2162         list first before throwing an exception.
2163
2164 2009-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2165
2166         * ComboBox.cs: When setting the text and adjusting the top_item, do it
2167         *only* if the current item is *not* visible already.
2168         Fixes part of #464188.
2169
2170 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
2171
2172         * DataGridView.cs: Requesting the CurrencyManager for the first time can 
2173         lead to unexpected OnBindingContextChanged calls and recursive rebinding. 
2174         Fix that.
2175         [Fixes bug #464493]
2176
2177 2009-01-08  Brad Taylor  <brad@getcoded.net>
2178
2179         * ComboBox.cs: Expose a few private fields as internal UIA properties.
2180
2181 2009-01-07  Mario Carrion <mcarrion@novell.com>
2182         
2183         * DataGrid.cs: CWL removed.
2184
2185 2009-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2186
2187         * RadioButton.cs: When setting Checked, we should first update the
2188         check state of the current RadioButton, as well as invalidating it,
2189         and after that actually update the siblings. This is done to match
2190         .net.
2191         Fixes the remaining bits of #463028.
2192
2193 2009-01-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2194
2195         * RadioButton.cs: Setting Checked to false should set TabStop to stop
2196         as well. Also, when we get the focus and no other RadioButton is
2197         selected in the parent control, we should mark ourselves as Checked.
2198         Fixes part of #463028.
2199
2200 2009-01-05  Mario Carrion <mcarrion@novell.com>
2201
2202         * DataGrid.cs: UIA suppport. internal events: 
2203         UIAGridCellChanged, UIAColumnsHeadersVisibleChanged, 
2204         UIASelectionChanged, UIACollectionChanged. Internal properties: 
2205         UIARowHeight, UIACellsArea, UIACaptionArea, 
2206         UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle, 
2207         UIAVScrollBar and UIAHScrollBar.
2208
2209 2009-01-05  Jonathan Pobst  <monkey@jpobst.com>
2210
2211         * ToolStripSplitStackLayout.cs: Enable the overflow button if any
2212         of the buttons are set to Overflow = Always.
2213         [Fixes bug #463013]
2214
2215 2009-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2216
2217         * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
2218         based on whether the binding source is availble or not. Fixes #463008.
2219
2220 2009-01-03  Ivan N. Zlatev  <contact@i-nz.net>
2221
2222         * DataGridViewCell.cs: We should return a value even if we are not bound 
2223         to a DataGridView.
2224
2225 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
2226
2227         * CurrencyManager.cs, DataGrid.cs: 
2228            - Rename CanAddRows to AllowNew. The CurrencyManager has no 
2229            concept of "rows".
2230            - Add two more internal properties AllowRemove and AllowEdit.
2231         * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows, 
2232         AllowUserToDeleteRows and cell ReadOnly state to be also checked against the 
2233         CurrencyManager data source.
2234
2235 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
2236
2237         * DataGridView.cs: Fix crashes caused by assigning negative values to 
2238         ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than 
2239         the column/row heights/widths.
2240         [Fixes bug #462684]
2241
2242 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
2243
2244         * DataGridView.cs: Non-autogenerated columns that have a data property 
2245         set that exists in the current datasource should be set to be data-bound.
2246
2247 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
2248
2249         * DataGridView.cs: Fix column sorting for columns containing null 
2250         values. A "null" value is not always "null" (e.g could be String.Empty) 
2251         and thus parsing numeric types throwed an exception for "null" values.
2252
2253 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
2254
2255         * DataGridView.cs: Detach the editing control when the edit is 
2256         finished.
2257
2258 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
2259
2260         * DataGridView.cs: Multiple fixes to handle last column/row removal 
2261         and cell movement after that instead of throwing exceptions.
2262
2263 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
2264
2265         * DataGridViewCellCollection.cs: When cells are removed the column 
2266         indices become invalid if the cell is not the last one and have to 
2267         be refreshed.
2268
2269 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
2270
2271         * DataGridView.cs: Return false in CommitEdit if there was an error.
2272
2273 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
2274
2275         * DataGridView.cs: Remove a leftover Console.WriteLine.
2276
2277 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
2278
2279         * DataGridViewRow.cs: Access the indexer of the data manager directly 
2280         instead of the internal list.
2281
2282 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
2283
2284         * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs: 
2285         Rewrite the value getting, setting, parsing, formatting logic:
2286            - If data-bound value get/set should actually get and set from the 
2287              data source.
2288            - Make proper usage of TypeConverters for value parsing/formatting.
2289            - Raise DataError if setting the new value fails.
2290            - Get rid off the internal valueType field and get/set the ValueType 
2291            property instead.
2292         [Fixes bug #462051]
2293
2294 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
2295
2296         * DataGridView.cs: Rewrite the DataBinding layer:
2297            - Get rid off all BindingSource/IBindingList/DataSet/DataTable 
2298            specific code.
2299            - Get rid off the per DataSource type column autogeneration code.
2300            - Use the CurrencyManager for everything that is DataBinding related.
2301
2302 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
2303
2304         * CurrencyManager.cs: Do not fire duplicate ListChanged events.
2305
2306 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
2307
2308         * DataGridView.cs, DataGridViewRow.cs: Add a new internal property 
2309         DataManager to fetch the CurrencyManager for the DataGridView and to 
2310         spare this logic for the other components to follow.
2311
2312 2008-12-31  Mario Carrion  <mcarrion@novell.com>
2313
2314         * MessageBox.cs: UIA support: new properties: UIAMessage, 
2315         UIAMessageRectangle and UIAIconRectangle.
2316
2317 2008-12-31  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2318
2319         * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
2320         and DirComboBox.DirComboBoxItem.ToString override for UIA support.
2321
2322 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
2323
2324         * DataGridView.cs: Do not autogenerate duplicate column for a 
2325         data member that has already problematically been assigned one.
2326         [Fixes bug #457305]
2327
2328 2008-12-30  Jonathan Pobst  <monkey@jpobst.com>
2329
2330         * ProfessionalColorTable.cs: Better detection of user's theme.
2331         [Fixes bug #462766]
2332
2333 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
2334
2335         * DataGridView.cs: In the case where there are no autogenerated 
2336         columns and the user adds columns problematically we must generate 
2337         the rows after the very first column is added.
2338
2339 2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2340
2341         * DateTimePicker.cs: When increasing/decreasing the value of month
2342         with ShowUpDown set to true, moving from december to january, and
2343         moving from january to december should adjust the year to the next and
2344         the previous year, respectively.
2345         Fixes the remaining bits of #459674.
2346
2347 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
2348
2349         * DataGridView.cs: If a new cell is selected edit mode should be 
2350         immediately enabled only if EditOnEnter is set. Whether the mouse 
2351         or not was used to select the cell is irrelevant.
2352
2353 2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
2354
2355         * DataGridView.cs: Remove a bogus ReBind call, which was causing 
2356         recursive rebinding.
2357
2358 2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2359
2360         * DateTimePicker.cs: Handle the "MMMM" month format.
2361         Fixes #459674.
2362
2363 2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
2364
2365         * DataGridView.cs: 
2366            - Make ReBind private and refactor various calls to call ReBind 
2367            instead of ClearBinding/DoBinding
2368            - Rebind when the column collection changes
2369         * DataGridViewColumnCollection.cs: 
2370            - Leave the rebinding on change to be handled by the DataGridView.
2371
2372 2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
2373
2374         * DataGridView.cs: Add a ReBind convenience method.
2375         * DataGridViewColumnCollection.cs: Rebind when a column is added.
2376         [Fixes bug #462019]
2377
2378 2008-12-23  Neville Gao  <nevillegao@gmail.com>
2379
2380         * StatusBar.cs: Modified argument variable.
2381         * SplitContainer.cs: Control enabled to support accessibility.
2382         [Fixes Bug #455950]
2383
2384 2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
2385
2386         * ToolStripMenuItem.cs: Guard against an NRE.
2387         [Fixes bug #457110]
2388
2389 2008-12-22  Mario Carrion  <mcarrion@novell.com>
2390
2391         * Control.cs: AccessibleXXXX properties don't return 
2392         AccessibleObject.XXXX, instead a local referece is returned.
2393
2394 2008-12-22  Neville Gao  <nevillegao@gmail.com>
2395
2396         * PrintPreviewControl.cs: Added internal properties to support
2397         accessibility.
2398         [Fixes Bug #459699]
2399
2400 2008-12-19  Mario Carrion  <mcarrion@novell.com>
2401
2402         * Control.cs: Reverted r121561. 
2403
2404 2008-12-19  Andrés G. Aragoneses  <aaragoneses@novell.com>
2405
2406         * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
2407         it has been moved to the bridge.
2408
2409 2008-12-18  Brad Taylor  <brad@getcoded.net>
2410
2411         * DateTimePicker.cs: Add a few UIA specific events, and a couple
2412         internal methods useful for UIA.
2413
2414 2008-12-18  Mario Carrion <mcarrion@novell.com>
2415
2416         * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
2417         [Fixes Bug #455752]
2418
2419 2008-12-17  Mike Gorse  <mgorse@novell.com>
2420
2421         * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
2422           item's Focused property is set.
2423
2424 2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2425
2426         * TreeView.cs:
2427         * TreeNode.cs:
2428         * TreeNodeCollection.cs: Add events for UIA support:
2429         UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
2430         UIACollectionChanged.
2431
2432 2008-12-17  Bill Holmes  <billholmes54@gmail.com>
2433
2434         * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
2435           SubItemStyle member field. 
2436
2437         Contributed under MIT/X11 license.
2438
2439 2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2440
2441         * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
2442         y coord, since it's useless in this case, and we need to rely only on
2443         the number of rows and ItemHeight to compute this value.
2444         Fixes part of #257471.
2445
2446 2008-12-15  Mike Gorse  <mgorse@novell.com>
2447
2448         * StatusBar.cs: Send OnUIACollectionChanged in Remove().
2449
2450 2008-12-15  Mario Carrion  <mcarrion@novell.com>
2451
2452         * Control.cs: Accessibility properties instantiate AccessibilityObject when
2453         needed.
2454         [Fixes Bug #459223]
2455
2456 2008-12-15  Brad Taylor  <brad@getcoded.net>
2457
2458         * ToolStripItem.cs: Add a UIA specific event for listening for when a
2459         ToolStripItem becomes selected or deselected.
2460
2461 2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2462
2463         * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
2464         .net does. Use the date in the point of the mouse move coords as the
2465         new range as well, if the left button of the mouse is being pressed.
2466         Fixes #364914.
2467
2468 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2469
2470         * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
2471         MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
2472         effectively repaint the control.
2473         Fixes the remaining bits of #417961.
2474
2475 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2476
2477         * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
2478         range to contain only dates within the new possible range.
2479         Fixes part of #417961.
2480
2481 2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2482
2483         * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
2484         length of the text, but the end position, so we need to substract 1 to
2485         have a valid value. Also, in the same InputText method, don't use
2486         SelectionLength as the length of the text, since the selected text
2487         could actually be empty, but we need to set the value anyway.
2488         Fixes #457370.
2489
2490 2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2491
2492         * TextBox.cs: Don't do any auto complete task if the custom source is
2493         null or empty. Also avoid duplication of code.
2494         Fixes #457743.
2495
2496 2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
2497
2498         * DataGridView.cs: Refresh column sizes when new rows are added.
2499         [Fixes bug #457050]
2500
2501 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2502         * RichTextBox.cs: When parsing the contents of a rtf file, don't call
2503         Split to create a line - we are already doing this, by _adding_ a new
2504         one when rtf_cursor_x is 0 (this field gets this value just after we
2505         receive the newline param as true). This avoids having a proportional number
2506         of empty lines in the end of the rich text box.
2507         Fixes #396664.
2508
2509 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2510
2511         * RichTextBox.cs: When saving the contents as a plain text, don't add
2512         a new line for every Line structure, since the data in Document
2513         already contains the new line characters. This avoids duplicated new
2514         lines using the Save methods.
2515         Fixes #445618.
2516
2517 2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2518
2519         * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
2520         framework.  Fixes bug #457678.
2521
2522 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2523
2524         * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
2525         where datasource is null.
2526         [Fixes exception reported in bug 441240]
2527
2528 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2529
2530         * DataGridView.cs: EndEdit validation fixes.
2531
2532 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2533
2534         * DataGridView.cs: This is the cool patch that adds support for 
2535         actually updating the data in the databinding backend after editing. 
2536         With bonus firing and handling the DataError event.
2537
2538 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2539
2540         * Line.cs: When calculating the text tags's Shift value, store it as
2541         pixels instead of points. This way we can actually handle different
2542         fonts in the same RichTextBox, as well as the right size of the caret.
2543         Fixes part of #351938.
2544
2545 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2546
2547         * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was 
2548         casted to CheckState causing InvalidCastExceptions.
2549
2550 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2551
2552         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
2553         to not depend on the item being clicked.
2554
2555 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2556
2557         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
2558         longer throws a NotImplementedException.
2559
2560 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2561
2562         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
2563         IDataGridViewEditingControl for editing.
2564
2565 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2566
2567         * DataGridViewComboBoxCell.cs: Implement data binding support.
2568
2569 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2570
2571         * DataGridView.cs: Use the CurrencyManager to update the data source 
2572         binding position instead of casting the data sourcde to BindingSource.
2573         This enables position updating for other type of data sources.
2574
2575 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2576
2577         * ComboBox.cs: Update the SelectedIndex before updating the Text 
2578         in OnDisplayMemberChanged.
2579
2580 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
2581
2582         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
2583         [Fixes bug #457112]
2584
2585 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
2586
2587         * DataGridView.cs: Sorting fixes:
2588            - Be strict when sorting is enabled.
2589            - If there is a data source delegate the sorting request.
2590
2591 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
2592
2593         * Binding.cs: When converting the data also try with the destination 
2594         type typeconverter. This indirectly adds support for Nullable types 
2595         in our databinding layer.
2596
2597 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
2598
2599         * DataGridView.cs: When cell editing is finished focus back the 
2600         DataGridView. Fixes keyboard navigation post-editing.
2601
2602 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
2603
2604         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
2605         setting to after EndEdit is called for the old cell.
2606
2607 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
2608
2609         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
2610
2611 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
2612
2613         * XplatUIX11.cs: Send WM_HELP only to the focused window.
2614
2615 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2616
2617         * CurrencyManager.cs: Fix exceptions when resetting the data source 
2618         for the same time (e.g. in ComboBox): 
2619            - Do not set the list position if we are still transferring data
2620            - When resetting the list firstly push the data then update the 
2621            binding.
2622         * Binding.cs: Check BindingManager.Position == -1 instead of 
2623         BindingManager.Current == null in order to avoid unexpected 
2624         exceptions.
2625
2626 2008-12-05  Brad Taylor  <brad@getcoded.net>
2627
2628         * MonthCalendar.cs: Add UIA specific events so that we can know when
2629         the selection changes, and when MaxSelectedCount changes.
2630
2631 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2632
2633         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
2634         used for anything.
2635
2636 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2637
2638         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
2639         to the control being drawn for the first time by:
2640            - Implement DisplayedRowsCount to not rely on the control being
2641            already painted. Also added support for the partial row flag.
2642            - Fix scrolling to take into account partial rows and scroll to
2643            them.
2644         [Fixes bug #456527]
2645
2646 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2647
2648         * DataGridView.cs: Do not reset the CurrentCell when the handle is
2649         created if the user has already set it.
2650
2651 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2652
2653         * DataGridView.cs: Fix CurrentCell to actually select the cell.
2654
2655 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2656
2657         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
2658         text and then let the underneath users of IDataObject interpret and
2659         parse by themselves. 
2660         Fixes #439251.
2661
2662 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2663
2664         * DataGridView.cs: Fix my previous commit to actually update what it 
2665         was supposed to.
2666
2667 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2668
2669         * DataGridView.cs: Ensure that when a row is removed the all the 
2670         current row/column/cell get updated. Fixes multiple exceptions.
2671
2672 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2673
2674         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
2675         is used.
2676         [Fixes bug #443560]
2677
2678 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2679
2680         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
2681         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
2682         new state.
2683         [Fixes issue 1 in bug #443560]
2684
2685 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2686
2687         * DataGridView.cs: Invalidate after the current row/column seletion 
2688         chagnes.
2689         [Fixes bug #438434]
2690
2691 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2692
2693         * DataGridView.cs: Refresh the data if the data list is reset, etc.
2694
2695 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2696
2697         * DataGridView.cs: Handle datasource state changes:
2698            - IBindingList - list changes
2699            - BindingSource - list changed and datasource changes
2700
2701 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2702
2703         * DataGridView.cs: Select the first cell when databound. 
2704         Visually select when CurrentCell is set.
2705
2706 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2707
2708         * DataGridView.cs: Set the current cell before raising CellClick.
2709
2710 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2711
2712         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
2713         CellLeave events as this is already done in SetCurrentCellAddressCore.
2714
2715 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2716
2717         * DataGridView.cs: Set the minimum size for the columns to be the 
2718         width of their header, so that the columns don't get squashed 
2719         all together.
2720
2721 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2722
2723         * DataGridView.cs: After the data is bound PerformLayout, so that 
2724         the columns get autosized.
2725
2726 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2727
2728         * DataGridView.cs: Move all currentCell setting code into 
2729         one central place - SetCurrentCellAddressCore. That way the 
2730         current cell is properly updated when programatically set.
2731         Fire RowEnter/Leave events.
2732
2733 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2734
2735         * DataGridView.cs: Update the CurrencyManager.Position, so that 
2736         when a BindingSource is used BindingSource.Current will be correct.
2737
2738 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2739
2740         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
2741            - No caption text is drawn because Color.Empty is used.
2742            - Fix top and height off by 1.
2743
2744 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2745
2746         * DataGridViewRow.cs: Implement DataBoundItem.
2747
2748 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2749
2750         * BindingSource.cs: Return null for Current if there is no data present.
2751
2752 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2753
2754         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
2755         menus using the arrow keys. Also when handling the left arrow key, don't 
2756         assign the current menu to the parent one, if the parent is null.
2757         Fixes #446392.
2758
2759 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
2760
2761         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
2762         #413501.
2763
2764 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2765
2766         * Scrollbar.cs:
2767         * ScrollableControl.cs: Simplify the code to manually set the size of
2768         the thum area, avoiding duplication of code, and also preserving the
2769         right value for different code paths - this can happen when size
2770         changes are made to the scrollbar after setting LargeChange, Maximum
2771         or related properties for the ScrollBar.
2772
2773 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2774
2775         * ScrollableControl.cs: When scrolling, don't invalidate the entire
2776         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
2777         what .Net does: copy the visible area, and only invalidate the part of
2778         the area that wasn't visible before scrolling.
2779         Fixes #441738.
2780
2781 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
2782
2783         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
2784         can clear ourselves when it is raised, we don't have a newrowindex
2785         if we don't have any columns.
2786         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
2787         re-index after each delete so the NewRow will have the correct index.
2788         [Fixes bug #448005]
2789
2790 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
2791
2792         * Form.cs: Don't change min/max size if it is empty.
2793         [Fixes bug #447873]
2794
2795 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2796
2797         * ScrollBar.cs:
2798         * ScrollableControl.cs: When the manual thumb size is used, the
2799         maximum allowed value should depend on that thumb size, instead of
2800         LargeChange (using the maximum - LargeChange + 1 value). But
2801         LargeChange should be used normally when incrementing/decrementing.
2802         Fixes the remaining part of #441546.
2803
2804 2008-11-23  Andreia Gaita  <avidigal@novell.com>
2805
2806         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
2807         until an about:blank has been loaded (according to spec). Fix 
2808         ScrollbarsEnabled to set when a document is loaded (since we use js 
2809         for it). Fix url so it reflects the current loading document and not 
2810         the previous one. Send StatusChanged events.
2811
2812 2008-11-23  Andreia Gaita  <avidigal@novell.com>
2813
2814         * Application.cs: If a message comes in for an embedded control
2815         (like webbrowser) when we're capturing the keyboard, release the
2816         capture and continue.
2817         [fixes #429462]
2818
2819 2008-11-22  Andreia Gaita  <avidigal@novell.com>
2820
2821         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
2822
2823 2008-11-21  Andreia Gaita  <avidigal@novell.com>
2824
2825         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
2826         
2827 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2828
2829         * ScrollBar.cs:
2830         * ScrollableControl.cs: Set manually the thumb size for the
2831         ScrollableControl scrollbars, so any further changes to the underneath
2832         scrollbars respect the original size.
2833         Fixes part of #441546.
2834
2835 2008-11-21  Geoff Norton  <gnorton@novell.com>
2836
2837         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
2838         PlatformID.MacOSX now exists.
2839
2840 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2841
2842         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
2843         Having something internal abstract isn't very nice for people who want
2844         to inherit from this class.
2845
2846 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2847
2848         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
2849         invalid value.  Just return null for the Image, and use the ImageList's
2850         ImageSize for calculations.
2851
2852 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2853
2854         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
2855         through DroppedDown so the proper events get called and state gets reset.
2856         [Fixes bug #446805]
2857
2858 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
2859
2860         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
2861         the collection is modified.
2862
2863 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
2864
2865         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
2866         aren't always correct, and fixing them for every case is not worth the
2867         negligible benefit they provide.
2868         [Fixes bug #445713]
2869
2870 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
2871
2872         * DataGridView.cs: We should never add actual cells to the RowTemplate.
2873         Internally, use RowTemplateFull to give us a new row with cells.
2874         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
2875         * DataGridViewRowCollection.cs: Use RowTemplateFull.
2876
2877 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2878
2879         * XplatUIX11.cs: Forms without borders should be able to change its
2880         size - specially they should be able to be maximized, adding the
2881         respective MotifFunctions.Resize bit when setting window properties as
2882         well as *not* marking the Hwnd as size fixed.
2883         Fixes #444347.
2884
2885 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
2886
2887         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
2888         an alpha value.
2889         [Fixes bug #444348]
2890
2891 2008-11-11  Andrés G. Aragoneses  <aaragoneses@novell.com>
2892
2893        * Application.cs: After UIA assembly is successfully loaded,
2894        dump any exception that happens on initialization to stderr.
2895
2896 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
2897
2898         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
2899         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
2900         AutoSizeColumnModeChanged.
2901         [Fixes bug #443609]
2902
2903 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
2904
2905         * DataGridViewRowCollection.cs: Guard against the user deleting the
2906         NewRow.  Add an internal delete so we can still delete it.
2907         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
2908         [Fixes bug #442181]
2909
2910 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
2911
2912         * TextControl.cs: Add some order of operation to our math so
2913         we don't end up with a negative height for our invalidate rect.
2914         [Fixes bug #381889]
2915
2916 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
2917
2918         * Control.cs: When our enabled changes, notify our implicit children
2919         controls as well as our regular controls.
2920         [Fixes bug #441523]
2921
2922 2008-11-08  Andreia Gaita <shana@jitted.com> 
2923
2924         * HtmlElement.cs: Small code cleanup
2925
2926 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2927
2928         * BindingNavigator.cs: MoveFirstItem should be enabled only if
2929         position is larger than 0, not only different than 0. Also Position
2930         and Count items should be enabled if the BindingSource is non null and
2931         non empty.
2932         Fixes #439961.
2933
2934 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
2935
2936         * TabControl.cs: Don't raise SelectedIndexChanged until we have
2937         actually modified the tab collection, so TabCount will be correct.
2938         [Fixes bug #441896]
2939
2940 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2941
2942         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
2943         NonSerialized to fix serialization of ListViewItem.
2944
2945 2008-11-04  Mike Gorse  <mgorse@novell.com>
2946
2947         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
2948           focus change, and always call in SetFocusedItem.
2949         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
2950
2951 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
2952
2953         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
2954         mode.  Based on a patch by John Mortlock.
2955         [Fixes bug #436790]
2956
2957 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2958
2959         * ListView.cs: Use the UsingGroups property where needed, instead of
2960         duplicating the check in other places.
2961
2962 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2963
2964         * ListView.cs: When calculating layout, refresh the count of items
2965         belonging to the default item, insteas of doing it only one time. This
2966         was already working fine for icon views, not not for details.
2967         Fixes #438948.
2968
2969 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2970
2971         * ListView.cs:
2972         * ListViewItem.cs:
2973         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
2974         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
2975         does.
2976         Fixes #437933.
2977
2978 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2979
2980         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
2981
2982 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2983
2984         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
2985         #441280, patch by Mike Gorse <mgorse@novell.com>.
2986
2987 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2988
2989         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
2990         if there is no scrollbar.
2991         [Fixes bug #440885]
2992
2993 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2994
2995         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
2996         patch from Andy Hume that fixes many issues with ProgressBar.
2997         [See bug #440220]
2998
2999 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
3000
3001         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
3002         [Fixes bug #438866]
3003
3004 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
3005
3006         * UpDownBase.cs:
3007         * DomainUpDown.cs:
3008         * NumericUpDown.cs: Internal events added to UpDownBase:
3009         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
3010         <ngao@novell.com>.
3011
3012 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
3013
3014         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
3015
3016 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3017
3018         * ListView.cs:
3019         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
3020         Application.EnableVisualStyles hasn't been called.
3021         Fixes part of #437933.
3022
3023 2008-10-31  Andreia Gaita  <shana@jitted.com>
3024
3025         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
3026           if the container is not focused already, we need to specifically set
3027           focus to the first available control, or to the form itself if there
3028           are no controls.
3029
3030 2008-10-31  Andreia Gaita  <shana@jitted.com>
3031
3032         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
3033         WM_ACTIVATE have been processed before returning, so it is guaranteed that
3034         once it returns and the form is visible, it is actually on the screen on X11
3035
3036         * ContainerControl.cs: Only send focus to the control if the top container
3037           is already focused. This is so that, when a form is first shown, all
3038           the enter/leave events are done first before any focus stuff comes in.
3039           If a control has no top container, there's an extra check on Control.Focus
3040           to make sure it gets focused in this particular case.
3041
3042         * Control.cs: Force focus if the control is active but did not receive
3043           focus after being set as active.
3044
3045         * MdiClient.cs: Dispose the form when closing
3046
3047         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
3048           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
3049           if the window is a top Form.
3050           Reset all hwnd properties when the window has been destroyed so that
3051           we don't land in any codepaths that might try to do something with it.
3052           Added a bunch of debugging messages. If TRACE is defined, all X calls
3053           are logged through DebugHelper. Set a few missing EntryPoint attributes.
3054
3055 2008-10-29  Mario Carrion <mcarrion@novell.com>
3056
3057         * ListViewItem.cs: Control enabled to support Accessibility:
3058         - Internal events: UIATextChanged, UIASubItemTextChanged.
3059         - Internal event UIATextChanged in ListViewSubItem that triggers
3060         UIASubItemTextChanged.
3061         * ListView.cs: Control enabled to support Accessibility:
3062         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
3063         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
3064         - Internal event UIACollectionChanged in ColumnHeaderCollection.
3065         - Internal event UIACollectionChanged in ListViewItemCollection.
3066         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
3067         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
3068         - Internal methods: UIAGetHeaderBounds.
3069
3070 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3071
3072         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
3073         the event from the respective scrollbars.
3074         Fixes #436709.
3075
3076 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3077
3078         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
3079         textbox to know whether any navigation key will be handled or not. If
3080         not, don't pass the message to the textbox, and use it here instead. 
3081         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
3082         is more precise- than the previous AutoCompleteMatches one.
3083         This should the keyboard navigation in ComboBox when using auto
3084         complete modes.
3085
3086 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
3087
3088         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
3089         [Fixes bug #436730]
3090
3091 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
3092
3093         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
3094         overridden methods will get called.
3095         * ToolStripItem.cs: Raise Click before MouseUp.
3096         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
3097         the item's location into account.
3098         [Fixes bug #437683]
3099
3100 2008-10-24  Neville Gao  <nevillegao@gmail.com>
3101
3102         * NumericUpDown.cs: Control enabled to support accessibility.
3103         [Fiexes bug #438135]
3104
3105 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3106
3107         * TextBox.cs: Check that we actually have items no navigate, select
3108         text when pressing enter, as well as handle direction keys only if
3109         mode is different to Suggest or the suggest listbox is visible.
3110
3111 2008-10-23  Andreia Gaita  <shana@jitted.com>
3112
3113         * WebBrowser.cs: Use the new ContentStream property to retrieve
3114           a stream encoded from the document content
3115
3116 2008-10-23  Andreia Gaita  <shana@jitted.com>
3117
3118         * HtmlDocument.cs,
3119           HtmlElement.cs,
3120           HtmlWindow.cs: Fix GetHashcode for null objects
3121
3122 2008-10-22  Andreia Gaita  <shana@jitted.com>
3123
3124         * HtmlDocument.cs,
3125           HtmlElement.cs,
3126           HtmlWindow.cs: Fix equality operators (fixes #428173)
3127
3128 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
3129
3130         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
3131         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
3132         [Fixes bug #436772]
3133
3134 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
3135
3136         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
3137         same item with the mouse as was already selected.
3138         [Fixes bug #436789]
3139
3140 2008-10-21  Brad Taylor  <brad@getcoded.net>
3141         
3142         * TextControl.cs: Break out code to get the visible range into
3143           GetVisibleLineIndexes to be used in UIA code.
3144         
3145         * Line.cs:
3146         * TextControl.cs:
3147         * TextBoxBase.cs: Add comments indicating that the method or property
3148           is used via reflection from UIA code.
3149
3150 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3151
3152         * ListViewItem.cs: Match .net serialization.
3153         Fixes remaining part of #417520.
3154
3155 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
3156
3157         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
3158
3159 2008-10-20  Mario Carrion <mcarrion@novell.com>
3160
3161         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
3162         added: UIAToolTipRectangle.
3163
3164 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3165
3166         * ListViewItem.cs: When deserializing enumerate over the data, instead
3167         of accessing the data directly. This way we handle much better the
3168         cases were we lack information.
3169         Fixes #417520.
3170
3171 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3172
3173         * ListView.cs: When removing an item from a main ListView.Items
3174         collection (and not a ListViewGroupCollection.Items one), remove it
3175         also from the group, as .net does. Patch by Mario Carrion (mario at
3176         novell dot com).
3177         Fixes #436653.
3178
3179 2008-10-19  Andreia Gaita  <avidigal@novell.com>
3180
3181         * Form.cs: Forms that get closed without a handle being created are
3182         disposed in 2.0. Fixes failing FormTest.FormClose and
3183         FormTest.FormClose2 on windows.
3184
3185 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3186
3187         * ListView.cs: If both scrollbars are visible, the vertical one
3188         shouldn't extend too far down.
3189         Fixes #435771.
3190
3191 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
3192
3193         * DataGridView.cs: Add the ability to resize columns and rows with
3194         the mouse.  Also support double-clicking to autoresize.
3195         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
3196         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
3197         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
3198         isn't shown on autoresize.
3199         [Fixes bug #420193]
3200
3201 2008-10-17  Mario Carrion <mcarrion@novell.com>
3202
3203         * ComboBox.cs: Remove UIAListbox.
3204
3205 2008-10-17  Mario Carrion <mcarrion@novell.com>
3206
3207         * ComboBox.cs, ListBox.cs: Using added/removed item in 
3208           OnUIACollectionChangedEvent instead of index.
3209
3210 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
3211
3212         * ComboBox.cs: When we are sorting the items, if the item's type
3213         doesn't support IComparer, use a default one that compares based
3214         off the item's visible text.
3215         [Fixes bug #436328]
3216
3217 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3218
3219         * ColumnHeader.cs: Invalidate ListView.header_control when setting
3220         ImageIndex/ImageKey.
3221         * ThemeWin32Classic.cs: When drawing the column header, draw a image
3222         for the column if available, and make the required adjustments to the
3223         text location.
3224         Fixes #435105.
3225
3226 2008-10-17  Neville Gao  <nevillegao@gmail.com>
3227
3228         * StatusBarPanel.cs: Control enabled to support accessibility.
3229         [Fixes bug #435988]
3230
3231 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
3232
3233         * DataGridView.cs: When a user begins an edit in the 'new row',
3234         make that a real row, and add a new 'new row'.  If the user
3235         cancels the edit, remove the new 'new row' and reset everything.
3236         Also, ensure UserAddedRow and UserRemovedRow events are raised.
3237         [Fixes bug #430954]
3238
3239 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
3240
3241         * TableLayoutSettings.cs: Fix NREs when deserializing and 
3242         panel is not yet set.
3243         [Fixes bug #436199]
3244
3245 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
3246
3247         * DataGridView.cs: Invalidate after deleting a row.
3248
3249 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
3250
3251         * DataGridView.cs: Handle Enter and Escape keys.
3252           - Move call to EndEdit to MoveCurrentCell.
3253           - Remove call to EndEdit from navigation key routines.
3254           - Fire CellLeave and CellEnter.
3255
3256 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
3257
3258         * DataGridViewCell.cs: Some fixes to the new cell border
3259         painting code.
3260
3261 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
3262
3263         * ThemeEngine.cs: Enable visualstyles rendering by default
3264         (on platforms that support it).
3265
3266 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
3267
3268         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
3269         MainForm.OnLoad has completed unless DoEvents is forced.
3270         [Fixes bug #412536]
3271
3272 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
3273
3274         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
3275
3276 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
3277
3278         * Control.cs: Make our implementation of DrawToBitmap better 
3279         match WmPaint.  [Fixes bug #435579]
3280
3281 2008-10-14  Andreia Gaita  <avidigal@novell.com>
3282
3283         * WebBrowser.cs: Use DocumentElement as the document's root for the
3284         whole content. Should fix DocumentText and DocumentStream problems.
3285
3286 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
3287
3288         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
3289         these will get called in DGV.OnCollectionChanged.  Make sure 
3290         OnCollectionChanged always gets called.
3291         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
3292         from every row.  Call this in OnCollectionChanged.
3293         [Fixes bug #433669]
3294
3295 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3296
3297         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
3298         textbox if auto complete is used, since we need to navigate over it.
3299         And in this case don't pass this messages to the base impl. Also hide
3300         the auto complete list box when displaying the drop down listbox.
3301         * TextBox.cs: new internal members to expose some of the auto complete
3302         functionality to combobox.
3303
3304 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
3305
3306         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
3307         MainForm.OnLoad has completed.
3308         [Fixes bug #412536]
3309
3310 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3311
3312         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
3313         Append support to this controls. We need it to apply new patches.
3314
3315 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3316
3317         * Control.cs: When updating z order in child controls, send to back
3318         the implicit controls. Also, do it explicitly, instead of making
3319         GetAllControls return the implicit controls in a specific order, and
3320         thus avoid depending on that, which could change in the future.
3321         Fixes #434304.
3322
3323 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3324
3325         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
3326         call to StartDrag, since we must fire DragDrop/DragLeave *before*
3327         that, as .net does - instead of firing DragDrop/DragLeave *after* the
3328         call to Control.DoDragDrop has completed. This is needed since at the
3329         point of returning, we have sent related dnd ClientMessages, but we
3330         need to wait for them to fire the wmf respective ones.
3331         Fixes #325076.
3332
3333 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
3334
3335         * LinkLabel.cs: Recreate link pieces when change Padding.
3336
3337 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
3338
3339         * LinkLabel.cs: Take Padding into account when recreate link pieces.
3340         [Fixes bug #412530]
3341
3342 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
3343
3344         * Control.cs: Implement internal property PaddingClientRectangle, it will be
3345         useful for drawing controls that must take care about Padding property.
3346
3347 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
3348
3349         * BindingSource.cs: Make item_type internal so we can access it in DGV.
3350         * DataGridView.cs: Add support for autogenerating columns from a
3351         BindingSource.
3352
3353 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
3354
3355         * DataGridView.cs: Comment out an exception that is getting thrown
3356         too often currently.
3357
3358 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
3359
3360         * DataGridView.cs: Always rebind to the datasource, as things may
3361         have changed in it that we aren't capturing yet.
3362
3363 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
3364
3365         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
3366         drawing mode.  If we are top aligned, give ourselves some top padding.
3367
3368 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3369
3370         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
3371         events on the control under the mouse pointer, instead of firing them
3372         on the window generating the dnd operation. To achieve this re-use the
3373         code used to get the window under the pointer when getting MouseMove
3374         events.
3375         Fixes #381876.
3376
3377 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3378
3379         * X11Dnd.cs: Don't check that that the window sending the dnd events
3380         is the owner of the selection. Although Gtk+ sets it that way, it's
3381         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
3382         So, just as Gtk+ does, we set our window sending the dnd events as the
3383         owner of the selection, but don't check it when receiving them. This
3384         should fix interoperability with Qt/Kde.
3385         Fixes #324251.
3386
3387 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
3388
3389         * DataGridView.cs: Make sure we take the vertical scrollbar into
3390         account when autosizing columns.
3391
3392 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
3393
3394         * DataGridView.cs: Handle sorting datetimes.
3395
3396 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
3397
3398         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
3399         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
3400         compilation warnings.
3401
3402 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
3403
3404         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
3405         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
3406         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
3407         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
3408         compilation warnings.
3409
3410 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
3411
3412         * DataGridView.cs, DataGridViewCell.cs, 
3413         DataGridViewCellValidatingEventArgs.cs, 
3414         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
3415         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
3416         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
3417
3418 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
3419
3420         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
3421         Cleanup compilation warnings.
3422
3423 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
3424
3425         * XplatUIWin32.cs: Cleanup compilation warnings.
3426
3427 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
3428
3429         * PropertyGrid.cs: Cleanup compilation warnings.
3430
3431 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
3432
3433         * DataGridViewRow.cs: Only clear the row background if we
3434         are going to paint a new background.
3435
3436 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
3437
3438         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
3439         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
3440         use PaintBorder instead.        
3441
3442 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
3443
3444         * DataGridView.cs: When CellBorderStyle is set, update the
3445         AdvancedCellBorderStyle to match.
3446
3447 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
3448
3449         * DataGridViewCell.cs: Add helper methods to convert Alignment
3450         to TextFormatFlags and align rectangles.
3451         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
3452         * DataGridViewImageCell.cs: Use Alignment when painting the image.
3453
3454 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
3455
3456         * ToolTip.cs: Display tooltips only for controls on the active form.
3457         [Fixes bug #428115]
3458
3459 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
3460
3461         * DataGridView.cs: Make OnCellValueNeeded internal.
3462         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
3463         user can supply their own value if they choose.
3464
3465 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
3466
3467         * DataGridViewColumnHeaderCell.cs: Create a new style object
3468         so the DefaultCellStyle doesn't get changed.
3469
3470 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
3471
3472         * ToolStripItem.cs: Check to make sure the owner is actually
3473         changing in InternalOwner before doing any work.  Fixes some
3474         failing tests.
3475
3476 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
3477
3478         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
3479         * DataGridView.cs: Use a column header's inherited style instead
3480         of just using the default.
3481
3482 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
3483
3484         * SplitContainer.cs: Raise SplitterMoved when the splitter is
3485         moved through code.
3486
3487 2008-10-01  Mario Carrion <mcarrion@novell.com>
3488
3489         * ScrollBar.cs: Internal property added: UIAThumbPosition.
3490
3491 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
3492
3493         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
3494
3495 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
3496
3497         * ToolStripItem.cs: When the user sets Owner, we need to remove
3498         it from its previous owner and then add it to the new owner's
3499         item collection.  Also, create InternalOwner, so we can set the owner
3500         that doesn't do this new stuff.
3501         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
3502
3503 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
3504
3505         * ToolStripItem.cs: When our parent changes, recalculate our text
3506         size, since we may be getting our Font from our parent.  When our
3507         owner's Font changes, recalculate ourselves as we may be using
3508         that font.
3509
3510 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
3511
3512         * MenuAPI.cs: Select the first option of a popup when opening the popup via
3513         return key. [Fixes bug #413792].
3514
3515 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
3516
3517         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
3518         ambient properties.  (Get their value from their parents if
3519         values haven't been set.)
3520
3521 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
3522
3523         * ToolStripSystemRenderer.cs: Call overridden methods' bases
3524         after our logic, so users can do painting by handling the events.
3525         Currently, we draw over any user painting.
3526
3527 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
3528
3529         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
3530         after our logic, so users can do painting by handling the events.
3531         Currently, we draw over any user painting.
3532
3533 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
3534
3535         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
3536
3537 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
3538
3539         * TreeNode.cs, TreeView.cs: Move logic that determines the node
3540         image to draw to TreeNode.  Give Index/Keys put on the node
3541         precedence over the global one for the TreeView.
3542
3543 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
3544
3545         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
3546
3547 2008-09-29  Mario Carrion <mcarrion@novell.com>
3548
3549         * ListBox.cs: Index fixed.
3550
3551 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3552
3553         * TabControl.cs: When expanding the tab -because it's selected now-,
3554         using Right alignment, instead of adding some selected delta value to
3555         the X origin, substract it, so it gets a location adjacent to the panel, 
3556         instead of be more separated.
3557         Fixes #409170.
3558
3559 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
3560
3561         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
3562         own copies of them.
3563
3564 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3565
3566         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
3567         as well as the other static fields, to avoid using their previous
3568         values my mistake when handling the dnd events. This should avoid
3569         handling any status event after the drop has been finalized/cancelled.
3570
3571 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3572
3573         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
3574         operation, instead of waiting until we get any movement - this will
3575         help us to have the data available in case no movement was detected
3576         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
3577         Finally add a windows.forms-only fallback to fire the mentioned events
3578         if no movement at all was detected, just like .net does.
3579         Fixes #381876.
3580
3581 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
3582
3583         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
3584         return early if the text is empty because the icon doesn't get
3585         drawn then.  [Fixes bug #428113]
3586
3587 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3588
3589         * FileDialog.cs: Implement basic support for sorting by columns in
3590         Details view. Patch by Eric Petit.
3591         Fixes #428006.
3592
3593 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3594
3595         * ThemeWin32Classis.cs: When drawing gridlines take into account the
3596         case where ListView.ItemSize hasn't been computed, and provide a
3597         fallback as well. This prevents a division by 0.
3598
3599 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
3600
3601         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
3602         correctly draw tooltip backgrounds.
3603
3604 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
3605
3606         * ImageList.cs: Change CopyTo implementation to ensure clones are
3607         created of our images.
3608         [Fixes bug #409169]
3609
3610 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
3611
3612         * Control.cs: When setting fonts, we need to ensure we change our
3613         reference to the new font object, even if it represents the same
3614         font as before.  If we don't, the original font can get disposed
3615         and we will still try to use it.
3616         [Fixes bug #386450]
3617
3618 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3619
3620         * FileDialog.cs: Take into account Tile view when selecting the view
3621         (2.0 profile).
3622
3623 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3624
3625         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
3626         the item bounds, since we can't iterate over them in virtual mode.
3627         Also fix wrong calculation of the gridlines when using scrolling.
3628         Fixes #400390.
3629
3630 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3631
3632         * XplatUIX11.cs: When handling EnterNotify events, take into account
3633         both the public and implicit controls when trying to detect the
3634         grab/ungrab process. This should fix ListView selection in Details
3635         view.
3636
3637 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
3638
3639         * TreeView.cs: Redraw the whole node area when the selected node changes.
3640         Things like state images were not getting redrawn because the invalid
3641         rectangle was too small.
3642         [Fixes bug #428211]
3643
3644 2008-09-23  Mario Carrion  <mcarrion@novell.com>
3645
3646         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
3647         [Fixes bug #428993]
3648
3649 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
3650
3651         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
3652         [Fixes bug #428114]
3653
3654 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
3655
3656         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
3657         [Fixes bug #427884]
3658
3659 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
3660
3661         * StatusBar.cs: Add tooltip support.
3662         [Fixes bug #428113]
3663
3664 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3665
3666         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
3667         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
3668         hlaustralia.com.au).
3669         Fixes #425360.
3670
3671 2008-09-23  Neville Gao  <nevillegao@gmail.com>
3672
3673         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
3674         [Fixes bug #419079]
3675
3676 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
3677
3678         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
3679         [Fixes bug #428107]
3680
3681 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3682
3683         * ListView.cs: Don't do anything when EnsureVisible is called inside a
3684         BeginUpdate/EndUpdate block.
3685         Fixes #425049.
3686
3687 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3688
3689         * ListViewItem.cs: The semantics for the public .ctor of
3690         ListViewSubItemCollection need us to already have a Text value for the
3691         item, which in our implementation have as available *after* adding the
3692         first sub item. So create an internal .ctor that satisfies our needs
3693         and let the public .ctor have the same semantics as .net.
3694         Fixes #427561.
3695
3696 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3697
3698         * ListControl.cs: Changes in Formatting related values should call
3699         RefreshItems, as .net does.
3700         * ComboBox.cs:
3701         * ListBox.cs: In the respective overrides of RefreshItems calculate
3702         layout as well as refreshing - again, this is what .net does.
3703         Fixes #426168.
3704
3705 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3706
3707         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
3708         since we are already doing that when we change the value of the
3709         scrollbar or force the call to ScrollWindow in the same method. This
3710         way we don't cause a Invalidate call for all the listbox bounds for
3711         methods calling UpdateTopItem with an already updated top item. This
3712         was happening specially calling EnsureVisible with already visible
3713         items.
3714
3715 2008-09-18  Mike Gorse <mgorse@novell.com>
3716
3717         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
3718           XplatUIStructs.cs: Added KeyFilter
3719         [Fixes bug #427039]
3720
3721 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3722
3723         * RelatedPropertyManager.cs: The properties returned by
3724         GetItemProperties should be that ones of the *actual* object returned
3725         by the property, not the property type - this is very special when the
3726         property exposes a type, but the returned object actually is a child
3727         class and implements more functionality and properties.
3728
3729 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3730
3731         * Binding.cs: Don't look for the property in the data source if the
3732         passed string is empty.
3733
3734 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3735
3736         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
3737         fix unused variable warnings.
3738
3739 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3740
3741         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
3742         [Fixes bug #427073]
3743
3744 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3745
3746         * XplatUIX11.cs: 
3747          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
3748          leads to the window manager overriding our border style and zorder. 
3749          - Allow the activation of non-modal forms, which are children of a 
3750          modal form.
3751         [Fixes bug #423417]
3752
3753 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
3754
3755         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
3756         ask the window manager to do the work instead of changing the property 
3757         directly.
3758         [Fixes bug #423417]
3759
3760 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3761
3762         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
3763         AddNew to fix some navigation for empty datasets. [Fixes #323053]
3764
3765 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3766
3767         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
3768         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
3769         border and fixes some drawing issues when resize form.
3770
3771 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3772
3773         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
3774         
3775         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
3776         AcceptButton.
3777
3778 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
3779
3780         * TextBoxBase.cs: For standard textbox the scrollbars are always 
3781         visible if Multiline is true.
3782         [Fixes bug #426896]
3783
3784 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
3785
3786         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
3787         patch.
3788         
3789 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
3790
3791         [Fixes most od DBNull and HeadersVisible problems]
3792         
3793         * DataGrid.cs:
3794         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
3795         returns the value that we need.
3796         - Fixed FromPixelToColumn method that return zero for first     column and for
3797         row header cell, now it returns -1 for row header cell.
3798         - Fixed HitTest to check row header cell in column header area, it now
3799         returns HitTestType.None. [Fixes #322864]
3800         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
3801         checks for RowHeadersVisible and other things.
3802         - If an exception occurs when setting CurrentCell and user type 'yes' in
3803         message dialog, invalidade current and new cell and set setting_current_cell
3804         to false to prevent future errors. [Partially fixes #323050]
3805
3806         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
3807         value (SetColumnValueAtRow), it must be done by grid to properly show 
3808         messages. [Fixes #323050]
3809
3810         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
3811         better draw column and row header. Also dont draw anything when column
3812         headers is not visible.
3813
3814 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3815
3816         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
3817         logic.
3818
3819 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3820
3821         * TreeView.cs: Don't start editing a node on right click, only
3822         left click.
3823
3824 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3825
3826         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
3827         disabled over a year ago.
3828         * Form.cs: Wrap calling Load in a try/catch because it can happen
3829         before the catch-all one in NativeWindow.
3830         [Fixes bug #425414]
3831
3832 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3833
3834         * ToolStripDropDownMenu.cs: Calculate the connected area better
3835         to take into account when the drop down is not directly under the
3836         owner item.
3837         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
3838
3839 2008-09-16  Mario Carrion <mcarrion@novell.com>
3840
3841         * ScrollBar.cs: New event added: UIAValueChanged, generated when
3842           LargeChange, SmallChange, Maximum or Minimum values are changed.
3843         [Fixes bug #426464]
3844
3845 2008-09-16  Mario Carrion <mcarrion@novell.com>
3846
3847         * ErrorProvider.cs: Component enabled to support accessibility.
3848         * Application.cs: Updated to Initialize UIA in ErrorProvider.
3849         [Fixes bug #426459]
3850
3851 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3852
3853         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
3854         so we don't highlight on first focus.
3855         [Fixes bug #360869]
3856
3857 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3858
3859         * TextControl.cs: Correctly calculate the height of the area we 
3860         need to invalidate when we have started scrolling and viewport_y
3861         is used.  [Fixes bug #387608]
3862
3863 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3864
3865         * TextControl.cs: When getting the SelectedText, don't add in
3866         NewLine characters, as they are already contained in the lines.
3867         [Fixes bug #388115]
3868
3869 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3870
3871         * TextBoxBase.cs: Replace the buggy Lines setter with one that
3872         simply concats the lines and send it to the Text setter.
3873         [Fixes issue #2 and #3 of 388115]
3874
3875 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3876
3877         * Binding.cs: The default value of DataSourceNullValue should be
3878         Convert.DBNull actually. Also, the NullValue should only be used *if*
3879         itself is not null, and use the null/Convert.DBNull value instead.
3880
3881 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3882
3883         * TextControl.cs: Add a method to convert a string newline to the
3884         newline enum.
3885         * TextBoxBase.cs: When the user hits enter, insert a native newline.
3886         [Fixes part 1 of bug #388115]
3887
3888 2008-09-15  Mario Carrion <mcarrion@novell.com>
3889
3890         * ToolTip.cs: UnPopup event set to internal to match public API.
3891
3892 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3893
3894         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
3895         have to remove the Ctrl in order for the focus moving code to kick in.
3896         [Fixes bug #426170]
3897
3898 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3899
3900         * CheckedListBox.cs: Return the real item index from Add.  It may not be
3901         the last item if the list is sorted.  The user can change the NewValue in
3902         the ItemCheck event, we need to use that value if so.
3903         * ListBox.cs: Return the real item index from a sorted Add.
3904         [Fixes bug #426166]
3905
3906 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
3907
3908         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
3909         happen that the icons from the theme is missing or the particular size 
3910         unavailable.
3911         [Fixes bug #424981]
3912
3913 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3914
3915         * Binding.cs: When assigning null or DBNull depending on value/ref type,
3916         use IsValueType instead to get the precise desired value.
3917         Fixes #424276.
3918
3919 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3920
3921         * TreeNodeCollection.cs: When adding a new node to an opened node,
3922         we have to invalidate everything below the parent node because
3923         every node scoots down and we have to repaint them.
3924         [Fixes bug #411386]
3925
3926 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3927
3928         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
3929         property into account when drawing.
3930         [Fixes bug #416064]
3931
3932 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3933
3934         * ListBox.cs: When calling Items.Clear(), call
3935         SelectedIndexCollection.ClearCore instead of normal Clear method, to
3936         not fire any Selected*Changed event - this is done to match .net and
3937         don't have invalid values when changing the DataSourceProperty.
3938         Fixes #424273.
3939
3940 2008-09-12  Mario Carrion  <mcarrion@novell.com>
3941
3942         * HelpProvider.cs: Control enabled to support accessibility.
3943         * Application.cs: Updated to Initialize UIA in HelpProvider.
3944         [Fixes bug #425988]
3945
3946 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3947
3948         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
3949         make the dialog TopMost as well.
3950         [Fixes bug #425984]
3951
3952 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3953
3954         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
3955         clipboard data better.
3956         [Fixes bug #414446]
3957
3958 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3959
3960         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
3961         TextChanged and SelectionChanged events fire in the same order as .Net.
3962         [Fixes bug #425725]
3963
3964 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3965
3966         * DataGridView.cs: When sorting a column, if it only contains numbers,
3967         do a numeric sort instead of a string sort.
3968         [Fixes bug #425849]
3969
3970 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3971
3972         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
3973         against NRE's when the settings have a null panel.
3974         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
3975         the panel gets set.
3976         [Fixes bug #425647]
3977
3978 2008-09-11  Mario Carrion  <mcarrion@novell.com>
3979
3980         * ToolTip.cs: Control enabled to support accessibility.
3981         * Application.cs: Updated to Initialize UIA in ToolTip.
3982         [Fixes bug #425277]
3983
3984 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3985
3986         * Control.cs: Make the custom Enumerator internal to fix build.
3987
3988 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3989
3990         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
3991         already in edit mode, begin edit mode.  Generally edit mode isn't
3992         started until the second click, but CheckBoxes are special.
3993
3994 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3995
3996         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
3997         since that can be set to anything.  Always add them to the Control's
3998         parent.  [Fixes bug #416058]
3999
4000 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
4001
4002         * ListView.cs: Use a custom enumerator for ListViewItemCollection
4003         so items can be deleted in a foreach.
4004         [Fixes bug #425342]
4005
4006 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
4007
4008         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
4009         Store the user set explicit height so that the row can be AutoSized
4010         and then when AutoSize is turned off, it can get its original size back.
4011         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
4012         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
4013         rows' heights back to their explicit values.
4014         [Fixes bug #415780]
4015
4016 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4017
4018         * DateTimePicker.cs: When getting focus, select the checkbox if we are
4019         already showing it. Also, don't change its value when pressing space
4020         if the checkbox is not visible (ShowCheckBox as false). Finally, the
4021         checkbox should remain selected as long as Checked is false, and the
4022         other parts are disabled.
4023         Fixes #424267.
4024         
4025 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
4026
4027         * MessageBox.cs: Handle shortcut keys to dialog buttons.
4028         [Fixes bug #425425]
4029
4030 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4031
4032         * Binding.cs: When the value retrieved from the control property is
4033         null, don't return Convert.DBNull for Nullable instances, since they
4034         can *actually* get a null value.
4035         Fixes #424265.
4036
4037 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
4038
4039         * Control.cs: Add an internal field to force doublebuffering regardless
4040         of what the public mechanisms are set to.  This is because MS's native
4041         controls are doublebuffered even though their .Net bits are set to false.
4042         * ProgressBar.cs: Set force_double_buffer to true.
4043         [Fixes bug #406595]
4044
4045 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
4046
4047         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
4048         the cell template.
4049         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
4050         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
4051         without EditingControls, paint background selection for types without
4052         EditingControls, reset the EditingCellValueChanged flag when the
4053         cell's value is committed.
4054         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
4055         have EditingControls, remove a double call to a cell's OnContentClickInternal,
4056         don't do cell changing logic in OnMouseDown if the cell didn't change.
4057         [Fixes bug #420351]
4058
4059 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4060
4061         * DateTimePicker.cs: Fix the edition of am/pm specifier.
4062
4063 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
4064
4065         * TextControl.cs: Add "&" to the list of valid characters in a URL.
4066
4067 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
4068
4069         * DateTimePicker.cs: Before incrementing or decrementing any part in
4070         the textbox, end any current edit. Also when ending the current edit
4071         use the editing_part_index field instead of the current selected
4072         value, since they can be out of synch, and we really need to work on
4073         the *real* current edit part. Finally when PartData.Selected changes,
4074         always try to end any ongoing edit.
4075         This should fix some small errors handling mouse navigation and
4076         increase/decrease operations.
4077
4078 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4079
4080         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
4081         respectively) should handled different, since the 12 hours format
4082         needs the value typed by the user to be adjusted depending on the
4083         a.m/p.m value, so it is preserved, and only changed when the value
4084         reaches the 12 value (when it changes from a.m to p.m).
4085         Fixes part of #416555.
4086
4087 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
4088
4089         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
4090         * ToolStripDropDownItem.cs: Don't fire events and such again if
4091         ShowDropDown is called on an already dropped down item.
4092         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
4093         subitems, the user may add some in the DropDownOpening event.
4094         [Fixes bug #417877]
4095
4096 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
4097
4098         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
4099         [Fixes bug #424270]
4100
4101 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
4102
4103         * MdiClient.cs: When looking for menustrips on a child form to merge,
4104         look inside ToolStripContainers.
4105         [Fixes bug #424264]
4106
4107 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
4108
4109         * ErrorProvider.cs: Unbreak my previous commit.
4110
4111 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
4112
4113         * ErrorProvider.cs: Icon should always be 16x16.
4114         [Fixes bug #424380]
4115
4116 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
4117
4118         * GridEntry.cs: Invalidate the child items cache when the property 
4119         value changes.
4120
4121 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
4122
4123         * GridEntry.cs, PropertyGridView.cs: 
4124            - Update the ReadOnly detection and rendering to finally hopefully 
4125            match the one of MSFT.
4126            - Niceify and move the debug CWLS.
4127         [Fixes bug #409028]
4128
4129 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4130
4131         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
4132         since we are already calling Invalidate for the entire control when
4133         needed - and call Redraw() when size changes, since we need to paint
4134         there by ourselved and not anymore from the mentioned method. 
4135         This should improve the layout process. Also clean some not needed calls 
4136         here and there.
4137
4138 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
4139
4140         * MenuAPI.cs: Add a null check to the Alt-F4 code.
4141         [Fixes bug #420309]
4142
4143 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
4144
4145         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
4146         [Fixes bug #423040]
4147
4148 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
4149
4150         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
4151         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
4152         on item expansion. Improves performance and fixes bug #417955.
4153         [Fixes bug #417955]
4154
4155 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
4156
4157         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
4158         fix the build.
4159
4160 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
4161
4162         * TextControl.cs: Add "_" to the list of valid characters in a URL.
4163         [Fixes bug #423408]
4164
4165 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
4166
4167         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
4168         region gets set.
4169         [Fixes bug #414166]
4170
4171 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
4172
4173         * FontDialog.cs: When storing our font size from the starting font,
4174         use SizeInPoints instead of Size in case Size is a different unit
4175         from Points.
4176         [Fixes bug #416489]
4177
4178 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
4179
4180         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
4181         don't use it for anything else, check if a directory is highlighted.
4182         If it is, navigate into it.
4183         [Fixes bug #422087]
4184
4185 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4186
4187         * Binding.cs: When acquiring a BindingManagerBase for the first time,
4188         check that the specified property actually exists in the data source,
4189         and throw an ArgumentException if that's not the case - this is only
4190         done for this scenario, since for later cases (such Position changes)
4191         we throw different exceptions (match .Net).
4192
4193 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
4194
4195         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
4196           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
4197           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
4198           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
4199           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
4200           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
4201           properties.
4202           [Fixes bug #418684]
4203
4204 2008-09-03  Neville Gao  <nevillegao@gmail.com>
4205
4206         * StatusBar.cs: Control enabled to support accessibility.
4207         [Fixes bug #419079]
4208
4209 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4210
4211         * Binding.cs: When connecting the event handler for the "Changed"
4212         event for the property, only do it for PropertyManager, and not for
4213         CurrencyManager - this is exactly what does .Net, totally ignoring any
4214         change in the property of the elements of a list.
4215         Fixes the tests.
4216
4217 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
4218
4219         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
4220         to Windows when creating a window, as we fake MDI stuffs.
4221         [Fixes bug #421858]
4222
4223 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
4224
4225         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
4226         change takes effect.
4227
4228 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
4229
4230         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
4231         [Fixes bug #419001]
4232
4233 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
4234
4235         * DataGridView.cs: Raise CellContentClick event.
4236         [Fixes part of bug #420351]
4237
4238 2008-08-27  Mario Carrion  <mcarrion@novell.com>
4239
4240         * ScrollBar.cs: Control enabled to support accessibility.
4241         [Fixes bug #416759]
4242
4243 2008-08-27  Mario Carrion  <mcarrion@novell.com>
4244
4245         * ComboBox.cs: Control enabled to support accessibility.
4246         [Fixes bug #416663]
4247
4248 2008-08-27  Mario Carrion  <mcarrion@novell.com>
4249
4250         * ListBox.cs: Control enabled to support accessibility.
4251         [Fixes bug #416640]
4252
4253 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
4254
4255         * ComboBox.cs: Don't suppress the TextChanged event when changing
4256         the SelectedIndex.
4257         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
4258         and re-raise it.
4259         [Fixes bug #420673]
4260
4261 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
4262
4263         * ErrorProvider.cs: Fix a regression NRE when setting properties
4264         for a control before it has a parent.
4265         [Fixes bug #420305]
4266
4267 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4268
4269         * Binding.cs: Use the BindingManagerBase.Current value to obtain
4270         connect the property "Changed" event, instead of using the data
4271         sources - this is useful when the property specifies actually a
4272         multiple objects path.
4273         Fixes part of #417973.
4274
4275 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4276
4277         * RelatedPropertyManager.cs: PropertyManager instances associated to a
4278         nested properties should return not the properties of the data source
4279         itself, but the properties of the type of a specific property in the
4280         data source - match .net.
4281
4282 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
4283
4284         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
4285         AddRange overloads into AddItems method, and added missing NULL check.
4286         Added extra argument check to RemoveAt for compatibility with MS. 
4287         Modified IList implementation of Add, Contains, IndexOf and Remove to
4288         throw an ArgumentException if item is not an int. Modified IList.Insert
4289         to throw a NotSupportException instead of an Exception. Implemented
4290         ICollection.
4291         (ObjectCollection): To avoid duplication, use AddItems method from
4292         AddRange overloads. On 1.0 profile, first perform NULL check on items
4293         in AddItems.
4294
4295 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
4296
4297         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
4298          #419087.
4299
4300 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
4301
4302         * X11Keyboard.cs : comment out some Console.WriteLine().
4303
4304 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
4305
4306         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
4307           even if premises are not filled. Also XLookupString() was not
4308           receiving correct input, which blocked precise input handling
4309           on non-XIM mode.
4310
4311 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
4312
4313         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
4314         type of delegate, instead of EventHandler - this was causing a type
4315         cast exception in all apps handling this event.
4316         Fixes #417876.
4317
4318 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
4319
4320         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
4321         ShowDropDown to give the user a chance to dynamically add
4322         drop down items.  [Step 1 of fixing bug #417877]
4323
4324 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4325
4326         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
4327         had any mouse motion since the call to StartDrag, to match the dnd
4328         behaviour of .net.
4329         Fixes part of #381876.
4330
4331 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4332
4333         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
4334         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
4335         Also, if we are actually moving into a different window after
4336         grabbing, generate a LeaveNotify event for the previous window, since
4337         we need to fire the leave events until the grab ends, not when
4338         actually moving outside of the control.
4339
4340 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4341
4342         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
4343         events only for client windows was wrong - we need to compare the
4344         client window against the window receiving the EnterNotify event, not
4345         against zero (since client window is never Zero, btw).
4346         This prevents having unnecessary handling of EnterNotify events for
4347         non-client windows when a gran begins.
4348
4349 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4350
4351         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
4352         MouseMove/MotionNotify events at all (which should only happen after
4353         MouseUp/ButtonRelease, as .Net does).
4354         This avoids firing an extra and unnecessary MouseMove event just after
4355         every MouseDown event.
4356
4357 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
4358
4359         * LinkLabel.cs: Always clear any previous links when LinkArea
4360         is set.  [Fixes bug #410709]
4361
4362 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
4363
4364         * ToolStripProfessionalRenderer.cs: Revert last change.
4365         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
4366         for ToolStripDropDownBackground.
4367
4368 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
4369
4370         * ToolStripProfessionalRenderer.cs: Use Window color for the 
4371         background of dropdowns to match .Net when the user is not
4372         using the default white.  [Fixes bug #418108]
4373
4374 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
4375
4376         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
4377           it caused timer registration twice. Fixed bug #418107.
4378
4379 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4380
4381         [Correction: This is the actual change to X11Dnd issue, not the
4382         previous one, which was actually a different issue.]
4383
4384         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
4385         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
4386         when the pointer is actually in motion, but only when the pointer
4387         seems to stop (as .net does).
4388         Fixes part of #381876.
4389
4390
4391 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
4392
4393         * ListBox.cs: Fix CopyTo implementation.
4394         [Fixes bug #409169]
4395
4396 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
4397
4398         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
4399         drawing a ComboBox's background.  Fixes bad disabled rendering when
4400         the control is not at 0,0.
4401         [Fixes bug #416063]
4402
4403 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
4404
4405         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
4406         ComponentModel layer, which will properly prioritize the attributes.
4407         Avoids wrong prioritization of duplicate attributes when retrieving 
4408         the converter and editor.
4409         [Fixes bug #417729]
4410
4411 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4412
4413         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
4414         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
4415         when the pointer is actually in motion, but only when the pointer
4416         seems to stop (as .net does).
4417         Fixes part of #381876.
4418
4419 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
4420
4421         * GridEntry.cs: Perform stricter check for the ParentEntry's 
4422         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
4423         implementation.
4424         [Fixes bug #417567]
4425
4426 2008-08-14  Geoff Norton  <gnorton@novell.com>
4427
4428         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
4429         Fixes #396983.  Properly fix ActiveWindow trackin and do not
4430         prematurely show POPUP windows.
4431
4432 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
4433
4434         * XplatUIX11.cs: Handle the obscured regions while scrolling using
4435         GraphicsExpose event, processing it just after we copy the scrolled
4436         area. This ensures that the next calls to ScrollWindow will copy
4437         regions already updated, and the scrolling will be smooth. Also remove
4438         the code that was trying to detect the obscured regions, since we are
4439         not using it anymore (too slow).
4440
4441 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4442
4443         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
4444         MultiExtended mode, by separating some logic between the ctrl/shift
4445         handling. Also ignore any MouseMove events generated together with
4446         MouseDown events - we are only interested in the real motion event.
4447         Fixes part of #414963.
4448
4449 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
4450
4451         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
4452         is selected.  [Fixes bug #414143]
4453
4454 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
4455
4456         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
4457         and not the parent one (the propertyowner). Fixes the behavior of 
4458         GetConverter/GetEditor.
4459         [Fixes bug #415452]
4460
4461 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
4462
4463         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
4464         [Fixes part of bug #415452]
4465
4466 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
4467
4468         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
4469         GridEntry, not the current.
4470         [Fixes bug #413896]
4471
4472 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
4473
4474         * TextBoxBase.cs: De-internalize max_length field.
4475         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
4476         share the same logic.
4477         [Fixes bug #414454]
4478
4479 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4480
4481         * ListBox.cs: Selection changes made in the MouseDown handler should
4482         use the *Core versions of selection in SelectedIndices collection,
4483         since the SelectedIndexChanged/SelectedValueChanged events are fired
4484         until we get a MouseUp event, and thus we need to separate the logic
4485         from the events, as done in the keyboard navigation. Also, fire those
4486         selection events from keyboard navigation in SelectionMode.None, even
4487         if we don't have a selection, as .Net does.
4488
4489 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
4490
4491         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
4492         last change introduced when an item is clicked but isn't on a toolstrip.
4493
4494 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4495
4496         * ListBindingHelper.cs: When looking for an object's properties, check
4497         if it implements ICustomTypeDescriptor, in which case we should
4498         resolve the propertu based on its GetProperties method, not in its
4499         actual properties. This is what .Net seems to do.
4500         Fixes a UsingWebBrowser problem during initialization.
4501
4502 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
4503
4504         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
4505         sitting on a MenuStrip.
4506
4507 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
4508
4509         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
4510         no children with the keyboard, we need to release the keyboard capture.
4511         [Fixes bug #413567]
4512
4513 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
4514
4515         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
4516         no children with the keyboard, we need to release the keyboard capture.
4517         [Fixes bug #413567]
4518
4519 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
4520
4521         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
4522         the GTK+-based implementation of VisualStyles.
4523         * ThemeWin32Classic.cs: Exposed various layout values for use in the
4524         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
4525         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
4526         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
4527         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
4528         TrackBarHorizontalTrackHeight.
4529
4530 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
4531
4532         * TabControl.cs: Added hot style handling for the scroll buttons.
4533         right_slider_state, left_slider_state are now of type PushButtonState to
4534         allow for a hot state. Added tracking of the mouse button being held down
4535         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
4536         LeftScrollButtonArea.
4537         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
4538         TabControlGetRightScrollRect.
4539
4540 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
4541
4542         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
4543         runtime errors.
4544
4545 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
4546
4547         * Form.cs: Ensure that we reset the shown_raised flag after 
4548         the form is closed, so that we raise the show events the next 
4549         time the form is shown.
4550         [Fixes bug #413141]
4551
4552 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
4553
4554         * Form.cs: Ensure closing events are raised only once.
4555         [Fixes bug #413143]
4556
4557 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
4558
4559         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
4560         so that we can successfully generate the LParam in-place instead of 
4561         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
4562         navigation for menus.
4563
4564 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
4565
4566         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
4567         'navigating'. Fixes bug #411356.
4568
4569 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
4570
4571         [Fixed remaining issues of #406773 (#1)]
4572         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
4573
4574         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
4575         MainMenu (already done) and ContextMenu creation.
4576
4577         * ContextMenu.cs: Create tracker on construction. 
4578
4579 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
4580
4581         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
4582         possible to instantiate MenuTracker without GrabControl.
4583
4584 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
4585
4586         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
4587
4588         * MainMenu.cs: Set GrabControl on SetForm using current form.
4589
4590 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
4591
4592         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
4593
4594 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
4595
4596         * MenuAPI.cs: Check if menu is activated before deactivate it in 
4597         ProcessShortcut.
4598
4599 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
4600
4601         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
4602         ColumnStyle.cs: 
4603         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
4604          - One style instance can only participate in a single style collection.
4605          - Styles can request their owner to layout whenever their properties 
4606          change.
4607          [Fixes bugs #412583 and #412582]
4608
4609 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
4610
4611         * X11Keyboard.cs: Implement the generation of the LParam for 
4612         all keyboard messages.
4613         [Fixes bug #378728]
4614
4615 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
4616
4617         * ListBox.cs: Don't let the user set TopIndex so high that it
4618         scrolls up far enough to show empty items.
4619         [Fixes bug #412728]
4620
4621 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4622
4623         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
4624         (I'm an idiot and forgot to commit the actual changes, as well as
4625         specify the right file, which is this one, not ListView.cs).
4626
4627 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4628
4629         * ListView.cs: Don't draw ListViewSubItem instances from
4630         DrawListViewItem - we need to reuse the main item's drawing for the
4631         first sub item in case owner draw is true, but wants the system to
4632         do the default draw for the first sub item, without incurring in a
4633         recursion problem.
4634         Fixes #410880.
4635
4636 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
4637
4638         * ToolStripButton.cs: Update Checked for CheckOnClick before
4639         raising the Click event.  [Fixes bug #412505]
4640
4641 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
4642
4643         * Form.cs: Remove some seems leftover code for non-TopLevel's 
4644         CreateParams, which is breaking ClientSize sizing, because it 
4645         removes the border window styles.
4646
4647 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
4648
4649         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
4650         changes.
4651
4652 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
4653
4654         * WebBrowser.cs: Removed debug output.
4655
4656 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
4657
4658         * FileDialog.cs: Apply patch from Ernesto to clean up some
4659         dialog messages.
4660
4661 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4662
4663         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
4664         that the change has an immediate effect.
4665
4666 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4667
4668         * ScrollableControl.cs: Update PerformLayout calls to include 
4669         provide the name of the property that changed.
4670
4671 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4672
4673         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
4674         location. Fixes drawing of border and cell borders if scrollable.
4675
4676 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4677
4678         * ScrollableControl.cs: Perform layouting after the AutoScroll 
4679         properties have changed, so that the changes have immediate 
4680         effect.
4681         [Fixes bug #409090]
4682
4683 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4684
4685         * XplatUIX11.cs: Non Client area is actually Client such in the 
4686         case of NotifyIcon, so double check WholeWindow == ClientWindow 
4687         when adding an expose.
4688         [Fixes bugs #324237 and #357022]
4689
4690 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4691
4692         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
4693         repaint the cell borders.
4694
4695 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4696
4697         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
4698         disposal to avoid unexpected ObjectDisposedExceptions.
4699
4700 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
4701
4702         * TableLayoutPanel.cs: Layout on Row/Column count change.
4703
4704 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
4705
4706         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
4707         bug #409351.
4708         * PictureBox.cs: When ImageLocation is set to null or an empty string,
4709         only set image to null if it was previously initialized from an url
4710         (or using ImageLocation). In ImageLocation, load specified image
4711         asynchronously if WaitOnLoad is false. Added support for local file
4712         paths to LoadAsync, and added missing argument check.
4713
4714 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4715
4716         * DateTimePicker.cs: 
4717         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
4718         order to set the value as required (which means: when selection
4719         changes for a part being edited, and not before that if not needed).
4720         Also use an enum to describe which part are we using, and use the
4721         selection as a property in PartData, in order to notify the
4722         DateTimePicker owner that we need to end the current edit.
4723         Fixes #383462.
4724
4725 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
4726
4727         * PropertyGridTextBox.cs: Validation should be performed only if we 
4728         are focused. We can lose focus for example if the Return key is used 
4729         to set the entry and there is an error. When the message box is 
4730         displayed we would have validate on click in the message box.
4731
4732 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
4733
4734         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
4735         in order to determine that we are expandable is wrong. There was a bug, 
4736         now fixed, in TypeDescriptor that was causing the wrong converter to be 
4737         returned which caused GetPropertiesSupported == false in most cases.
4738         [Fixes bug #409027]
4739
4740 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
4741
4742         * ImageList.cs: Fix ICollection.CopyTo implementation for
4743         ImageListCollection.  [Fixes bug #409169]
4744
4745 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4746
4747         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
4748         WorkingArea so that menus can appear on the second monitor
4749         when one has dual monitors.
4750
4751 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4752
4753         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
4754         Fixes build.
4755
4756 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4757
4758         * TextBox.cs: Implement navigation support for auto complete in
4759         TextBox, as well as refactor the code to show the auto complete window
4760         when receiving a WM_CHAR message, instead of TextChanged, since
4761         autocomplete itself should be able to set the Text a lot of times and
4762         finally only typing should show it, not changes from code.
4763
4764 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4765
4766         * TabControl.cs: When expanding the selected tab, don't adjust the
4767         width if alignment is Right, since it has a different offset than 0,
4768         as opposed to the other alignments.
4769         Fixes the selected tab not being painted at all with alignment = Right
4770         and using FillToRight size mode.
4771
4772 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4773
4774         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
4775
4776 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4777
4778         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
4779         values from the textbox to the boundary values.  [Fixes bug #409026]
4780
4781 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4782
4783         * TreeNodeCollection.cs: We were copying one too many elements when
4784         doing our array copy.  Fixes a crash when RemoveAt is called.
4785         [Fixes bug #408999]
4786
4787 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4788
4789         * TabControl.cs: When doing the layout and need to call FillRow -using
4790         FillToRight size mode-, use the overload receiving a bool param
4791         indicating whether we need to do a vertical or horizontal calculation.
4792         Fixes part of #399583.
4793
4794 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4795
4796         * TextBox.cs: When painting, use the value returned by
4797         GetLastVisibleItem instead of using the cached last_item field, since
4798         there could be a desynchronization between the layout and the
4799         painting. Fixes a AOOR exception in auto complete mode.
4800
4801 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
4802
4803         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
4804         NonClientAreaEnabled until our VisualStyles is modified to allow it.
4805
4806 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
4807
4808         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
4809
4810 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4811
4812         * TextBox.cs: When focus is lost, if the auto complete listbox is
4813         visible, hide it.
4814
4815 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
4816
4817         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
4818         tracking size for tool windows.
4819         * Theme.cs, ThemeWin32Classic.cs : Extracted
4820         ManagedWindowSpacingAfterLastTitleButton.
4821
4822 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
4823
4824         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
4825         They are bit-rotted and have always been listed as "unsupported".
4826
4827 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
4828
4829         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
4830
4831 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
4832
4833         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
4834
4835 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4836
4837         * ListBox.cs: Make sure last_item_visible gets reset before we try
4838         to do a layout due to scrollbars appearing or disappearing.
4839         [Fixes bug #408139]
4840
4841 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4842
4843         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
4844         for different window themes.  [Fixes bug #339140]
4845
4846 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4847
4848         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
4849         in ManagedWindowBorderWidth.
4850
4851 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4852
4853         * InternalWindowManager.cs: Change MouseMove to take a point, so
4854         we can use the same point later on.
4855         * MdiWindowManager.cs: Store point sent to MouseMove so we can
4856         later reset to it.  On Windows, the Cursor.Position had already
4857         changed by the time we were resetting to it.
4858         [Fixes bug #363239]
4859
4860 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4861
4862         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
4863         are inactive.
4864         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
4865         user requested it.
4866         [Fixes bug #398686]
4867
4868 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4869
4870         * MdiWindowManager.cs: Double-clicking on the title bar should not
4871         maximize a MDI form if MaximizeBox = false.
4872
4873 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4874
4875         * ThemeVisualStyles.cs: Fixed a warning.
4876
4877 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4878
4879         * ThemeVisualStyles.cs: Fixed warnings and formatted.
4880
4881 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4882
4883         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
4884         implementation produces a better result.
4885
4886 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4887
4888         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
4889         windows.
4890
4891 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4892
4893         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
4894         cannot be used from the ThemeEngine constructor.
4895         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
4896         Application.VisualStylesEnabled because it does not work on X11.
4897
4898 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
4899
4900         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
4901         that we did not always check for, as well as fixes to the IList
4902         implementations.  [Fixes bug #402703]
4903
4904 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4905
4906         * IDeviceContext.cs: Added Dispose.
4907
4908 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4909
4910         * Control.cs: Added OnSizeInitializedOrChanged.
4911         * Form.cs: OnLoadInternal: Added a call to
4912         Control.OnSizeInitializedOrChanged.
4913         * InternalWindowManager.cs:
4914          * HandleTitleBarMouseMove: No longer invalidates the parent window.
4915          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
4916          * TitleButton: Added Entered.
4917          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
4918         * MdiWindowManager.cs:
4919          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
4920          move over the maximized title buttons causes a change.
4921          * IsActive: Can now be called before the window is added to a MDI parent.
4922         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
4923         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4924         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
4925         * ThemeWin32Classic.cs:
4926          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
4927          * DrawTitleButton takes a new form parameter.
4928          * Added ManagedWindowTitleButtonHasHotElementStyle,
4929          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4930
4931 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4932
4933         * ThemeEngine.cs: ThemeVisualStyles is now selected if
4934         Application.EnableVisualStyles has been called, even if the current system
4935         configuration does not support rendering with Visual Styles.
4936         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
4937         Styles should not be used.
4938
4939 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
4940
4941         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
4942         ComboBox in FormsTest.
4943
4944 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
4945
4946         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
4947         for fixed toolwindows.
4948
4949 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
4950
4951         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
4952
4953 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4954
4955         * Control.cs: CreateControl just returns if the Control is diposed 
4956         and doesn't throw ObjectDisposedException.
4957         [Fixes bug #406566]
4958
4959 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4960
4961         * Control.cs: Do not create the control if the parent isn't created 
4962         yet, e.g in the case of a parented form on which .Show is called.
4963         It will be created when the parent is made visible/created.
4964         Improves #402446.
4965
4966 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4967
4968         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
4969         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
4970         [Fixes bug #406786]
4971
4972 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4973
4974         * Form.cs: When disposed set owner to null. Improves #402446.
4975
4976 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4977
4978         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
4979         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
4980         if not.
4981         * Form.cs: Take the Padding into account for the PreferredSize.
4982         [Fixes bug #402849]
4983
4984 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4985
4986         * TabControl.cs: Since we don't support more than one direction in
4987         TabControl rows alignment (this is, the row becomes the
4988         bottom row when selected), make Direction return always 1. This way
4989         the layout doesn't get confused about a bad calculation.
4990         Fixes #399582.
4991
4992 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4993
4994         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
4995         so that the wparam is properly set.
4996         Fixes form moving in the test case in bug 402446.
4997
4998 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
4999
5000         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
5001         the full tree instead of nothing.  [Improves bug #406584]
5002
5003 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
5004
5005         * ThemeWin32Classic.cs: Adjusted minimized window painting.
5006
5007 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
5008
5009         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
5010         children.
5011
5012 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
5013
5014         * TreeView.cs: Add a null check when using CollapseAll on an
5015         empty tree.  [Fixes bug #406449]
5016
5017 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
5018
5019         * Form.cs: Make OnMenuComplete internal so we can call it.
5020         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
5021         [Fixes bug #399321]
5022
5023 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
5024
5025         * TabControl.cs: Handle Up and Down keys when TabControl is in
5026         vertical alignment.
5027         [Fixes bug #399585]
5028
5029 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
5030
5031         * TabControl.cs: Invalidate when we remove a tab.  Guard against
5032         an AOORE when trying to remove a tabpage that is not owned by the
5033         parent control.
5034         [Fixes bug #399927]
5035
5036 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
5037
5038         * ScrollBar.cs: Change the LargeChange calculation to be correct.
5039         Ensure we are using LargeChange instead of large_change so we our
5040         calculations are correct.
5041         [Fixes bug #403122]
5042
5043 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
5044
5045         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
5046         we need to ensure the ColumnCount/RowCount gets set.
5047         [Fixes bug #404851]
5048
5049 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5050
5051         * ListBox.cs: When handling item navigation, if selection mode is
5052         None, call EnsureVisible, since scrolling is normally handled by
5053         selection, that we are not calling in this case.
5054         Fixes #398345.
5055
5056 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
5057
5058         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
5059         a null check to our focus walking code.  [Fixes bug #394332]
5060
5061 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
5062
5063         * ComboBox.cs: Case missed in bug 379596 "Support item
5064         navigation by entering text": On _close_ drop-down select
5065         the first item matching the text in the textbox.  [Fixes bug #397265]
5066
5067 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
5068
5069         * DataGridView.cs: Fix a crash when sorting by column headers, 
5070         mentioned in bug #404841.  Remove some dead switch cases.
5071
5072 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5073
5074         * ComboBox.cs:
5075         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
5076         uses the AutoComplete support in the internal TextBox. Also TextBox
5077         can store a reference to ComboBox, in case AutoCompleteSource is set
5078         to ListItems (this is, ComboBox's items, and we don't want to pass an
5079         additional collection).
5080
5081 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5082
5083         * ListViewItem.cs: Restore the initial value of bounds rect to
5084         Rectangle.Empty, and is this value for Layout detection in virtual
5085         mode. Fixes the tests.
5086
5087 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
5088
5089         * XPlatUI.cs: Remove references to "new" X11 backend.
5090
5091 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
5092
5093         * Control.cs: Add an internal virtual OnDragDropEnd method 
5094         to allow controls such as ListBox, which depend on a sequence 
5095         of MouseDown+Move+End events, to handle the lack of a MouseUp 
5096         when a DnD operation is started in MouseDown.
5097         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
5098         get a MouseUp, so reset our state whenever a DnD operation ends.
5099
5100 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
5101
5102         * PropertyGrid.cs: Clear the root griditem first thing when 
5103         new object/s is/are selected. Fixes some rare cases where 
5104         the View will get a paint request and won't know that the 
5105         grid is in the process of repopulating.
5106
5107 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
5108
5109         * XplatUIX11.cs, InternalWindowManager.cs: 
5110         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
5111         doesn't automagically update the FormBorderStyle, so we must 
5112         double check the CreateParams explicitly to determine if the 
5113         window is a toolwindow.
5114         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
5115         instead of doing custom checks.
5116
5117         Fixes toolwindows for the test case in bug #402446
5118
5119 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
5120
5121         * Control.cs: Visibility of the control should be false 
5122         when the handle is destroyed in WmDestroy and not immediately 
5123         in Dispose(). This is effectively where the disposing process 
5124         ends even though the control is marked as Disposed immediately 
5125         after calling Dispose().
5126         [Fixes bug #402446]
5127
5128 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
5129
5130         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
5131         when the textbox gets focus.
5132         [Fixes bug #402704]
5133
5134 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
5135
5136         * PropertyGridTextBox.cs, PropertyGridView.cs: 
5137          - Alt + Down should show the drop down editor.
5138          - Focus the editor when showing it
5139         [Fixes bug #402710]
5140
5141 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
5142
5143         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
5144         that are not the first panel.
5145         * StatusBar.cs: Ensure that the X coordinate of panels is always
5146         stored.  Fix IList implementation of StatusBarPanelCollection to
5147         call the regular methods.
5148         [Fixes bug #403599, #402165]
5149
5150 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
5151
5152         * ThemeWin32Classic.cs: Fix position calculation for centered
5153         text on status bar panels.  [Fixes bug #402165]
5154
5155 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
5156
5157         * Splitter.cs: Fix Splitter to:
5158          - Work for arbitrary splitter size
5159          - Handle MinSize and MinExtra properly
5160          - Get rid of absolute positioning during drag and use relative
5161          - Multiple other fixes 
5162          [Fixes bug #338966]
5163
5164 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
5165
5166         * Cursor.cs: Show shouldn't hide the cursor.
5167
5168 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5169
5170         * ListViewItem.cs: When invalidating, add some extra space to bounds,
5171         since focus rectangle and selection can add some space and need to
5172         take into account those small offsets - specially in Details view.
5173         * ListView.cs: Instead of invalidate using item Bounds directly, call
5174         item.Invalidate, to have the code centralized.
5175         Fixes focused/selection garbage when selecting and deselecting items
5176         that are close.
5177
5178 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5179
5180         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
5181         mode we can check whether we have to force a Layout or not, and can
5182         cache based on this, instead of avoiding caching all the the time. Do
5183         this check in GetBounds and TextBounds.
5184         Fixes selection in Details view.
5185
5186 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5187
5188         * ListView.cs: Make HeaderControl internal, thus the theme engine can
5189         get its *real* height instead of trying to infere it.
5190         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
5191         get the position of them, since it's in general a bad idea in general,
5192         and because we can't do that in virtual mode. Instead get the first
5193         visible item as well as item height, and draw them.
5194         Fixes #400390.
5195
5196 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
5197
5198         * ToolStripSplitButton.cs: We can't add in extra width if
5199         the button is not AutoSize.  [Fixes bug #401279]
5200
5201 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
5202
5203         * PaddingConverter.cs: 
5204          - Implement conversion to InstanceDescriptor
5205          - Handle "All" in CreateInstance by using the supplied 
5206          ITypeDescriptorContext.
5207          [Fixes bugs #396076 and #396078]
5208
5209          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
5210          Code contributed under MIT/X11 license.
5211
5212 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
5213
5214         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
5215         ButtonBase.cs:
5216         Add Category attributes.
5217         Code is contributed under the MIT/X11 license.
5218
5219 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
5220
5221         * Form.cs: 
5222          - Fix a NRE when unparenting a form.
5223          - Do not recreate or destroy a parented form when 
5224         unparenting. 
5225
5226 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5227
5228         * TextBox.cs: Implement basic support for AutComplete with custom
5229         sources.
5230
5231 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
5232
5233         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
5234         DropDownButtonBounds should be from the origin of the button, not the
5235         ToolStrip.  [Fixes bug #401279]
5236
5237 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
5238
5239         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
5240           running gtk_init_check.  This prevents GAIL from loading
5241           unnecessarily, which was breaking UIA support.  Initial fix for bug
5242           #375987.
5243         * Application.cs: Add UIA support to Winforms.  New static constructor
5244           uses reflection to initialize UIAutomationWinforms assembly.  Added
5245           PreRun event so UIA can initialize before the mainloop starts, and
5246           FormAdded event so UIA can provide a11y support for new Forms in an
5247           Application.
5248
5249 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
5250
5251         * DataGridView.cs: When binding to a dataset, subscribe to table
5252         and column change events.  Unsubscribe to these when we clear bindings.
5253         [Fixes bug #399601]
5254
5255 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
5256
5257         [DataGrid drawing refactory]
5258
5259         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
5260
5261         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
5262         must be handle by Theme, now it call DataGridPaintColumnHeader.
5263
5264         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
5265         test cases must be also fixed because it checks for wrong size.
5266
5267         * ThemeWin32Classic.cs: 
5268                 - Draw the bottom line of grid caption.
5269                 - Prevent to draw caption text when it is empty.
5270                 - Use CPDrawBorder3D for 3D efects to simplify code.
5271                 - Uses 3D (when not flat) to paint corner shared between row and column
5272                 header.
5273                 - Fix header drawing issues on win32, now borders are drawing.
5274                 - Fix column header paint issues to mimic win32.
5275                 - Adjust header drawing for last column, like first one it must be draw
5276                 different.
5277                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
5278                 not an character.
5279                 - DataGridPaintColumnHeader created to draw column headers, it also
5280                 paint stuff right on Win32.
5281                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
5282                 class.
5283
5284         * Theme.cs: 
5285                 - DataGridPaintRowHeaderStar method added.
5286                 - DataGridPaintColumnHeader method added.
5287
5288 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
5289
5290         * Control.cs: Don't reset to Dock style layout if DockStyle is
5291         set to none.  [Fixes bug #399316]
5292
5293 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
5294
5295         * Win32DnD.cs: Fix the check for control not equal null.
5296         Fixes bug #341420 and #381886. 
5297
5298 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
5299
5300         * DataGridViewRowCollection.cs: Update the indexes of rows after
5301         one has been removed.
5302         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
5303         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
5304         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
5305         rows for the Rows collection, or deleting rows from the bound DataSet.
5306
5307 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
5308
5309         * DataGridView.cs: Listen to a DataSet's changed event even
5310         when autogeneratecolumns is false.  Refactor the changed event's
5311         add row code to use the same as the existing add row code.
5312         [Fixes bug #399601]
5313
5314 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
5315
5316         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
5317         much any time the caret moves and there is text, not just when
5318         the selection changes as one would think.
5319         * RichTextBox.cs: Override RaiseSelectionChanged and fire
5320         SelectionChanged.
5321         [Fixes bug #397271]
5322
5323 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
5324
5325         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
5326         instead of trying to duplicate the code.
5327         * ListBox.cs: Make method internal so we can send keyboard events.
5328         [Fixes bug #398344]
5329         
5330 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
5331
5332         * TextBoxBase.cs: When pasting and checking the max length,
5333         subtract the selected text length (the text we will be replacing) from
5334         the document length.
5335         * TextControl.cs: Ensure every character insertion is reflected in
5336         charcount, so max length will work properly.
5337         [Fixes bug #398605]
5338
5339 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
5340
5341         * ListBox.cs: Ensure scrollbars are updated when a single
5342         column listbox with an already set top-index is created.
5343         [Fixes bug #398342]
5344
5345 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
5346
5347         * FontDialog.cs: Typing in the font/style textboxes should search
5348         the list boxes case-insensitively.  [Fixes bug #398343]
5349
5350 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
5351
5352         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
5353         widths of icon and buttons instead of hard coded values.
5354
5355 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5356
5357         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
5358         as well as generating a SelectedIndexChanged event, just like .Net does
5359         -surprise-.
5360         Fixes #398345.
5361
5362 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5363
5364         * ListBox.cs: When navigating items visually, use FocusedItem as the
5365         reference point instead of SelectedIndex, since even in
5366         SelectionMode.None we need to support navigation, and in that case we
5367         just can't use SelectedIndex.
5368         Fixes part of #398345.
5369
5370 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
5371
5372         * Control.cs: Make a SetBoundsInternal that avoids the new
5373         SetBounds code.
5374         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
5375         SetBoundsInternal instead of SetBoundsCoreInternal.
5376
5377 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
5378
5379         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
5380         SetBounds for the scrollbars.
5381
5382 2008-06-10  Andreia Gaita <avidigal@novell.com> 
5383
5384         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
5385           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
5386           OnMouseMove, OnMouseOver, OnMouseUp
5387         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
5388           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
5389         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
5390           to the WebControl object to pass to new collection objects
5391         * HtmlHistory.cs: Implement support for individual window histories.
5392         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
5393           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
5394           GotFocus, LostFocus, OnLoad, OnUnload
5395         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
5396           ContextMenu
5397         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
5398           security level changes and context menu event support.
5399
5400 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5401
5402         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
5403         as happens with Esc, patch my Andy Hume.
5404         Fixes #396294.
5405
5406 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
5407
5408         * MdiWindowManager.cs: DrawMaximizedButtons now uses
5409         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
5410         * Theme.cs: Made MenuButtonSize platform dependent. Added
5411         ManagedWindowButtonSize.
5412         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
5413         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
5414
5415 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
5416
5417         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
5418         Added support for rendering with VisualStyles.
5419
5420 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
5421
5422         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
5423         support for rendering the border with VisualStyles.
5424
5425 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
5426
5427         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
5428         the icon is not shown.
5429         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
5430         its own logic.
5431
5432 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
5433
5434         * InternalWindowManager.cs: Draw minimized windows even if they don't have
5435         borders.
5436
5437 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
5438
5439         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
5440
5441 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
5442
5443         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
5444         [Fixes bug #397943]
5445
5446 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5447
5448         * ComboBox.cs: When snaping height -because of IntegralHeight set to
5449         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
5450         if the requested height leaves the listbox area with *less* than the
5451         required are to see one item. We were setting it to PreferredHeight
5452         even for values matching the height for a single item.
5453         Fixes #396297.
5454
5455 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
5456
5457         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
5458
5459 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
5460
5461         * DataGridViewCell.cs: Use property instead of field.
5462
5463 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
5464
5465         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
5466         null checks.
5467
5468 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
5469
5470         * Theme.cs: Added #region around the managed window code. Made the managed
5471         window methods abstract.
5472         * ThemeWin32Classic.cs: Added #region around the managed window code.
5473
5474 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
5475
5476         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
5477         if it has borders.
5478         * ThemeWin32Classic.cs: Removed HasBorders checks in
5479         DrawManagedWindowDecorations.
5480
5481 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
5482
5483         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5484         Extracted ManagedWindowGetTitleBarIconArea.
5485
5486 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
5487
5488         * DataGridViewCellStyle.cs: Don't clone the font.
5489
5490 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
5491
5492         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
5493
5494 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5495
5496         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
5497         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
5498         in 64 bit machines.
5499
5500 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
5501
5502         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
5503         Use Format/FormatProvider before trying converters.
5504         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
5505         are 'set'.  Change constructor to not use ApplyStyle since it wants
5506         everything applied.  Clone the Font.
5507         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
5508         ApplyStyle the rest.
5509
5510 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5511
5512         * ListView.cs: We need to calculate the scrollbars even if the handle
5513         hasn't been created - this is needed when methods using scrollbars
5514         info, such EnsureVisible, are called before control has been created.
5515         Fixes #397272.
5516
5517 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
5518
5519         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
5520         only if the elements are defined. 
5521
5522 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5523
5524         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
5525         section. Also, when setting bounds, snap height as well as save the
5526         requested height if Dock has any value affecting the height: Left,
5527         Right and Bottom - important if using IntegralHeight as true.
5528
5529 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5530
5531         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
5532         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
5533         instead of doing that only in our SetBoundsCore override, since the 
5534         bounds cached can be the same as saved one and we could not get the
5535         new height applied.
5536         Fixes #396297.
5537
5538 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
5539
5540         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
5541         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
5542         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
5543         ToolWindowCaptionButtonSize.
5544         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
5545
5546 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
5547
5548         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
5549         hard coded values.
5550         * Theme.cs: Made DoubleClickTime plaform dependent.
5551
5552 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
5553
5554         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
5555         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
5556         ToolWindowCaptionHeight.
5557
5558 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
5559
5560         * InternalWindowManager.cs: The adjustment to ensure positive client area
5561         sizes is now platform dependent (disabled on Windows).
5562         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
5563         RequiresPositiveClientAreaSize.
5564
5565 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
5566
5567         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
5568
5569 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
5570
5571         * InternalWindowManager.cs: Changed IconicSize to use
5572         SystemInformation.MinimizedWindowSize.
5573         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
5574         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
5575
5576 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5577
5578         * ComboBox.cs: If the combobox is anchored both on top and bottom,
5579         adjust height if IntegralHeight is true when calling SetBoundsCore (as
5580         likely the height was modified even if Height wasn't specified in
5581         BoundsSpecified parameter).
5582         Fixes part of #396297.
5583
5584 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
5585
5586         * InternalWindowsManager.cs: Changed minimum window size while resizing to
5587         SystemInformation.MinWindowTrackSize.
5588         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
5589         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
5590
5591 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
5592
5593         * MenuItem.cs: Fixed Dispose.
5594
5595 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
5596
5597         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
5598         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
5599         EnteredHeaderCell, PressedHeaderCell: Added.
5600         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
5601         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
5602         theme a chance to override default painting.
5603         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
5604         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
5605         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
5606         ListView and DataGridView header rendering.
5607         
5608 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
5609
5610         * RichTextBox.cs: GetPositionFromCharIndex should return the 
5611         visual position of the character relative to the viewport.
5612         [Fixes part of bug #396664]
5613
5614 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
5615
5616         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
5617         and not just for the existance of an UITypeEditor. In some cases 
5618         there is an editor associated just to do PaintValue, but which 
5619         doesn't actually support editing.
5620         [Fixes bug #396632]
5621
5622 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5623
5624         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
5625         if needed, instead of 0 - this should help us in the corner case where
5626         we have more than one item but we are only partially showing 1 item.
5627         Fixes part of #374713.
5628
5629 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5630
5631         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
5632         control, return immediately if the any parent control's handle hasn't
5633         been created or isn't visible, as well as avoiding creating the parent
5634         Form if the handle hasn't been previously created.
5635         Fixes tests.
5636
5637 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
5638
5639         * TableLayoutPanel.cs: Use border sizes when calculating the
5640         panel's preferred size.  [Fixes part of bug #396433]
5641
5642 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
5643
5644         * SplitContainer.cs:
5645          - Fix SplitterDistance to update only if needed. 
5646          - Make it force min and max validation.
5647          - Handle properly mouse moves outside the resizeable area.
5648          [Fixes bug #396232]
5649
5650 2008-06-02  Andreia Gaita <avidigal@novell.com> 
5651
5652         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
5653           (which also suppresses all popup dialogs). Throw NotSupported
5654           exceptions for activex getters/setters.
5655         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
5656           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
5657           StatusText, Version, GoSearch
5658         * HtmlDocument.cs: Add DocType support
5659
5660 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
5661
5662         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
5663         [Fixes bug 396124]
5664
5665 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
5666
5667         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
5668
5669 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
5670
5671         * TableLayoutPanel.cs: When calculating preferred size, use the
5672         actual number of columns and rows, not what the user set them to.
5673         [Fixes bug #396141]
5674
5675 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
5676
5677         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
5678         394311.
5679
5680 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5681
5682         * XplatUIX11.cs: When detecting areas obscured in a control by other
5683         toplevel windows while scrolling, return if the control hasn't a 
5684         container form.
5685         Fixes some tests.
5686
5687 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5688
5689         * XplatUIX11.cs: Properly detect the visible area of a control being
5690         scrolled (obscured by other winforms controls and any X toplevel
5691         windows), to mark as invalid the requested area to be scrolled that
5692         isn't visible and thus can't be copied.
5693         Fixes #324513.
5694
5695 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5696
5697         * ListBox.cs: Compute the precise amount to vertically scroll when
5698         using DrawMode.OwnerDrawVariable.
5699         Patch by jkeymer (j.keymer@gmx.net).
5700
5701 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5702
5703         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
5704         to avoid setting an invalid value for the verticall scrollbar 
5705         when navigating items. And, duh, also remove my silly debug messages
5706         from previous commits.
5707         Fixes #374713.
5708
5709 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
5710
5711         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
5712         make it MS compatible.
5713
5714 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
5715
5716         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
5717          - Allow the editing of entries even if their parent is read-only.
5718          - Do not render expandable properties read-only.
5719          - Refactor expansion checks form PropertyGrid into PropertyGrid.
5720
5721 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
5722
5723         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
5724         support for the hover style.
5725
5726 2008-05-29  Andreia Gaita <avidigal@novell.com> 
5727
5728         * ContainerControl.cs: Check for null dead-end when traversing the tree
5729           of parent controls.
5730         
5731           [Fixes #394332, patch by Ernesto Carrea]
5732
5733 2008-05-29  Geoff Norton  <gnorton@novell.com>
5734
5735         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
5736         constant that it is.  Fixes #393981
5737
5738 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
5739
5740         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
5741         that the user probably doesn't want to set this.
5742
5743 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
5744
5745         * ThemeWin32Classic.cs: Don't let the text size be bigger than
5746         the control size for CheckBox/RadioBox.
5747         [Fixes part of bug #394645]
5748
5749 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5750
5751         * PropertyGrid.cs: Update the state of the sorting buttons in 
5752         the toolbar if PropertySort is set programatically.
5753
5754 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5755
5756         * GridItemCollection.cs: Add multiple items with conflicting names 
5757         support and also preserve name ordering.
5758         [Fixes #395345]
5759
5760 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5761
5762         * GridItemCollection.cs: Revert my multiple items with same 
5763         name patch.
5764
5765 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5766
5767         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
5768         or middle ones.
5769         Fixes part of #393908.
5770
5771 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
5772
5773         * ToolStripDrowDown.cs: When using the Show () methods that have a
5774         Control parameter, set the menu owner to that Control.
5775         [Fixes bug #394345]
5776
5777 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
5778
5779         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
5780         [Fixes bug #362756]
5781
5782 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5783
5784         * GridItemCollection.cs: Refactor to support multiple items with the 
5785         same name.
5786         [Fixes bug #394314]
5787
5788 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
5789
5790         * Control.cs: The 2.0 check for illegal cross thread calls in 
5791         Control.Handle were throwing an exception when we were getting
5792         the Handle in order to invoke correctly.  Created a private
5793         version that does not contain this check.
5794         [Fixes bug #394531]
5795
5796 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5797
5798         * PropertyGrid.cs: Respect DefaultTabType.
5799
5800 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5801
5802         * ListView.cs: SPACE selects an item.
5803         [Fixes bug #393023]
5804
5805 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5806
5807         * ListView.cs: Reset the search string whenever the items are 
5808         modified.
5809         [Fixes bug #393020]
5810
5811 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5812
5813         * ListControl.cs: For the first added item PositionChanged is fired
5814         _before_ ItemChanged, which leave us in a temporary invalid state - so
5815         we need to set the selected index from ItemChanged handler *if* we
5816         know that the first item has just been added *and* the items have been
5817         actually added to the ListControl.
5818         Fixes #369048.
5819
5820 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5821
5822         * TabControl.cs: Only clicks with the left button should be
5823         handled.
5824         Fixes #393908.
5825
5826 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5827
5828         * ComboBox.cs: 
5829         * FIleDialog.cs:
5830         * TextBox.cs: Expose an internal method in TextBox to restore the
5831         original context menu, and call it from ComboBox to re-use it in the
5832         combobox containing the file name in FileDialog.cs.
5833         Fixes part of #393775.
5834
5835 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
5836
5837         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
5838         style.
5839
5840 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
5841
5842         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
5843         down button style.
5844
5845 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5846
5847         * ComboBox.cs: Minor correction to previous patch: PageDown should
5848         also *try* to move by one item if the computed offset is negative,
5849         just like the PageUp case.
5850
5851 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5852
5853         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
5854         should be done for at least 1 item, and not stay at the same item.
5855         Fixes part of #374713.
5856
5857 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
5858
5859         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
5860         directories.  [Fixes bug #393931]
5861
5862 2008-05-22  Andreia Gaita <avidigal@novell.com> 
5863
5864         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
5865           Don't fire events until the initial about:blank page has finished
5866           loading. Clean up events.
5867
5868 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
5869
5870         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
5871           FocusIn() too. This should fix the issue on switching
5872           scim keyboards.
5873
5874 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
5875
5876         * X11Keyboard.cs : set XIM font size to somewhat reasonable
5877           number (ideally the input textbox size, but that could be
5878           too messy).
5879
5880 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
5881
5882         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
5883         the ToolStripItem's TextChanged.  [Fixes bug #393597]
5884
5885 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5886
5887         * TabControl.cs: When invalidating in SelectedIndex and we need to
5888         inflate to take into account the border of the tabs, make sure that
5889         the invalidated rect doesn't overflow the control bounds, since that
5890         would avoid updating at all.
5891
5892 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5893
5894         * TabControl.cs: Don't substract scroller width from the row width,
5895         since we need to take into account the total width of the control when
5896         calculating the position of the tabs. This avoids showing scroller
5897         when it is actually not needed.
5898         Fixes part of #322325.
5899
5900 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5901
5902         * ThemeVisualStyles.cs: Added support for TextBoxBase.
5903
5904 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5905
5906         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5907         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
5908
5909 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5910
5911         * DataGridView.cs: Only paint the top left header cell if there
5912         are columns.
5913
5914 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5915
5916         * DataGridView.cs: When binding to a BindingSource, get the underlying
5917         list to bind to.  [Fixes bug #345483]
5918
5919 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5920
5921         * DataGridView.cs: Do not bind to collection properties.
5922         [Fixes bug #337470]
5923
5924 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5925
5926         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
5927
5928 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5929
5930         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
5931         thumb style.
5932
5933 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5934
5935         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
5936
5937 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5938
5939         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
5940         background.
5941
5942 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5943
5944         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
5945
5946 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5947
5948         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
5949         checked styles.
5950
5951 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5952
5953         * TabControl.cs: Extended to handle the hot style.
5954
5955 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5956
5957         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
5958         Extended UpDownBase code to handle hot and disabled styles.
5959
5960 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5961
5962         * DataGridView.cs: Handle databinding to generic list type things.
5963         [Fixes bug #325239]
5964
5965 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5966
5967         * DataGridViewCellCollection.cs: Add a method to find the cell
5968         with the given DataPropertyName.
5969         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
5970         * DataGridViewColumnCollection.cs: Add a method to clear all
5971         autogenerated columns.
5972         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
5973         columns.
5974         [Fixes bug #348082]
5975
5976 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5977
5978         * DataGridView.cs: Don't try to update the RowTemplate with
5979         a null CellTemplate.
5980
5981 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5982
5983         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
5984         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
5985         * DataGridView.cs: Lots of fixes/enhancements to databinding to
5986         a DataSet.
5987
5988 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5989
5990         * Control.cs: Remove invalidating implicit child controls when
5991         control is invalidated.  It was causing too many redraws on
5992         controls with implicit scrollbars.
5993         * ListView.cs: Listen to the Invalidated event and invalidate
5994         child controls.
5995
5996 2008-05-20  Andreia Gaita <avidigal@novell.com> 
5997
5998         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
5999         * HtmlDocument.cs: Check for nulls
6000
6001 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6002
6003         * Control.cs: In ControlCollection.RemoveInternal, remove the
6004         internal control before calling PerformLayout and OnControlRemoved,
6005         which was leaving us in an invalid state and causing a X error (bad
6006         match). Observe that Remove () call has the same order.
6007         Fixes an X error changing ComboBoxStyle.DropDownStyle.
6008
6009 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6010
6011         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
6012         being fired if ControlStyles.UserPaint style is activated.
6013         Fixes #371905.
6014
6015 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
6016
6017         * GridEntry.cs: Don't be so strict when setting the value - 
6018         do not check if what we set is what we get.
6019         [Fixes bug #389245]
6020
6021 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
6022
6023         * XplatUIX11.cs: If there are no timers timeout should be 0
6024         [Fixes bug #363522]
6025
6026 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
6027
6028         * Control.cs: As a followup to invalidating implicit children when
6029         a control is invalidated, only invalidate them if they are in the
6030         clip rectangle.
6031
6032 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
6033
6034         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
6035
6036 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
6037
6038         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
6039
6040 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
6041
6042         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
6043         * XplatUIWin32.cs: Made Win32DeleteObject public.
6044
6045 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
6046
6047         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
6048         PropertyDescriptor.ShouldSerializeValue.
6049         [Fixes bug #391924]
6050
6051 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
6052
6053         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
6054         in the classic theme.
6055
6056 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
6057
6058         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
6059         ThumbPressed.
6060         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
6061         ScrollBarHasPressedThumbStyle.
6062
6063 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
6064
6065         * TextRenderer.cs: Included some methods in the 1.1 profile.
6066
6067 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
6068
6069         * Control.cs: When we make a control visible, it may have been
6070         previously visible and while it wasn't visible, the z-order of
6071         things may have been shuffled, so the control needs to have its
6072         z-order updated just in case.  [Fixes bug #391518]
6073
6074 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
6075
6076         * ThemeVisualStyles.cs: Added support for GroupBox.
6077
6078 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
6079
6080         * GroupBoxRenderer.cs: Included in the 1.1 profile.
6081
6082 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
6083
6084         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
6085           bug #389996; XSelectInput() behaved as mouse handler robber,
6086           so remove extra call to it.
6087
6088 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
6089
6090         * Control.cs: Simplify ControlCollection.Contains method.
6091
6092 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
6093
6094         * DataGridViewRow.cs: Implement GetPreferredSize.
6095
6096 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
6097
6098         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
6099
6100 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
6101
6102         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
6103         painting and edit control fixes.
6104
6105 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
6106
6107         * DataGridView.cs, DataGridViewCell.cs: Work around some external
6108         checks to make sure we are in an actual row/col for top left header cell.
6109         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
6110
6111 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
6112
6113         * Control.cs: Use long instead of int when handling WParam from
6114         mousewheel scrolling.  Int was overflowing on Win64.
6115
6116 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
6117
6118         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
6119         flow panel without scrolling first, and then calculate the 
6120         scrolling based on the new layout.  [Fixes bug #390149]
6121
6122 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
6123
6124         * ListBox.cs: Invalidate after scrolling up when selected index
6125         changes.  [Fixes bug #390151]
6126
6127 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6128
6129         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
6130         set, default height to 150. I tried first with DefaultSize, but this
6131         is not generating a SetBoundsCore call before handle creation time, so
6132         we can take it into account. This is just what .net does.
6133
6134 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
6135
6136         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
6137         as it broke some stuff.  Calberto is filing a bug for eno to
6138         work with.
6139
6140 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6141
6142         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
6143         to 0 is the current value is -1, and if style is not Simple, just
6144         return, like .net does.
6145         Fixes part of #374713.
6146
6147 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
6148
6149         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
6150         progress bar stuffs, use doubles instead of ints to prevent
6151         overflow.  [Fixes bug #389798]
6152
6153 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
6154
6155         * XplatUIX11.cs, X11Keyboard.cs :
6156           Significant refactoring on XIM support. Now IM engine UI
6157           should show up, at mostly-correct preedit position.
6158           - Eliminated use of FocusWindow, as it is never mapped
6159             and hence blocks correct preedit position. XIC is now
6160             created per window, and it must be destroyed too when
6161             the window is destroyed.
6162           - WM_QUIT messages should not be filtered even when hwnd
6163             is zombie. Filtering it could cause endless loop.
6164           - Preedit position must move only when the window is alive.
6165           - Make it IDisposable and make sure to release XIM/XICs.
6166
6167 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
6168
6169         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
6170           XplatUIX11.cs, XplatUIWin32.cs :
6171           fix for bug #325033 and #387693;
6172           - WM_QUIT should not be sent when no running application
6173             exists.
6174           - SetTimer/KillTimer (especially on win32) should be
6175             invoked for the window that the timer is/will_be attached.
6176           - There could be unattached timers to a window when it's
6177             started. For those timers, hold pending timers and when
6178             a window is mapped, attach them to it.
6179           - WaitForHwndMessage() could run into loop when
6180             WM_SHOWWINDOW is handled before this method is called.
6181             So, strictly check wm_showwindow state.
6182           - Tick handler should not be invoked while one Tick handler
6183             call is still running (introduced Busy state).
6184
6185 2008-05-13  Andreia Gaita <avidigal@novell.com> 
6186
6187         * WebBrowserBase.cs: Override Internal alternative methods for
6188           SetBoundsCore and OnResize instead of the protected ones.
6189         * Control.cs: Move SetBoundsCore and OnResize implementations to
6190           SetBoundsCoreInternal and OnResizeInternal, so they can be
6191           overriden internally (WebBrowserBase needs to catch them but can't
6192           override the protected methods without api compat problems)
6193
6194 2008-05-13  Andreia Gaita <avidigal@novell.com> 
6195
6196         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
6197
6198 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6199
6200         * Binding.cs:
6201         * ListView.cs: Remove debug messages.
6202
6203 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6204
6205         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
6206         area is empty. Also calculate scrollbars in Simple mode based in area
6207         height and total number of items, not in MaxDropDownItems.
6208         Fixes part of #371991.
6209
6210 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
6211
6212         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
6213
6214 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
6215
6216         * BindingSource.cs: GetListSortDescription is not public.
6217
6218 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
6219
6220         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
6221
6222 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
6223
6224         * HtmlElement.cs: Fix parameter names to match MS.
6225         * HtmlWindowCollection.cs: Should not be sealed.
6226
6227 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
6228
6229         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
6230         button, because the thumb button will not get drawn if the scrollbar
6231         is disabled.  [Fixes bug #389262]
6232
6233 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
6234
6235         * ListBox.cs: Handle End key for multi-column listboxen.
6236         [Fixes bug #389266]
6237
6238 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
6239
6240         * ListBox.cs: Fix algorithm to determine which column our item is in.
6241         [Fixes bug #389265]
6242
6243 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
6244
6245         * ListBox.cs: Invalidate when the listbox is resized.
6246         [Fixes bug #389256]
6247
6248 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
6249
6250         * ListBox.cs: There is always at least one row in the ListBox (if
6251         we are doing these calculations.)  [Fixes bug #389253]
6252
6253 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
6254
6255         * ListBox.cs: There is always at least one column in the ListBox.
6256         [Fixes bug #389250]
6257
6258 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6259
6260         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
6261         ensure in Simple mode that the height is exactly the requested one.
6262         Also add the ComboBoxListControl to the controls collection in Simple
6263         mode even if handle hasn't been created.
6264         Fixes part of #371991.
6265
6266 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6267
6268         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
6269         our ComboBox owner instead of giving it back to the previous control (
6270         as done in other controls). Also remove the empty override of Select
6271         method, since we want to be selected *and* give focus to our owner.
6272         This should let the user do keys-navigation in Simple mode. 
6273
6274 2008-05-10  Geoff Norton  <gnorton@novell.com>
6275
6276         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
6277         problems with rapid scrolling of treeviews. Fixes #381084
6278
6279 2008-05-10  Geoff Norton  <gnorton@novell.com>
6280
6281         * XplatUICarbon.cs: Deactivate the active window before
6282         activating the desired window.  Completes fixing #386504
6283
6284 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6285
6286         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
6287         SmallChange to the item size width plus the padding, to match .net.
6288
6289 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6290
6291         * FileDialog.cs: Apply the custom filter typed by the user in the file
6292         name combobox as much as possible while navigating in the file dialog.
6293         Fixes #385261.
6294
6295 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6296
6297         * Binding.cs: Actually use NullValue if the retrieved value of
6298         data source is null or DBNull. Makes a test pass.
6299
6300 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
6301
6302         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
6303         * MimeIcon.cs: Provide a way to get icons from resources.
6304
6305 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6306
6307         * Binding.cs: When the value retrieved from the control to be assigned
6308         to the data source is null, actually use the 2.0 DataSourceNullValue
6309         value. Make pass a data binding test.
6310
6311 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
6312
6313         * Control.cs: We need to invalidate implicit children even when
6314         invalidate is called with invalidatechildren = false.  (Implicit
6315         children are really part of the parent.)
6316         * ListView.cs: Double-buffer internal child controls for less
6317         flicker.
6318         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
6319         owner ListView subitems for greatly increased performance.
6320         [Fixes bug #388477]
6321
6322 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
6323
6324         * FileDialog.cs: When the user types a wildcard character in the
6325         filename combobox, update the contents of the folder using the text as
6326         a filter.
6327         Fixes part of #385261.
6328
6329 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
6330
6331         * ListBox.cs: Various fixes for MultiColumn listboxen.
6332         [Fixes bug #388114]
6333
6334 2008-05-08  Andreia Gaita <avidigal@novell.com> 
6335
6336         * HtmlElement.cs: Implement Style property
6337
6338 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
6339
6340         * ListBox.cs: Respect checkboxes when measuring item size.
6341         * ThemeWin32Classis.cs: When drawing list items, don't draw
6342         text outside of the item's bounds to prevent overlapping.
6343         (.Net actually overlaps, but that's just silly.)
6344         [Fixes bug #388117]
6345
6346 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
6347
6348         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
6349         Gert Driesen. Fixes bug #324830. 
6350
6351 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
6352
6353         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
6354         method implemented.
6355
6356 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6357
6358         * BindingSource.cs: When calling IsSynchronized, return the value of
6359         the related IList list.
6360
6361 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6362
6363         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
6364         make a test pass.
6365
6366 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
6367
6368         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
6369         navigation to scroll the grid if the current cell is not visible.
6370
6371 2008-05-07  Andreia Gaita <avidigal@novell.com> 
6372
6373         * HtmlElement.cs: Implement TabIndex
6374
6375 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
6376
6377         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
6378         properties, even when there are no items.
6379         [Fixes bug #387611]
6380
6381 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
6382
6383         * NativeWindow.cs: Add support for multiple handles per window.
6384         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
6385         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
6386         directly - use FromHandle instead.
6387         [Fixes bug #374660]
6388
6389 2008-05-07  Andreia Gaita <avidigal@novell.com> 
6390
6391         * HtmlElement.cs: Implement InnerHTML setter
6392
6393 2008-05-07  Andreia Gaita <avidigal@novell.com> 
6394
6395         * HtmlDocument.cs: Implement Focused
6396
6397 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6398
6399         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
6400         methods, as well as add messages to the exceptions.
6401
6402 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6403
6404         * BindingSource.cs: Setting DataSource should only reset DataMember if
6405         the previous value was null (make pass a not working test).
6406
6407 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6408
6409         * BindingSource.cs: When EndInit call is postponed and is called until
6410         DataSource.EndInit is called, remove the handler for data source.
6411
6412 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
6413
6414         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
6415
6416 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
6417
6418         * ToolStripManager.cs: Store references to toolstrips as
6419         weak references so they do not prevent forms from getting collected.
6420         [Fixes bug #386483]
6421
6422 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
6423
6424         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
6425         on .Net.  So do the same thing in WndProc.
6426
6427 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
6428
6429         * TrackBar.cs: Commit patch from Andy Hume that corrects
6430         the clickable areas to better match .Net.
6431         [Fixes bug #387074]
6432
6433 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
6434
6435         * TrackBar.cs: Commit patch from Andy Hume that adds the
6436         ResizeRedraw control flag so the track bar repaints itself
6437         when it is resized.  [Fixes bug #387072]
6438
6439 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
6440
6441         * TrackBar.cs: Commit patch from Andy Hume that adds better
6442         support for keyboard navigation when the TrackBar is vertical.
6443         [Fixes bug #387071]
6444
6445 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6446
6447         * BindingSource.cs: Implement ISupportInitializeNotification support.
6448
6449 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
6450
6451         * ThemeVisualStyles.cs: Added support for ToolBar.
6452
6453 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
6454
6455         * ToolBar.cs: Made the Vertical property internal.
6456
6457 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
6458
6459         * ThemeVisualStyles.cs: Added support for TrackBar.
6460
6461 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
6462
6463         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
6464         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
6465         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
6466         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
6467         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
6468         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
6469
6470 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
6471
6472         * ThemeVisualStyles.cs: Added support for UpDownBase.
6473
6474 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
6475
6476         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
6477         Extracted Theme.UpDownBaseDrawButton.
6478
6479 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
6480
6481         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
6482         removed from the static toolstrips collection in ToolStripManager
6483         when they are disposed.  Provides a workaround for bug #386483.
6484
6485 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
6486
6487         * GridEntry.cs: Read-only properties with Editor with 
6488         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
6489         [Fixes bug #384184]
6490
6491 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
6492
6493         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
6494         the menu key and there are no items on the menu.
6495         [Fixes bug #386644]
6496
6497 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
6498
6499         * Control.cs: Avoid calling ToString on a string.
6500         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
6501         * GroupBox.cs: In FlatStyle property throw, not just create, the 
6502         exception. Avoid calling ToString on a string.
6503         * ProgressBar.cs: Avoid calling ToString on a string. 
6504         * ScrollBar.cs: Avoid calling ToString on a string. 
6505         [All issues were found using Gendarme]
6506
6507 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
6508
6509         * NotifyIcon.cs: Prevent click events to be trigger after double click 
6510         events. Fixes remaining issues of bug #324832.
6511
6512 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
6513
6514         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
6515         to mimic win32 behavior. Partially fixes bug #324832.
6516
6517 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6518
6519         * BindingSource.cs: Implement Find methods.
6520
6521 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6522
6523         * BindingSource.cs: Implement Sort, ApplySort overloads, and
6524         RemoveSort methods.
6525
6526 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6527
6528         * ListBindingHelper.cs: When calling GetListItemProperties and the
6529         passed object is ITypedList, return the result of
6530         ITypedList.GetItemProperties instead.
6531
6532 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
6533
6534         * LinkLabel.cs: Set default value of name on constructor of Link class
6535         only for 2.0 profile.
6536
6537 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
6538
6539         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
6540         Fixes remaining issues of bug #346154.
6541
6542 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
6543
6544         * LinkLabel.cs: Set a default value for name on internal contructor of
6545         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
6546
6547 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
6548
6549         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
6550         and refer all instances to owner.links. Partially fixes #346154.
6551
6552 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6553
6554         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
6555         length equal zero. Also called CreateLinkPieces in constructor. It fixes
6556         the LinkLabel test 'TestLinkArea'.
6557
6558 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6559
6560         * Form.cs: Remove menu before close form to prevent form to be not gaced.
6561         [Fixes #386460]
6562
6563 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6564
6565         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
6566         [Fixes #386463]
6567
6568 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6569
6570         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
6571         [Fixed bug #357004]
6572
6573 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6574
6575         * MenuAPI.cs: Remove unused ProcessCmdKey method.
6576
6577 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6578
6579         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
6580         [Fixes bug #375398]
6581
6582 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6583
6584         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
6585         of bug #367492.
6586
6587 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6588
6589         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
6590         sometimes we open a conext menu on mouse down of some controls and the mouse
6591         up is dispatched to menu and dont need to. It fix remaining issues of 
6592         #363711 and other problems related to menu mouse click events.
6593
6594 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
6595
6596         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
6597         some var names to better fit changes, now we have month_menu and today_menu
6598         vars. Fixes bug #363711.
6599
6600 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
6601
6602         * MonthCalendar.cs: Handle every right mouse click to open context menu,
6603         right now the default month menu but it will be change to have "Go to today"
6604         menu.
6605
6606 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6607
6608         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
6609
6610 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
6611
6612         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
6613
6614 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6615
6616         * ThemeVisualStyles.cs: Added support for TreeView.
6617
6618 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6619
6620         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
6621         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
6622
6623 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6624
6625         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
6626
6627 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6628
6629         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
6630         Implement 2.0 SP1 stuffs.
6631
6632 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6633
6634         * FileDialog.cs: Implement 2.0 SP1 stuffs.
6635
6636 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6637
6638         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
6639         Implement CanEnableIme property. (2.0 SP1)
6640
6641 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6642
6643         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
6644         from the 2.0 API.
6645
6646 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6647
6648         * Control.cs: Provide an internal way for a control to override
6649         the setting of Height.
6650         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
6651         set height using new method.
6652
6653 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6654
6655         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
6656
6657 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6658
6659         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
6660         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
6661
6662 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6663
6664         * ThemeVisualStyles.cs: Added support for StatusBar.
6665
6666 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6667
6668         * DataObject.cs: Add the other IDataObject interface.
6669
6670 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6671
6672         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
6673         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
6674
6675 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6676
6677         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
6678         * ListView.cs: Hide non-public API.
6679         * MaskedTextBox.cs: Remove extra attribute.
6680
6681 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6682
6683         * DataGridViewImageCell.cs: Use formatted value instead of value
6684         to calculate preferred size.
6685
6686 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6687
6688         * ListBox.cs: Move some initialization around so that selected_indices
6689         is not accessed before it is created.
6690
6691 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6692
6693         * InputLanguageCollection.cs: Implement the collection better.
6694         [Fixes bug #385506]
6695
6696 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6697
6698         * ToolStripDropDownItem.cs: Get the correct event object for
6699         DropDownItemClicked.
6700         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
6701         [Fixes bug #385475]
6702
6703 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6704
6705         * DataGridViewRowCollection.cs: We don't currently support shared 
6706         rows.  Should fix test failures caused by previous commit.
6707
6708 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6709
6710         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
6711         datagridview gets set.  Only paint cells in visible columns.
6712         * DataGridViewCell.cs: Draw border after cell content.
6713         * DataGridView.cs: Invalidate after setting some properties.  Only
6714         use visible columns.  Fit hit test bug with areas in the col/row header
6715         area but not in a row or col.  Implement UpdateCell/Row methods.
6716
6717 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6718
6719         * DataGridViewElement.cs: Don't throw NIEX.
6720         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
6721         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
6722         * DataGridViewCheckBoxColumn.cs: Implement ToString.
6723         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
6724         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
6725         if the user filled in the formatting Value, use it.
6726
6727 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6728
6729         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
6730         to a string.
6731
6732 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6733
6734         * BindingSource.cs: Some corrections to Filter property, as well as
6735         setting it for our list when resetting it.
6736
6737 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
6738
6739         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
6740         than the maximum.  Fixes reopened bug #384182.
6741
6742 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6743
6744         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
6745         Fixes remaining issues of #367490.
6746
6747 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6748
6749         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
6750         SystemInformation.WorkingArea to get max_screen value.
6751
6752 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6753
6754         * BindingSource.cs: Implement Filter and RemoveFilter.
6755
6756 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6757
6758         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
6759
6760 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6761
6762         * X11Dnd.cs: When trying to convert data and we know we started the
6763         dnd loop, don't try to use the cached data if the loop is not running,
6764         which means that the data has been resetted.
6765         Fixes #378191.
6766
6767 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6768
6769         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
6770         win32 behavior.
6771
6772 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6773
6774         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
6775         it to drawn off screen edge. Fixes bug #367490.
6776
6777 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6778
6779         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
6780         menu position to have only one assignment of Location var.
6781
6782 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6783
6784         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
6785         for this patch. Fixes bug #384115.
6786
6787 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6788
6789         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
6790         the same.  If LargeChange is zero, set a minimum size for the scroll
6791         thumb grip.  [Fixes bug #384182]
6792
6793 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6794
6795         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
6796         [Fixes bug #384181]
6797
6798 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6799
6800         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
6801
6802 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6803
6804         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
6805         patch from Ernesto).
6806
6807 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6808
6809         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
6810
6811 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6812
6813         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
6814
6815 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6816
6817         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
6818
6819 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6820
6821         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
6822
6823 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
6824
6825         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
6826
6827 2008-04-27  Andreia Gaita <avidigal@novell.com> 
6828
6829         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
6830           supposed to return a reference to an mshtml interface, which we
6831           don't support).
6832         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
6833           reference to an mshtml interface, which we don't support). Code
6834           formatting cleanup.
6835         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
6836           DomDocument getter (it's supposed to return a reference to an
6837           mshtml interface, which we don't support). Code formatting cleanup.
6838
6839 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6840
6841         * ListView.cs: Ouch, forgot to commit.
6842
6843 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6844
6845         * ListView.cs: 
6846         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
6847
6848 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6849
6850         * ListView.cs: When calculating box selection for virtual mode, don't
6851         look for intersection with item's text, but item bounds, since that
6852         would mean read ListViewItem's text for _every_ item, and that's
6853         something we just can't do in virtual mode (items are only requested
6854         when drawn).
6855
6856 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
6857
6858         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
6859         partial support for managed windows (based on the patch from Ernesto).
6860
6861 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6862
6863         * ListView.cs: When doing a key search use FindItemWithText method
6864         instead of doing the search by ourselves, this way we avoid
6865         duplicating the code and also we handle the special case for virtual
6866         mode. To achieve that make our private overload of FindItemWithText
6867         internal and also have a 'roundtrip' parameter.
6868
6869 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6870
6871         * ListView.cs: When doing the layout don't request the
6872         ListViewItem instance if we are in virtual mode (since we can't request it
6873         until the item is actully drawn).
6874
6875 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6876
6877         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
6878         from Ernesto).
6879
6880 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6881
6882         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
6883         the patch from Ernesto).
6884
6885 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6886
6887         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
6888         * ThemeVisualStyles.cs: Added.
6889
6890 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6891
6892         * IDeviceContext.cs: Added a missing using.
6893
6894 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6895
6896         * ButtonBase.cs: Made IsDefault protected internal.
6897         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
6898
6899 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6900
6901         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
6902         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
6903         RadioButtonRenderer.cs: Included in the 1.1 profile.
6904         * IDeviceContext.cs: Added.
6905         * TextRenderer.cs: Included a member in the 1.1 profile.
6906
6907 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6908
6909         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
6910
6911 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6912
6913         * ErrorProvider.cs: Make the error icons come after the control
6914         they refer to.  It isn't the way the MS does it, but its better
6915         than what we were doing.  See bug #368587.
6916
6917 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6918
6919         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
6920         from Eric Albright that lazy loads the input language as ensures
6921         everything gets properly initialized.  Fixes bug #373871.
6922
6923 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6924
6925         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
6926         implicit mnemonics.  [Fixes bug #383000]
6927
6928 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6929
6930         * X11Dnd.cs: When canceling the operation, automatically restore the
6931         default cursor - normally the default cursor is restored when the
6932         mouse buttons are released, but we should be able to restore it even
6933         if the buttons are still pressed (for example, when pressing ESC to
6934         cancel).
6935         Fixes #381894.
6936
6937 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6938
6939         * X11Dnd.cs: When starting a new drad and drop operation, set control
6940         field to null, just as the other fields, to avoid calling any
6941         operation on a previous control. Also, when calling DndLeave on a
6942         control, set it to null, thus we don't fire that event multiple times
6943         for that control.
6944         Fixes #209264.
6945
6946 2008-04-23  Geoff Norton  <gnorton@novell.com>
6947
6948         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
6949         the whole_window object.  Fixes #377084.
6950
6951 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6952
6953         * HtmlElement.cs: Implement RaiseEvent (event injection into the
6954           embedded browser)
6955
6956 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
6957
6958         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
6959
6960 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6961
6962         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
6963           invocation
6964
6965 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6966
6967         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
6968           attaching/detaching
6969
6970 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6971
6972         * X11Dnd.cs: When the drop was cancelled, or could just not be
6973         performed, return DragDropEffect.None always (match .net).
6974
6975 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6976
6977         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
6978
6979 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6980
6981         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
6982
6983 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6984
6985         * DataGridView.cs: Add support for error icon tool tips.
6986         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
6987         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
6988
6989 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
6990
6991         * X11Structs.cs: Add mouse button masks enum.
6992         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
6993         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
6994         form resize/move operation instead of for each step of it.
6995         [Fixes bug #346529 for the x11 backend]
6996
6997 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6998
6999         * DataGridView*: Implement support for drawing error icons.
7000
7001 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
7002
7003         * TreeView.cs: Make vbar and hbar internal.
7004         * TreeNode.cs: If collapsing the node removes one of the TreeView's
7005         scrollbars, invalidate the whole thing.
7006         [Fixes bug #382001]
7007
7008 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
7009
7010         * TreeView.cs: Calling Sort() sets Sorted = true.
7011         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
7012         if the nodes need to be sorted.
7013         [Fixes bug #382028]
7014
7015 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
7016
7017         * Form.cs: Fire SizeChanged for both when the form is minimized and 
7018         restored.
7019         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
7020         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
7021
7022 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
7023
7024         * ComboBox.cs: If the combobox is disabled, draw a disabled
7025         background before painting anything else.
7026         [Fixes bug #381729]
7027
7028 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7029
7030         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
7031         forget to send a Leave event to the target window - just as .net does
7032         when cancelling dnd operations.
7033
7034 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7035
7036         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
7037         soon as possible - this happens when we send the drop message to the
7038         target window. This way we avoid firing any DragOver _after_ drop finished.
7039         Fixes #378179.
7040
7041 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
7042
7043         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
7044         * Form.cs: Handle form minimization as a special state, where size doesn't 
7045         change, but we have to fire SizeChanged.
7046         [Fixes bug #325122 for the win32 and x11 backends]
7047
7048 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
7049
7050         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
7051         if the handle is disabled.
7052         [Fixes bug #371751]
7053
7054 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
7055
7056         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
7057         for forms with FormBorderStyle.None.
7058         [Fixes bug #349571]
7059
7060 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
7061
7062         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
7063         WM_EXITSIZEMOVE.
7064         [Fixes bug #346529 for the X11 backend]
7065
7066 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
7067
7068         * XplatUIX11.cs: 
7069           - Send a mouse Enter message after say dragging the mouse with a 
7070           button down and then release it in another client.
7071           - Reset the cursor to prevent X11 from remembering it and setting it 
7072           before the control gets WM_SETCURSOR.
7073           - Qeueue a mouse move after a mouse enter like win32.
7074           [Fixes bug #323234]
7075
7076 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
7077
7078         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
7079         It's sent when the form gets moved, resized, closed.
7080         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
7081         [Fixes bug #359193 for X11]
7082
7083 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
7084
7085         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
7086         the build.
7087
7088 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
7089
7090         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
7091         group. Fixes the 1.1 build.
7092
7093 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7094
7095         * ListView.cs: Use display indexes for selection in Details view, as
7096         well as do the proper layout based on display indexes for that view
7097         too.
7098
7099 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7100
7101         * ListView.cs: Focused item information is now stored as a display
7102         index, and display indexes are used all over the place for selection,
7103         instead of ListViewItem.Index values, which doesn't give us enough
7104         information to modify the selection in groups mode, and was broken.
7105
7106 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
7107
7108         * Control.cs: Do not fire MouseDown if validation of the control has 
7109         failed.
7110         * Form.cs: Validate the form before closing.
7111         [Fixes bugs #330501 and #353310]
7112
7113 2008-04-18  Andreia Gaita <avidigal@novell.com> 
7114
7115         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
7116           CreateWebBrowserSiteBase implementations
7117         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
7118           Style and TabIndex setters
7119
7120 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7121
7122         * ListViewGroup.cs: When returning the actual item count, return the
7123         proper count for default group.
7124         Fix the tests.
7125
7126 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7127
7128         * ListView.cs:
7129         * ListViewGroup.cs: When calculating groups layout, get the actual
7130         number of items per group, since groups added to the group BUT not
7131         added to the ListView are just ignored, and can cause some nasty
7132         exceptions because of the lack of synchronization. Also for
7133         ListViewGroup don't use lazy initialization for items, since we 
7134         the common scenario is to use it always - and it helps us to  refactor
7135         and clean the .ctor overloads.
7136
7137 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7138
7139         * ListView.cs: When adding an item to a ListViewItemCollection
7140         belonging to a group (ListViewGroup.Items), don't generate a redraw if
7141         the added item hasn't beeen previously added to the ListView instance
7142         refered by the group, since it will be ignored. This should avoid some 
7143         really nasty flickering.
7144
7145 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7146
7147         * ListView.cs: When accessing an item in a specific display
7148         position, use the helper method GetItemAtDisplayIndex, instead of
7149         direct access to the reordered_items_indices array. When doing layout
7150         for groups set the correct Items index for the display position (since
7151         in groups mode items don't have the same position as in Items
7152         collection).
7153         * ListViewGroup.cs: Add a field to store the starting item number,
7154         which is later used when calculating the layout.
7155
7156         Fixes #360805.
7157
7158 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
7159
7160         * Application.cs: Fixed ProductVersion to fallback to the assembly
7161         version. Fixes regression for bug #325413.
7162
7163 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7164
7165         * ListView.cs: New helper method to retrieve an item in a _specific
7166         display_ position (the items can be displayed in a different order
7167         than one of Items collection).
7168         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
7169         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
7170         specific display position (again remember that items can be sorted
7171         different than Items).
7172
7173 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
7174
7175         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
7176         list and update it when the collection changes.  We were recreating
7177         this several times per row paint and for every pixel the mouse moved
7178         across the grid.
7179         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
7180         changes.
7181
7182 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
7183
7184         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
7185         list to use generics.
7186         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
7187         and remove unneccessay casts.
7188
7189 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
7190
7191         * DataGridViewBand.cs: Add internal way to set displayed variable.
7192         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
7193         * DataGridView.cs: Make sure we always keep track of Displayed
7194         rows and columns, and only draw things that are displayed.
7195
7196 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
7197
7198         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
7199           whether the key events are filtered or not. Introduced
7200           PreFilter() process for this purpose. This fixes atokx3/iiimx
7201           shift state issue.
7202
7203 2008-04-16  Andreia Gaita <avidigal@novell.com> 
7204
7205         * HtmlHistory.cs: Implement Length property
7206
7207 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
7208
7209         * DataGridView.cs: Call EndEdit when a sort is performed so we take
7210         away the edit textbox.  Refactor to reuse column sort code.
7211
7212 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
7213
7214         * MenuAPI.cs: Remove the code that save and restore capture status of 
7215         grab_control, this fixes some Menu and Context menu bugs but maybe it can
7216         cause some others, I cant figure the possible problems of this patch but
7217         right now remove the code looks to be better than keep it. This patch fixes
7218         bugs #357638, #378721 and #379570.
7219
7220 2008-04-12  Andreia Gaita <avidigal@novell.com> 
7221
7222         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
7223         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
7224         add missing properties and event handlers.
7225         
7226 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
7227
7228         * ListBox.cs: Make sure the LargeChange we are setting is at least
7229         zero, to prevent an IOORE.  [Fixes bug #379531]
7230
7231 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
7232
7233         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
7234         in DropDownList mode, for each key-press select the next item 
7235         starting with that letter.
7236         For other modes, when no item selected, on arrow-up/-down and open 
7237         drop-down select the first item matching the text in the textbox.
7238
7239 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
7240
7241         * X11Keyboard.cs : Control.FromHandle() could return null
7242           in MoveCurrentCaretPos().
7243
7244 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7245
7246         * ListView.cs: When changing the size in VirtualMode, also Reset the
7247         selection.
7248         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
7249         changing selection info for VirtualMode.
7250         Fixes #372618.
7251
7252 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7253
7254         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
7255         view, don't use LineLimit for the first item - use NoWrap *always*
7256         instead, since ListView.LabelWrap is not used for this view.
7257         Fixes #378054.
7258
7259 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7260
7261         * Binding.cs: Call UpdateIsBinding when setting control - probably
7262         Binding is already usable and we don't need to wait to check the
7263         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
7264         Created, just like 2.0 does.
7265         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
7266
7267 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7268
7269         * Binding.cs: Just realized we don't need to have a handler for
7270         BindingContextChanged, since this info should be now consumed directly
7271         in the BindingManagerBase. And also, the manager.IsBindingSuspended
7272         state info is checked directly, instead of caching it.
7273
7274         * CurrencyManager.cs: IsSuspended should return always false if Count
7275         == 0.
7276
7277 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7278
7279         * Binding.cs: When calling PushData, return if manager.Count == 0,
7280         since we just don't have data to be read. Also, when setting the
7281         Control for binding, hook up some events to refresh the IsBinding
7282         state when BindingContext change or control gets created; use
7283         Control.IsHandleCreated instead of Control.Created check to set
7284         IsBinding state - we *actually* need to modify IsBinding when control
7285         is created, but we don't have any Created event, only HandleCreated.
7286         Fixes part of #349364.
7287
7288 2008-04-11  Geoff Norton  <gnorton@novell.com>
7289
7290         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
7291         warping a null Caret.
7292
7293 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
7294
7295         * DataGridView.cs: Implement row/column autosizing methods. Implement
7296         autosorting.
7297         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
7298         * DataGridViewRowCollection.cs: Add an internal sorting method.
7299
7300 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
7301
7302         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
7303         value in ListView drawing code.
7304
7305 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
7306
7307         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
7308         is clicked.  Respect the user setting Cancel in FileOk.
7309
7310 2008-04-11  Geoff Norton  <gnorton@novell.com>
7311
7312         * ListView.cs: Avoid setting and resetting control Width/Heights and
7313         calculate the final value and set it once.  Prevents a feedback loop
7314         on the mac.
7315
7316 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
7317
7318         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
7319         [Fixes bug #378869]
7320
7321 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
7322
7323         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
7324           Add some on-the-spot code, but it seems we don't need it.
7325
7326 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
7327
7328         * Form.cs: Add method for DataGridView to trigger focus cues
7329         even when it handles the tab keypress.
7330
7331 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
7332
7333         * DataGridView.cs: More keyboard handling, tab, esc.
7334         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
7335         when at the beginning or end of the text in the text box.
7336
7337 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
7338
7339         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
7340
7341 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
7342
7343         * DataGridView.cs: Some fixups for showing and adding the edit control.
7344         * DataGridViewButtonColumn.cs: Implement ToString.
7345         * DataGridViewCell.cs: Size and position the control simultaneously.
7346         * DataGridViewTextBoxCell.cs: Use base to position control.
7347
7348 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
7349
7350         * DataGridViewCell.cs: Fix up some formatting and painting code.
7351         * DataGridViewImageCell.cs: Implement some NIEX methods.
7352
7353 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
7354
7355         * ToolStripItemCollection.cs: What moving an item from one owner
7356         to another, remove from source owner before adding to destination.
7357         [Fixes bug #378109]
7358
7359 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
7360
7361         * PictureBox.cs: Call Load when ImageLocation is set.
7362         [Fixes bug #378308]
7363
7364 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
7365
7366         * X11Keyboard.cs, XplatUIX11.cs :
7367           Implement over-the-spot mode (with some odd offsets).
7368           - set preedit position when caret is set.
7369           - Wrap XMoveResizeWindow() to move preedit position.
7370
7371 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
7372
7373         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
7374         array lenght.
7375
7376 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
7377
7378         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
7379         and ScanTableIndex public, it fix compilations errors when compiling
7380         WinForms to generate keyboard layout resources.
7381
7382 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
7383
7384         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
7385         different element count than scan table. It prevents some errors in non
7386         standard keyboards.
7387
7388 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
7389
7390         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
7391
7392 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
7393
7394         * DataGridView.cs: Call OnContentClick.
7395         * DataGridViewCell.cs: Do a null check on ValueType instead
7396         of valueType.
7397         * DataGridViewCheckBoxCell.cs: Implement.
7398
7399 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
7400
7401         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
7402
7403 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
7404
7405         * X11Keyboard.cs : Check XGetIMValues() return value in
7406           case it does not return input styles in some environment.
7407
7408 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
7409
7410         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
7411
7412 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7413
7414         * BindingContext.cs: Stub UpdateBinding method.
7415
7416 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
7417
7418         * X11Structs.cs : added couple of structs for XIM support.
7419         * X11Keyboard.cs :
7420           Release XIM in case it failed to create XIC. 
7421           Use consts for XNblah string.
7422           Add support for IM style customization and XIC creation
7423           for preedit-position and preedit-callback.
7424           Right now use MONO_WINFORMS_XIM_STYLE environment variable
7425           (list of: over-the-spot | on-the-spot | root). Only root
7426           mode works so far.
7427
7428           (redoing r99172 with fix.)
7429
7430 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
7431
7432         * TreeView.cs: Center the checkbox a little better.
7433
7434 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
7435
7436         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
7437         Apply very nice patch from Ernesto Carrea that simplifies our
7438         scrollbar drawing.  [From bug #376146]
7439
7440 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
7441
7442         * TreeView.cs: Correct the location of the root node checkbox when
7443         ShowRootLines = false.  Don't draw the root lines for the root node
7444         when ShowRootLines = false.  [Fixes bug #377535]
7445
7446 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
7447
7448         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
7449         Fixed line endings.
7450         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
7451         line endings.
7452         * MaskedTextBox.cs: Added missing attribute. Code formatting.
7453         * PageSetupDialog.cs: Added missing attribute. Code formatting.
7454         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
7455         * ImeMode.cs: Added missing field.
7456         * HtmlWindow.cs: Code formatting. Fixed line endings.
7457         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
7458         warnings.
7459         * HtmlHistory.cs: Code formatting. Fixed line endings.
7460         * HtmlDocument.cs: Code formatting. Fixed line endings.
7461         * ToolStripPanel.cs: Added missing IList implementation.
7462         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
7463
7464 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
7465
7466         * BindingContext.cs: Changed argument names to fix corcompare errors.
7467         * DataGridView.cs: Removed extra explicit interface implementation
7468         of IDropTarget. Code formatting.
7469         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
7470         * ComboBox.cs: Changed argument names to fix corcompare errors.
7471         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
7472         errors.
7473         * GridColumnStylesCollection.cs: Changed argument names to fix
7474         corcompare errors. Removed extra tabs.
7475         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
7476         errors.
7477         * Control.cs: Changed argument names to fix corcompare errors. Code
7478         formatting. Removed extra explicit IList implementation.
7479         * TextBox.cs: Changed argument names to fix corcompare errors. Code
7480         formatting. Use string.Empty instead of "".
7481         * GridItemCollection.cs: Changed argument names to fix corcompare
7482         errors. Code formatting.
7483         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
7484         corcompare errors. Code formatting.
7485         * ImageList.cs: Changed argument names to fix corcompare errors.
7486         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
7487         * DataGridViewRowCollection.cs: Changed argument names to fix
7488         corcompare errors. Code formatting.
7489         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
7490         * DataGridViewSelectedCellCollection.cs: Changed argument names to
7491         fix corcompare errors. Code formatting.
7492         * DataGridViewComboBoxCell.cs: Changed argument names to fix
7493         corcompare errors. Code formatting.
7494         * LinkLabel.cs: Changed argument names to fix corcompare errors.
7495         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
7496         formatting.
7497         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
7498         Code formatting.
7499         * BindingSource.cs: Changed argument names to fix corcompare errors.
7500         Removed extra explicit interface implementations.
7501         * DataGridViewSelectedRowCollection.cs: Changed argument names to
7502         fix corcompare errors. Code formatting.
7503         * ToolStripItemCollection.cs: Removed extra explicit interface
7504         implementation of IList.ReadOnly.
7505         * DataGridViewColumnCollection.cs: Changed argument names to fix
7506         corcompare errors. Code formatting.
7507         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
7508         * ListView.cs:  Changed argument names to fix corcompare errors.
7509         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
7510         errors.
7511         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
7512         errors.
7513         * ListBindingHelper.cs: Changed argument names to fix corcompare
7514         errors.
7515         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
7516         fix corcompare errors. Code formatting.
7517         * ToolStripPanel.cs: Removed extra explicit implementation of
7518         IDropTarget interface.
7519         * ListBox.cs: Changed argument names to fix corcompare errors. Code
7520         formatting. Removed extra tabs and spaces.
7521         * DataGridViewCellCollection.cs: Changed argument names to fix
7522         corcompare errors.
7523         * Help.cs: Changed argument names to fix corcompare errors. Code
7524         formatting.
7525         * TabControl.cs: Changed argument names to fix corcompare errors.
7526         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
7527         errors.
7528         * TableLayoutSettings.cs: Changed argument names to fix corcompare
7529         errors.
7530
7531 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7532
7533         * ListBindingHelper.cs: When returning properties, only return those
7534         that are browsable. Also, don't do a linear search of the properties,
7535         but use the indexer of the PropertyDescriptorCollection class.
7536
7537 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7538
7539         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
7540         Dictionary containing the related (child) currency managers. Also,
7541         when setting DataSource, add datasource to our List if it is not a list.
7542
7543 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
7544
7545         * PropertyGridTextBox.cs: Fix background color of the buttons.
7546         * PropertyGridView.cs: Make the entry less jumpy.
7547
7548 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
7549
7550         * PropertyGrid.cs: Fix unused variable warnings.
7551
7552 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
7553
7554         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
7555         double-click. It expanded it once in the mouse down and then 
7556         again in the double-click handler.
7557
7558 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
7559         
7560         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
7561         TypeConverter and UITypeEditors.
7562
7563 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
7564
7565         * Control.cs: Visibility should be set synchronously, 
7566         so we must also redraw once it is and not rely on layouting or 
7567         other code to repaint.
7568         [Fixes bug #339898]
7569
7570 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
7571
7572         * DataGridViewCell.cs: Respect DataGridView.GridColor.
7573
7574 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
7575
7576         * Control.cs: Invalidate when the alpha channel is less than 255,
7577         not only when control is transparent.
7578
7579 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
7580
7581         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
7582         Implement some painting convenience methods that threw NIEX.
7583
7584 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
7585
7586         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
7587         * DataGridViewLinkCell.cs: Implement.
7588
7589 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
7590
7591         * GridEntry.cs: Report the conversion exception error description.
7592         [Fixes bug #375792]
7593
7594 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
7595
7596         * PropertyGridView.cs: Do not scroll to item on resize.
7597         [Fixes bug #375789]
7598
7599 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7600
7601         * BindingContext.cs: When retrieving a BindingManagerBase, if the
7602         dataSource parameter is ICurrencyManagerProvider, then return
7603         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
7604         instead of creating a new one.
7605
7606 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7607
7608         * BindingSource.cs: Implement support for Type instances as
7609         DataSource.
7610
7611 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
7612
7613         * DataGridView.cs: Minor cleanups and call CellMouseUp.
7614         * DataGridViewCell.cs: Make some painting routines internally virtual.
7615         * DataGridViewButtonCell.cs: Implement.
7616
7617 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
7618
7619         * Control.cs: We always need to invalidate our children with
7620         transparent backgrounds when we are invalidated.
7621         [Fixes bug #376081]
7622
7623 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7624
7625         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
7626         and CancelCurrentEdit on CurrencyManager respectively. Implement
7627         support for ICancelAddNew too.
7628
7629 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7630
7631         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
7632         call EndNew/CancelNew if list is ICancelAddNew.
7633
7634 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
7635
7636         * DataGridView.cs: Guard against an exception while painting
7637         if there are no rows.
7638
7639 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
7640
7641         * DataGridView.cs: Implement a bunch of keyboard commands.
7642
7643 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
7644
7645         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
7646         isn't set, don't call OnPaint.  [Fixes bug #375300]
7647
7648 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7649
7650         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
7651         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
7652         hookup the remaining events related to CurrencyManager, and fire
7653         OnListChanged also for the Clear () method.
7654
7655 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7656
7657         * BindingSource.cs: Use Current and Position implementations in
7658         CurrencyManager instead of using our own routines, since we need 
7659         to be in synch with it. Count should NEVER return a -1 value, and 
7660         also report ListChanged events for both simple IList data 
7661         sources (manually) as well for IBindingList ones (by hooking up an
7662         event handler for it).
7663
7664 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7665
7666         * BindingSource.cs: Make one .ctor call the another, to avoid
7667         duplicate code. Add the CurrencyManager property, and also for AddNew
7668         throw the proper exceptions and show better error messages.
7669
7670 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7671
7672         * ComboBox.cs: Only adjust selectedindex if Handle has been
7673         created.  Fixes failing test.
7674
7675 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7676
7677         * ComboBox.cs: Adjust selectedindex if we insert a new item
7678         above the current selectedindex in a sorted ComboBox.
7679         [Fixes bug #374654]
7680
7681 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7682
7683         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
7684         [Fixes bug #374712]
7685
7686 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7687
7688         * DataGridViewTextBoxCell.cs: Implement stuffs.
7689
7690 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7691
7692         * TreeView.cs: Create the scrollbars even earlier to be
7693         double dog certain they are created before they are accessed.
7694
7695 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7696
7697         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
7698
7699 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7700
7701         * ScrollBar.cs: Create an internal safe Value setter so we
7702         won't crash if we try to set a value outside the min and max.
7703         * TextBoxBase.cs: Use safe value setter to guard against a
7704         potential NRE that is being reported by Reflector.
7705
7706 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7707
7708         * TreeView.cs: Create the scrollbars earlier in the constructor
7709         to attempt to guard against an NRE in SetTop in Reflector.
7710
7711 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7712
7713         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
7714         DataGridViewRowCollection.cs: Do not scroll column and row headers,
7715         show messagebox on data format error, use column display index
7716         correctly, make sure HitTest supports new layout stuff,
7717         make sure scrollbars support new layout stuff.
7718
7719 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
7720
7721         * XplatUIX11.cs : Patch by Doug Rintoul.
7722           For some IM engines, keypress events need to delay call
7723           to XPending() and XNextEvent() in the loop so that it
7724           does not mess the orders in XIM commit callback.
7725           Some KeyRelease events such as shift keys need to be
7726           processed both in the IM engine and winforms driver
7727           itself since winforms holds its own state check.
7728
7729           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
7730
7731 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
7732
7733         * X11Keyboard.cs, XplatUIX11.cs :
7734           add primitive support for XIM input support (preedit-
7735           nothing and status-nothing). It requires precise event
7736           capturing (XSelectInput/"filterEvents") and different
7737           call to XFilterEvent against root window.
7738           Get composed string and send dummy WM_IME_COMPOSITION.
7739           Free XIM and XIC instances in finalizer.
7740
7741           (This first patch does not include suggested changes
7742            by Doug Rintoul. It will follow.)
7743
7744 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7745
7746         * DataGridView.cs: When binding to a property, if the property
7747         doesn't have a setter, set the column to readonly.
7748         [Fixes bug #343965]
7749
7750 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7751
7752         * ComboBox.cs: Guard against NRE if an arrow key is hit while
7753         we aren't dropped down.  Support Home/End in DropDownList mode.
7754         [Fixes bug #371990]
7755
7756 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7757
7758         * TreeNodeCollection.cs: Don't increment count until we've
7759         saved our index to return.
7760         [Fixes bug #373603]
7761
7762 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7763
7764         * Label.cs: Add padding to the label's AutoSize calculation.
7765         [Fixes bug #373792]
7766
7767 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7768
7769         * ListBindingHelper.cs: Actually implement GetListName method.
7770
7771 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7772
7773         * BindingSource.cs: Throw the propert expceptions for some methods, as
7774         well as detect the list item type for Add method if DataSource is null.
7775
7776 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7777
7778         * DataGridViewCell.cs: I don't know why I commented this out,
7779         putting it back for now.
7780
7781 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7782
7783         * DataGridViewCell.cs: Remove storage for owning column, just
7784         use column index.
7785         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
7786         * DataGridViewColumnHeaderCell.cs: If the header text has been
7787         explicitly set, return it.
7788         [Fixes bug #325979]
7789
7790 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7791
7792         * DataGridViewRowCollection.cs: Disable row sharing when
7793         using data binding.  Its a great feature, but lets work on
7794         getting DGV usable first before we worry about optimizations.
7795
7796 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7797
7798         * BindingSource.cs: When resetting our internal list, compute list
7799         item type information to be used for indirect list access. Also
7800         implement/tune some properties and methods related to the list access
7801         too.
7802         * ListBindingHelper.cs: Add a stub for GetListName method, used from
7803         BindingSource.
7804
7805 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7806
7807         * DataGridView.cs: If RowCount is increased while ColumnCount
7808         is zero, add a column.  [Fixes bug #331649]
7809
7810 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7811
7812         * DataGridViewRowCollection.cs: When adding new rows for
7813         databinding, make sure they are place before the add row.
7814         [Fixes bug #343961]
7815
7816 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7817
7818         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
7819         instead of Index order.
7820
7821 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7822
7823         * DataGridView.cs: If columns are added by increasing ColumnCount,
7824         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
7825         [Fixes bug #325588]
7826
7827 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7828
7829         * DataGridView.cs: Turn off and on the "new row" when 
7830         AllowUserToAddRows is toggled.  When the handle is created,
7831         set current cell and selected cell/row/col.
7832
7833 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7834
7835         * ComboBox.cs: When navigating the drop down by keyboard, we
7836         need to scroll the list box if our selection moves out of the
7837         currently shown items.  [Fixes bug #371990]
7838
7839 2008-03-24  Luke Page <luke.a.page@gmail.com>
7840
7841         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
7842         on the control. Also now handles unicode compatibility characters and
7843         stores the unicode compatibility length on the stack. Fixes Bugs
7844         #355198 and #366436.
7845
7846 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7847
7848         * BindingSource..cs: Take into account DataMember when re-creating the
7849         List property, and also create a specific kind of list as needed.
7850
7851 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7852
7853         * ListBindingHelper.cs: Add a new case for GetList () method - when we
7854         get an empty IEnumerable, try to detect whether the datamember is
7855         valid or not for that type, if true, return null, and throw exception
7856         otherwise.
7857
7858 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
7859
7860         * ComboBox.cs: Alt-Down should drop down the list, Esc should
7861         retract it.  [Fixes bug #371989]
7862
7863 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
7864
7865         * PropertyGrid.cs: Initialize the sorting button as pushed.
7866
7867 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
7868
7869         * PropertyGrid.cs: 
7870          - Visually select the PropertyTab.
7871          - Filter Properties by Attributes properly.
7872
7873 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7874
7875         * MenuItem.cs: Remove menu item from parent when disposed.
7876         [Fixes bug #372845]
7877
7878 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7879
7880         * ToolBar.cs: Don't reset layout_type if Dock = None.
7881
7882 2008-03-21  Andreia Gaita <avidigal@novell.com> 
7883
7884         * UserControl.cs: Select the first available control when we get focus.
7885           Fixes #372616
7886
7887 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7888
7889         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
7890         the content if we are in edit mode.  [Fixes bug #343964]
7891
7892 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7893
7894         * DataGridViewCell.cs: Fix border painting for column headers.
7895
7896 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7897
7898         * BindingSource.cs: When setting or resetting data source,
7899         use ListBindingHelper.GetList () method, since it will get the list in
7900         case datasource is IListSource.
7901
7902 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
7903
7904         * DataGridViewCell.cs: Implement lots more stuffs.
7905
7906 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7907
7908         * PropertyGridView.cs, GridEntry.cs: Implement support for 
7909         UITypeEditor.IsDropDownResizable.
7910
7911 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
7912
7913         * DataGridViewCell.cs: Remove unused variables, improve how
7914         several of the property getters work.
7915         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
7916         get its size from the parent row/col.
7917
7918 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7919
7920         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
7921         user alters manually the PropertyTabs collection via the 
7922         PropertyTabs property.
7923
7924 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7925
7926         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
7927         new tests for them to be sure to be compatible with .net.
7928
7929 2008-03-20  Andreia Gaita <avidigal@novell.com> 
7930
7931         * WebBrowserBase.cs: Fix attributes, add events
7932         * WebBrowser.cs: Fix Padding signature
7933
7934 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7935
7936         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
7937
7938 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
7939
7940         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
7941         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
7942         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
7943         passes the new suite of tests for it.
7944
7945 2008-03-18  Andreia Gaita <avidigal@novell.com> 
7946
7947         * WebBrowser.cs: Add missing attributes, missing Padding and
7948           DefaultSize properties, remove extraneous getters
7949
7950 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7951
7952         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
7953         method overloads.
7954
7955 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7956
7957         * ComboBox.cs: Move resetting the selected index to keypress
7958         instead of textchanged.  Changing the text programmatically
7959         should not trigger resetting the selected index.  Fixes test.
7960
7961 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7962
7963         * ComboBox.cs: When the user types into the textbox, reset
7964         the selected index to -1.  [Fixes bug #371672]
7965
7966 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7967
7968         * FileDialog.cs: Support Control-A for selecting everything
7969         in an OpenFileDialog.  [Fixes bug #371564]
7970
7971 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
7972
7973         * DataGridView.cs: When row/column visible/height properties
7974         change, invalidate.  Take the NIEX out of InvalidateRow/Column
7975         etc.  We don't support them yet, but we can just invalidate
7976         everything until we do support them.  (Added MonoTODO).  Set
7977         proper control styles.
7978         * DataGridViewRow.cs: Don't call PaintHeader if row headers
7979         are turned off. 
7980
7981 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7982
7983         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
7984
7985 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7986
7987         * DataGridViewRow.cs: Only paint the white background in
7988         cell bounds, the row bounds extends past the cells if the 
7989         grid width isn't as wide as the DGV.
7990
7991 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7992
7993         * DataGridView*: Completely revamp the drawing to match the
7994         public API.  Our grids now look better, and call all the
7995         appropriate methods and event to allow users to override
7996         the painting and do their own.
7997
7998 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7999
8000         * ListBindingHelper.cs: Implement 2.0 GetList methods.
8001
8002 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
8003
8004         * DataGridView.cs: Implement BorderStyle.
8005
8006 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
8007
8008         * FileDialog.cs: Apply patch from Andy Hume: Any time we
8009         are comparing attributes, make sure we only look at the
8010         one we are interested.  These calls were failing if there
8011         were more than one attribute.
8012         [Fixes bug #370385]
8013
8014 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
8015
8016         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
8017
8018 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
8019
8020         * PageSetupDialog.cs: Stub EnableMetric.
8021         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
8022         * PrintPreviewDialog.cs: Add ProcessDialogKey,
8023         ProcessTabKey.
8024
8025 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
8026
8027         * MonthCalendar.cs: Remove unused variable.
8028
8029 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
8030
8031         * DataGridView*.cs: corcompare stuffs.
8032
8033 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
8034
8035         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
8036         The savings aren't worth the extra code to fix the optimization.
8037         [Fixes bug #368585]
8038
8039 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
8040
8041         * ToolBar.cs: Always call base.Dock in the Dock override so that
8042         Control's layout_type gets reset correctly.
8043         [Fixes bug #368882]
8044
8045 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
8046
8047         * X11Dnd.cs: End DnD operation also for the middle mouse button.
8048
8049 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
8050
8051         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
8052         at the same time we do explicit ones, because we have to give all
8053         other controls on the container a chance to handle explicit ones
8054         first.  If no one has an explicit mnemonic, then we can let the
8055         MenuStrip have a shot at implicit mnemonics.
8056         * MenuStrip.cs: Create an implicit mnemonic function.
8057         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
8058         mnemonics for MenuStrips.
8059         [Fixes bug #368493]
8060
8061 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
8062
8063         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
8064         DataGridColumnStyle.cs: corcompare stuffs.
8065
8066 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8067
8068         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
8069         Details - This is needed after we added the bits to use any available
8070         column also for List and SmallIcon view. 
8071
8072 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8073
8074         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
8075         at the proper place, not only when changing SelectedIndex and changing
8076         the selection using keys/mouse, as .net does.
8077
8078 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8079
8080         * ControlBindingsCollection.cs: Implement last 2.0
8081         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
8082         in the new 2.0 Add methods.
8083
8084 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8085
8086         * ListBox.cs: When calling SelectedIndexCollection.Clear,
8087         return if no items are previously selected - this is done to avoid 
8088         firing OnSelectedIndexChanged without need to do so. Also,
8089         when creating handle ensure that the focused item is visible (as
8090         .net does).
8091
8092 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8093
8094         * ListBox.cs: Rewrote/refactored most of selection code. We require
8095         the following things in selection: a) keep selection sorted (both
8096         indices and items), b) SelectedIndices automatically detect the
8097         selection mode, c) SelectedIndex should be the first selected item
8098         index, d) Need to Focus/adjust scroll bar when selecting a new item,
8099         not only for SelectedIndex, which is specially important in Multi*
8100         selection modes. To achieve this we are moving the selection core to
8101         SelectedIndexCollection and make depend all selection modifications on
8102         it.
8103         Fixes #366438.
8104
8105 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
8106
8107         * ToolStrip.cs: Enable implicit mnemonics for drop down
8108         menu strips.  [Fixes part of bug #367692]
8109
8110 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
8111
8112         corcompare - fix parameter names [stragglers].
8113         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
8114         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
8115         TabControl.cs.
8116
8117 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
8118
8119         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
8120         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
8121         mnemonic, let the ToolStripManager have it even if it doesn't
8122         have a matching mnemonic.
8123         [Fixes bug #367499]
8124
8125 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
8126
8127         corcompare - fix warning about implicit implementation
8128         * ToolStrip.cs: Add IToolStripData interface.
8129         * IToolStripData.cs: Add.
8130
8131 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
8132
8133         corcompare - fix warning about implicit implementation
8134         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
8135         * IBounds.cs: Add.
8136
8137 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
8138
8139         corcompare - fix parameter names [N-Z].
8140         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
8141         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
8142         PropertyManager.cs, RichTextBox.cs,
8143         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
8144         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
8145         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
8146         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
8147         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
8148         ToolStripContentPanel.cs, ToolStripDropDown.cs,
8149         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
8150         ToolStripPanel.cs, ToolStripSeparator.cs,
8151         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
8152         UICuesEventHandler.cs, UpDownBase.cs.
8153
8154 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
8155
8156         corcompare - fix parameter names [G-M].
8157         GridColumnStylesCollection.cs, GridItemCollection.cs,
8158         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
8159         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
8160         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
8161         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
8162         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
8163
8164 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
8165
8166         corcompare - fix parameter names [A-F].
8167         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
8168         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
8169         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
8170         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
8171         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
8172         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
8173         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
8174
8175 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
8176
8177         * GridEntry.cs: Do not convert not only if the types match, 
8178         but also if the property type is assigneable from the value's
8179         type.
8180         [Fixes bug #366566]
8181
8182 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
8183
8184         * PropertyGridView.cs: 
8185          - Subscribe to the listbox only once and not everytime.
8186          - Update the textbox even if SetValue fails.
8187          - Close the listbox before calling TrySetValue just in case.
8188          [Fixes bug #366569]
8189
8190 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
8191
8192         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
8193
8194 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8195
8196         * ListView.cs: Implement support for custom column width based on
8197         Columns collection (we were previously using this collection only
8198         with Details view).
8199         Fixes #364484.
8200
8201 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8202
8203         * ListViewItem.cs: For Tile view, always set bounds for the first
8204         subitem (which is the main one), and also don't let Width be larger
8205         than ListView.TileSize.Width. Improve code readibility also.
8206         * ThemeWin32Classic.cs: When painting the ListViewItem instances
8207         in Tile view, _always_ use the NoWrap flag.
8208         Fixes #360798.
8209
8210 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
8211
8212         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
8213         in case.
8214         * GridEntry.cs: For MS compitability make all child properties 
8215         readonly if the parent is readonly. Ugh.
8216         [Fixes bug #365945 and #365944]
8217
8218 2008-02-29  Andreia Gaita <avidigal@novell.com> 
8219
8220         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
8221           relative to the history
8222
8223 2008-02-29  Andreia Gaita <avidigal@novell.com>
8224
8225         * HtmlElement.cs: More handlers for mouse and key events
8226
8227 2008-02-28  Andreia Gaita <avidigal@novell.com>
8228
8229         * WebBrowserBase.cs: MouseClick sig changed.
8230         * HtmlHistory.cs: Implement history navigation
8231         * HtmlElement.cs: Add event handlers, and connect them.
8232
8233 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
8234
8235         * GridEntry.cs: 
8236          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
8237            so that DisplayNameAttribute doesn't get ignored.
8238          - Check for ParenthesizeNameAttribute and parenthesize the Label.
8239          - Add support for PasswordPropertyTextAttribute
8240         * PropertyGridView.cs: Check if an entry is a password.
8241         [Fixes bugs #365589, #365586, #365588]
8242
8243 2008-02-28  Andreia Gaita <avidigal@novell.com>
8244
8245         * PropertyGridView.cs: Revert the message filtering change, as we
8246         need it to block after all. Remove block parameter, unnecessary.
8247
8248 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
8249
8250         * UserControl.cs: Better implementation of GetPreferredSize.
8251         First step to fixing bug #361441.
8252
8253 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8254
8255         * Binding.cs: Actually implement data binding support for 
8256         classes implementing IBindableComponent.
8257         * ControlBindingsCollection.cs: Likewise.
8258
8259 2008-02-26  Andreia Gaita  <avidigal@novell.com>
8260
8261         * PropertyGridView.cs: Use a message filter to check when to 
8262         close the dropdown
8263
8264 2008-02-26  Andreia Gaita  <avidigal@novell.com>
8265
8266         * Application.cs: Change the message_filters loop so a filter 
8267         can be removed while looping.
8268
8269 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
8270
8271         * GridEntry.cs: Optimization in ToggleValue so that it caches
8272         the current value.
8273         * PropertyGridView.cs: An optimization so that the property isn't 
8274         re-read twice for each StandardValue added to the drop-down menu.
8275         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
8276         license.
8277         [Fixes bug #362755]
8278
8279 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
8280
8281         * Application.cs: Apply patch from Justin Cherniak to match
8282         MS better for ProductName, ProductVersion, and CompanyName.
8283         [Fixes bug #361709]
8284
8285 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8286
8287         * Binding.cs: Actually implement 2.0 NullValue property. Also
8288         when changing the formatting related properties, only update the state
8289         if formatting_enabled is true (we don't mind otherwise).
8290
8291 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
8292
8293         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
8294         [Fixes bug #364486]
8295
8296 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
8297
8298         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
8299         of GetType on the current value as it uses reflection to 
8300         determine the type. This fixes the case where the new value is 
8301         null. 
8302
8303 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
8304
8305         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
8306         past the view.
8307
8308 2008-02-24  Luke Page  <luke.a.page@gmail.com>
8309
8310         * Line.cs, TextControl.cs: Implement offset x and y so that a
8311         document doesn't have to begin  at (0,0) on the viewpoint.
8312         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
8313         bars and switches the text alignment (and therefore is now
8314         implemented for textbox). Fixes #321383.
8315
8316 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8317
8318         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
8319         properties. Also when changing FormattingEnabled update the control
8320         property -as .Net does-.
8321
8322 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
8323
8324         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
8325         * Binding.cs: Add stubs for the overloads of the Add method in
8326         CBCollection.
8327
8328 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8329
8330         * Binding.cs: PullData () returns a false value if we got an exception.
8331         Also when validating the control and we get an error, instead of
8332         setting the value of the previous one, cancel the event (tested in 1.1
8333         and 2.0).
8334
8335 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
8336
8337         * TreeView.cs: Make selected_node and highlighted_node internal.
8338         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
8339         to null when Nodes.Clear is called.
8340         [Fixes bug #363884]
8341
8342 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
8343
8344         * FontDialog.cs: Ensure that when the Font is set in code,
8345         all the gui pieces are updated accordingly.
8346         [Fixes bug #361020]
8347
8348 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
8349
8350         * TextRenderer.cs: Respect proposed size for MeasureString.
8351         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
8352         autosize, use a proposed width to force wrapping for long text.
8353         [Fixes bug #360981]
8354
8355 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
8356
8357         * TreeView.cs: Factor in checkboxes = false and state images in
8358         to HitTest.  [Fixes bug #363360]
8359
8360 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
8361
8362         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
8363         when drawing the selected range.
8364         [Fixes bug #363648]
8365
8366 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
8367
8368         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
8369         ResizeRedraw control styles.
8370         [Fixes bug #363555]
8371
8372 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
8373
8374         * TreeView.cs: StateImages are basically custom checkboxes, so
8375         factor their size the same as real checkboxes when determining
8376         what got clicked.
8377         [Fixes bug #363367]
8378
8379 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
8380
8381         * MessageBox.cs: Make the message box wider if the form caption
8382         is longer than the text in the form.
8383         [Fixes bug #361137]
8384
8385 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
8386
8387         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
8388
8389 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
8390
8391         * TreeNode.cs: Guard against an NRE when the parent's
8392         StateImageList hasn't been set.
8393         [Fixes bug #363353]
8394
8395 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
8396
8397         * SplitContainer.cs: Add SupportsTransparentBackColor and
8398         OptimizedDoubleBuffering control styles.
8399         [Fixes bug #363303]
8400
8401 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
8402
8403         * Application.cs: For the app data paths and the registry key paths,
8404         ensure they are created before returning them to the user.
8405         [Fixes bug #361709]
8406
8407 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
8408
8409         * Application.cs: Guard against an NRE in CompanyName and
8410         ProductName.
8411
8412 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
8413
8414         * Application.cs: For CompanyName, ProductName, and ProductVersion,
8415         make sure we handle all three cases correctly: attribute is present,
8416         attribute is present but is an empty string, and attribute is not
8417         present.
8418
8419 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
8420
8421         * PropertyGridView.cs: 
8422          - Fix a NRE that caused a test failure
8423          - Another performance improvement - cache the standard values
8424          listbox.
8425
8426 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
8427
8428         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
8429         code paths.
8430
8431 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
8432
8433         * PropertyGridView.cs: Fix a big performance bug.
8434
8435 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
8436
8437         * SelectionRange.cs: Apply patch from Andy Hume to make
8438         constructor behavior more accurate.  [Fixes bug #362117]
8439
8440 2008-02-19  Andreia Gaita <avidigal@novell.com> 
8441
8442         * Control.cs: Added a new flag is_disposing to track if the
8443         window is currently in the process of being disposed of.
8444         This is used so that, when firing visibility changes triggered
8445         by unparenting controls during Dispose, the control doesn't
8446         get created again.      
8447
8448 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
8449
8450         * ComboBox.cs: Set height to preferred height when the handle
8451         is created.  [Fixes bug #360862]
8452
8453 2008-02-18  Andreia Gaita <avidigal@novell.com>
8454
8455         * XplatUIX11.cs: Create FosterParent with border width at 0.
8456         With the previous value of 4, everytime a control got reparented
8457         from parent = null, it's location would be shifted right and 
8458         down by 4, since these coordinates would be offset by the 
8459         FosterParent's border width.
8460
8461 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
8462
8463         * Control.cs: During diposing firstly remove ourselfes from
8464         the parent and *then* destroy our handle, because removing
8465         ourselfes from the parent controls collection causes 
8466         VisibilityChange, etc events, which require a handle and end
8467         up recreating the control.
8468
8469 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
8470
8471         * GridEntry.cs: Set expanded state before notifying that the
8472         expansion has taken place.
8473         * PropertyGridView.cs:
8474          - Set the propertygridtextbox text to the selected 
8475          StandardValue before proceeding to setting it.
8476          - Scrolling bugfixes.
8477
8478 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
8479
8480         * GridEntry.cs:
8481          - Fix ValueText to not return null.
8482          - Fix conversion error reporting to actually happen.
8483         * PropertyGridView.cs: Set entry only if the text has changed.
8484         [Fixes bug #362116]
8485
8486 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
8487
8488         * GridEntry.cs: 
8489          - Fix handling of a null current value.
8490          - Swallow editor exceptions.
8491         [Fixes bug #362114]
8492
8493 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
8494
8495         * PropertyGrid.cs: Clear current items first thing before 
8496         repopulating subitems.
8497         * GridEntry.cs: 
8498          - Handle null StandardValuesCollection.
8499          - Mark as not editable if there is no PropertyDescriptor and
8500          if the Converter cannot convert from string.
8501         [Part of fix for bugs #360666 and #358332]
8502
8503 2008-02-15  Luke Page  <luke.a.page@gmail.com>
8504         * MaskedTextBox.cs: Now skips non editable characters after a
8505         character has been entered and we are progressing to the next
8506         position in the MaskedTextBox.
8507
8508 2008-02-15  Luke Page  <luke.a.page@gmail.com>
8509         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
8510         that it changes the selection rather than just repositioning the
8511         cursor. Fixes Bug #360873.
8512
8513 2008-02-15  Luke Page  <luke.a.page@gmail.com>
8514         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
8515         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
8516         correctly. See #359330
8517
8518 2008-02-15  Andreia Gaita <avidigal@novell.com>
8519
8520         * XplatUIX11.cs: If the handle is null when posting a message, use the
8521         current thread queue to post instead. Fixes #332409
8522
8523         * SendKeys.cs: Slight optimization
8524
8525 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
8526
8527         * PropertyGrid.cs, PropertyGridView.cs:
8528         Fix multiple scrolling and sizing issues.
8529         [Fixes bug #359199]
8530
8531 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
8532
8533         * PropertyGridView.cs: Ensure that drop down editors are shown
8534         in the WorkingArea of the screen.
8535         [Fixes bug #359807]
8536
8537 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
8538
8539         * GridEntry.cs: Fail silently when UITypeEditor is missing.
8540         [Fixes bug #360666]
8541
8542 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8543
8544         * Binding.cs: Implement 2.0 DataSourceNullValue property.
8545
8546 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
8547
8548         * PropertyGridView.cs:
8549          - Clear the controls in the drop down form after it is hidden.
8550          - Fix Width sizing of the dropdown editors to match MSFT.
8551
8552 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
8553
8554         * PropertyGridView.cs: 
8555          - Fix height for drawing the grid entry
8556          text value, so that it clips multiline text properly.
8557          - Fix unfocusing to match MSFT.
8558
8559 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
8560
8561         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
8562         Fixes a bug where on repopulation after value changed items become
8563         expandable.
8564
8565 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8566
8567         * Binding.cs: For the 2.0 profile, look for a 
8568         'PropertyChanged' event in the target control, and add checks for
8569         DataSourceUpdateMode property to change -or not- the data source
8570         from validation/control property change.
8571
8572 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
8573
8574         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
8575           not compare struct with null in 2.0).
8576
8577 2008-02-10  Luke Page <luke.a.page@gmail.com>
8578
8579         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
8580         updates the provider and if not using a provider, uses the internal document
8581         class implementation of password char. Also when showing text, uses display string
8582         from the provider, instead of the actual text.
8583
8584 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8585
8586         * Binding.cs: Ooooops, forgot to take into account the data_source
8587         and binding_member_info null case (it was breaking the Binding tests).
8588
8589 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8590
8591         * Binding.cs: Implement support for data source changes exposed by
8592         'PropertyNameChanged' events, and update the control property as
8593         needed.
8594
8595 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8596
8597         * Binding.cs: Implement 2.0 WriteValue method.
8598
8599 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
8600
8601         Commit patch from James Purcell for better AutoScale implementation:
8602
8603         * ScaleControl should call GetScaledBounds with the control's total size rather
8604         than client size.  GetScaledBounds should handle ignoring the borders in its
8605         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
8606         (for the most part they just call the base code now since that is fixed).
8607         * Added ScaleChildrenInternal to allow controls to disable scaling of children
8608         without having to override ScaleChildren (since none of .NET's controls do). 
8609         This is required for most controls in Mono that have scrollbars to prevent the
8610         scrollbars from being moved/resized.
8611         * Nested ContainerControls can have a different scale mode than their parent. 
8612         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
8613         designer produce different results both of which look incorrect).
8614         * Default AutoScaleMode for ContainerControl should be Inherit.
8615         * Simplified workaround for ComboBox scaling issue.
8616         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
8617         1.0 style auto scaling should scale the whole control's size instead of
8618         ignoring the borders (except for Form) and the rounding is done differently to
8619         preserve control alignment.
8620         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
8621         GetAutoScaleSize.
8622         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
8623         * CurrentAutoScaleDimensions should round the estimated character width instead
8624         of truncating.
8625         * ListBox's GetScaledBounds should always use the height it was set to instead
8626         of the height that was passed in.  This prevents rounding errors from
8627         accumulating quickly with IntegralHeight.
8628         [Bug #359098]
8629
8630 2008-02-08  Andreia Gaita <avidigal@novell.com>
8631
8632         * Form.cs: Add a null check (darn it). 
8633
8634 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
8635
8636         * MdiClient.cs: Make sure the requesting form actually owns the
8637         control menu items before removing them.  Also, use
8638         Suspend/ResumeLayout when adding or removing items so we only
8639         layout once.
8640         [Fixes bug #359887]
8641
8642 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
8643
8644         * Control.cs: Guard against an NRE in ShowFocusCues.
8645         [Fixes bug #359830]
8646
8647 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8648
8649         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
8650         property, as well as stubbing DataSourceUpdateMode.
8651
8652 2008-02-08  Andreia Gaita <avidigal@novell.com>
8653
8654         * Form.cs: When closing forms, get focus back to the active control of the
8655         active form. [Fixes #341314, corner case]
8656         
8657 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8658
8659         * MdiClient.cs: After we move the scrollbars, invalidate the NC
8660         area, so any old scrollbar artifacts are cleaned up.
8661         [Fixes bug #336305]
8662
8663 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8664
8665         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
8666         for our menus, display that control box menu instead of the 1.1
8667         menu one.
8668
8669 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8670
8671         * MdiControlStrip.cs: Add property to access the mdi form tied to
8672         each toolstripitem.
8673         * MdiClient.cs: Be smarter about removing and adding toolstripitems
8674         to the implicitly merged menu.  Every time we clicked the form, items
8675         were getting removed and the re-added, causing the form to jump around
8676         as the menu resized.
8677
8678 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8679
8680         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
8681         was being reset by the implicit menu merge for menustrips.
8682         [Fixes bug #336296]
8683
8684 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8685
8686         * Form.cs: Don't do the previous change when WindowState = Normal,
8687         or it messes up where the window is placed.  Fixes test failure.
8688
8689 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8690
8691         * Form.cs: When becoming visible, if we are an MDI child, call
8692         SetWindowState with a dummy old_state so that changes will actually
8693         be made.
8694         [Fixes the 2nd part of bug #325473]
8695
8696 2008-02-07  Andreia Gaita <avidigal@novell.com>
8697
8698         * Control.cs: Reset properties to their pre parent-change values in case
8699         the new parent == null (in which case we're basically removing the control, 
8700         and don't want any events fired due to fake property changes)
8701         [Fixes #355850]
8702
8703 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
8704
8705         * PropertyGridView.cs: 
8706          - Refactor SetValue to allow setting the value
8707         when a custom editor is used, but the entry is not editable.
8708          - Remove the custom editor control on CloseDropDown.
8709         [Fixes #359196]
8710
8711 2008-02-06  Andreia Gaita <avidigal@novell.com>
8712
8713         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
8714         reflection only on 1.1, this property is public on system.drawing on 2.0.
8715         Fixed #359247
8716
8717 2008-02-06  Andreia Gaita  <avidigal@novell.com>
8718         
8719         * WebBrowser.cs: Do a normal page refresh by default.
8720
8721 2008-02-05  Andreia Gaita  <avidigal@novell.com>
8722
8723         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
8724         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
8725         platforms. Fixes #359036
8726         
8727         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
8728         platform-specific flags.
8729
8730 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8731
8732         * Binding.cs: Add 2.0 BindableComponent property - just return control
8733         by now.
8734
8735 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
8736
8737         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
8738         Jonathan for this patch. Fixes #358442.
8739
8740 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
8741
8742         * Form.cs: If we change the active MDI child form, let the others
8743         know they need to repaint their title bar so it will appear inactive.
8744         [Fixes part 1 of bug #325473]
8745
8746 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
8747
8748          * PropertyGridView.cs: Do not trucate custom editors' width
8749          and align them to the left.
8750          [Fixes #358353 and #358349]
8751
8752 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8753
8754         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
8755         Also fix the arguments passed to CollectionChangeEventArgs in the
8756         related methods.
8757
8758 2008-02-04  Geoff Norton  <gnorton@novell.com>
8759
8760         * Hwnd.cs: The conversion to Quartz coordinates happens in
8761         System.Drawing.  Removing this translation from here.
8762
8763 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
8764
8765          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
8766          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
8767          GridItemCollection.cs:
8768          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
8769
8770 2008-02-04  Geoff Norton  <gnorton@novell.com>
8771
8772         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
8773         SYSKEYUP if any other key has been pressed in the mean time.
8774         Fixes #324404
8775
8776 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8777
8778         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
8779         when the item in current position is different than 0. Also, save the
8780         item index in the beginning of the operation, instead of getting the
8781         index of the item when the event is actually performed. Lastly clean
8782         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
8783         triggered.
8784         [Fixes #357873]
8785
8786 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8787
8788         * Form.cs: Alt-Minus for MDI children system menu should work
8789         with both the minus keys on the keyboard.
8790         [Fixes bug #336295]
8791
8792 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8793
8794         * Control.cs: Don't invalidate on region change.  The WM should
8795         take care of this automagically.  Keeps us out of an infinite
8796         paint loop if someone changes the Region in the OnPaint.
8797         [Fixes bug #358327]
8798
8799 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
8800
8801          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
8802
8803 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8804
8805         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
8806         down the MonthCalendar only on F4, not Alt+F4.
8807         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
8808         [Fixes bug #358340]
8809
8810 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8811
8812         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
8813         if its part of a DateTimePicker, else, use the back color.
8814         [Fixes bug #358339]
8815
8816 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8817
8818         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
8819         [Fixes bug #358342]
8820
8821 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8822
8823         * CurrencyManager.cs: When we get a ListChanged event from our source,
8824         always fire our own ListChanged event, as .Net does.
8825
8826 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8827
8828         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
8829         #358379.
8830
8831 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8832
8833         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
8834         property. Removed if for richtext property that was always true.
8835         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
8836
8837 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8838
8839         * TextBoxBase.cs - commited patch from James Purcell that
8840         correctly sets the FixedHeight control style when the MultiLine
8841         property is changed on a TextBox control. Fixes bug 358229.
8842
8843 2008-02-02  Luke Page  <luke.a.page@gmail.com>
8844
8845         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
8846         Fixes bug 351938 - caret is positioned correctly when drawn
8847         and when calculating textual position of caret, no longer
8848         has a NRE in certain situations.
8849         
8850 2008-02-01  Geoff Norton  <gnorton@novell.com>
8851
8852         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
8853         get that region removed from the paint event.
8854         * XplatUICarbon.cs: Remove the window mapping after disposing of 
8855         window.  Prevents a crash with handle reuse.  Optimize exposes
8856         only onto visible windows (rare; but possible).
8857
8858 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8859
8860         * UpDownBase.cs: Make sure the internal textbox calls the base's
8861         OnMouseDown and OnMouseUp so the textbox will function correctly.
8862         There were notes saying it doesn't chain up, but its an internal
8863         class, so our implementation may differ.
8864         [Fixes bug #357482]
8865
8866 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8867
8868         * ListBox.cs: Fix a logic error and don't process MouseDown
8869         for mouse buttons other than Left.
8870
8871 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8872
8873         * Control.cs: Remove HeightInternal.
8874         * ListBox.cs: Commit patch from James Purcell that correctly
8875         calculates heights for ListBoxen.
8876         [Fixes bug #357152]
8877
8878 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8879
8880         * Label.cs: Apply patch from James Purcell that corrects the 
8881         signature of the AutoSize property.
8882         [Fixes bug #357605]
8883
8884 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8885
8886         * ListBox.cs: Don't throw [Mouse]Click events for buttons
8887         other than the left mouse button.
8888
8889 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
8890
8891         * Control.cs: Remove my awesome optimization as it caused some
8892         regressions with control ordering.  :(
8893         [Fixes bug #357467]
8894
8895 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
8896
8897          * PropertyGridView.cs: Fix a NRE on double click when there is no
8898          selected object.
8899
8900 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8901
8902         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
8903
8904 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
8905
8906         * ListBox.cs: Call MouseClick and MouseDoubleClick.
8907         [Fixes bug #357146]
8908
8909 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8910
8911         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
8912         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
8913         instead of Hwnd.bmp_g.
8914
8915 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8916
8917         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
8918         Use the Hwnd one instead.
8919
8920 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8921
8922         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
8923
8924 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8925
8926         * Form.cs: corcompare for RestoreBounds.
8927
8928 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8929
8930         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
8931
8932 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8933
8934         * Form.cs: Handle Alt-Minus for MDI children forms.
8935         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
8936         Add mnemonics to the control menu.
8937         [Fixes bug #336295]
8938
8939 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8940
8941         * Binding.cs: Initial implementation bits of FormattingEnabled
8942         property and BindingComplete event (2.0). 
8943         * BindingCompleteEventArgs.cs: Internal methods for setting error text
8944         and exception.
8945
8946 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8947
8948         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
8949         table.Location.  [Fixes bug #354672]
8950
8951 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8952
8953         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
8954         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
8955
8956 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8957
8958         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
8959         of doing all the re-bound work, just invalidate and call SetControlText 
8960         to set the updated text of selected item to our textbox.
8961         Fixes #333750.
8962
8963 2008-01-28  Andreia Gaita <avidigal@novell.com>
8964
8965         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
8966         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
8967         missing properties and methods. Add Load, Unload, Error, GotFocus, 
8968         LostFocus, Resize, Scroll events (only load and unload are connected)
8969
8970 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
8971
8972         * AccessibleObject.cs: Modified argument names to match MS.
8973         * Button.cs: Modified argument names to match MS.
8974         * BindingContext.cs: Modified argument names to match MS.
8975         * BindingMemberInfo.cs: Modified argument names to match MS.
8976         * ButtonBase.cs: Modified argument names to match MS.
8977         * ComboBox.cs: Modified argument names to match MS.
8978         * Control.cs: Modified argument names to match MS.
8979         * CheckedListBox.cs: Modified argument names to match MS.
8980         * CommonDialog.cs: Modified argument names to match MS.
8981         * DataGrid.cs: Modified argument names to match MS.
8982         * CursorConverter.cs: Modified argument names to match MS.
8983         * ControlPaint.cs: Modified argument names to match MS.
8984         * CheckBox.cs: Modified argument names to match MS.
8985         * ControlBindingsCollection.cs: Modified argument names to match MS.
8986         * BindingSource.cs: Modified argument names to match MS.
8987         * DataFormats.cs: Modified argument names to match MS.
8988         * ContainerControl.cs: Modified argument names to match MS.
8989         * CurrencyManager.cs: Modified argument names to match MS.
8990         * Application.cs: Modified argument names to match MS.
8991         * ContextMenuStrip.cs: Modified argument names to match MS.
8992         * ContextMenu.cs: Modified argument names to match MS.
8993         * BindingManagerBase.cs: Modified argument names to match MS.
8994         * WindowsFormsSection.cs: Fixed line ending.    
8995
8996 2008-01-27  Andreia Gaita <avidigal@novell.com>
8997
8998         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
8999         detecting that the dropdown toolwindow is hidden. EndLoop outside the
9000         while.
9001
9002 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
9003
9004         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
9005         MS. Code formatting.
9006
9007 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9008
9009         * Binding.cs: Don't avoid the Format event if the control 
9010         property type is object. Also, if the value retrieved by 
9011         the data source is null _and_ the control proeprty type 
9012         is object, return Convert.DBNull (match .Net).
9013         Fixes part of #324286.
9014
9015 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9016
9017         * ListControl.cs: Since we are getting two BinginContextChanged events
9018         for the same binding context instance (when the control is added to
9019         form, and when the form is actually shown), take it into account only the
9020         first time for a given binding context instance.
9021         Fixes part of #324286.
9022
9023 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
9024
9025          * PropertryGridView.cs: Ops.
9026
9027 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
9028
9029          * PropertyGridView.cs: Close dropdown form if the owner form is
9030          moved or minimized.
9031          [Fixes bug #322446]
9032
9033 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
9034
9035          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
9036          RootGridEntry.cs, CategoryGridEntry.cs:
9037          PropertyGrid rewrite.
9038          - Rewrite all of the control logic in PropertyGrid.
9039          - Rewrite all of the ComponentModel logic in GridEntry.
9040          - Rewrite all UI work in PropertyGridView.
9041          - Many bugfixes, etc.
9042
9043 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
9044
9045         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
9046         when all contained controls are autosize or dock-fill.  Also take into
9047         account when the total percentage of column/row sizes is not 100%.
9048         [Fixes bug #354672]
9049
9050 2008-01-24  Andreia Gaita <avidigal@novell.com>
9051
9052         * HtmlDocument.cs:
9053         - Save a reference to the IDocument in the instance and
9054           use that one instead of going to WebHost.Document; the document that the 
9055           WebHost returns might not be the right one (in case of frames).
9056         - Use the hashcode returned from the IDocument interface.
9057         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
9058           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
9059           LinkColor, Url, VisitedColor, Window
9060
9061         * HtmlElement.cs: 
9062         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
9063           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
9064           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
9065           SetAttribute, Equals, equality operators.
9066         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
9067           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
9068         
9069         * HtmlElementCollection.cs: Change implementation to use a generic
9070         collection. Implemented Enumerator and CopyTo
9071
9072         * HtmlHistory.cs: Add constructor, no implementation yet.
9073
9074         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
9075         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
9076         Equals, equality operators.
9077
9078         * HtmlWindowCollection.cs: Implemented. 
9079
9080         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
9081         has been deprecated).
9082
9083         * WebBrowserBase.cs: Use Completed event to track document loading
9084         (Navigated has been deprecated)
9085
9086 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
9087
9088         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
9089         level MenuItems do not respect tabs.
9090         [Fixes bug #355196]
9091
9092 2008-01-23  Geoff Norton  <gnorton@novell.com>
9093
9094         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
9095         FormWindowState.  Finished fixing Fullscreen windows on Carbon
9096
9097 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
9098
9099         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
9100         be used as grab_control. Also save status of capture before show ContextMenu
9101         and restore it after close.
9102
9103 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
9104
9105         * Control.cs: Internal FindRootParent method added to return high control
9106         in parent tree.
9107
9108 2008-01-23  Geoff Norton  <gnorton@novell.com>
9109
9110         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
9111         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
9112         it work again.  Handle HITTEST events.
9113
9114 2008-01-23  Geoff Norton  <gnorton@novell.com>
9115
9116         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
9117         a crash in certain cases.  Support for fullscreen windows in certain cases.
9118
9119 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
9120
9121         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
9122         [Fixes bug #355703]
9123
9124 2008-01-23  Geoff Norton  <gnorton@novell.com>
9125         
9126         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
9127
9128 2008-01-23  Geoff Norton  <gnorton@novell.com>
9129
9130         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
9131
9132 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
9133
9134         * SplitContainer.cs: Remove unused declarations.
9135         * Binding.cs: Remove unused declarations.
9136
9137 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
9138
9139         * Form.cs: Remove unused declaration of 'active' in Activate method.
9140         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
9141         prevent compilation warnings.
9142         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
9143         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
9144         * Bindings.cs: Remove unused formatting_enabled declaration.
9145         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
9146         warnings.
9147         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
9148         warnings.
9149         * PropertyGridView.cs: Remove usused 'ex' declaration.
9150         * DataGridView.cs: Remove unused declarations.
9151
9152 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
9153
9154         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
9155         
9156         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
9157         to Control class, it makes possible to grab menu to controls that can't 
9158         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
9159         WmMouseMove removed since it was used only to track menu events.
9160
9161         * Control.cs:
9162         - Moved all active_tracker stuff from Form.
9163         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
9164         can call this method instead of reimplement all necessary code handle for
9165         menu tracker.
9166         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
9167         and WmMouseMove).
9168         
9169         * MenuAPI.cs: 
9170         - Remove special handle to ToolStripOverflow, now we can grab menu to 
9171         controls that can't reach Form using parent tree.
9172         - Change type of grab_control from Form to Control.
9173
9174 2008-01-22  Geoff Norton  <gnorton@novell.com>
9175
9176         * TextBoxBase.cs: Split up the sizing of controls and placing of 
9177         controls.  Fixes a bug where scrollbars in Reflector could be sized
9178         wrong and have non-working thumbers.
9179
9180 2008-01-23  Geoff Norton  <gnorton@novell.com>
9181
9182         * XplatUI.cs: Refactor environment variables to default support to the
9183         Carbon driver on the Mac.
9184
9185 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
9186
9187         * Label.cs: Uses new LabelPainter for drawing operations.
9188         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
9189         * Theme.cs: DrawLabel and LabelDefaultSize removed.
9190
9191 2008-01-22  Geoff Norton  <gnorton@novell.com>
9192
9193         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
9194
9195 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
9196
9197         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
9198         through the normal flat button code and don't draw the checkbox glyph.
9199         * Theme.cs: Button->ButtonBase signature change.
9200         [Fixes bug #324755]
9201
9202 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
9203
9204         * LinkLabel.cs: Uses new class LinkLabelPainter.
9205
9206 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
9207
9208         * MessageBox.cs: Adjust right border space, we don't need to add 
9209         "space_border*2" two times.
9210
9211 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
9212
9213         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
9214         becomes a wrapper around Padding.
9215         [Fixes a part of bug #354676]
9216
9217 2008-01-22 Geoff Norton  <gnorton@novell.com>
9218
9219         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
9220         acquired.  Also ensure the buffer is large enough to grab the header
9221         we need on linux boxes.
9222
9223 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
9224
9225         * Control.cs: Implement a custom enumerator so people can delete
9226         from the Controls collection while in a foreach.
9227         [Fixes bug #355074]
9228
9229 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
9230
9231          * PropertyGridView.cs: Fix focusing behavior:
9232          - Tab should focus the grid text box.
9233          - Clicking on the labels shouldn't focus the grid text box.
9234
9235 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
9236
9237          * PropertyGridView.cs: IsValueTypeGridItem should return true 
9238          for Arrays as well.
9239
9240 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
9241
9242          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
9243           - Renamed GridEntry.SelectedObjects to TargetObjects to better
9244           reflect the property name role.
9245           - PropertyGrid.GetTarget is not required as the target is known
9246           (TargetObjects).
9247           - Setting values will handle value types as a special case now and
9248           populate them up in the chain.
9249           [Fixes #354990]
9250
9251 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
9252
9253         * Hwnd.cs: Create a public property for the Graphics we keep around.
9254
9255 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
9256
9257          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
9258          when the current object selection changes. 
9259          Fixes failing test SelectedObject_Null2.B5.
9260
9261 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
9262
9263          * PropertyGrid.cs: Process Browsable properties with 
9264          DesignerSerializationVisibilityAttribute.Content as being expandable.
9265          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
9266          will not be expandable. We should be nested components-friendly now.
9267
9268 2008-01-21  Andreia Gaita <avidigal@novell.com>
9269
9270         * WebBrowserBase.cs: Check if control was loaded properly, 
9271         don't bind if it wasn't.
9272
9273         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
9274         GetElementFromPoint, equality operators, OpenNew, Write.
9275         Remove extra set_Body
9276
9277 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
9278
9279         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
9280         that makes our AutoScale* stuff more tolerant to different orders
9281         of being set.  [Fixes bug #354669]
9282
9283 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
9284
9285          * PropertyGridView.cs, PropertyGridTextBox.cs: 
9286          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
9287          [Fixes #339005 and #348209]
9288
9289 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
9290
9291          * PropertyGridView.cs: Hide the grid text box before adjusting it
9292          for the newly selected GridItem.
9293          [Fixes #338999]
9294
9295 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
9296
9297         * Form.cs: Give MDI children the opportunity to cancel the parent form
9298         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
9299         properly for both the parent and child.
9300         * Application.cs: Signature of internal method changed, pass the previous
9301         default of false.
9302         [Fixes bug #354286]
9303
9304 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
9305
9306         * PropertyGridView.cs: Set the property value only if it has changed.
9307         [Fixes bug #338997]
9308
9309 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
9310
9311         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
9312         If the mouse hasn't actually moved, ignore these messages so the currently
9313         highlighted menuitem isn't reset to the one under the mouse.
9314         [Fixes bug #333668]
9315
9316 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
9317
9318         * PropertyGridView.cs: When the property changes Invalidate the GridItem
9319         in order for the properties with UITypeEditor.GetPaintValueSupported == true
9320         to reflect the change visually.
9321         [Fixes bug #338998]
9322
9323 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
9324
9325         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
9326         to 2.0 button drawing.
9327         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
9328         the button text is tall enough for one line.  LineLimit says it will
9329         always draw at least one line, but it is a lie.
9330         [Fixes bug #324941]
9331
9332 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
9333
9334         * XplatUIStructs.cs, X11Keyboard.cs :
9335           added some more VK_* keys to be handled.
9336
9337 2008-01-16  Andreia Gaita <avidigal@novell.com>
9338
9339         * Control.cs: Check if there is a container before setting or getting
9340         the validation flag.
9341
9342 2008-01-16  Andreia Gaita <avidigal@novell.com>
9343
9344         * ContainerControl.cs: Add flag to track if a control cancels validation, 
9345         so we don't fire click events.
9346
9347         * Control.cs: 
9348         - (HandleClick) Check if validation was cancelled before  firing the click
9349         events (doubleclicks are fired, but not clicks)
9350         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
9351         ContainerControl.set_ActiveControl, but in the case of non-selectable
9352         controls, like a Label, activecontrol is not set. 
9353
9354         * ButtonBase.cs: Only fire clicks if validation passes.
9355         
9356         Fixes #353310
9357
9358 2008-01-16  Geoff Norton  <gnorton@novell.com>
9359
9360         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
9361         trunk
9362
9363 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
9364
9365         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
9366         SelectedPath, just display the default dialog instead of crashing.
9367         [Fixes bug #348989]
9368
9369 2008-01-16  Geoff Norton  <gnorton@novell.com>
9370
9371         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
9372         AddExpose instead of trusting apples compositing manager which doesn't
9373         work for our use case.  Remove some dead code causing warnings and 
9374         redecorate some other code to prevent warnings.
9375
9376 2008-01-16  Geoff Norton  <gnorton@novell.com>
9377
9378         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
9379         carbon signals us to redraw.  Fixes another portion of the flickering bug
9380
9381 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
9382
9383         * Form.cs: Prevent the MdiParent property to be set when value is the same
9384         as value already set. Fixes bug #328019.
9385
9386 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
9387
9388         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
9389         it prevents NRE when closing mdi child windows. Fixes bug #325211.
9390
9391 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
9392
9393         * InternalWindowManager.cs: Invalidade close button after mouse up when 
9394         mdi form is prevented to close.
9395
9396 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
9397
9398         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
9399         thanks to Andy Hume. Fixes bug #325433.
9400
9401 2008-01-16  Andreia Gaita <avidigal@novell.com>
9402
9403         * LinkLabel.cs: Reset focused_index when resellecting the control.
9404         Fixes #323190
9405
9406 2008-01-15  Geoff Norton  <gnorton@novell.com>
9407
9408         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
9409         messages.
9410
9411 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
9412
9413         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
9414         of truncate.
9415
9416 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
9417
9418         * ContainerControl.cs: Setting AutoScaleMode to anything should set
9419         Form.AutoScale to false.
9420         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
9421         AutoScaleBaseSize should be changed on Font change unless it has been
9422         explicitly set.
9423         [Fixes bug #353827]
9424
9425 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
9426
9427         * MenuAPI.cs: On instance of MenuTracker check if source control is
9428         ToolStripOverflow and use properly method to find form.
9429         [Fixes bug #338511]
9430
9431 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
9432
9433         [Fixes bug #323241 Transparent toolbar support]
9434
9435         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
9436         is flat.
9437
9438         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
9439         defined in control style to mimic win32 behavior.
9440
9441         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
9442         it will be transparent.
9443
9444 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
9445
9446         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
9447         CreateParams for ToolBar controls.
9448
9449 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
9450
9451         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
9452         FixedToolWindow, SizeableToolWindow, or None for border styles have
9453         different minimum sizes than regular forms.  Implemented to fix
9454         regression in PDN with toolbox being too wide.
9455
9456 2008-01-14  Andreia Gaita <avidigal@novell.com>
9457
9458         * HtmlElementCollection.cs: Implemented
9459
9460         * HtmlElement.cs: Implemented:
9461           - All
9462           - InnerHtml
9463           - InnerText
9464           - Id
9465           - Name
9466           - FirstChild
9467
9468         * HtmlDocument.cs: Implemented GetElementsByTagName.
9469
9470 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
9471
9472         * Screen.cs: Stub BitsPerPixel to always return 32.
9473
9474 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
9475
9476         * Form.cs: Implement RestoreBounds.
9477
9478 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
9479
9480         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
9481         Sebastien and his fabulous magical problem-finding machine:
9482         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
9483         respect the value set.
9484
9485 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
9486
9487         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
9488         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
9489
9490 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9491
9492         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
9493         messages (to match .Net), we need to remove the capture ourselves.
9494
9495 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
9496
9497         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
9498         will process the message and close our window.
9499         [Fixes bug #324328]
9500
9501 2008-01-10  Geoff Norton  <gnorton@novell.com>
9502
9503         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
9504         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
9505         window manager.
9506
9507 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
9508
9509         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
9510         failing test.
9511
9512 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
9513
9514         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
9515         Linux doesn't care, having a minimum matches MS and keeps the window
9516         from becoming too small to use window decorations.
9517         [Fixes bug #338996]
9518
9519 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
9520
9521         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
9522         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
9523         control.  [Fixes bug #325419]
9524
9525 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
9526
9527         * ComboBox.cs: Guard against an NRE if the user open a new form from a
9528         SelectedIndexChanged event.  This closes the combobox dropdown, and we
9529         were trying to dispose it.  [Fixes bug #352830]
9530
9531 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
9532
9533         * Control.cs, Form.cs: Implement the necessary semantics for
9534         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
9535         to determine if a focus rectangle should be drawn.
9536         * PropertyGrid.cs: Fix property visibility to match override.
9537         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
9538
9539 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
9540
9541         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
9542         [Fixes bug #323552]
9543
9544 2008-01-09  Geoff Norton  <gnorton@novell.com>
9545         
9546         * XplatUICarbon.cs: Scroll windows in the correct direction.
9547
9548 2008-01-09  Geoff Norton  <gnorton@novell.com>
9549
9550         * XplatUICarbon.cs: Track all created utility windows so we can hide them
9551         when the app is deactivated or spaces is enabled.
9552
9553 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9554
9555         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
9556         extra separation pixel for the label rect origin if SmallImageList is
9557         null, and thus we don't need that separation between icon and label
9558         rects.
9559         Patch by Ernesto Carrea.
9560         Fixes # 340195.
9561
9562 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
9563
9564         * StatusStrip.cs: Invalidate after completing a layout.  The base
9565         OnLayout does this, but we don't call the base.
9566         * ToolStripItem.cs: Revert the previous change to invalidate after
9567         the item moves.
9568         [Fixes bug #351341 better.]
9569
9570 2008-01-07  Geoff Norton  <gnorton@novell.com>
9571
9572         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
9573         not a notification to exit the application.  Listen for WM_QUIT
9574         instead.
9575
9576 2008-01-07  Andreia Gaita <avidigal@novell.com>
9577
9578         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
9579
9580 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
9581
9582         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
9583         so it can repaint at the correct location.
9584         [Fixes bug #351341]
9585
9586 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9587
9588         * ListControl.cs: SelectedValue should return a null value if
9589         SelectedIndex is -1. Also, when setting it, it should throw an
9590         ArgumentNullException if the value is null, as well as taking
9591         into account the String.Empty value, instead of ignoring it (we have
9592         tests for that now).
9593         Fixes part of #324286.
9594
9595 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
9596
9597         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
9598         SelectionStart is updated after pressing enter.  Fixes bug #351918.
9599
9600 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9601
9602         * TextControl.cs: Revert a piece r92316 that prevented the fix
9603         from working when there were multiple tags in the text box.
9604         Fixes bug #351881.
9605
9606 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9607
9608         * TextControl.cs: Apply patch from Luke Page that prevents an
9609         NRE when determining the beginning of a paragraph.
9610         Fixes bug #351886.
9611
9612 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9613
9614         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
9615         caret gets moved with clicking away from a selected block of
9616         text.  Fixes bug #351885.
9617
9618 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9619
9620         * TextControl.cs: Apply patch from Luke Page that takes line
9621         alignment into account for mouse selection, so that center and
9622         right aligned text can be selected.
9623         Fixes bug #351881.
9624
9625 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9626
9627         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
9628         issues after loading an RTF file by using the correct line feeds.
9629         Fixes bug #351841.
9630
9631 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9632
9633         * TextControl.cs: When deleting multiple line selections, we need
9634         to invalidate every line beginning at the first line of the selection.
9635         Patch from Luke Page fixes bug #351791.
9636
9637 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9638
9639         * ListControl.cs: When getting a CurrencyManager.PositionChanged
9640         event, don't set SelectedIndex if the number of items is 1. This is
9641         because, for the first item, PositionChanged is fired _before_
9642         ItemChanged (the place where we actually populate the items), and
9643         leave us in a temporary invalid state (since items collection is
9644         empty).
9645         Fixes #349655.
9646
9647 2008-01-04  Geoff Norton  <gnorton@novell.com>
9648
9649         * XplatUICarbon.cs:  Create native toolwindows instead of
9650         the managed drawing ones.
9651
9652 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9653
9654         * LineTag.cs: If the line doesn't have any characters, return
9655         0 for GetCharIndex.  Fixes an AOORE exception after certain
9656         caret movements.  Fixes bug #351683.  Patch by Luke Page.
9657
9658 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9659
9660         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
9661         is hit when there is selected text, only the selected text gets
9662         deleted, not the character in front of the selection as well.
9663         Fixes bug #351578.
9664
9665 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9666
9667         * ComboBox.cs: When the values are displayed, calculate the
9668         ComboListBox scrollbar's LargeChange based on the visible area's
9669         height and  the actuall ItemHeight, instead of calculating it
9670         based on MaxDropItems value, since it's not used by our _current_ 
9671         2.0 profile.
9672         Fixes #332366.
9673
9674 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9675
9676         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9677         Patch from Luke Page that fixes issues with font colors and styles
9678         not showing up in a readonly RichTextBox.  Fixes bug #324354.
9679
9680 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9681
9682         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
9683         from Luke Page.  This one fixes bug #349926.
9684
9685 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9686
9687         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
9688         an item in the IBindingList source changes with
9689         ListChangedType.ItemAdded. Ignore for now firing the event for other
9690         changes, since we want to have tests for those cases as well.
9691
9692 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9693
9694         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
9695         created.
9696
9697 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9698
9699         * TextBoxTextRenderer.cs: Implement a cache for measuring each
9700         character.  This is effective because the typical usage of a
9701         TextBox is with a limited amount of fonts and characters, and
9702         the current implementation of TextBox measures everything one
9703         character at a time.  Another second or two speedup for bug #347238.
9704
9705 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9706
9707         * Control.cs: Rewrite the Font getter to only query the parent's
9708         Font property once instead of twice.  Since this operation is
9709         recursive, the queries were growing exponentially as the control
9710         tree got deeper.  Another second or two speedup for bug #347238.
9711
9712 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9713
9714         * Control.cs: Avoid setting a parent (and more importantly, updating
9715         the zorder of all its children) if the parent is already correct in
9716         WmShowWindow.  Decreases the startup time of the test case on bug
9717         #347238 from 35 seconds to 11 seconds.
9718
9719 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9720
9721         * X11Dnd.cs: When the dnd operation has started and we are 
9722         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
9723         This is done to match .Net, which doesn't send those messages after
9724         dnd operation was completed/cancelled.
9725         Fixes #349922.
9726
9727 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
9728
9729         * ToolStrip.cs: Previous change should be != null, not == null.
9730         Thanks Gert!
9731
9732 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
9733
9734         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
9735         user may have moved the mouse off the current item during the event.
9736
9737 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9738
9739         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
9740         calling GetItemAt for every MouseMove event by also taking into
9741         account whether any mouse button is pressed (probably dragging); 
9742         if so, we can call GetItemAt, and if not, try to not call it 
9743         (GetItemAt can be quite expensive when used with a large number of items).
9744
9745 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9746
9747         * ListView.cs: Implement -finally- support for dnd, by calling
9748         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
9749         authors list ;-).
9750         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
9751         simple calculation of distances for all the items in the owner
9752         listview.
9753
9754 2007-12-21  Geoff Norton  <gnorton@novell.com>
9755
9756         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
9757         for windows that are originally created as invisible.  Fixes missing
9758         main window in paint-mono.
9759
9760 2007-12-21  Geoff Norton  <gnorton@novell.com>
9761
9762         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
9763         subclass handler for com.novell.mwfview subclassing HIView.  Implement
9764         Pasteboard and Dnd methods.
9765
9766 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9767
9768         * ListBox.cs: When we got focus, give focus to first item if there
9769         wasn't any pervious focused item. Also update navigation to depend on
9770         SelectedIndex rather than FocusedItem, just as .Net does.
9771         Fixes #349174.
9772
9773 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9774
9775         * ListBox.cs: Both FindString and FindStringExact methods must do an
9776         case insensitive search, should allow the last valid index to be
9777         passed in the overload taking an initial index, and should also
9778         continue searching from the top back to the specified index when it
9779         reaches the bottom.
9780
9781 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9782
9783         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
9784         redraw issue, and allows RichTextBox to draw colored text even while
9785         disabled or readonly.
9786
9787 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9788
9789         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
9790         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
9791         and doesn't grey text in a disabled RichTextBox.
9792
9793 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9794
9795         * RichTextBox.cs: Apply patch from Luke Page that adds better support
9796         for many RTF commands: quad alignment, separate formatting for blocks
9797         inside groups, and ParDef support.  Makes the test case from bug #324589
9798         look much better.
9799
9800 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9801
9802         * LineTag.cs: Fix an error in the new Draw method that caused
9803         a crash when rendering the document on bug #324589.
9804
9805 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9806
9807         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
9808         TextControl.cs: Apply patch from Luke Page that adds support
9809         for URL links in RichTextBox.
9810         [Fixes enhancement #342516]
9811
9812 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
9813
9814         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
9815         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
9816
9817 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9818
9819         * ListBox.cs: When a key gets pressed, try to find a string
9820         if the key is a character or a digit.
9821         Fixes #343971.
9822
9823 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9824
9825         * TableLayoutPanel.cs: Remove some unused variables.
9826
9827 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9828
9829         * DateTimePicker.cs: Commit patch from Luke Page that ensures
9830         we don't end up at an invalid date when we click the up/down
9831         spinner to change the month or year.  Fixes bug #348682.
9832
9833 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9834
9835         * Application.cs: Calling Exit in 2.0 should chain to the
9836         Exit (CancelEventArgs) version so it can be cancelled.
9837         * Form.cs: Create a flag to allow raising the Closing
9838         events to be skipped.  We raise them once in Application.Exit
9839         and don't want to raise them again when the Form is actually
9840         closed.  [Fixes bug #349073]
9841
9842 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
9843
9844         * ToolStripDropDown.cs: Guard against an NRE when there
9845         hasn't been a mainform set in the application context.
9846         [Fixes bug #349108]
9847
9848 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9849
9850         * ListBox.cs: When SetBoundsCore gets called, besides
9851         calling UpdateScrollBars, update the value of
9852         last_visible_index, since we could need to show more items
9853         than before, and we need to let the paint routines know that.
9854         Fixes #344445.
9855
9856 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9857
9858         * ListView.cs: Add DesignerSerializationVisibility attribute to
9859         InsertionMark property.
9860         * ListViewItem.cs: Add same attribute to Position property.
9861
9862 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9863
9864         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
9865         is 2.0 only.
9866
9867 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
9868
9869         * ThemeWin32Classic.cs: Don't draw the background on a
9870         flat button if there is a background image.
9871         [Fixes bug #348649]
9872
9873 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9874
9875         * ListBox.cs: If we remove the item currently selected,
9876         remove it not only from SelectedItems, but also
9877         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
9878         the items count decreased and focused_item has bigger value than that.
9879
9880 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
9881
9882         * Control.cs: Perform our layout after we resize ourselves
9883         if we had to adjust our AutoSize.  Missed commit for bug
9884         #346246.
9885
9886 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
9887
9888         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
9889         we can provide an implementation of AutoSize.
9890         [Fixes bug #346246]
9891
9892 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9893
9894         * ListBox.cs: Add the internal overload Sort (bool paint),
9895         to indicate whether we actually need a paint or we will
9896         call Refresh ourselves. This way we don't request a paint
9897         _before_ having an updated and valid layout.
9898         Fixes #347233.
9899
9900 2007-12-12  Andreia Gaita <avidigal@novell.com>
9901
9902         * XPlatUIX11.cs: Send paint messages when updating a systray icon
9903         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
9904         properly invalidated. 
9905         Fixes #324237
9906
9907 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9908
9909         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
9910         don't simply assign it to our internal group field, but instead 
9911         use our Group property, which should do all the neccessary work
9912         required to support groups. Fixes an issue reported to me (mail) by a 
9913         guy using this new feature.
9914
9915 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
9916
9917         * Control.cs: Use Scale instead of ScaleControl to ensure the
9918         whole hierarchy gets scaled.
9919         [Fixes bug #347282]
9920
9921 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9922
9923         * DateTimePicker.cs: Don't set the internal MonthCalendar's
9924         Parent property.  Doing this causes the control to be hosted by
9925         the Form instead of being a popup window.
9926         [Fixes bug #347665]
9927
9928 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9929
9930         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
9931         at an index higher than Count, just use Add instead of Insert.
9932         [Fixes bug #347669]
9933
9934 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9935
9936         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
9937         DrawPictureBox, this is handled by Control.PaintBackground.
9938         [Fixes bug #347276]
9939
9940 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
9941
9942         * MenuAPI.cs: When process menu keys return true by default only if menu is
9943         active. Fixes bug #342892.
9944
9945 2007-12-09  Andreia Gaita <avidigal@novell.com>
9946
9947         * Control.cs: check if windows are actually mapped before
9948         trying to zorder. Fixes #342509, #346955
9949
9950 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9951
9952         * ListView.cs:
9953         * ListViewInsertionMark.cs:
9954         * ThemeWin32Classic.cs: Implement the drawing side of the
9955         new 2.0 ListView.InsertionMark property.
9956
9957 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
9958
9959         * CurrencyManager.cs: Silence some debug spew.
9960
9961 2007-12-07  Geoff Norton  <gnorton@novell.com>
9962         
9963         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
9964         masks for our children as well as siblings to avoid having to query
9965         Quartz for this information.
9966         * XplatUICarbon.cs: Implement a delegate based system to pass
9967         information to System.Drawing.  Implement Async methods.  Remove
9968         the hack for the resize thumb and imlpement a transparent Grow Box.
9969         Rework the messaging system to proplery create window's and messages,
9970         fixes TabControl.
9971
9972 2007-12-06  Andreia Gaita <avidigal@novell.com>
9973
9974         * X11Keyboard.cs: Use Xutf8LookupString to support international 
9975         characters under alternate codepages. Patch from #340878
9976
9977 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9978
9979         * ListView.cs: When doing layout computations, set position in the
9980         ListView instances (we cache the position just as .Net does).
9981         * ListViewItem.cs: New internal setter method for Position. Also set
9982         position field as also available in 1.1, since we are going to use it
9983         now in the common case.
9984
9985 2007-12-06  Andreia Gaita <avidigal@novell.com>
9986
9987         * Control.cs: When removing controls, get the actual container
9988         to notify about active control changes. Fixes 341314.
9989
9990 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9991
9992         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
9993
9994 2007-12-05  Andreia Gaita <avidigal@novell.com>
9995
9996         * Control.cs: When updating the zorder, ignore windows that are not
9997         mapped. Fixes #342509
9998
9999 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10000
10001         * ListViewItem.cs: Actually implement serialization on this class.
10002
10003 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
10004
10005         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
10006         LinkCollection. Spaces to tabs, and removed extra tabs.
10007
10008 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10009
10010         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
10011           tests to fail (hopefully).
10012
10013 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
10014
10015         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
10016         the image margin so custom renderers can correctly place it.
10017
10018 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
10019
10020         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
10021         so custom renderers can correctly place it.
10022
10023 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
10024
10025         * Application.cs: Let WM_CHAR messages flow through to controls
10026         hosted in Strips.  [Fixes bug #343972]
10027
10028 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
10029
10030         * ToolStripManager.cs: Guard against an NRE I ran into.
10031
10032 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
10033
10034         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
10035         a Link is manually added to the Links collection, we need to set
10036         its owner, so it can invalidate properly.
10037         [Fixes bug #344012]
10038
10039 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10040
10041         * ListView.cs: When changing ListViewItem.Position (which calls
10042         ListView.ChangeItemLocation), invalidate not only the area
10043         corresponding to the main item, but also to the area occupied
10044         by the items being moved.
10045
10046 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10047
10048         * ListView.cs: When changing the position of a given item,
10049         don't use item bounds, but item areas (which includes the item spacing
10050         between them). Also, use first/last position if the requested
10051         position is outside bounds (as .Net does). Invalidate the previous and
10052         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
10053         in a specific position, instead of directly accessing Items collection
10054         (this is done to get the right item - remember an Item can have a
10055         different position in the grid than in the Items collection).
10056
10057 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
10058
10059         * MessageBox.cs: Calculate text area instead of just top left, this rect 
10060         area will be used in DrawString. Fixes bug #343364.
10061
10062 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
10063
10064         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
10065         screen width. Partially fixes bug #343364.
10066
10067 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
10068
10069         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
10070         code inside recalculate, it makes code more simple.
10071
10072 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
10073
10074         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
10075         between update or add icon. Fixes bug #324344.
10076
10077 2007-11-21  Andreia Gaita <avidigal@novell.com>
10078
10079         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
10080         window manager, since that stretches the drawing area to include
10081         the window decorations, and they get hidden. Reverts r84444 and fixes
10082         #335849 and #342790 (mdi and pdn3 regression)
10083
10084 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10085
10086         * ListView.cs: When setting focused item, try to give focus to the
10087         previous one _only_ if the previous one remains valid. 
10088         Fixes #342504.
10089
10090 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
10091
10092         * Application.cs: Revert r89650, as it broke a common case to fix
10093         an obscure case.  Fixes bug #342606.
10094
10095 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
10096
10097         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
10098
10099 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
10100
10101         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
10102         alignment. [Fixes #324228]
10103
10104 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
10105
10106         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
10107         [Fixes bug #342123]
10108
10109 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
10110
10111         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
10112         it prevent problems when empty captions. [Fixes #342141]
10113
10114 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
10115
10116         * Label.cs: Use Size instead of None.  Fixes bug #342077.
10117
10118 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10119
10120         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
10121
10122 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
10123
10124         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
10125         but there isn't a MdiContainer.
10126         [Fixes bug #342358]
10127
10128 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
10129
10130         * TextControl.cs: Don't recalculate document if the recalc_start and
10131         recalc_end hasn't changed.
10132         [Fixes bug #342505]
10133
10134 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
10135
10136         * DataGridViewTextBoxCell.cs: Removed CWL.
10137
10138 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10139
10140         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
10141
10142 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
10143
10144         * TextControl.cs: Missed some code for bug 341534 to trigger a
10145         recalculation when the font changes.
10146
10147 2007-11-16  Andreia Gaita <avidigal@novell.com>
10148
10149         * Control.cs: When updating the zorder, check if the child to update is
10150         the same control that is set to always be on top (i.e., scrollbars), and 
10151         just put it on top directly. Fixes BadMatch error on pdn3
10152
10153 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10154
10155         * ListView.cs: Throw the needed exceptions for FindNearestItem.
10156
10157 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
10158
10159         * Control.cs: Don't perform a new layout when a label changes its text,
10160         cause label handles its own autosizing.
10161         [Fixes bug #342077]
10162
10163 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10164
10165         * ListView.cs: Implement 2.0 FindNearestItem methods.
10166
10167 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
10168
10169         * ToolStripPanel.cs: Make Join at least add the control to the panel,
10170         even if the rest of what Join does isn't supported.  Add some more
10171         support for vertical toolbars.
10172         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
10173         [Fixes the application breaking parts of bug #341998]
10174
10175 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
10176
10177         * ToolStripItem.cs: When determining if we have a check/image margin,
10178         we need to look at ShowCheckMargin as well as ShowImageMargin.
10179
10180 2007-11-15  Geoff Norton  <gnorton@novell.com>
10181
10182         * XplatUIOSX.cs: Rename to...
10183         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
10184         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
10185
10186 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
10187
10188         * KeysConverter.cs: The default values should be an array of Keys, not
10189         strings.  Also, the array has more values for 2.0.
10190         [Fixes bug #341851]
10191
10192 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
10193
10194         * Application.cs: Change ExecutablePath to use 
10195         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
10196         [Fixes bug #323552]
10197
10198 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
10199
10200         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
10201         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
10202         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
10203         be ignored.  Create a new GetLineEnding that can specify which types of
10204         line endings to look for.  On Insert, only create new lines for \n and \r\n.
10205         [Fixes bug #324274]
10206
10207 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
10208
10209         * TextBoxBase.cs: As we loop through each line changing the font, tell
10210         the document that the line needs to be recalculated.  Fixes bug #341534.
10211
10212 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
10213         [Another round of refactoring]
10214         * Line.cs: Add DeleteCharacters.
10215         * LineTag.cs: Add Delete.
10216         * TextBoxBase.cs: Update to use new methods.
10217         * TextControl.cs: Refactor the Delete* methods.
10218
10219 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
10220
10221         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
10222         the patch. [Fixes #324856]
10223
10224 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10225
10226         * ListView.cs:
10227         * ListViewItem.cs: Add an initial implementation of
10228         2.0 ListViewItem.Position getter.
10229
10230 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10231
10232         * ListView.cs: Add a reordered_items_indices array, to allow us
10233         to have a different sorting than that of Items (the sorting in Items
10234         could not match the actual sorting in screen). This is needed to
10235         implement a pair of 2.0 features.
10236         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
10237         actual position in the ListView grid, since it could have a position
10238         different than its Index (position in ListViewItemCollection). 
10239
10240 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
10241
10242         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
10243         not draw partial lines.
10244         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
10245         LineLimit flag from the base is preserved.
10246         Fixes the windows part of bug #338965.
10247
10248 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
10249
10250         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
10251         so that it can be canceled in KeyPress.
10252         Fixes bug #340078.
10253
10254 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10255
10256         * ListView.cs: In ItemControl, reset mouse-handling related
10257         fields even if we dont' have items (we still should reset them when
10258         we had items but then called Items.Clear). Partially based in a patch
10259         by George Giolfan.
10260         Fixes #338399.
10261
10262 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
10263
10264         * Application.cs: In ProductVersion first try AssemblyFileVersion
10265         before falling back to assembly version. Fixes bug #339787.
10266
10267 2007-11-08  Andreia Gaita <avidigal@novell.com>
10268
10269         * HtmlElement.cs: Implement InnerText setter.
10270         * WebBrowserBase.cs: Implement Navigated event support.
10271         Add flag to track when the browser "document" is ready to be retrieved.
10272         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
10273         Make sure browser document is ready before retrieving it.
10274         Clean up cached objects (document) when moving to a new page through
10275         any of the navigation methods.
10276         Use the new Mono.WebBrowser.INavigation interface to control navigation.
10277         Implement OnNavigated event.
10278
10279 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
10280
10281         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
10282         DrawLinkLabel, this is handled by OnPaintBackground.
10283         Fixes bug #339565, part II.
10284
10285 2007-11-07  Andreia Gaita <avidigal@novell.com>
10286
10287         * Control.cs: Revert r88915. Selecting text on a textbox depends on
10288         getting a Select call on click, so this call needs to be here for now.
10289         Unfixes #325809
10290
10291 2007-11-07  Geoff Norton  <gnorton@novell.com>
10292
10293         * OSXStructs.cs: Add the kEventClassApplication constants.
10294         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
10295         application is deactivated otherwise Menu overlays linger on top of
10296         other application windows.
10297
10298 2007-11-07  Geoff Norton  <gnorton@novell.com>
10299
10300         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
10301         dont support cursors yet anyways.  This allows Reflector to run.
10302
10303 2007-11-07  Geoff Norton  <gnorton@novell.com>
10304
10305         * XplatUIOSX.cs: Implement DragSize.
10306
10307 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10308
10309         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
10310         ItemControl, request the focus, as .Net does. This is needed after 
10311         Control does not request focus anymore when it receives a
10312         WM_LBUTTONDOWN.
10313
10314 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
10315
10316         * Label.cs: Make DrawImage internal so it can be called from Theme code.
10317         Remove the DrawImage call from OnPaint.
10318         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
10319         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
10320         but before we draw the text for DrawLabel and DrawLinkLabel.
10321         Fixes bug #339565.
10322
10323 2007-11-05  Andreia Gaita <avidigal@novell.com>
10324
10325         * Control.cs: Remove select call on click. Fixes #325809
10326
10327 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10328
10329         * ListViewItem.cs: Add 2.0 Position property getter.
10330
10331 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10332
10333         * ListView.cs: Add 2.0 BackgroundImageTiled property.
10334         Also, to make it work properly, change item's BackColor and
10335         BackgroundImageLayout as needed.
10336         * ThemeWin32Classic.cs: Don't fill any background rectangle 
10337         in ListView.ItemControl when drawing items; just let the Control
10338         base implementation fill it.
10339
10340 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10341
10342         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
10343         as well as adding a custom 'dummy' Converter, as .net does.
10344
10345 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10346
10347         * PropertyGridView.cs: When clicking drop-down button,
10348         select an index in the listbox only if our standard values collection 
10349         has one or more items.
10350
10351 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10352
10353         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
10354         property.
10355
10356 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
10357
10358         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
10359         the value is not changed. This ensure a pushed button remains in that
10360         state when clicked again. When switching the value of PropertySort
10361         between Categorized and CategorizedAlphabetical, do not update the
10362         grid items and do not fire a PropertyChangedEvent. When clicking the
10363         sorting buttons, do not modify the PropertySort value when switching
10364         between Categorized and CategorizedAlphabetical but only update the
10365         button state.
10366
10367 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
10368
10369         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
10370         formatting.
10371         * PropertyGrid.cs: Also put Categorized button in pushed state when
10372         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
10373         for help description label.
10374
10375 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10376
10377         * ListView.cs: When calculating the biggest item for a given column,
10378         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
10379         the item's width.
10380
10381 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
10382
10383         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
10384         value for PropertySort on 1.0 profile. PropertySortChanged event
10385         should only be fired on 2.0 profile. Fixed NullReferenceException
10386         in UpdateSortLayout when PropertyGrid contains no items.
10387
10388 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
10389
10390         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
10391         [Fixes bug #338554]
10392
10393 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10394
10395         * ListViewItem.cs: Implement 2.0 IndentCount property.
10396
10397 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10398
10399         * X11Dnd.cs: When sending status in a dnd operation, compare current
10400         effect with the 'allowed' field instead of 'drag_data.Allowed', since
10401         the later is only created when a Winforms application is both the
10402         source and the target, but not when we are the target only.
10403         Fixes part of #324251.
10404
10405 2007-11-01  Geoff Norton  <gnorton@novell.com>
10406
10407         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
10408         order of Z-Order.
10409         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
10410         children out of the drawing view on mac.
10411         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
10412         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
10413         
10414 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
10415
10416         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
10417         on the non-hosted-control part of it shouldn't do anything.
10418         Fixes part of bug #327498.
10419
10420 2007-11-01  Andreia Gaita <avidigal@novell.com>
10421
10422         * WebBrowserBase.cs: revert previous change, resize can be called anytime
10423
10424 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
10425
10426         * Application.cs: When a toolstrip has the keyboard input loop, let messages
10427         it does not use flow through to controls that are hosted in menus.
10428         Same with mouse clicks.
10429         * Form.cs: Don't close all menus on click if the click is on a
10430         control hosted in a menu.
10431         Fixes part of bug #327498, and part of bug #325969.
10432
10433 2007-10-31  Andreia Gaita <avidigal@novell.com>
10434
10435         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
10436
10437 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
10438
10439         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
10440         Addresses an issue raised in bug #336218.
10441
10442 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
10443
10444         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
10445         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
10446
10447 2007-10-30  Andreia Gaita <avidigal@novell.com>
10448
10449         * ContainerControl.cs: Check if the active control is a
10450         child of a removed control and update active_control accordingly.
10451         Fixes #329718
10452
10453 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
10454
10455         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
10456         or the MaxDate.  Fixed bug #337693.
10457
10458 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
10459
10460         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
10461         after calling SetWindowLong for a form, to force an immediate NC refresh.
10462         Fixes first part of bug #325150.
10463
10464 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
10465
10466         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
10467         simple.  Fixes the last part of bug #322668.
10468
10469 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
10470
10471         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
10472         needs to be TopMost as well, or else the MessageBox is under the form.
10473         Patch by George fixes bug #325300.
10474
10475 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10476
10477         * X11Dnd.cs: When starting a new drag operation, reset the static
10478         'dropped' field to false (previously the implementation didn't reset
10479         it and got confused after the first drag).
10480         Fixes #325071.
10481
10482 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10483
10484         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
10485         items instead of re-creating them all. For this purpose we now cache
10486         both CategoryGridEntry items and the GridEntries for the main object's
10487         properties.
10488         * GridItem.cs: Make SetParent method abstract.
10489         * GridEntry.cs: Override the SetParent method (already there, but now
10490         we override it).
10491         Fixes #324866.
10492
10493 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10494
10495         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
10496         depending on its depth (as .Net does). Update the needed values in
10497         MouseDown handler. Also draw the plus/minus rect after the label,
10498         so we don't draw on top of it.
10499
10500 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
10501
10502         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
10503         processed by forms or controls when menu is active. [Fixes #333548]
10504
10505 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
10506
10507         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
10508         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
10509         focus on mouse over.
10510
10511 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
10512
10513         * TextControl.cs: Code cleaning, simplifying.
10514
10515 2007-10-24  Geoff Norton  <gnorton@novell.com>
10516
10517         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
10518         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
10519
10520 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
10521
10522         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
10523         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
10524
10525 2007-10-24  Andreia Gaita <avidigal@novell.com>
10526
10527         * SendKeys.cs: apply jpobst's patch to bug #332409
10528
10529 2007-10-23  Andreia Gaita <avidigal@novell.com>
10530
10531         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
10532         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
10533         for some reason
10534
10535 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10536
10537         * PropertyGridView.cs: If a property has an UIEditor available,
10538         make the drop-down/editor button available only if the property
10539         is _not_ read only.
10540
10541 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10542
10543         * PropertyGridView.cs: Don't make the grid item textbox 
10544         editable when a drop-down control is available, but 
10545         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
10546         true. The same bur the color of the grid item value's label.
10547
10548 2007-10-22  Geoff Norton  <gnorton@novell.com>
10549
10550         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
10551         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
10552         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
10553         driver.  Padd the bottom of all real windows so the resize thumb doesn't
10554         obscure scroll/status bars.
10555
10556 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
10557
10558         * WindowsFormsSection.cs: Implement.
10559
10560 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
10561
10562         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
10563         closed see #325434 patch.
10564
10565 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
10566
10567         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
10568         see #325434 patch.
10569
10570 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10571
10572         * PropertyGridView.cs: When showing the textbox for a grid item,
10573         have two local variables to store the read-only and non-editable
10574         status of a grid item (we were previously using just one variable
10575         to do this, when actually they are slightly different).
10576         Fixes part of #325023.
10577
10578 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10579
10580         * PropertyGridView.cs: When showing a drop-down list, try to get the
10581         values using TypeConverter.ConvertTo (to convert to a string). Fixes
10582         part of #325023.
10583
10584 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10585
10586         * PropertyGrid.cs: When updating a property and populating sub grid
10587         items, remove the previous ones, and invalidate the specific area.
10588         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
10589         area behind a grid item.
10590         * GridItemCollection.cs: Add an internal Clear method, to allow us to
10591         clean the items if needed (specially for controls implementing 
10592         ICustomTypeDescriptor and returning a variable number of properties).
10593         Fixes #324865.
10594
10595 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
10596
10597         * TextControl.cs: Clean up and document the Insert function.
10598
10599 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
10600
10601         * TextControl.cs: Make sure we know our start point for updating the view
10602         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
10603         update the view.
10604
10605 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
10606
10607         * ListView: Couple of corcompare fixes.
10608
10609 2007-10-17  Geoff Norton  <gnorton@novell.com>
10610
10611         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
10612         the title caption of real window.
10613
10614 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
10615
10616         * ErrorProvider.cs: Add the error provider's internal window to a 
10617         containercontrol when the parent changes.  [Fixes bug #329714]
10618
10619 2007-10-17  Geoff Norton  <gnorton@novell.com>
10620
10621         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
10622         When we make a new window; restore the old active window - fixes dialogs.
10623
10624 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10625
10626         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
10627         when modifying a property, and if found then invalidate as
10628         requested.
10629         Fixes part of #324865.
10630
10631 2007-10-17  Geoff Norton  <gnorton@novell.com>
10632
10633         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
10634         highly experimental.  Fixed coordinate translation.  Fixed window locations.
10635         Initial support for clipping. Implemented NC areas and menus.  Support for
10636         launching from command line from Will Johansson (wjohansson@atacomm.com).
10637         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
10638         wjohansson@atacomm.com)
10639         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
10640         Hwnds now track the existence of all of their children for Mac clipping.
10641     * XplatUI.cs: Re-enabled the native driver on the Mac.
10642
10643 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
10644
10645         * Line.cs: Move the InsertString function to here.
10646         * TextControl.cs: Cleanup some duplicate code, move some InsertString
10647         functionality to Line.
10648
10649 2007-10-17  Geoff Norton  <gnorton@novell.com>
10650
10651         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
10652
10653 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
10654
10655         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
10656         always setting value to true.
10657         * Form.cs: When changing AcceptButton, notify new and original button.
10658
10659 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
10660
10661         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
10662         a custom control that implements IButtonControl instead of an actual
10663         button.  [Fixes bug #334244]
10664
10665 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
10666
10667         * Form.cs: Change SelectActiveControl to internal, we need to call it in
10668         MdiWindowManager.
10669         
10670         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
10671         active control when activate a new mdi window.
10672         
10673         [Fixes bug #330495]
10674
10675 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
10676
10677         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
10678         is already added.
10679         [Fixes bug #333617]
10680
10681 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
10682
10683         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
10684         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
10685         so we always recalculate the whole document instead of just the new part.
10686         [Fixes bug #325082]
10687
10688 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
10689
10690         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
10691         when the mouse was to the left of the first character in the line.
10692
10693 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
10694
10695         * TextBox.cs, TextBoxBase.cs: When setting the document's password
10696         character, use the property instead of the variable so that the
10697         UseSystemPasswordChar property is taken into account.
10698         [Fixes bug #333748]
10699
10700 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10701
10702         * FolderBrowserDialog.cs: When a node is right clicked and the "New
10703         folder" contex menu appears, actually add the new folder to it, even
10704         if the node is not currently selected. Still use SelectedNode in case 
10705         there wasn't found a node under the pointer.
10706         Fixes #325452.
10707
10708 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10709
10710         * ListViewItem.cs: When retrieving the focused state, the index check
10711         should be done only when ListView is in virtualmode, as it is an
10712         expensive check for normal mode.
10713
10714 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10715
10716         * ListViewItem.cs: Make the focus state information be stored
10717         in the ListView, not in the items. This is done to match the MS
10718         behaviour for items that are not yet part of a ListView control;
10719         besides that, since just one item can be focused at the same time,
10720         we save a little space in our items.
10721         Fixes part of #331643.
10722
10723 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10724
10725         * ComboBox.cs: When focus is lost, deselect the text. When setting
10726         text of control, select all text. Do not hide selection when control
10727         does not have focus. Fixes bug #333663.
10728
10729 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10730
10731         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
10732         instead of ArgumentException when SelectionLength is set to negative
10733         value. Added same check to SelectionStart. Code formatting.
10734
10735 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10736
10737         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
10738         or SelectionStart. Code formatting.
10739
10740 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10741
10742         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
10743         indicating that there was not a previous drag-and-drop operation going
10744         on.
10745         Fixes part of #325071.
10746
10747 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10748
10749         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
10750         AllowedEffect, don't let the drop operation happen. 
10751         Fixes #32580.
10752
10753 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10754
10755         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
10756
10757 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10758
10759         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
10760         is called.
10761
10762 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10763
10764         * Line.cs: Add a method that finds the tag that contains an x-coord.
10765         * LineTag.cs: Add a method that finds the character at an x-coord using
10766         a binary search, the old way was a linear search.
10767         * TextControl.cs: Change FindCursor to use the above new methods.
10768
10769 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10770
10771         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
10772         value different than AllowedEffect). This should be possible to
10773         indicate that dragging is not possible in some control/area.
10774
10775 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
10776
10777         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
10778         descent internally when font changes instead of outside code being responsible
10779         for setting it.
10780         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
10781         instead of accessing internal variables.
10782
10783 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
10784
10785         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
10786         remove special treatment for ArrangeIcons since it is already arranged.
10787
10788 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10789
10790         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
10791         the Win32 backend uses Color.
10792         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
10793         Refactor to store a Color instead of a Brush for Color.
10794
10795 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10796
10797         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
10798         away.  I didn't realize I needed this when I refactored these earlier.
10799
10800 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10801
10802         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
10803         store a Color structure and use the ResPool for back color instead of
10804         holding onto brushes.
10805
10806 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10807
10808         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
10809         [Fixes bug #325592]
10810
10811 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10812
10813         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
10814         to recalculate its size.  Fixes a part of bug #331052.
10815
10816 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10817
10818         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
10819         button.  Fixes a part of bug #331052.
10820
10821 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10822
10823         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
10824         the CreateParams.
10825         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
10826         decorations.
10827         [Fixes bug #330986]
10828
10829 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10830
10831         * TextBoxTextRenderer.cs: Don't make this a static class, as static
10832         doesn't exist in 1.1.  (Thanks jb!)
10833
10834 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10835
10836         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
10837         class to allow us to use different backends on different platforms.
10838         Linux uses the current [Draw|Measure]String backend.  Windows uses
10839         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
10840         of GDI+.  This leads to better looking text and more accurate measurements
10841         on Windows, fixing many of the reported issues.
10842         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
10843
10844 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10845
10846         * FolderBrowserDialog.cs: When running on Windows,
10847         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
10848         since we must match both "C:" and "C:\" forms. A little hackish, but
10849         works.
10850         Fixes #325247.
10851
10852 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10853
10854         * ListView.cs: When calling EndEdit (after editing an item),
10855         create a new instance of LabelEditEventArgs to keep clean the fields
10856         in case we get a new call to BeginEdit; also do Application.DoEvents
10857         to have focus in synch. This is a fix similar to TreeView's #325244.
10858
10859 2007-10-07  Andreia Gaita <avidigal@novell.com>
10860
10861         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
10862         * WebBrowserBase.cs: Added dialog support, calling the
10863           WebBrowserDialogs classes for each specific dialog type.
10864
10865 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10866
10867         * ListView.cs: When the last item is focused and is removed,
10868         move the focus to the previous item (in Items order). This is what MS
10869         does.
10870         Fixes #330415.
10871
10872 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10873
10874         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
10875         instead of the opposite (RemoveAt call Remove). This is a better
10876         approach since we don't need to to a pair of traversals when using
10877         RemoveAt.
10878
10879 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10880
10881         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
10882         check that the node actually has nodes, and if not, move to the
10883         parent node instead. 
10884         Fixes #325265.
10885
10886 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10887
10888         * TreeView.cs: Move the previous change to the general case (to
10889         call Application.DoEvents in cases where the method was called by
10890         different places).
10891
10892 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10893
10894         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
10895         call Application.DoEvents. This is neccessary when we get a call to
10896         BeginEdit from an AfterLabelEdit handler, because the focus always
10897         goes to the TreeView, even if we try to give it to our
10898         LabelEditTextBox. The call do Application.DoEvents seems to
10899         synchronize the focus, basically.
10900         Fixes #325244.
10901
10902 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10903
10904         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
10905         should be false. This also removes some nasty recursive paths. Fixes
10906         part of #325244.
10907
10908 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
10909
10910         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
10911         state to normal. Also resize window when cascading. Fixes #325433. 
10912
10913 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10914
10915         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
10916         DefaultForeColor, as drawing empty colored lines isn't very useful.
10917         [Fixes the not drawn lines part of bug #324358]
10918
10919 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10920
10921         * TextControl.cs: Move Line and LineTag classes into separate files to
10922         make things easier to find.
10923         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
10924         * RichTextBox.cs: Capitalize LineTag.Length property access.
10925         - This is purely an organizational/formatting change, no logic changed. -
10926
10927 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10928
10929         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
10930         text is empty.
10931
10932 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10933
10934         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
10935         text is empty.
10936
10937 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10938
10939         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
10940         prevent calling of OnBackColorChanged. Fixes #325321.
10941
10942 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10943
10944         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
10945         because control can be disabled because owner is disabled.
10946
10947 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10948
10949         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
10950         string.Empty, test failed from previous change.
10951
10952 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10953
10954         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
10955         is null, not String.Empty.  See bug #323038.
10956
10957 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
10958
10959         * TextControl.cs: Change the margins to match MS a little better.
10960         Still not perfect for X11 due to some DrawString differences, but
10961         is still an improvement over the old stuff.
10962         Partially fixes #324467.
10963
10964 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10965
10966         * FolderBrowserDialog.cs: When using MyComputer as 
10967         RootFolder, let absolute paths be considered as valid ones. Also, use
10968         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
10969         for Windows compatibility.
10970         Partially fixes #325247.
10971
10972 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10973
10974         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
10975         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
10976         method, since it causes the dialog to not select folders directly
10977         under the root path (when setting SelectedPath property).
10978
10979 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10980
10981         * TreeNode.cs: When calling Expand/Collapse and need to call 
10982         ExpandBelow/CollapseBelow respectively, take into account
10983         partially visible nodes (previously Expanding/Collapsing
10984         a partially visible node in the bottom was not updating its +- sign).
10985
10986 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10987
10988         * TreeView.cs: When calling Expand on a TreeNode, and we need to
10989         expand nodes below (ExpandBelow), scroll the entire Viewport
10990         area if the node is above it and not visible (instead of scrolling
10991         the area from node's Bottom, which applies only when the node is
10992         visible).
10993         Fixes #325266.
10994
10995 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10996
10997         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
10998         node in the bottom area (as .Net does). This is done to preserve the
10999         scroll position when ExpandAll is called before handle is created for
11000         the 1.1 profile (bottom area, as opposed to top area in 2.0).
11001         Fixes #324103.
11002
11003 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11004
11005         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
11006         bottom area if we are in fact not using the vertical scroll bar.
11007         Fixes #324824.
11008
11009 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
11010
11011         * Control.cs: Comment out a double buffering optimization that doesn't
11012         take into account invalidates created in OnPaint, causing the control
11013         to never be redrawn.  It would take quite a bit of work to work around
11014         this, but I left it commented with an explanation for later possible
11015         optimization.
11016         [Fixes bug #328681]
11017
11018 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
11019
11020         * Control.cs: Ask parent to perform a layout if control is AutoSize and
11021         the text changes.
11022         * RadioButton.cs: Implement GetPreferredSizeCore.
11023         [Fixes bug #328672]
11024
11025 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
11026
11027         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
11028         corcompare stuffs.
11029
11030 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
11031
11032         * Application.cs: Move the sync context stuff to Run instead of RunLoop
11033         so that it doesn't get uninstalled on modal forms.
11034         * Control.cs: Install a sync context when a control is created.
11035         * WindowsFormsSyncronizationContext.cs: Create a private static control
11036         to invoke on.  This is easier than trying to find a created control we
11037         can use.
11038         [Fixes bug #327608]
11039
11040 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
11041
11042         * Application.cs: Install a WindowsFormsSynchronizationContext in the
11043         run loop, and uninstall it when done.
11044         * WindowsFormsSynchronizationContext.cs: Implement.
11045         [Fixes the common case in bug #327608]
11046
11047 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
11048
11049         * DataGridViewCellCollection.cs: Added argument checks for indexers.
11050         Use case-insensitive lookup of column name in indexer. Code
11051         formatting.
11052
11053 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11054
11055         * TreeNode.cs: When collapsing or expanding a node, check whether its
11056         change will affect the visible area (we were previously doing a
11057         IsVisible check, but that check is not enough since children nodes
11058         could be still visible). Fixes part of #325266.
11059
11060 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
11061
11062         * TreeView.cs: Always select the first node when the TreeView gets
11063         focus if there is no currently selected node.
11064         [Fixes bug #324279]
11065
11066 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
11067
11068         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
11069         node being selected is null.
11070         [Patch from Yves Bastide fixes bug #326858]
11071
11072 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11073
11074         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
11075         whether all the parent nodes are expanded.
11076         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
11077         call RecalculateVisibleOrder if all previous nodes are expanded.
11078         Before that we were doing a IsVisible check, but sometimes the node
11079         is not in the visible area, but _should_already be ready, because of
11080         all previous nodes are expanded. Fixes #325259.
11081
11082 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
11083
11084         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
11085         portion of the item is clicked.
11086
11087 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
11088
11089         * TextControl.cs: Do not tell the system to move the cursor if the
11090         textbox isn't focused.  Fixes part of bug #322668.
11091
11092 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
11093
11094         * ComboBox.cs: When there are no items, do not show the dropdown if
11095         the down arrow is clicked.  Fixes part of bug #322668.
11096
11097 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
11098
11099         * ToolStripComboBox.cs: Manually set the size of this control in the
11100         constructor, as it doesn't seem to be the same as DefaultSize.
11101         Fixes a failing monobuild test.
11102
11103 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
11104
11105         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
11106         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
11107
11108 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
11109
11110         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
11111         Desktop.  This lets it work for people who have moved their desktops
11112         from the default location on windows.  For people who have not, both
11113         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
11114
11115 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
11116
11117         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
11118         but when the base constructor sets this, the control is null.  Set it
11119         again in the constructor.  Fixes a failing monobuild test.
11120
11121 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
11122
11123         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
11124         get called.
11125         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
11126         called.
11127
11128 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
11129
11130         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
11131         will handle it themselves.
11132         * ToolStripItem.cs: When deciding what the text of a tooltip should
11133         be, use the Text property instead of the text field.
11134         * ToolStripTextBox.cs: Handle tooltips.
11135         [Fixes bugs #325417 and #325973]
11136
11137 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
11138
11139         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
11140         left click.  Fixes the easy part of bug #325969.
11141
11142 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
11143
11144         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
11145         bug #325406, but set a minimum for StatusStrip to 22 to keep
11146         bug #325390 fixed.  I think this minimum would have been figured
11147         up automatically if the grip was actually a ToolStripItem, but it
11148         currently is not.
11149
11150 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11151
11152         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
11153         as this is apparently the actual value used by .Net. Also apply
11154         ItemPadding in Details view only, and decrease the general width padding,
11155         to have only the needed. This should fix #324340 in Windows too.
11156
11157 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11158
11159         * ListViewItem.cs: Don't Invalidate item if parent is inside
11160         a BeginUpdate/EndUpdate block. This prevents to have differences
11161         between the ListView and items state, as well as avoid some exceptions
11162         there.
11163         * ListView.cs: Make 'updating' field internal.
11164
11165 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
11166
11167         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
11168         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
11169         size if appropriate.
11170         Fixes reopened bug #325414.
11171
11172 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
11173
11174         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
11175         * ToolStripItem.cs: Invalidate before and after our new autosize when
11176         text changes.
11177         Fixes reopened bug #325390.
11178
11179 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
11180
11181         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
11182         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
11183         #325044.
11184
11185 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
11186
11187         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
11188
11189 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11190
11191         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
11192         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
11193         #82734.
11194
11195 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
11196
11197         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
11198         item to select when the ToolStrip is selected.
11199         * ToolStripControlHost: Realign the control when the bounds or visibility
11200         change.
11201         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
11202         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
11203         preferred height.
11204         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
11205         base.OnPaint.  Was causing text not to be drawn.
11206
11207 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
11208
11209         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
11210
11211 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11212
11213         * TreeView.cs: When creating the label edit text box,
11214         set is initially to Visible = false. This is done to
11215         prevent a confusion in the layout which makes it to lose
11216         focus when shown the first time. Fixes part of #82592.
11217
11218 2007-09-13 Andreia Gaita <avidigal@novell.com>
11219
11220         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
11221
11222 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
11223
11224         * ToolStrip.cs: Take Margin into account when calculating preferred
11225         size.  Also, allow preferred size to get smaller than the explicit
11226         size.
11227         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
11228         First step towards fixing bug #82747.
11229
11230 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
11231
11232         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
11233         full row select background over the plus/minus glyph.  Also, turn
11234         off the focus rectangle for full row select since MS doesn't seem
11235         to ever paint it.  [Fixes bug #81839]
11236
11237 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
11238
11239         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
11240         This was causing keyboard opened dropdowns to lose focus.
11241         [Fixes bug #82803]
11242
11243 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
11244
11245         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
11246         ClientRectangle instead.  [Fixes bug #82838]
11247
11248 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
11249
11250         * SplitContainer.cs: We can't reset Visible on every layout because
11251         someone may have set Visible = false explicitly on a SplitterPanel.
11252         Make sure when we switch orientation the SplitterDistance does not
11253         change.  Fixes two failing tests.
11254
11255 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11256
11257         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
11258         TextRenderer, since the latter is only available in 2.0.
11259
11260 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
11261
11262         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
11263         * SplitContainer.cs: Implement FixedPanel layouting.
11264
11265 2007-09-12  Andreia Gaita  <avidigal@novell.com>
11266
11267         * WebBrowserBase.cs: setup shutdown routine
11268
11269 2007-09-12  Andreia Gaita  <avidigal@novell.com>
11270
11271         * Application.cs: Let keyboard events that are targetted 
11272                 to non-mwf windows hosted inside mwf (as in, webbrowser),
11273                 propagate properly. Fixes keyboard handling on the webbrowser.
11274
11275 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11276
11277         * ListView.cs: When handling MouseUp event and we are 
11278         highligting a node with the mouse right button, don't trigger
11279         Before/AfterSelecting event, since we are not actually selecting
11280         the node.
11281
11282 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11283
11284         * TreeView.cs: When editing a node, modify the edit text box
11285         depending on the text length (as you are typing), like MS does.
11286
11287 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
11288
11289         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
11290         Override GetPreferredSizeCore to perform calculations.  Remove custom
11291         autosize logic.  [Fixes bug #82739]
11292
11293 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
11294
11295         * TextBoxBase.cs: Modified should default to false.
11296
11297 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
11298
11299         * Control.cs: Update the anchoring distances even when layout is supspended.
11300         Patch provided by George fixes bug #82805.
11301
11302 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
11303
11304         * Control.cs: Provide a setter for ExplicitHeight.
11305         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
11306         remove the hacks in here for requested_height.
11307         [Fixes bug #82749]
11308
11309 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
11310
11311         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
11312         Maximum to lower that its current Value caused an ArgumentException by setting
11313         the Value to the new Maximum.
11314
11315 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
11316
11317         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
11318         handle moves to the closest tick when it is being dragged.
11319         [Fixes bug #82751]
11320
11321 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
11322
11323         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
11324         can't let them count as real items when calculating where to merge in the
11325         user's items.  [Fixed bug #82786]
11326
11327 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
11328
11329         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
11330         who want to add a menu item directly onto a toolstrip.
11331         [Fixes bug #82775, part II]
11332
11333 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
11334
11335         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
11336         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
11337         don't set it to available.
11338         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
11339         [Fixes bug #82727, part II]
11340
11341 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
11342
11343         * StatusStrip.cs: Change item placement to None if not visible.
11344         * ToolStripItem.cs: Invalidate when InternalVisible changes.
11345         These should have been committed to fix 82723, but I missed them.
11346
11347 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
11348
11349         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
11350         Click, and that it is only called once.
11351         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
11352         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
11353         dropped down.
11354         [Fixes bug #82775]
11355
11356 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11357
11358         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
11359         to match .Net.
11360         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
11361         instead of 8, just like above. Partially fixes #82734.
11362
11363 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11364
11365         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
11366         fixes #82734.
11367
11368         * ListView.cs: Remove extra space between rows in Details view (match
11369         .Net). 
11370         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
11371         the DefaultFont.
11372
11373 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
11374
11375         * Application.cs: Modified ProductVersion to return value of
11376         AssemblyInformationVersion if available, and fallback to assembly
11377         version. Fixes bug #82746. Code formatting.
11378         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
11379         instead.
11380
11381 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11382
11383         * Control.cs: When updating ZOrder for a child control,
11384         take into account the implicit ones (we need it in our controls
11385         using them). Fixes #82642.
11386
11387 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
11388
11389         * ToolStripItem.cs: Add support for animated images.
11390         [Fixes bug #82726]
11391
11392 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
11393
11394         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
11395         visible.  [Fixes bug #82727]
11396
11397 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11398
11399         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
11400         so we repaint using the new size.  [Fixes bug #82723]
11401
11402 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11403
11404         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
11405         option.  [Fixes bug #81779]
11406
11407 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11408
11409         * TreeView.cs: Override HandleClick because the StandardClick style is
11410         set to false.  According to MSDN (and testing), the click events should
11411         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
11412
11413 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11414
11415         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
11416         the border will disappear.  Fixes reopened #82653.
11417
11418 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11419
11420         * Control.cs: If the control is autosize, and its preferred size changes
11421         when it lays out its children, tell its parent so it can be re-layed out.
11422         Fixing some of the fallout from r85433.
11423
11424 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11425
11426         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
11427         and CheckBox share some code.
11428
11429 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11430
11431         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
11432         the TrackBar, not every mouse move.  [Fixed bug #82718]
11433
11434 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11435
11436         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
11437         under 2.0 rendering.  [Fixes bug #82657]
11438
11439 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11440
11441         * TreeView.cs: If we found a TreeNode to display a context menu, but
11442         it doesn't have one to show, let the TreeView display its menu
11443         instead.  [Fixes bug #82680]
11444
11445 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
11446
11447         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
11448         OnPaintInternal instead.  Give the internal TextBox a Border property
11449         so it can draw itself more correctly.  [Fixes bug #82653]
11450
11451 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
11452
11453         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
11454
11455 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
11456
11457         * ComboBox.cs: Adjust combobox button state to reflect current state when
11458         back to enabled = true. Fixes first issue of #82654.
11459
11460 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
11461
11462         * Control.cs: Fix last patch regression, prevent forms to update zorder when
11463         setting visible property.
11464
11465 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
11466
11467         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
11468         fix zorder for controls initially created as non visible. Fixes #82667.
11469
11470 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
11471
11472         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
11473         mimic win32 look. Fixes #82656.
11474
11475 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
11476
11477         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
11478         Stubs for new net 3.5 classes.
11479
11480 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11481
11482         * ListViewItem.cs: In ListViewItemCollection operations calculate
11483         Layout for owner as well as invalidate it. Fixes part of #82642.
11484
11485 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
11486
11487         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
11488         when returning Enabled.  [Fixes bug #82651]
11489
11490 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
11491
11492         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
11493
11494 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11495
11496         * ListView.cs: Put item padding info in a single place
11497         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
11498         columns again.
11499         * ThemeWin32Classic.cs:
11500         * Theme.cs: Likewise.
11501
11502 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11503
11504         * ListView.cs: When a ListViewSubItem instance is invalidated,
11505         invoke Invalidate on parent ListViewItem, not parent ListView.
11506         Fixes #81570.
11507
11508 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
11509
11510         * ListView.cs, ListViewItem.cs: corcompare stuffs.
11511
11512 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
11513
11514         * BindingMemberInfo.cs: Implement == and != operators.
11515
11516 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
11517
11518         * HtmlElementEventArgs.cs: Implement properties.
11519
11520 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
11521
11522         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
11523
11524 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
11525
11526         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
11527         Add (string,string,string) to implement the imagekey.  It turns out, we
11528         use the requested imagekey whereas .Net does not.  So I broke ours to match
11529         theirs.  :(
11530
11531 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
11532
11533         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
11534
11535 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
11536
11537         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
11538
11539 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
11540
11541         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
11542         up-to-date. Fixes bug #82618.
11543
11544 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
11545
11546         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
11547         reflect document changes. Fixes #82367.
11548
11549 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11550
11551         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
11552         as well as add new ones. This should make work the BackgroundImage
11553         property for ListView again.
11554
11555 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
11556
11557         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
11558         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
11559         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
11560
11561 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
11562
11563         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
11564         IsKeyLocked.
11565
11566 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
11567
11568         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
11569         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
11570
11571 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
11572
11573         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
11574         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
11575
11576 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
11577
11578         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
11579
11580 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
11581
11582         * GridEntry.cs: Implement GetService.
11583
11584 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
11585
11586         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
11587         for label editting, make sure we focus back on the TreeView.
11588         [Fixes bug #82590]
11589
11590 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11591
11592         * ListView.cs: Add some 2.0 overrides.
11593
11594 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
11595
11596         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
11597         because getter dont returns right value before handle creation. Thanks 
11598         to George. Fixes #82569.  
11599
11600 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
11601
11602         * Theme.cs: Revert last patch, it causes error under win32. 
11603
11604 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
11605
11606         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
11607         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
11608         logical Desktop rather than the physical file system location. Fixes #82603. 
11609
11610 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
11611
11612         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
11613         for the patch. Fixes #82568.
11614
11615 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11616
11617         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
11618         methods.
11619
11620 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11621
11622         * ListViewInsertionMark.cs: New stubbed class.
11623
11624 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
11625
11626         * FolderBrowserDialog.cs: When adding folder, immediately create the
11627         directory with temporary name and rename the directory when editing
11628         finishes. This matches MS. Ensure the node for the new folder is 
11629         selected and LabelEdit is disabled, when editing is either finished
11630         or cancelled.
11631
11632 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
11633
11634         * TreeView.cs: When editing label of node, ensure node is visible.
11635
11636 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
11637
11638         * PropertyGridView.cs: Set the value only if it has changed.
11639
11640 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11641
11642         * ListView.cs: Some more code refactoring to add support sorting
11643         with groups (now for Details view). Remove unused code also.
11644
11645 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11646
11647         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
11648         Not a big fan of reacting immediately to a field in an EventArg, but that's
11649         the way it's done.  (This is part of the previous commit that got left out.)
11650
11651 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
11652
11653         * FolderBrowserDialog.cs: Removed need for separate description field.
11654         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
11655         has focus when dialog box is displayed again, regardless of what
11656         button was pressed the previous time. Set RootFolder and SelectedPath
11657         each time dialog box is displayed. This ensures the treeview is
11658         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
11659         when it does not have focus. Added support for more special folders.
11660
11661 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11662
11663         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
11664         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
11665         it resets the edit_args.
11666         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
11667         [Fixes bug #82577]
11668
11669 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
11670
11671         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
11672         button to match MS. Provide more meaningful exception message for
11673         invalid RootFolder value. Use zero-length string when SelectedPath
11674         is set to null. Allow non-rooted paths in SelectedPath, but ignore
11675         them in FolderBrowserTreeView. Allow folders to be created in
11676         RootFolder. Fixes bug #82576.
11677
11678 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11679
11680         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
11681         since we need to take into account the group headers and the margin
11682         between them.
11683         * ListViewGroup.cs: Add a rows field to store the number of rows per
11684         group.
11685
11686 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11687
11688         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
11689           Anyways, let's just follow the lead.
11690
11691 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11692
11693         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
11694         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
11695         controls in GetPreferredSizeCore.
11696         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
11697         [Fixes bug #82488]
11698
11699 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11700
11701         * PrintDialog.cs: Need to instantiate the form variable here too.
11702
11703 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11704
11705         * ListView.cs: Do some reorganization to support sorting in groups,
11706         by doing the layout sequentially in ListView.Items. Also add support
11707         for the Default Group, which should be available for items with no
11708         group assigned.
11709         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
11710         for storing layout info also.
11711         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
11712         collection, as well as providing internal members to do a traversal
11713         including the default group (needed when doing layout/drawing).
11714         * ThemeWin32Classic.cs: When drawing group headers use internal
11715         ListViewGroupCollection members to take into account the default
11716         group.
11717
11718 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
11719
11720         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
11721
11722 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11723
11724         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
11725         been created.  If handle is created, we want arror keys.  If we are editing
11726         a node, we want things like enter, esc, home, end, page up, page down.
11727         Allows Esc to work for FolderBrowserDialog.
11728
11729 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11730
11731         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
11732         they close when ESC is pressed.  Thanks Andy!
11733
11734 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11735
11736         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
11737         This way we can tell if this is a CommonDialog provided with mono, or one
11738         that is being implemented outside by a developer.  If it is an external one,
11739         the developer is responsible for showing their own form.  We were showing
11740         our blank form after the developer showed his.
11741         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
11742         PageSetupDialog.cs: Instantiate form variable in our constructor.
11743         [Fixes bug #82531]
11744
11745 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11746
11747         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
11748         and always return true.  [Fixes bug #81616]
11749
11750 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11751
11752         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
11753         TextBox.  [Fixes bug #82549]
11754
11755 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
11756
11757         * FileDialog.cs: When Save/Open is clicked and no filename is selected
11758         or entered then do not close the dialog. Fixes bug #82539. Removed
11759         CWLs.
11760
11761 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
11762
11763         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
11764         code to this method. It is calling every time filter changes. This method
11765         will help to fix the bug #80887.
11766
11767 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
11768
11769         * CheckBox.cs: Implement AutoSize calculation.
11770
11771 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
11772
11773         * CheckBox.cs: Use new 2.0 rendering for 2.0.
11774         * Theme.cs: Method declarations for 2.0 rendering path.
11775         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
11776
11777 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11778
11779         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
11780
11781 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11782
11783         * ListViewGroupCollection.cs: Implement AddRange the right way, to
11784         only call Redraw on the parent one time.
11785
11786 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11787
11788         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
11789           GetClipboardContent.
11790         * DataGridViewCell.cs: Implemented GetClipboardContent,
11791           GetEditedFormattedValue, GetFormattedValue.
11792         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
11793
11794 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
11795
11796         * TableLayoutStyleCollection.cs: corcompare fix.
11797
11798 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11799
11800         * DataObject.cs: Implemented retrieval of convertible / not convertible
11801           objects.
11802
11803 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
11804
11805         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
11806         ourselves.  This ensures the entire old bounds are repainted, in case our new
11807         size is smaller.  [Fixes bug #82518]
11808
11809 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
11810
11811         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
11812         flag to make fast handle of mouse events, without this the mouse move is
11813         handled in some manner, whether it is a mouse move or not. Fixes #81588.
11814
11815 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11816
11817         * ListView.cs: When doing layout calculations don't use a ref
11818         param to keep the current item; instead use its Index value (this 
11819         is specially important when doing the layout with Groups
11820         and Items being sparse). Also don't take into account items added to
11821         the Group but not yet added to the main ListView.Items collection.
11822
11823 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11824
11825         * ListViewGroupCollection.cs: Forgot to mimic an issue
11826         in the indexer (don't assign the ListView owner for new values).
11827
11828 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11829
11830         * ListViewGroupCollection.cs: Make the string indexer use
11831         the int based indexer to re-use code, instead of duplicate the code.
11832         Also Redraw as needed and take into account null values.
11833
11834 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
11835
11836         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
11837         [Fixes bug #82481]
11838
11839 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
11840
11841         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
11842         when other buttons are clicked or navigated to.
11843
11844 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11845
11846         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
11847           it's XplatUIX11 that attaches them.
11848
11849 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11850
11851         * DataGridView.cs: If a column has been added, recreate the editing row.
11852           Fixes #82226.
11853
11854 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11855
11856         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
11857           of the tag to draw. Makes disappearing text show up again.
11858
11859 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11860
11861         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
11862           Contents. Fixes #82487.
11863
11864 2007-08-19  Andreia Gaita  <avidigal@novell.com>
11865
11866         * Added HtmlElement.cs, HtmlElementCollection.cs, 
11867           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
11868           
11869 2007-08-19  Andreia Gaita  <avidigal@novell.com>
11870
11871         * BindingSource.cs: Implement this, dispose and getenumerator.
11872         * DataGridViewRowCollection.cs: Move the InvalidOperationException
11873         out of AddInternal, throw it only on public Add calls. The 
11874         UsingWebBrowser sample was blowing up with this when setting the
11875         DataSource after adding DataBindings, so it's likely that .net
11876         only throws this exception when Add is called directly. 
11877         
11878         * ToolStripControlHost.cs: Return the hosted control's text
11879         property, and not the ToolStripItem one (it would always return
11880         the initial value).
11881         
11882         * HtmlDocument.cs: Implement GetElementById and All
11883         * WebBrowser.cs: Remove exception on set_DocumentStream.        
11884
11885 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11886
11887         * Form.cs: Fix the max and min value for opacity (0~1).
11888
11889 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11890
11891         [Fixes #80118]
11892         * DataGridTableStyle.cs: Default header font is now null, on getter it 
11893         returns datagrid font when is null. On setter permits null.
11894
11895         * DataGrid.cs:
11896         - When ResetHeaderFont set header font to null.
11897         - On EndInit set grid_style.DataGrid.
11898
11899 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11900
11901         * TabControl.cs: Fix regression in default padding x.
11902
11903 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11904
11905         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
11906
11907 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11908
11909         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
11910         not 2. Fixes #82229.
11911
11912 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11913
11914         * TabControl.cs: Fix tab size when image height is less than text height.
11915         Partially fixes #81837.
11916
11917 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11918
11919         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
11920         "alt + tab". It works only for Win32, for X11 theres no way to remove window
11921         from taskbar and keep it on "alt_tab". Fixes #81722.
11922
11923 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11924
11925         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
11926         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
11927         Fixes #80877 and #79418.
11928
11929 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11930
11931         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
11932         between position and one of the screen borders. Fixes #82349.
11933
11934 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11935
11936         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
11937         the MessageBox in the taskbar. Fixes #82457.
11938
11939 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11940
11941         * MessageBox.cs: Fix form size when icon is set and text height is bigger
11942         than icon. Fixes #82468.
11943
11944 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11945
11946         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
11947         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
11948           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
11949           Refactored HandleNCCalcSize somewhat to avoid code duplication.
11950         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
11951           FormBorderStyle to decide if we're calculating a new size from the
11952           client size or not. CreateParams: Don't fake tool windows, only the X11
11953           backend manages toolwindows manually.
11954
11955 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11956
11957         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
11958         ObjectDisposedException.
11959
11960 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11961
11962         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
11963         in OnLoad should not have any effect.  [Fixes bug #82470]
11964
11965 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11966
11967         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
11968         paint for controls that create their own ToolTipWindow instead of
11969         going through ToolTip.
11970
11971 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11972
11973         * ToolTip.cs: Make Hide internal instead of public to match MS API.
11974
11975 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11976
11977         * ListViewGroupCollection.cs: Use generic List instead of an
11978         ArrayList, since this collection is 2.0 only.
11979
11980 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
11981
11982         * ToolTip.cs (Hide): Made public to make the build work (should
11983         this not be public?).
11984
11985 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11986
11987         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
11988         ToolTipWindow.
11989         * ToolTip.cs: Add an internal Visible property to facilitate transition.
11990
11991 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11992
11993         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
11994         PopupEventHandler.cs: Make these internal for 1.1.
11995         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
11996         use ToolTipWindow internals.
11997         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
11998         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
11999
12000 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12001
12002         * X11Dnd.cs: Add a null check.
12003
12004 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12005
12006         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
12007           nothing else succeeds. Fixes #82453.
12008
12009 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12010
12011         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
12012           rectangle if we're painting to another window than the one the paint
12013           message was generated on. Simplify the code somewhat, which makes
12014           PaintEventEnd also simpler.
12015
12016 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12017
12018         * Control.cs: When changing parent of a form, let the form decide whether
12019           XplatUI.SetParent should be called or not.
12020         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
12021           recreating the handle. If the new parent's handle isn't created, don't
12022           recreate our handle, just destroy it. CreateParams: Check if the
12023           parent's handle is created before fetching it.
12024
12025 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12026
12027         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
12028           Update calls to PaintEventStart/End to take a Message argument.
12029         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
12030           take a Message argument.
12031         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
12032           Message argument, and handle the case where we don't paint to the window
12033           for which the paint message was generated.
12034
12035 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12036
12037         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
12038           Marshal.GetLastWin32Error. Plug nasty memory leak in
12039           PaintEventStart/End, we were creating a DC we weren't releasing.
12040
12041 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12042
12043         * ListView.cs: Add Groups support in Details view. Also have a small
12044         method to do the layout of the group header. Don't use a separate
12045         method to do the groups calculation in Icons view, since our methods
12046         are now a little simpler.
12047         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
12048         `Bounds'.
12049         * ThemeWin32Classic.cs: Likewise.
12050
12051 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
12052
12053         * Application.cs: Add FilterMessage method and rework our message loop
12054         logic to use it.
12055
12056 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
12057
12058         * Application.cs: Add some methods and stub a few methods that are
12059         pretty much never used.
12060
12061 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
12062
12063         * TreeNode.cs: Add some serialization methods.
12064
12065 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12066
12067         * ListView.cs: In ListViewItemCollection have a 
12068         'is_main_collection' field to not modify ListViewItem.ListView
12069         when using it as ListViewGroup.Items (and not ListView.Items)
12070         and also don't modify selection state (.Net behaviour). 
12071         Instead, set group for items contained in a ListViewGroup.Items collection.
12072         * ListViewItem.cs: Simplify some code in Group setter.
12073         * ListViewGroup.cs: use the new .ctor to pass the current instance
12074         to the ItemsCollection.
12075         * ListViewGroup.cs: Set the ListView property for ListViewGroup
12076         instances when adding/removing. Also make Remove use RemoveAt, which
12077         should perform better.
12078
12079 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
12080
12081         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
12082         that crept into the 1.1 profile.
12083
12084 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
12085
12086         * ToolBarButton.cs: Implement ImageKey.
12087
12088 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
12089
12090         * ToolBar.cs: Implement ScaleControl/ScaleCore.
12091
12092 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12093
12094         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
12095           created, it might have gotten destroyed since we last checked. Fixes
12096           #82405.
12097
12098 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
12099
12100         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
12101         tooltip will hide when mouse is moved off the control.
12102         [Fixes bug #82407]
12103
12104 2007-08-11 Andreia Gaita <avidigal@novell.com>
12105
12106         * WebBrowserBase.cs, WebBrowser.cs: add implementation
12107         using Mono.Mozilla for loading and navigating webcontrol
12108         with xulrunner.
12109         The initial implementation was done on 
12110         /trunk/mozembed/tests/browser , and copied here.
12111
12112 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
12113
12114         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
12115         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
12116
12117 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12118
12119         * DataGridView.cs: Add support for an editing row. Fixes #82226.
12120           RowTemplateFull: throw an exception if a column doesn't have a template.
12121         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
12122           add the row just before it.
12123         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
12124           selected.
12125         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
12126           DataGridView field to be able to reach the grid's editing row.
12127
12128 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
12129
12130         * ToolTip.cs: If the control's handle hasn't been created when it has a
12131         tooltip set on it, don't check to see if we need to show the tooltip.  This
12132         check was causing the control's handle to be created.
12133         [Fixes bug #82399]
12134
12135 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
12136
12137         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
12138                                         1.1             2.0
12139         Handle Not Created      -1              0
12140         Handle Created          0               0
12141         [Fixes bug #82371]
12142
12143 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
12144
12145         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
12146         [Fixes bug #82348]
12147
12148 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
12149
12150         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
12151         * ToolTip.cs: Implement some properties and owner draw.
12152
12153 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12154
12155         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
12156           show them again, since setting visibility causes a paint, causing an
12157           endless loop (instead use a temporary and set it all when it's known if
12158           they should be shown or not). Fixes #79265.
12159
12160 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12161
12162         * DataGridView.cs: Only do a full column/row selection if a header was
12163           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
12164           isn't pressed, deselect everything before selecting something.
12165
12166 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12167
12168         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
12169           behaviour according to bug #81075 - they are returned in the order they
12170           are selected. Fix HitTest to check if the point is within any of the
12171           headers. Allow for row/column selection when in ColumnHeader or
12172           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
12173           the row and column to call when their selected state changes, and
12174           updated selected_[rows|columns] whenever SetSelected* is called.
12175         * DataGridViewBand.cs: Initialize isRow correctly. Call
12176           SetSelected[Row|Column]CoreInternal when the selected state changes, and
12177           add a SelectedInternal to avoid StackOverflows.
12178         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
12179           ReadOnly no matter what.
12180         * DataGridViewSelectedColumnCollection.cs,
12181           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
12182           the items in reverse order (just as MS does...)
12183
12184 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
12185
12186         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
12187         itself, not part of a mnemonic.  [Fixes bug #82378]
12188
12189 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12190
12191         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
12192         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
12193           the DGV, the column, the row, or the cell itself is readonly.
12194
12195 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
12196
12197         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
12198         OSVersion.Platform.
12199         * FileDialog.cs: Same.
12200         * TextRendered.cs: Same.
12201         * FolderBrowserDialog.cs: Same.
12202         * TextBoxBase.cs: Same.
12203         * Application.cs: Same.
12204         * Cursors.cs: Same.
12205         * ThemeClearLooks.cs: Same.
12206
12207 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
12208
12209         * XplatUI.cs: Added RunningOnUnix property to be used by controls
12210         instead of duplicating these checks everywhere.
12211         * FileDialog.cs: Use case-insensitive comparison for populating the
12212         DirComboBox when not running on unix. Fixes bug #82385.
12213         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
12214         "Look in".
12215
12216 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12217
12218         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
12219           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
12220           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
12221           cell and column selection with ctrl and shift pressed. Call the correct
12222           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
12223           the corresponding virtual method (PaintBackground to paint background,
12224           etc).
12225         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
12226           either the column, row or the cell itself is selected.
12227         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
12228           OnRowsAdded.
12229         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
12230           here. When the row is selected, don't select all cells. Each cell now
12231           queries the row to see if the row is selected.
12232
12233 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12234
12235         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
12236           SelectionMode.
12237
12238 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12239
12240         * ListView.cs: In ListViewItemsCollection check that owner is
12241         not null before trying to access it (this happens quite often
12242         using Groups). Also don't duplicate calls by calling CollectionChanged
12243         method.
12244
12245 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
12246
12247         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
12248         when we are dismissed to clear keyboard mnemonics.
12249         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
12250         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
12251         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
12252         was activated by keyboard or the OS tells us to always draw them.
12253         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
12254         [Fixes bugs #82376, #82377]
12255
12256 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
12257
12258         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
12259         shot at having it because Alt was pressed.
12260         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
12261         the first real menu item.
12262         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
12263         a mnemonic if Text is null.
12264         [Fixes bug #82374]
12265
12266 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12267
12268         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
12269         search do check whether the item is already contained in the
12270         collection or not; instead check if the owner of the item is the same
12271         as ours. Also, remove a redundant check in the same method. 
12272
12273 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
12274
12275         * Control.cs: Allow the clip region to be set back to null.
12276         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
12277         [Fixes button still showing up in bug #82370 when Show Through is turned off]
12278
12279 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12280
12281         * GridEntry.cs: Add a null check.
12282         * PropertyGrid.cs: When checking for existing grid entries, ignore category
12283           entries. Fixes #82297.
12284
12285 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
12286
12287         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
12288         for 2.0.
12289
12290 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
12291
12292         * ListBox.cs: Implement ScaleControl.
12293
12294 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12295
12296         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
12297           have a menu strip.
12298         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
12299           parent has a menu strip. Fixes #81689.
12300
12301 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12302
12303         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
12304           moments, so apply some fuzzy logic to determine if the mouse is still
12305           inside a control or not. Fixes #82288 (for the third time).
12306
12307 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12308
12309         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
12310           Don't create the child if it has been disposed already (may happen if
12311           the user closes the form the Load event).
12312
12313 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12314
12315         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
12316           #82288.
12317
12318 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12319
12320         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
12321           might call us after we've been destroyed, in which case our own private
12322           parent field is null. Fixes #82326.
12323
12324 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
12325
12326         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
12327         check for setting the dropdown's owner.
12328
12329 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
12330
12331         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
12332         before removing system menu items.
12333
12334 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
12335
12336         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
12337         folding.
12338         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
12339         folding.
12340         * ToolStrip.cs: Add a null check to mnemonics.
12341         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
12342         no ConnectedArea.
12343         [Fixes most of bug #81689]
12344
12345 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12346
12347         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
12348
12349 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12350
12351         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
12352
12353 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12354
12355         * DataGridViewCell.cs: EditType: returns
12356           DataGridViewTextBoxEditingControl always.
12357
12358 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
12359
12360         * TextRenderer.cs: Remove the LineLimit string format flag from the
12361         DrawString fallback method so that things like buttons that aren't
12362         tall enough to draw a full line will still draw part of the text.
12363         [Fixes part of bug #82272]
12364
12365 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12366
12367         * DataGridView.cs: Implemented AutoResizeColumn(s).
12368         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
12369           according to the Alignment.
12370         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
12371           Implement alignment and padding when painting.
12372         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
12373           exists.
12374         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
12375           way.
12376         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
12377           a column is added.
12378
12379 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
12380
12381         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
12382         which is internal.
12383
12384 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
12385
12386         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
12387         hide GetPreferredSize from public API.
12388         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
12389         * ToolStripItem.cs: Stub out drag and drop methods and events.
12390         * ToolStripManager.cs: Stub out Save/LoadSettings.
12391         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
12392         * ToolStripPanel.cs: Fix corcompare error.
12393         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
12394         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
12395         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
12396
12397 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
12398
12399         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
12400         bounds height instead of PreferredHeight.  Puts things back the way 
12401         they were for height while still fixing the width.  Fixes broken unit
12402         tests.
12403
12404 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12405
12406         * Binding.cs: Implement 2.0 constructors and add a null check.
12407
12408 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12409
12410         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
12411           and fix row index (off by one).
12412
12413 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12414
12415         * PropertyGridView.cs: Remove debug output.
12416
12417 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12418
12419         * Control.cs: We need to reset the is_created flags when the handle is
12420           destroyed. Fixes #82187.
12421         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
12422           client coordinates if the window doesn't have a parent.
12423           Win32GetParent returns the parent or the owner, and for top-level
12424           windows with no parent (but with an owner) we were calculating the
12425           location from the location of the owner.
12426         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
12427           form has been disposed.
12428         * MdiClient.cs: Add a null-check.
12429
12430 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
12431
12432         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
12433         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
12434         so we can provide an implementation that returns the current width
12435         and preferred height.  Allows anchor = right to work with TextBox 2.0.
12436         [Fixes bug #82233]
12437
12438 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12439
12440         * ListView.cs: Add support for navigating items in Groups mode, by
12441         creating a big matrix containing all rows and cols of all groups. When
12442         are in other mode than Details, pressing Up should have a similar
12443         behaviour as that one of Down (moving to the next available column if
12444         current one doesn't have an item in the requested row). Also, don't
12445         proceed to use groups if ShowGroups is false.
12446         * ListViewGroup.cs: Add an internal int field to store the starting
12447         row of the group (used by the big matrix used for navigating the
12448         ListView).
12449         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
12450         false.
12451
12452 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
12453
12454         * ToolStripDropDown.cs: When we do Show, start with the 
12455         DefaultDropDownDirection, but if our popup menu is going to off-screen,
12456         modify the direction to keep it on screen.  [Fixes bug #82210]
12457
12458 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
12459
12460         * FileDialog.cs: Accept any FilterIndex value, and store it
12461         unmodified. When FilterIndex is less than 1, or greater than number
12462         of filters, then default to first filter. Only add filter extension to
12463         file if user did not specifiy an extension. When type of dialog is
12464         OpenFileDialog and DefaultExt is set, then only use filter extension
12465         if: CheckFileExists is true and no file wih the default extension
12466         exists, or CheckFileExists is false, and user specified file does not
12467         exist. When CheckFileExists is true, then add first extension of 
12468         selected filter that matches existing file. Perform checks for
12469         existing file, overwrite and create after extension has been added to
12470         file name. When CheckFileExists is true and type is SaveFileDialog,
12471         then only consider first filter extension if DefaultExt is set.
12472         When CheckFileExists is true, then ignore DefaultExt if file with that
12473         extension does not exist. Also perform check for existing file when
12474         type is SaveFileDialog. Changed some field to constants.
12475
12476 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12477
12478         * ListView.cs: Take into account the region used by header
12479         control when doing the vertical scroll (this way we invalidate
12480         the precise area, and don't get any dirty one).
12481
12482 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
12483
12484         * FileDialog.cs: Check for valid filterIndex on button open/save. 
12485         Fixes #82184.
12486
12487 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12488
12489         * ListView.cs: Update some layout calculations in details view
12490         and clean the code in a pair of assignations.
12491
12492 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
12493
12494         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
12495         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
12496         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
12497         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
12498
12499 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
12500
12501         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
12502         performance of thread-safe Graphic methods.  (Thanks rolf!)
12503
12504 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12505
12506         * ListView.cs: When doing the layout calculations, don't calculate
12507         scroll bars before handle is created. This is unnecessary and also
12508         calculating them before handle creation item causes a number of random
12509         bugs (which begin to appear after Chris' big patch for handle creation
12510         fixes). 
12511
12512 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
12513
12514         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
12515         for things that don't have a Graphics object.  Currently, things just use
12516         the static Hwnd.bmp_g which is not thread safe.
12517
12518 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12519
12520         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
12521           dialog. Fixes #82187.
12522
12523 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12524
12525         * DataGridViewElement.cs: Initialize state.
12526         * DataGridView.cs: Forward a few Mouse events to cells. Add
12527           GetRowInternal and GetCellInternal that doesn't unshare rows.
12528           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
12529           don't use the index, but look it up. Add
12530           DataGridViewControlCollection.RemoveInternal to remove controls
12531           that Remove won't remove (scrollbars, edit control).
12532         * DataGridViewColumn.cs: Initialize State correctly.
12533         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
12534           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
12535           implementing this.
12536         * DataGridViewRowCollection.cs: Implemented shared rows.
12537         * DataGridViewRow.cs: Throw exceptions as MS do.
12538         * DataGridViewCell.cs: A few properties are implemented by a
12539           Get<Property> method, so move implementation there and remove the
12540           NIEX in the method. Add a bunch of OnXInternal that DataGridView
12541           calls when necessary.
12542         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
12543           complicates matters.
12544         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
12545           unshare any rows.
12546
12547 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
12548
12549         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
12550         the children controls.  Instead, we will just set up the proper docking for the
12551         children controls so we don't have to worry about it.  [Fixes bug #82188]
12552
12553 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
12554
12555         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
12556         canceling and correct Before/AfterLabelEdit properties as layed out in bug
12557         81847.  [Fixes bug #81847]
12558
12559 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
12560
12561         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
12562         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
12563         an explicit size based on the design-time size of the text.  Since our fonts
12564         may not match this explicit size, we tend to cut off the ends of people's labels.
12565
12566 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
12567
12568         * Menu.cs: Add some missing methods to MenuItemCollection.
12569
12570 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12571
12572         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
12573         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
12574         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
12575         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
12576         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
12577         * DataGridViewElement.cs: State defaults to Visible.
12578         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
12579         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
12580
12581 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12582
12583         * Control.cs: Minor 1.1 corcompare fix.
12584
12585 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
12586
12587         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
12588         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
12589
12590 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12591
12592         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
12593           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
12594           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
12595           DataGridViewSelectedColumnCollection.cs,
12596           DataGridViewSelectedRowCollection.cs: Corcompare work.
12597
12598 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
12599
12600         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
12601         it is autoset by VS2005 designer and the effect is barely noticeable.
12602
12603 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
12604
12605         * TreeView.cs: Implement HitTest.
12606
12607 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12608
12609         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
12610           manually adding and removing the control from the Controls
12611           collecftion.
12612         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
12613           EditingControlInternal property that tracks the editing control.
12614           Always keeping the scrollbars in the Controls collection, as MS
12615           testing confirms is the right behaviour.
12616
12617 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12618
12619         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
12620           according to MSDN and new test.
12621
12622 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
12623
12624         * TreeNode.cs: Implement ToolTipText.
12625         * TreeView.cs: Implement tooltips, NodeMouse* events.
12626
12627 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
12628
12629         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
12630
12631 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
12632
12633         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
12634         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
12635
12636 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
12637
12638         * Control.cs, Form.cs, ContainerControl.cs,
12639         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
12640         for misc properties.
12641
12642 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
12643
12644         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
12645         * TreeView.cs: Implement StateImageList.
12646
12647 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12648
12649         * Form.cs: Don't check if the current form is the active form before
12650           activating it. Fixes #81904.
12651
12652 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12653
12654         * Form.cs: Don't check if the current form is the active form before
12655           activating it. Fixes #81904.
12656
12657 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12658
12659         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
12660
12661 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12662
12663         * Form.cs: Don't try to position the form after loading if the form was
12664           disposed. Fixes #81969.
12665
12666 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12667
12668         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
12669           properties. Had to change ToolBar into ToolStrip, which required a
12670           few #ifs.
12671
12672 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12673
12674         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
12675           resized, fixes part of #79829 (vertical lines in toolbar).
12676           PropertyGrid: Refactored Populate* to something that's easier to
12677           follow at least for me, as well as splitting it up into several new
12678           methods, required to update only subitems when something has
12679           changed by a popup editor or listbox. Don't use events to check
12680           when any values are changed, since the events are unreliable (we're
12681           changing the objects the events are registered with, and if the
12682           event handling requires the objects to be immutable (objects stored
12683           in hashtables for instance), the events will never be raised).
12684         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
12685           everytime we change a value, since events are unreliable.
12686           DropDownButtonClicked: For the same reason don't compare objects to
12687           check if it has changed or not, it would require all objects to
12688           derive Equals. Fix dialog location on windows, MS is doing weird
12689           things when creating parented forms.
12690         * GridEntry.cs: Add a SelectedObject setter.
12691
12692 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
12693
12694         * TreeNode.cs: Add some corcompare attributes.
12695         * TreeNodeCollection.cs: Implement 2.0 stuffs.
12696         * TreeView.cs: Implement some 2.0 stuffs.
12697
12698 2007-07-18  Andreia Gaita  <avidigal@novell.com>
12699
12700         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
12701         for moma.
12702
12703 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
12704
12705         * ListBox.cs: Implement custom tab offsets.
12706
12707 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12708
12709         * ToolStripContentPanel.cs: Support System renderer.
12710         * ToolStripControlHost.cs: Set RightToLeft to default to No.
12711
12712 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12713
12714         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
12715
12716 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12717
12718         * CheckBox.cs: Chain TextAlign to base implementation instead of
12719         maintaining another one.
12720
12721 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12722
12723         * ButtonBase.cs: Fix an incorrect string constant.
12724
12725 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12726
12727         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
12728         of creating one for measuring strings.
12729
12730 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12731
12732         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
12733         Implement MaxItemSize.
12734
12735 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
12736
12737         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
12738         for DeviceContext.  Instead, use the static one available in Hwnd.
12739         Informal tests show this saves about 500k on formtest.exe.
12740
12741 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
12742
12743         * ContainerControl.cs: Implement 2.0 AutoScaling.
12744
12745 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12746
12747         * ComboBox.cs: Work around bug #82120 (bug in mcs).
12748
12749 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
12750
12751         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
12752         Darken the focus color.
12753
12754 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
12755
12756         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
12757         for the checkbox.
12758         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
12759         X, Y instead of a rect for drawing text.
12760         - For ControlPaint.DrawCheckBox, center the check a little better when the
12761         checkbox is odd width.  When drawing a flat checkbox, use a white background
12762         when state != inactive.
12763         [Fixes bugs #82097, 82100]
12764
12765 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
12766
12767         * ListControl.cs: When changing CurrencyManager, disconnect event
12768         handlers from previous one. Fixes bug #81771. Code formatting.
12769
12770 2007-07-15  Andreia Gaita <avidigal@novell.com>
12771
12772         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
12773         full preview invalidation from layout invalidation, and only invalidate
12774         the layout when setting zoom or other properties. Invalidation should
12775         always be done even when resetting properties with the same values as
12776         what is there. Fixes #81744 and #79830.
12777
12778 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12779
12780         * ListView.cs: Implement initial support for Groups. Split some of the
12781         LayoutIcons code to render a partial list of the items (needed by
12782         items contained in ListViewGroup instances). Let the
12783         ListViewItemsCollection.ListView property be modifiable (needed when
12784         using Groups, too).
12785         * ListViewGroup.cs: Use a Bounds property rather than a Location
12786         one. Also invalidate the bounds when they get changed.
12787         * ThemeWin32Classic.cs: When drawing items, also draw the group header
12788         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
12789         method as well.
12790
12791 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12792
12793         * ListView.cs: When space gets pressed and CheckBoxes is true, 
12794         don't invoke the Begin and EndUpdate methods. We are generating 
12795         a redraw of the entire control without need to do so.
12796
12797 2007-07-13  William Holmes <billholmes54@gmail.com> 
12798
12799         * Control.cs: Changing logic in FindFlatForward and 
12800           FindFlatBackward to handle multiple Controls with 
12801           the same TabIndex.  
12802           This fixes bug 81687.
12803
12804 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
12805
12806         * OSFeature.cs: Enable IsPresent.
12807
12808 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12809
12810         * Control.cs: Don't do anything in WmShowWindow if the control has been
12811           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
12812           control is created, put on a form, the control is disposed (the
12813           form is never shown), and then we get a MapNotify, triggering a
12814           WM_SHOWWINDOW.
12815         * Form.cs: Exclude the current form when sending Deactivate to all
12816           MdiChildren.
12817         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
12818           there was a race condition because assigning the handle raises
12819           events, we can get more messages, therefore trying to assign the
12820           handle again, which would fail if any of those event handlers
12821           closed/disposed the control.
12822
12823 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12824
12825         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
12826
12827 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
12828
12829         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
12830         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
12831
12832 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12833
12834         * DateTimePicker.cs: If there's no part format specifier, return an
12835           empty string.
12836
12837 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
12838
12839         * FlatButtonAppearance.cs: Throw NotSupportedException for a
12840         Transparent BorderColor.
12841
12842 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12843
12844         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
12845           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
12846           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
12847           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
12848           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
12849           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
12850           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
12851           Remove warnings.
12852         * X11Structs.cs: Remove warnings, add ToString implementations.
12853
12854 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12855
12856         * XplatUIX11.cs: Translate min/max size according to the actual min/max
12857           size, and not the current size. Fixes #81798.
12858
12859 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12860
12861         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
12862           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
12863           to the control yet).
12864
12865 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12866
12867         * PropertyGridTextBox.cs: Add a method that sends any forwarded
12868           mousedowns to the contained textbox.
12869         * X11Structs.cs: More ToString implementation.
12870         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
12871           #81791.
12872
12873 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12874
12875         * PropertyGridView.cs: Add a null-check, fixes a few tests.
12876
12877 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
12878
12879         * TableLayoutPanelCellPosition.cs: TypeConverter.
12880
12881 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12882
12883         [ Fixes #79761]
12884         
12885         * PropertyGridTextBox.cs: Propagate any color changes to all contained
12886           controls.
12887         * PropertyGridView.cs: A few color fixes.
12888
12889 2007-07-10  Jackson Harper  <jackson@ximian.com>
12890
12891         * TextControl.cs: Remove some old unused text formatting stuff.
12892
12893 2007-07-10  Jackson Harper  <jackson@ximian.com>
12894
12895         * TreeView.cs: Update full row select invalidation to match the
12896         newer DrawSelection... method.
12897         - Make sure to invalidate the entire width when selecting a new
12898         node, if we have full row selection enabled.
12899
12900 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12901
12902         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
12903           display of properties again.
12904
12905 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
12906
12907         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
12908         to existing collections.
12909
12910 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12911
12912         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
12913         that changed between 1.1 and 2.0.
12914
12915 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12916
12917         * PowerStatus.cs: Added.  This is just a data class, it is filled
12918         in by SystemInformation.
12919
12920 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12921
12922         * Message.cs: Add op_Equality and op_Inequality.
12923
12924 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12925
12926         * MenuStrip.cs: Finish corcompare work.
12927
12928 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12929
12930         * LinkArea.cs: Add op_Equality and op_Inequality.
12931
12932 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12933
12934         * Application.cs: Add MessageLoopCallback delegate.
12935
12936 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12937
12938         * ListBox.cs: First set of 2.0 stuffs.
12939
12940 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12941
12942         * Control.cs: Make an internal Height property we can override
12943         without messing up the public API.
12944         * ListBox.cs: Override HeightInternal to always return the size
12945         the user set.  [Fixes bug #80466]
12946
12947 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
12948
12949         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
12950         paint cell borders if we haven't calculated where they go yet.
12951         [Fixes bugs #82040 and #82041]
12952
12953 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12954
12955         * ListView.cs: In Details view, set the location of item_control
12956         in the (0,0) position (and the header_control is thus on the
12957         item_control). This way the Bounds of the Items are relative to the
12958         ListView control (before this, they had a Bounds value without the
12959         header_control offset, which wasn't matching .Net). Fixes #82004.
12960
12961 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12962
12963         * ListControl.cs: When DataSource is set to null, pass an empty
12964         array of object to SetItemsCore. This is done to clean the items
12965         in the ListContol children. Fixes #81788.
12966
12967 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12968
12969         * ListControl.cs: Add 2.0 stuffs.
12970
12971 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12972
12973         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
12974         Refresh is overkill for just about every repaint request.
12975
12976 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12977
12978         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
12979         so remove my custom Get method and fix the property getter.
12980
12981 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12982
12983         * Label.cs: DefaultMargin for 2.0.
12984
12985 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12986
12987         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
12988         reported issue where other controls with mnemonics would steal strokes
12989         from a selected ComboBox.
12990
12991 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12992
12993         * ScrollOrientation.cs: Make internal for 1.1.
12994         * ScrollEventArgs.cs: Add 2.0 stuffs.
12995
12996 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
12997
12998         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12999         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
13000         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
13001
13002 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13003
13004         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
13005
13006 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13007
13008         * ListView.cs: Implement the so-incredibly broken 2.0 
13009         VirtualItemsSelectionRangeChanged event.
13010
13011 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13012
13013         * ListView.cs: When enter is pressed and selection is non empty,
13014         an OnItemActivate event must be fired.
13015
13016 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13017
13018         * ListView.cs: Store the FocusedItem information as an
13019         int instead of a ListViewItem (needed by VirtualMode).
13020         Update the calls to SetFocusedItem to pass an index instead of
13021         an item.
13022         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
13023         the Focused state from the owner ListView. 
13024
13025 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13026
13027         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
13028         property. Also, invalidate previous focused item in the mentioned
13029         property (match .Net).
13030
13031 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13032
13033         * ListView.cs: Implement 2.0 FocusedItem property setter.
13034
13035 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13036
13037         * ListView.cs: Implement 2.0 TopItem property setter.
13038
13039 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
13040
13041         * StatusStrip.cs: The default renderer is System.
13042         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
13043         if the user specifies it.
13044         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
13045         if we are ManagerRenderMode.
13046         * ToolStripMenuItem.cs: Calculate our text color better.
13047         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
13048         from Professional to the base class based off working with the System renderer.
13049         * ToolStripSystemRenderer.cs: Added.
13050
13051 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13052
13053         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
13054
13055 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
13056
13057         * ToolTip.cs: Implement 2.0 Tag property.
13058
13059 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13060
13061         * ListView.cs: Implement 2.0 HitTest methods.
13062
13063 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13064
13065         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
13066         item is under the pointer or not (sugar). Also remove the TODO
13067         regarding to the cursor changes in OneClick activation.
13068         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
13069         the subitems use the parent's HotFont if UseItemStyleForSubItems is
13070         true; otherwise don't show the underline style.
13071
13072 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13073
13074         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
13075         the code to retrieve the item at position only one time. Also
13076         change cursor when Activation is ItemActivation.OneClick as well
13077         as invalidate the item if HotTracking is true (to show/hide the
13078         underline style). Add an internal HotItemIndex property to retrieve
13079         the current hot item's index.
13080         * ListViewItem.cs: Add an internal HotFont property to cache the
13081         font used when HotTracking is true and the pointer moves within the
13082         item's borders.
13083         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
13084         HotFont depending on the hot state of the item.
13085
13086 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13087
13088         * ListView.cs: Implement 2.0 HotTracking property.
13089
13090 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
13091
13092         * ToolStripControlHost.cs: If our hosted control never got created,
13093         don't try to dispose it.  [Fixes bug #81909]
13094
13095 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
13096
13097         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
13098
13099 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
13100
13101         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
13102
13103 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13104
13105         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
13106         Details view.
13107         * DrawListViewColumnHeaderEventArgs.cs:
13108         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
13109         using the DrawText () methods.
13110
13111 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
13112
13113         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
13114         background which got erased in my changes yesterday.
13115
13116 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13117
13118         * ListViewItem.cs: Actually set bounds for subitems in Details view
13119         (2.0 feature).
13120         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
13121         can invoke from the owner draw routines if we need it. Also, add
13122         support for Owner draw in Details view.
13123
13124 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
13125
13126         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
13127         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
13128         ShowImageMargin setting, properly align text in a ToolStripLabel
13129         hosted on a ToolStripDropDown.
13130
13131 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
13132
13133         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
13134         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
13135
13136 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13137
13138         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
13139
13140 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
13141
13142         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
13143         location to match ToolStripMenuItems.
13144
13145 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13146
13147         * DrawListViewColumnHeaderEventArgs.cs:
13148         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
13149         column headers in ListView. 
13150
13151 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
13152
13153         * UserControl.cs: Implement AutoSize.
13154
13155 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13156
13157         * DrawListViewItemEventArgs.cs:
13158         * ListView.cs:
13159         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
13160         ListView.
13161
13162 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
13163
13164         * ToolStripDropDownItemAccessibleObject.cs: Added.
13165         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
13166         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
13167         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
13168         ToolStripTextBox.cs: corcompare work.
13169
13170 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
13171
13172         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
13173         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
13174         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
13175                 corcompare.
13176
13177 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
13178
13179         * OSFeature.cs: Add IsPresent.
13180         * PrintPreviewControl.cs: Add RightToLeft.
13181         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
13182         * SplitterPanel.cs: Add AutoSizeMode.
13183
13184 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
13185
13186         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
13187         * MdiClient.cs: Add 2.0 ScaleControl.
13188         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
13189         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
13190
13191 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
13192
13193         * Form.cs: Implement some scaling methods, stub some RTL methods,
13194         corcompare work.
13195
13196 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
13197
13198         * Control.cs: corcompare work.
13199         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
13200
13201 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
13202
13203         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
13204         ControlPaint 2.0 stuffs.
13205
13206 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
13207
13208         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
13209
13210 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
13211
13212         * UpDownBase.cs: Add 2.0 stuffs.
13213
13214 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
13215
13216         * NumericUpDown.cs: Add 2.0 stuffs.
13217
13218 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
13219
13220         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
13221
13222 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
13223
13224         * ErrorProvider.cs: Implement 2.0 stuffs.
13225
13226 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
13227
13228         * DomainUpDown.cs: Implement 2.0 stuffs.
13229
13230 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
13231
13232         * CheckedListBox.cs: Fix RefreshItems signature.
13233
13234 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
13235
13236         * PictureBox.cs: Implement 2.0 stuffs.
13237
13238 2007-06-12  Andreia Gaita  <avidigal@novell.com>
13239         
13240         * TabControl.cs: Check if there are tabpages before checking
13241         the selected index - fix #81802 (font changes raise a ResizeTabs
13242         call on controls.add, which blew up nicely with no tabpages)
13243
13244 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13245
13246         * ListView.cs:
13247         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
13248
13249 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13250
13251         * ListView.cs:
13252         * ListViewItem.cs: In VirtualMode the selection information
13253         resides in the ListView, rather than in the Items. Also, throw
13254         InvalidOperationExceptions when VirtualMode is being used and
13255         CheckedItemCollection is accessed.
13256
13257 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
13258
13259         * ComboBox.cs: Add ScaleControl.
13260
13261 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
13262
13263         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
13264
13265 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
13266
13267         * GroupBox.cs: Add 2.0 stuffs.
13268
13269 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
13270
13271         * Panel.cs: Add autosize properties/event.
13272
13273 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
13274
13275         * Control.cs:
13276         - When we remove a control, remove it from the collection before performing the layout.
13277         - Setup an internal property for explicit_bounds.
13278         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
13279         - Perform a layout when we set a new AutoSizeMode.
13280
13281 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
13282
13283         * ScrollableControl.cs: Add 2.0 stuffs.
13284
13285 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
13286
13287         * ScrollBar.cs: Add 2.0 stuffs.
13288
13289 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
13290
13291         * Splitter.cs: Add 2.0 stuffs.
13292
13293 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
13294
13295         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
13296         to have BindingContext simply use base implementation.
13297
13298 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
13299
13300         * ColumnHeader.cs: corcompare fix.
13301
13302 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
13303
13304         * Button.cs: corcompare fixes.
13305         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
13306
13307 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
13308
13309         * Button.cs: Override GetPreferredSizeCore.
13310         * ButtonBase.cs: PerformLayout after changing properties that can affect
13311         AutoSize.  Simplify some mouse/keyboard code.
13312         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
13313         * MouseEventArgs.cs: Make Location internal for 1.1.
13314         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
13315         * Theme.cs: Add CalculateButtonAutoSize.
13316         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
13317
13318 2007-06-05  Miguel de Icaza  <miguel@novell.com>
13319
13320         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
13321
13322 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13323
13324         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
13325         since we can get different item instances every time we retrieve it.
13326
13327 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13328
13329         * ListView.cs: Work around for #81602, since an unkown an pretty
13330         infrequent condition appears only in some systems (old linux boxes, it
13331         seems).
13332
13333 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
13334
13335         * Button.cs: Completely reformat and a little refactor to bring
13336         this closer to Mono circa 2007.
13337
13338 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
13339
13340         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
13341         to be ButtonBase.Invalidate.
13342
13343 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
13344
13345         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
13346
13347 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
13348
13349         * ButtonBase.cs: Completely reformat and a little refactor to bring
13350         this closer to Mono circa 2007.
13351
13352 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
13353
13354         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
13355         values for autosize. Fixes #80137.
13356
13357 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
13358
13359         * Control.cs: Don't perform layout when AutoSize changes.
13360         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
13361         directly when autosizing, use SetBounds with BoundsSpecified.None.
13362         Fixes unit tests my last commit broke.
13363
13364 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
13365
13366         * Control.cs: Perform layout when AutoSize changes.
13367         * Form.cs: Implement AutoSizing.
13368
13369 2007-06-01  Chris Toshok  <toshok@ximian.com>
13370
13371         * DataGrid.cs: remove the XXX'ed check at the top of
13372         ProcessGridKey.  fixes #80464.
13373
13374 2007-06-01  Chris Toshok  <toshok@ximian.com>
13375
13376         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
13377         adding idempotent (add/remove in Edit()), and also make sure we
13378         don't add it until after we set the text, so it's not tripped in
13379         Edit().  Fixes unit test regression.
13380
13381 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
13382
13383         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
13384         change is user explicit, not when the layout engine moves stuff.  Fixes
13385         anchoring to bottom and right.  [Fixes bug #81790]
13386
13387 2007-06-01  Andreia Gaita  <avidigal@novell.com>
13388
13389         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
13390
13391 2007-06-01  Andreia Gaita  <avidigal@novell.com>
13392
13393         * ContainerControl.cs: 
13394         Fire enter event for common ancestor if it is not a ContainerControl.
13395         Send focus to the active_control and not the 'value', the active 
13396         control might have been changed in one of the events fired.     
13397         Definitely fixes #80159.
13398
13399 2007-06-01  Andreia Gaita  <avidigal@novell.com>
13400
13401         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
13402
13403 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13404
13405         * PropertyGrid.cs: Anchor the help description to the bottom of the
13406           help panel and refactor SelectGridItem into a
13407           SelectGridItemInternal that can be set to null (and update it to
13408           clear the help texts when it is set to null). Set root item to null
13409           when there's no SelectedObject. Fixes #80438.
13410         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
13411           when we're recalculating after a resize (only).
13412
13413 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13414
13415         * ListView.cs: Implement 2.0 RedrawItems method.
13416
13417 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13418
13419         * ListControl.cs: Disconnect PositionChanged and ItemChanged
13420         handlers from previous data manager when DataSource is set to
13421         null. Fixes #81771.
13422
13423 2007-05-31  Jackson Harper  <jackson@ximian.com>
13424
13425         * TextBoxBase.cs: These seem to be the correct values.
13426
13427 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
13428
13429         * FileDialog.cs: When close dialog with ok set filterindex using combobox
13430         value. Fixes #81784.
13431
13432 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
13433
13434         * Control.cs: Implement 2.0 scaling methods.
13435
13436 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13437
13438         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
13439           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
13440           corcompare issues.
13441
13442 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13443
13444         * ProgressBar.cs: Implemented missing 2.0 members.
13445
13446 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13447
13448         * Control.cs: Corcompare issues.
13449         * MessageBox.cs: Implemented missing 2.0 functions.
13450
13451 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13452
13453         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
13454           Implemented more 2.0 members.
13455
13456 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13457
13458         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
13459           null (strange, but it seems to happen when running unit tests).
13460
13461 2007-05-30  Andreia Gaita  <avidigal@novell.com>
13462
13463         * ContainerControl.cs: Set active_control even earlier, before 
13464         firing any events, and undo it if validation returns false.
13465
13466 2007-05-30  Andreia Gaita  <avidigal@novell.com>
13467
13468         * ContainerControl.cs: Raise Validation and Enter/Leave events
13469         even if there is no Form and set active_control earlier, just
13470         before firing Enter events (toshok's patches). Fixes #80647.
13471
13472 2007-05-30  Jackson Harper  <jackson@ximian.com>
13473
13474         * TextControl.cs: Redid the pageup/pagedown a little to simplify
13475         things and fix bug #81311.
13476
13477 2007-05-30  Jackson Harper  <jackson@ximian.com>
13478
13479         * X11Dnd.cs: Now that we have our own event loop, we need to
13480         cancel when we get a mouseup but it won't be accepted.
13481
13482 2007-05-30  Chris Toshok  <toshok@ximian.com>
13483
13484         * DataGrid.cs (set_CurrentCell): guard against negative
13485         column/row.
13486
13487         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
13488         array index syntax instead of looping over the property names.
13489
13490         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
13491         and set IsInEditOrNavigateMode to false there.
13492
13493 2007-05-30  Jackson Harper  <jackson@ximian.com>
13494
13495         * TreeView.cs: Make sure we don't get a bad visible order when
13496         setting to the top node.  Fixes some misc crashing in
13497         ControlInspector.
13498
13499 2007-05-30  Andreia Gaita  <avidigal@novell.com>
13500
13501         * UserControl.cs: Add 2.0 AutoSizeMode
13502
13503 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
13504
13505         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
13506
13507 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
13508
13509         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
13510         lines. Fixes #80285. 
13511
13512 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
13513
13514         * DataGridColumnStyle.cs: Add char trimming column header text format. 
13515
13516 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
13517
13518         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
13519         Fixes #80147.
13520
13521 2007-05-29  Jackson Harper  <jackson@ximian.com>
13522
13523         * TreeNode.cs: Fix off by one on calculating whether or not a node
13524         is visible.
13525
13526 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
13527
13528         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
13529         * ScrollableControl.cs: Force an UpdateDistances when we move the
13530         scrollbars.
13531         [Fixes bug #80605]
13532
13533 2007-05-29  Andreia Gaita  <avidigal@novell.com>
13534
13535         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
13536         update the page setup screen.
13537
13538 2007-05-29  Andreia Gaita  <avidigal@novell.com>
13539
13540         * PageSetupDialog.cs: Fix landscape mode.
13541
13542 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13543
13544         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
13545         IconSizeHorizontalSpacing.
13546
13547 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13548
13549         * ListView.cs: The declaration of prev_tooltip_item should be inside
13550         a NET_2_0 conditional (avoid a warning).
13551
13552 2007-05-28  Andreia Gaita  <avidigal@novell.com>
13553
13554         * PageSetupDialog.cs: Implement PrintPreview control to display
13555         the preview thumbnail. Change unit conversion to use 
13556         PrinterUnitConvert methods.
13557         
13558         Note: there is a huge bug in ms.net where the default margins are 
13559         interpreted as centimeters (?), when in fact they are set in inches. When 
13560         loading the page setup dialog initially (ms.net), the default margins 
13561         are set to 1 inch, and the dialog shows them with value 10, when in fact 
13562         it should be 25 (properly converted). Our dialog doesn't have this bug.
13563         
13564         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
13565         RectangleF.
13566         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
13567
13568 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13569
13570         * ListView.cs:
13571         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
13572         items.
13573
13574 2007-05-28  Andreia Gaita  <avidigal@novell.com>
13575
13576         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
13577         an IntPtr on csc (it builds fine on mcs, could it be a compiler
13578         bug?), convert the ptr to Int32 first.
13579
13580 2007-05-28  Jackson Harper  <jackson@ximian.com>
13581
13582         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
13583         recieved, we will exit the dnd tracking loop.
13584
13585 2007-05-28  Jackson Harper  <jackson@ximian.com>
13586
13587         * X11Dnd.cs: Keep tracking until the xdnd finished event is
13588         recieved. TODO: I should probably stick a timer on the dropped
13589         event, and finish the drag if the XDND Finished event never shows
13590         (because some apps don't seem to send it).
13591
13592 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
13593
13594         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
13595         #81733.
13596
13597 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13598
13599         * MonthCalendar.cs: Only mark the keypresses we actually handle as
13600           handled.
13601
13602 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13603
13604         * MonthCalendar.cs: Set the size after initializing all the relevant
13605           variables. Fixes #81742.
13606
13607 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13608
13609         * KeyEventArgs.cs: Fix typo.
13610
13611 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
13612
13613         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
13614         to match MS. Fixed MinDate to only accept value less than or equal
13615         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
13616         Removed TODO's that are now verified by unit tests.
13617
13618 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
13619
13620         * TreeNodeCollection.cs: Minor corrections to exceptions to match
13621         MS.
13622
13623 2007-05-25  Jackson Harper  <jackson@ximian.com>
13624
13625         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
13626         it's own message loop.
13627         * XplatUIX11.cs: Remove some of the dnd hooks
13628
13629 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
13630
13631         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
13632         instead of MinimizedWindowSize.
13633
13634 2007-05-25  Jackson Harper  <jackson@ximian.com>
13635
13636         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
13637
13638 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13639
13640         * KeyEventArgs.cs: Added SuppressKeyPress.
13641         * Control.cs: Added support for SuppressKeyPress.
13642
13643 2007-05-24  Andreia Gaita  <avidigal@novell.com>
13644
13645         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
13646         problems with PieChart. suppress_validation should not be a counter,
13647         if there are several BeginInit calls, the first EndInit will 
13648         activate validation. Fix exceptions thrown by set_Value.
13649         * UpDownBase.cs: ValidateText only if it's the user editing it.
13650
13651 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13652
13653         * ListControl.cs: FilterItemOnProperty should return the filtered
13654         item proeprty even if DataSource is null. The same applies for
13655         GetItemText. Fixes #80427.
13656
13657 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
13658
13659         * Control.cs: If a control doesn't have a parent when it's Dock is
13660         set, but it has children, it needs to do a layout.  Fixes some nested
13661         controls issues.  [Fixes bug #81199]
13662
13663 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13664
13665         * ComboBox.cs: If there are few items in the drop down list, make it
13666           the exact size the items need, no bigger. Fixes #81612.
13667
13668 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
13669
13670         * Application.cs: When we have captured the keyboard for a menu,
13671         check for mouse down events in case we need to close the menu.
13672         * Control.cs, Form.cs: Remove mouse down checks for menus.
13673
13674 2007-05-24  Jackson Harper  <jackson@ximian.com>
13675
13676         * TextControl.cs: Handle tabs in non multiline mode a little
13677         differently.
13678
13679 2007-05-24  Jackson Harper  <jackson@ximian.com>
13680
13681         * TextControl.cs: We need to manually break apart tabbed text and
13682         move the tabs, since the system.drawing tabbing mechanism relies
13683         on tab stops.
13684         * TextBoxBase.cs: Move the caret properly when the user enters a
13685         tab.
13686
13687 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
13688
13689         * ContainerControl.cs: Don't check CanSelect before calling
13690         ProcessMnemonic.
13691         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
13692         release a KeyboardActive on click if it's not ours.
13693
13694 2007-05-23  Andreia Gaita  <avidigal@novell.com>
13695
13696         * ColumnHeader.cs: Add TypeConverter
13697
13698 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13699
13700         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
13701
13702 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13703
13704         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
13705
13706 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13707
13708         * LinkLabel.cs: Implement public Padding property.
13709
13710 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13711
13712         * LinkLabel.cs: Implement public FlatStyle.
13713
13714 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
13715
13716         * Control.cs: Apply patch from George to call parent.PerformLayout
13717         when Visible is changed.  [Fixes bugs #81118, 81718]
13718
13719 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13720
13721         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
13722
13723 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13724
13725         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
13726
13727 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13728
13729         * ContextMenu.cs: Implement Collapse.
13730
13731 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
13732
13733         * ToolBarButton.cs: Implement Name.
13734
13735 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
13736
13737         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
13738         use current_item, it prevents some NRE. Fixes #81675.  
13739
13740 2007-05-22  Andreia Gaita  <avidigal@novell.com>
13741
13742         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
13743         without updating the text.
13744
13745 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
13746
13747         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
13748         without calling DeleteObject.  [Should fix bug #81709]
13749
13750 2007-05-22  Jackson Harper  <jackson@ximian.com>
13751
13752         * RichTextBox.cs: Set the line endings correctly, when flushing
13753         RTF text.
13754
13755 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
13756
13757         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
13758          {Width=0,Height=0}.
13759
13760 2007-05-22  Jackson Harper  <jackson@ximian.com>
13761
13762         * TreeView.cs: Setting top with a null node should set to the very
13763         top.
13764
13765 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13766
13767         * Form.cs: ShowDialog: destroy the handle when message loop is
13768           finished, matches MS behaviour. Refactor parts of WmClose into
13769           RaiseCloseEvents, that only raises events if they haven't already
13770           been raised. Fixes #81688 and #81521.
13771         * Application.cs: Don't call close on the form when exiting a modal
13772           loop, it will raise all the (Form)Closed/Closing events again if
13773           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
13774           which doesn'r raise any events it they have been raised before.
13775
13776 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
13777
13778         * Control.cs: Add OnPrint.
13779         * ToolStrip.cs: Add GetChildAtPoint.
13780         * ToolStripContainer.cs: Add OnRightToLeftChanged.
13781         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
13782
13783 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
13784
13785         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
13786
13787 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13788
13789         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
13790           isn't visible anymore. Fixes #81651.
13791
13792 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13793
13794         * Control.cs: WmShowWindow: Update children's z-order after setting
13795           their parent. SetParent may show the window, thereby corrupting
13796           z-order, since the window will be shown on top.
13797         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
13798           multiple (and redundant) WM_SHOWWINDOW messages.
13799         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
13800           event has already been raised.
13801         * Form.cs: Change is_changing_visible_state to a counter, since
13802           SetVisibleCore can be called recursively. CreateHandle: when
13803           creating mdi children, send (De)Activated events.
13804         * MdiClient.cs: Update use of is_changing_visible_state.
13805         * Application.cs: OnThreadException: Surround exception handling with
13806           try/finally to ensure we always reset the error-handling state
13807           before leaving.
13808
13809 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13810
13811         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
13812           (#81704).
13813
13814 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13815
13816         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
13817         SmallIcon views, now that we have a standarized horizontal spacing.
13818
13819         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
13820         4, just like the other views (Match .Net).
13821
13822 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
13823
13824         * Control.cs: Delay calculating anchor distances until we actually layout.
13825         Always query the WM for the actual size and location it put us at instead of
13826         only when we send negative values.
13827         [Fixes bugs #81694, 81695]
13828
13829 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13830
13831         * Application.cs: Avoid a possible stack overflow when trying to exit
13832           the application.
13833
13834 2007-05-19  Marek Safar  <marek.safar@gmail.com>
13835
13836         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
13837         enum value.
13838
13839 2007-05-19  Andreia Gaita  <avidigal@novell.com>
13840
13841         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
13842         * NumericUpDownAcceleration.cs, 
13843           NumericUpDownAccelerationCollection.cs: Added 2.0
13844           implementation.
13845
13846 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
13847
13848         * RichTextBox.cs: Recalculate the document after the ScrollBars
13849         property is changed. Fixes bug #81681.
13850
13851 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
13852
13853         * DataObject.cs: Implement 2.0 methods.
13854
13855 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13856
13857         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
13858         in the center of the checkbox, not in the left-top corner. 
13859         Fixes #80037.
13860
13861 2007-05-18  Jackson Harper  <jackson@ximian.com>
13862
13863         * RichTextBox.cs: Recalculate the document after the scrollbars
13864         property is changed.
13865         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
13866         81486.
13867
13868 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13869
13870         * CreateParams.cs: Make HasWindowManager marginally faster.
13871         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
13872           into Hwnd so that other drivers can use it as well.
13873         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
13874           the default location from Hwnd. Fixes MDI client windows always
13875           showing up at (0,0) in Windows (Win32 won't set the default
13876           location since the window styles aren't correct).
13877
13878 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
13879
13880         * TreeView.cs: Modified DoubleBuffered to just use the base
13881         implementation.
13882
13883 2007-05-18  Jackson Harper  <jackson@ximian.com>
13884
13885         * TreeView.cs: Set the top node to the last child node when
13886         expanding all
13887         - When we get focus, if there is no selected node, use the top
13888         node.
13889
13890 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
13891
13892         * KeysConverter.cs: Add CanConvertTo.
13893         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
13894         * LinkConverter.cs: Added.
13895
13896 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13897
13898         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
13899         it prevents error when file dont have write access. Fixes #81669 and #81667.  
13900
13901 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13902
13903         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
13904         button text. Fixes #79640.  
13905
13906 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13907
13908         * Control.cs: According to MSDN controls created in the designer theres 
13909         keyboard accelerators visible by default. So included check for design
13910         in ShowKeyboardCuesInternal.  
13911
13912 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13913
13914         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
13915         text. Fixes #81621.  
13916
13917 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13918
13919         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
13920         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
13921
13922 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13923
13924         * Control.cs: Finish implementation of UI State using WmChangeUIState
13925         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
13926         in some controls to check for show_keyboard_cues to draw accell keys "_".  
13927
13928 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13929
13930         * ListBox.cs: When calculating the horizontal scrollbar
13931         in single column mode, don't use values less than 0 for
13932         Maximum. Fixes #81474.
13933
13934 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13935
13936         * ListBox.cs: Throw the some missing exceptions in
13937         ListBox.ObjectCollection methods.
13938
13939 2007-05-17  Jackson Harper  <jackson@ximian.com>
13940
13941         * TextBoxBase.cs: Recalculate the document when the word wrap
13942         value has changed. This fixes 81488.
13943
13944 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13945
13946         * Clipboard.cs: Implement missing GetText overload.
13947
13948 2007-05-17  Chris Toshok  <toshok@ximian.com>
13949
13950         * Control.cs (CheckDataBindings): remove the binding_context arg
13951         to binding.Check.
13952
13953         * CurrencyManager.cs (OnItemChanged): fix this now that
13954         BindingManagerBase is fixed. also remove the comment telling where
13955         the fix should go.  We set transfering_data to true/false around
13956         the call to PushData to keep UpdateIsBinding from being called.
13957         (ListChangedHandler): remove the extra OnMetaDataChanged call for
13958         PropertyDescriptorAdded in the 1.1 case.  The extra call is
13959         actually generated by System.Data generating 2 metadata changed
13960         events of its own per column add.  The fix should go there.  Add a
13961         comment to that affect in our test's Assert.Ignore.
13962
13963         * BindingManagerBase.cs: Rework PullData and PushData slightly.
13964         we keep a boolean flag (transfering_data) that keeps us from
13965         calling UpdateIsBinding multiple times if we re-enter either of
13966         them.
13967
13968         * ControlBindingsCollection.cs (AddCore): remove the
13969         binding_context arg to binding.Check.
13970
13971         * Binding.cs (IsBinding): don't check if we're binding here, just
13972         return our cached value.  we update it in UpdateIsBinding.
13973         (Check): don't take the binding_context arg, we'll just use our
13974         control's.  Also, for some reason MS doesn't use the data member
13975         field when getting the bindingmanager for this binding.  it just
13976         uses the datasource.  Make this method callable multiple times,
13977         and only do the is_null_desc stuff if manager.Position != -1 (so
13978         we don't get an exception accessing manager.Current).
13979         (UpdateIsBinding): move the code from IsBinding here.
13980         (PositionChangedHandler): call Check here to we can initialize
13981         things that require a non- -1 position.
13982
13983 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13984
13985         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
13986         control.
13987
13988 2007-05-17  Andreia Gaita  <avidigal@novell.com>
13989
13990         * TabControl.cs: Add 2.0 methods and events, including
13991         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
13992         * TabPage.cs: Add 2.0 methods
13993
13994 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13995
13996         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
13997         keyboard_cues is properly handled by message method.  
13998
13999 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
14000
14001         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
14002
14003 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
14004
14005         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
14006
14007 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
14008
14009         * Control.cs: 
14010         - WmUpdateUIState added to handle state changes, it make call to
14011         OnChangeUICues event.
14012         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
14013         SystemInformation.
14014
14015 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
14016
14017         * ImageKeyConverter.cs: Added.
14018         * TreeViewImageKeyConverter.cs: Added.
14019
14020 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14021         
14022         * ToolTips.cs: Update Text if SetToolTip is called for a control
14023         already showing the tooltip, as well as restarting its timer; show
14024         tooltip if we are inside the control bounds by the time of calling
14025         SetToolTip. Inside ShowTooltip remove the check to not show the 
14026         tooltip again for the active control (it is allowed by .Net to 
14027         show the tooltip on the same control multiple times).
14028
14029 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14030
14031         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
14032
14033 2007-05-16  Andreia Gaita <avidigal@novell.com> 
14034
14035         * ContainerControl.cs: only process tab key if there are no 
14036         modifier keys present, otherwise the control does the 
14037         tab processing, if it needs to. Fixes #81622
14038         * TabControl.cs: Fixes calculation for which tab to select on
14039         shift+ctrl+tab.
14040
14041 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14042
14043         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
14044
14045 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
14046
14047         * Control.cs: Make IsInputCharInternal to allow controls to
14048         override it and still match MS API.
14049         * TextBoxBase.cs: Override IsInputCharInternal and always
14050         return true.
14051         [Fixes bug #81616]
14052
14053 2007-05-15  Jackson Harper  <jackson@ximian.com>
14054
14055         * TextBox.cs: Disable some of the menu options when using a
14056         readonly textbox.
14057
14058 2007-05-15  Jackson Harper  <jackson@ximian.com>
14059
14060         * TextBox.cs:
14061         * TextBoxBase.cs:
14062         * RichTextBox.cs: Some new 2.0 methods
14063
14064 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
14065
14066         * FileDialog.cs: On 1.0 profile, do not support multidotted 
14067         extensions.
14068
14069 2007-05-14  Jackson Harper  <jackson@ximian.com>
14070
14071         * TextBoxBase.cs: Implement some of the new 2.0 methods.
14072         * RichTextBox.cs: We need to override these methods on 2.0.
14073         * MaskedTextBox.cs: These are implemented now
14074         * TextControl.cs: This was off by one.
14075
14076 2007-05-14  Jackson Harper  <jackson@ximian.com>
14077
14078         * TextControl.cs: Because the line endings are including in the
14079         text, we don't need to add them in anymore.
14080
14081 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
14082
14083         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
14084         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
14085
14086 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
14087
14088         * ToolBar.cs: Adjust size to default size when button theres no text and
14089         image, it fixes remaining issues from #81524.
14090
14091 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
14092
14093         * ToolBar.cs: 
14094         - When not flat call redraw to recalculate sizes on creare handle to match
14095         win32 behavior.
14096         - Revert 77220 because it causes some regressions in toobar
14097         button.
14098
14099 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14100
14101         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
14102           now actually enters a usable state.
14103
14104 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
14105
14106         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
14107         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
14108         3 buttons.
14109
14110 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
14111
14112         * ToolBar.cs: Save default_size on create handle to use later for buttons
14113         without text, needed to mimic win32 behavior.
14114
14115 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
14116
14117         * ToolBar.cs: Fix button layour to best fit width or height according to
14118         vertical or not. Fixes #81524.
14119
14120 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
14121
14122         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
14123         toolbar size info because different styles theres different sizes.
14124         Fixes #81522.
14125
14126 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14127
14128         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
14129         if we are using checkboxes, checked is true, and we have less
14130         than two images in StateImageList; for the 1.1 in the same scenario
14131         draw the first image if we have at least one image in StateImageList.
14132         Fixes part of #81191.
14133
14134 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
14135
14136         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
14137         the owner's Items collection on merge.
14138
14139 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
14140
14141         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
14142         * ToolStripItemCollection.cs: Lots of fixes to when events get called
14143         and parent/owner gets changed based on gert's unit tests.
14144
14145 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14146
14147         * MaskedTextBox.cs: Started implementing parts of it.
14148
14149 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14150
14151         * ListView.cs: When clicking the checkbox on the items
14152         take into account the double clicks even if we have only
14153         one image in StateImageList (only for 1.0/1.1). Also 
14154         generate an extra change of checked state when we receive
14155         the second click on checkbox (match .Net behaviour). 
14156         Fixes part of #81191.
14157
14158 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
14159
14160         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
14161
14162 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
14163
14164         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
14165         even if OnLoad is overriden and base.OnLoad is not called.
14166         [Fixes bug #81582]
14167
14168 2007-05-10  Andreia Gaita  <avidigal@novell.com>
14169
14170         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
14171         shame. (I blame my ever-persisting and annoying cold)
14172
14173 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
14174
14175         * ListView.cs: Don't eat navigation keys.  Let them flow through to
14176         KeyDown/KeyPress routines.  [Fixes bug #81569]
14177
14178 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
14179
14180         * ListView.cs: When handling keys for selecting the item based off
14181         keyboard input, do not consider keys pressed with Alt or Control.  Also,
14182         correctly handle keys when the Shift key is down. [Fixes bug #81578]
14183
14184 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
14185
14186         * Control.cs: When using UseWaitCursor, we have to store the requested
14187         Cursor to use when UseWaitCursor is turned off.
14188
14189 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
14190
14191         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
14192         to false.
14193         * Application.cs: Use PreProcessControlMessage instead of
14194         PreProcessMessage.
14195         * PreProcessControlMessage.cs: Make internal for 1.1.
14196
14197 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14198
14199         * Control.cs: Add InternalContains focus property, which hast the same
14200         functionality of ContainsFocus, but also including implicit controls.
14201         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
14202         since we need to know if the focus is contained in our implicit
14203         ItemControl when calculating Layout. Fixes part of #80888.
14204
14205 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
14206
14207         * ToolTip.cs: Remove center form string alignment as it must be align to
14208         left.
14209
14210 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
14211
14212         * ToolStripItemCollection.cs: Set the new item's parent and owner
14213         in Insert like we do in Add.  [Fixes bug #81568]
14214
14215 2007-05-08  Jackson Harper  <jackson@ximian.com>
14216
14217         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
14218         - Off by one error in SetTop
14219         - Disable DoubeBuffering
14220         
14221 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14222
14223         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
14224           control as much as necessary in order to make it entirely visible,
14225           instead of centering the control in the container (matches MS
14226           behaviour). CalculateCanvasSize: we need to take the current scroll
14227           position into account when calculating the maximum canvas,
14228           otherwise the following scenario will fail: resize so that the
14229           scrollbars appear, use the scrollbars to scroll, resize again
14230           smaller, and now the canvas size is too small. Recalculate: when
14231           showing scrollbars make sure they start off at 0, and try to scroll
14232           the active control into view. Fixes #79540. HandleScrollBar: don't
14233           scroll anywhere if the scrollbar isn't visible.
14234
14235 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14236
14237         * ListView.cs: When focus changed, call Layout/Invalidate
14238         in the focused item to update the selected state (should show
14239         entire label when ListView is focused, and a part of it if is not).
14240         * ListViewItem.cs: When doing layout for LargeIcon, take into account
14241         for displaying the entire label not only the Focused state of the
14242         item, but also the Focused state of the ListView (match .Net
14243         behaviour).
14244
14245 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
14246
14247         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
14248         Implement UseWaitCursor. 
14249
14250 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
14251         Applying contributed patch from Sergey Volk.
14252
14253         * Clipboard.cs: Implement SetDataObject retry logic and new overload
14254         of SetDataObject.
14255         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
14256
14257 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
14258
14259         * Control.cs: Implement DrawToBitmap.
14260
14261 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
14262         Applying contributed patch from Stefan Noack.
14263         
14264         * Control.cs: Add [Get|Set]AutoSizeMode.
14265
14266 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
14267
14268         * MdiClient.cs: Unmerge menus when the last child is closed.
14269
14270 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
14271
14272         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
14273         * ToolStripManager.cs: Call Merge on DropDowns.
14274         [Fixes bug #81477]
14275
14276 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14277
14278         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
14279           uints.
14280         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
14281           visibility. We can't create forms visible, since we have to set the
14282           owner before making the form visible (otherwise Win32 will do
14283           strange things with task bar icons). The problem is that we set the
14284           internal is_visible to true before creating the control, so
14285           is_changing_visible_state is the only way of determining if we're
14286           in the process of creating the form due to setting Visible=true -
14287           this works because SetVisibleCore explicitly makes the form
14288           visibile afterwards anyways. Fixes #80775.
14289
14290 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14291
14292         * ThemeWin32Classic.cs: When drawing ListViewItems,
14293         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
14294         or LargeIcon _and_ item is not focused (match .Net behaviour).
14295
14296 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
14297
14298         * Control.cs, Form.cs: Fix some obsolete method warnings.
14299
14300 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
14301
14302         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
14303         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
14304
14305 2007-05-04  Andreia Gaita  <avidigal@novell.com>
14306
14307         * ContainerControl.cs: Fix active_control attribution when going
14308         up the parent chain so that the first parent container gets the control
14309         and the rest of the parent containers get the child containers (skips
14310         non-containers). Fixes #80729
14311
14312 2007-05-04  Randolph Chung  <tausq@debian.org>
14313
14314         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
14315         [Fixes bug #81499]
14316
14317 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14318
14319         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
14320           takes a size parameter, since the CreateParam's size isn't true for
14321           minimized forms. Fixes #81518,
14322
14323 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14324
14325         * Form.cs: Add OnDeactivateInternal.
14326         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
14327
14328 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14329
14330         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
14331           accessing the parent. Fixes #81508.
14332
14333 2007-05-03  Chris Toshok  <toshok@ximian.com>
14334
14335         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
14336         2.0 block, pass listposition + 1 to ChangeRecordState when a row
14337         was added before the current listposition.  Fixes the
14338         TestInsertRowBeforeCurrent unit test.
14339
14340 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
14341
14342         * Application.cs: Add RaiseIdle.
14343         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
14344         XplatUIX11.cs: Implement RaiseIdle.
14345
14346 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
14347         corcompare work: N - Z
14348         * NotifyIcon.cs
14349         * ProgressBar.cs
14350         * RadionButton.cs
14351         * ScrollableControl.cs
14352         * SplitContainer.cs
14353         * SplitterPanel.cs
14354         * StatusBar.cs
14355         * SystemInformation.cs
14356         * TabControl.cs
14357         * TableLayoutControlCollection.cs
14358         * TableLayoutPanel.cs
14359         * TabPage.cs
14360         * ToolBar.cs
14361         * ToolBarButton.cs
14362         * ToolStrip.cs
14363         * ToolStripComboBox.cs
14364         * ToolStripContainer.cs
14365         * ToolStripContentPanel.cs
14366         * ToolStripDropDown.cs
14367         * ToolStripDropDownItem.cs
14368         * ToolStripDropDownMenu.cs
14369         * ToolStripItem.cs
14370         * ToolStripItemCollection.cs
14371         * ToolStripMenuItem.cs
14372         * ToolStripPanel.cs
14373         * ToolStripSplitButton.cs
14374         * ToolTip.cs
14375         * TreeNode.cs
14376         * TreeNodeCollection.cs
14377         * TreeNodeMouseHoverEventArgs.cs
14378         * TreeView.cs
14379
14380 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
14381
14382         * ContextMenu.cs: Add public method Show with alignment property to 2.0
14383         stuff. Thanks aatdark for the patch. 
14384
14385 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
14386
14387         * GridItem.cs: Implement 2.0 Tag property.
14388
14389 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
14390
14391         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
14392         count instead of Nodes.Length.  [Fixes bug #81448]
14393
14394 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
14395
14396         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
14397         [Fixes bug #81506]
14398
14399 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
14400         corcompare work: A - M
14401         * BindingNavigator.cs
14402         * Button.cs
14403         * ButtonBase.cs
14404         * CheckBox.cs
14405         * Control.cs
14406         * FlowLayoutPanel.cs
14407         * Form.cs
14408         * Label.cs
14409         * LinkLabel.cs
14410         * ListView.cs
14411
14412 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
14413
14414         * Application.cs: Give toolstrips a chance to process mnemonics.
14415         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
14416         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
14417         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
14418
14419 2007-05-01  Jackson Harper  <jackson@ximian.com>
14420
14421         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
14422         wider area too.
14423         - Don't set the BoundsSpecified
14424
14425 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
14426
14427         * Application.cs: When using the toolstrip shortcut mechanism, allow the
14428         message to pass through to a regular control if it hosted by a toolstrip.
14429         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
14430         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
14431
14432 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
14433
14434         * TextRenderer.cs: Use the flags argument when using the MeasureString
14435         fallback algorithm.
14436
14437 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
14438
14439         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
14440         the MDI menu item.  [Fixes bug #81483]
14441
14442 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
14443
14444         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
14445         string. When setting Name to null, use zero-length string instead.
14446
14447 2007-04-29  Andreia Gaita  <avidigal@novell.com>
14448
14449         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
14450         DeselectTab). Implement missing 2.0 TabPageCollection methods
14451         (Add, ContainsKey, RemoveByKey, IndexOfKey)
14452
14453 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
14454
14455         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
14456
14457 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
14458
14459         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
14460         Fixes bug #81479. Include details of exception when LoadFile fails.
14461
14462 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
14463
14464         * DrawListViewSubItemEventArgs.cs: Added missing setter
14465
14466 2007-04-27  Andreia Gaita  <avidigal@novell.com>
14467
14468         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
14469         Hide methods (not complete). Implement missing 2.0 OnPopup event.
14470
14471 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14472
14473         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
14474         removed in ly last commit (it was breaking the Label edit feature).
14475
14476         * ThemeWin32Classic.cs: When drawing a ListViewItem use
14477         StringAlignment.Near for LineAlignment (match .Net).
14478
14479 2007-04-27  Andreia Gaita  <avidigal@novell.com>
14480
14481         * TabControl.cs: Change SetTab so it adds the tabpage to the list
14482         of controls if it isn't already there - was blowing up when doing
14483         tabcontrol.TabPages[i]=new TabPage(). 
14484         SetTab now does a replace by removing the page at the index. 
14485         Add a new InsertTab method that inserts a page in a given index 
14486         instead of replacing. 
14487         Implements TabPageCollection.Insert(int, TabPage).
14488
14489 2007-04-27  Chris Toshok  <toshok@ximian.com>
14490
14491         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
14492         internal handler that can be invoked from our subclasses.)  Also,
14493         add a comment to PushData about how we need to fix it.
14494
14495         * CurrencyManager.cs: tons of changes here.  trying to get things
14496         matching the behavior of .net wrt event orders (ItemChanged,
14497         CurrentChanged, PositionChanged.)  I've implemented a private .net
14498         symbol (ChangeRecordState) that appears in stack traces because
14499         it's actually easier to do this than to effective inline all its
14500         various behaviors at every call site.
14501
14502         * RelatedPropertyManager.cs: guard against an exception here by
14503         not using parent.Current if the position is set to -1 (if the
14504         parent datasource is cleared, for instance).
14505
14506         * Binding.cs: don't parse data in PushData (this might be wrong,
14507         but it jives with MS's behavior.)  Also, don't call PushData when
14508         we get a CurrentChanged event.
14509
14510 2007-04-27  Andreia Gaita  <avidigal@novell.com>
14511
14512         * WebBrowser.cs,
14513           WebBrowserBase.cs,
14514           WebBrowserSiteBase.cs,
14515           HtmlDocument.cs: Added stubbed out classes, no real implementations 
14516           yet.
14517
14518 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
14519
14520         * MainMenu.cs: In draw method without parameters call draw method with 
14521         PaintEvent, another one (just rect) adjust rectangle and we dont need it
14522         as Rect property is already adjusted. Fixes #80694.
14523
14524 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
14525
14526         * Application.cs: Need to handle keyboard menu deselection here.
14527         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
14528         navigation, allowing keyboard to work on X11.
14529         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
14530
14531 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
14532
14533         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
14534         menu bar. It fixes some drawing issues in menu bar.
14535
14536 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
14537
14538         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
14539         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
14540         when <alt> key is pressed.
14541
14542 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
14543
14544         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
14545         example just set visible to false and make this prevent from other problems.
14546         In SystrayAdd always remove pending expose. Fixes #81072.
14547
14548 2007-04-26  Marek Safar  <marek.safar@gmail.com>
14549
14550         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
14551         value is set.
14552
14553 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
14554
14555         * ListView.cs: Added three missing 2.0 events and corresponding
14556         EventHandlers. Added the OwnerDraw property.
14557         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
14558
14559 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
14560
14561         * DrawListViewItemEventArgs.cs
14562         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
14563
14564 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
14565
14566         * TextControl.cs: Fixed typo in constructor
14567
14568 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
14569
14570         * Application.cs: Create a shortcut path so that currently selected
14571         MenuStrips can intercept keyboard events without having focus.
14572         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
14573         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
14574         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
14575         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
14576         generate WM_SYSCOMMAND message in X11 for other platforms.
14577         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
14578         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
14579         * ToolStripSplitButton.cs: Add DefaultItem property.
14580         
14581 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
14582
14583         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
14584         fixes some menu draw problem on Windows with border diferent from default
14585         it also fixes #81403.
14586
14587 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14588
14589         * Form.cs: Refactor WndProc into separate methods, just like Control is
14590           doing it.
14591
14592 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14593
14594         * Control.cs: set_Text: move the call to the driver into a seperate
14595           virtual method so that Form can override it.
14596         * MaskedTextBox.cs: Corcompare fixes.
14597         * Form.cs: Override UpdateWindowText and only update the styles if the
14598           form has been shown (fixes #81405).
14599
14600 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
14601
14602         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
14603         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
14604         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
14605         the form lost focus or another control was clicked.
14606
14607 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
14608
14609         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
14610         fixed.
14611
14612 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14613
14614         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
14615           DrawListViewItemEventHandler.cs,
14616           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
14617           Added.
14618         * X11Structs.cs: More ToString implementation.
14619
14620 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
14621
14622         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
14623         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
14624
14625 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14626
14627         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
14628           handle.
14629         * FormCollection.cs: Don't add a form if it's already in the
14630           collection.
14631         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
14632           according to behaviour and MSDN. The ownerWin32 is the active
14633           window at the moment when we call ShowDialog, not the context's
14634           main form (the context's main form may open another form that opens
14635           a form with ShowDialog, the win32 owner is the second form). Add
14636           and remove forms to the Application.OpenForms in other places to
14637           better match MS behaviour. Add an IsActive property that raises
14638           On(de)Activated only if the active state has changed (we were
14639           raising OnDeactivated before OnActivated while creating forms).
14640         * Application.cs: Refactor Enabling/Disabling of windows for modal
14641           dialog loops out to separate methods, and restore the thread
14642           context when we quit the method. Fixes #81407.
14643
14644 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14645
14646         * ListView.cs: In ItemControl.HandleClicks, also fire 
14647         2.0 MouseClick or MouseDoubleClick events on the parent,
14648         not only the Click/DoubleClick events.
14649
14650 2007-04-24  Andreia Gaita  <avidigal@novell.com>
14651
14652         * TableLayoutSettings.cs: 
14653         - Added a GetControls method and a support structure to help the 
14654         TypeConverter to enumerate the controls for     serialization. 
14655         - Added a new serialization constructor. 
14656         - Added a isSerialized flag initialized to true on the 
14657         serialization constructor so that the TableLayoutPanel.LayoutSettings 
14658         setter does not throw the designed NotSupportedOperation exception
14659         when the object is built through deserialization.
14660         - Implemented GetObjectData
14661         
14662         * TableLayoutPanel.cs: Added check on LayoutSettings.
14663
14664 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14665
14666         * ListView.cs: Report Click and DoubleClick events to the parent
14667         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
14668         from breaking the click count state when using dialog forms (Control
14669         reports the clicks in a similar fashion). In the previous behaviour
14670         the last WM_LBUTTONUP message in a  double click was sent to the
14671         ListView's form, instead of the ListView, which was breaking the click
14672         count for it. Fixes #80387.
14673
14674 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
14675
14676         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
14677
14678 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
14679
14680         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
14681         us from created dropdowns for menu items that do not have subitems.
14682         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
14683         Check HasDropDownItems before calling DropDown so a dropdown will not be
14684         created if it isn't needed.
14685
14686 2007-04-24  Jackson Harper  <jackson@ximian.com>
14687
14688         * TreeView.cs: Set the first node to the selected node when we get
14689         focus if there is no selected node.
14690
14691 2007-04-24  Andreia Gaita  <avidigal@novell.com>
14692
14693         * MimeIcon.cs: remove using blocks so that image streams are
14694         not disposed of. Fixes #80151
14695
14696 2007-04-24  Jackson Harper  <jackson@ximian.com>
14697
14698         * TextBoxBase.cs: Fixup the height of textboxes when the control
14699         is created.
14700
14701 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
14702
14703         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
14704         for each ToolStripItem when the parent's RightToLeftChanged is called.
14705
14706 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14707
14708         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
14709           Fixes #80163.
14710         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
14711           property, so that the setter can be overriden too.
14712         * TextBox.cs: Change GetContextMenuInternal() to use
14713           ContextMenuInternal.
14714
14715 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14716
14717         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14718           #81406.
14719
14720 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14721
14722         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14723           #81406.
14724
14725 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14726
14727         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
14728           avoid duplicate work. Mostily skeleton code, it's not working at
14729           all yet.
14730
14731 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
14732
14733         * NotifyIcon.cs : stub for MouseClick event
14734         * Application.cs: stub for SetUnhandledExceptionMode
14735
14736 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
14737
14738         * BindingNavigator.cs : Initial (partial) implementation
14739
14740 2007-04-23  Jackson Harper  <jackson@ximian.com>
14741
14742         * TreeView.cs: Do not create the treeview's handle when setting
14743         the scroll position.
14744         - ExpandAll needs to compute the scrollbars so it knows which
14745         position to set the bar too.
14746         * TreeNode.cs: 
14747         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
14748
14749 2007-04-23  Jackson Harper  <jackson@ximian.com>
14750
14751         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
14752         key. Fixes #81408.
14753
14754 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
14755
14756         * ToolStripItem.cs: Make GetImageSize internal.
14757         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
14758         need to draw an item.  Fixes a reported issue where images on menus
14759         that were not 16x16 were drawing incorrectly.
14760
14761 2007-04-21  Miguel de Icaza  <miguel@novell.com>
14762
14763         * Padding.cs: Use the converter, fixes the resgen2 issue with
14764         XMLNotePad. 
14765
14766 2007-04-21  Jackson Harper  <jackson@ximian.com>
14767
14768         * TreeView.cs: Dont try to unhighlight the selected node if there
14769         isn't a selected node.
14770
14771 2007-04-21  Jackson Harper  <jackson@ximian.com>
14772
14773         * UpDownBase.cs:
14774         * TextBoxBase.cs:
14775         * ListView.cs:
14776         * ListBox.cs:
14777         * TreeView.cs: Use the InternalBorderStyle property to set the
14778         initial border style, this forces the client rectangle to be sized
14779         correctly.
14780
14781 2007-04-20  Jackson Harper  <jackson@ximian.com>
14782
14783         * TreeView.cs: Simplify scrolling to the last node after expanding
14784         all.
14785         - Fix some off by ones with setting the bottom.
14786
14787 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
14788
14789         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
14790         that.  We were incorrectly doing it the other way around.  Also,
14791         update ClientSize if we change the BorderStyle before the control
14792         is created.
14793
14794 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
14795
14796         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14797         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14798         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
14799         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14800         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14801         Caption to CaptionHeight.
14802         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
14803         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
14804         and FixedFrameBorderSize to return value from current XplatUI driver.
14805         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
14806         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
14807         and FixedFrameBorderSize using win32 API. Renamed Caption to
14808         CaptionHeight.
14809         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
14810         * SystemInformation.cs: Fixed typo in BorderSize.
14811
14812 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
14813
14814         * XplatUI.cs: Added MenuAccessKeysUnderlined.
14815         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
14816         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
14817         returning false.
14818         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
14819         value from XplatUI driver.
14820         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
14821         SystemParametersInfo.
14822         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
14823         override.
14824         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
14825         returning false.
14826
14827 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14828
14829         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
14830
14831 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14832
14833         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
14834
14835 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
14836
14837         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
14838         MenuStrips that contain ToolStripSeparators.
14839
14840 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14841
14842         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
14843           DefineStdCursorBitmap.
14844         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
14845           has been created off a standard cursor. This is used to get a
14846           bitmap of the standard cursor when Draw or DrawStretched is called
14847           in order to draw the cursor.
14848         * X11Structs.cs: Added XcursorImage and XcursorImages.
14849         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
14850           DefineStdCursorBitmap.
14851         * Cursors.cs: Update all relevant creations of Cursor to use the new
14852           internal constructor.
14853
14854 2007-04-19  Jackson Harper  <jackson@ximian.com>
14855
14856         * TextBox.cs: Move the has_been_focused into the base control, so
14857         some of the text adding methods can manipulate it (probably time
14858         for a better name for this flag too).
14859         - Call a new version of selectall that doesn't scroll
14860         * TextBoxBase.cs: When we append text, if the document is empty,
14861         don't scroll.  If the document has text already, we scroll to the
14862         end of the appended text.
14863         - When the text is changed, we reset the has_been_focused, so the
14864         next time the control gets focused, all the text is selected.
14865
14866 2007-04-19  Jackson Harper  <jackson@ximian.com>
14867
14868         * TextControl.cs: Move the margins to the document, add a method
14869         so the margin sizes can be updated.
14870         * TextBoxBase.cs: When the border style is changed, update the
14871         border sizes.
14872
14873 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
14874
14875         * Control.cs: Respect DefaultPadding.
14876         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
14877         padding into account.
14878         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
14879
14880 2007-04-19  Jackson Harper  <jackson@ximian.com>
14881
14882         * TextControl.cs: Oops, we need to use the ClientRect not the
14883         bounds here.
14884
14885 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14886
14887         * ListView.cs: In ItemControl.ItemsMouseDown, take into
14888         account the double clicks when CheckBoxes are used and
14889         the pointer is inside the checkbox. Fixes part of #81191.
14890
14891 2007-04-18  Jackson Harper  <jackson@ximian.com>
14892
14893         * TextControl.cs: Pressing the end key shouldn't move the caret
14894         past the line ending.
14895         * TextBoxBase.cs: We can still delete if we are in the line
14896         ending and the combine will just kill the existing line ending.
14897
14898 2007-04-18  Jackson Harper  <jackson@ximian.com>
14899
14900         * TextControl.cs: We can't move lines, then invalidate their
14901         bounds, we need to get the old bounds and combine that with the
14902         new bounds.
14903         * TextBoxBase.cs: Before combining two lines for a delete, we need
14904         to invalidate the area of the old line, since that will be moved
14905         in the combine operation.
14906
14907 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
14908
14909         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
14910         with transparent background. Fixes #80482.
14911
14912 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
14913
14914         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
14915         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
14916         [Fixes bug #81391]
14917
14918 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14919
14920         * CreateParams.cs: Add a couple of helper methods and do a less string
14921           concatenation in ToString.
14922         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
14923           overload that takes a Control parameter, since this method may be
14924           called before a control is assigned to the hwnd (from
14925           CreateWindow), and update CreateWindow to use the new overload. In
14926           GetMenuOrigin subtract the title bar from the y position if the
14927           form has a window manager (since we're painting it and not X).
14928         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
14929           CreateParams to calculate the origin (since border sizes may vary).
14930           In ScreenToMenu only subtract the title height if we actually have
14931           a title.
14932         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
14933           mdi children never have menus of themselves.
14934         * InternalWindowManager.cs: Implement menu handling like form does.
14935           Added GetMenuOrigin to calculate the menu origin, can't use the
14936           CreateParams from the form like normally since it's lying.
14937         * Hwnd.cs: Implement GetBorderSize better (in the sense more
14938           windows-like) and add Inflate and comparison operators to the
14939           Borders type. When calculating MenuOrigin and it's a form with a
14940           window manager, use the window manager to calculate it.
14941
14942 2007-04-17  Chris Toshok  <toshok@ximian.com>
14943
14944         * Control.cs (CreateControl): turns out in 2.0 we don't need this
14945         OnBindingContextChanged thing here.  It's only generated from
14946         ContainerControl.OnCreateControl.  Fixes a newly written unit test
14947         - BindingTest.BindingContextChangedTest4.
14948         
14949 2007-04-17  Jackson Harper  <jackson@ximian.com>
14950
14951         * ScrollBar.cs: When setting values, make sure the current
14952         position stays within the new values range.
14953
14954 2007-04-17  Chris Toshok  <toshok@ximian.com>
14955
14956         * Control.cs (CreateControl): talk about a bizarre corner case.
14957         Don't emit OnBindingContextChanged here if we're a parentless
14958         control (i.e. if we're a form.).  Fixes
14959         BindingTest.BindingContextChangedTest2.
14960
14961 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14962
14963         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
14964         from win32. Fixes #81255.
14965
14966 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14967
14968         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
14969         already present in CalculateButtonTextAndImageLayout.
14970
14971 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14972
14973         * XplatUIX11.cs: When setting min/max size for a window we need to
14974           translate the coordinates to x coordinates. Create an overload of
14975           SetWindowMinMax that takes a CreateParams handling this, and change
14976           SetWMStyles to call this function (can't use Control.FromHandle in
14977           the SetWindowMinMax to get the control/CreateParams from the handle
14978           because the handle might not have been assigned to the control
14979           yet). Fixes #81371.
14980
14981 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14982
14983         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
14984         if StateImageList is non-null and it has less than two items (match MS
14985         behaviour). Also, in HandleNavKeys handle the Space key, calling
14986         the new ToggleItemsCheckState method, which tries to change the
14987         checked state of the selected items. Fixes part of #81191.
14988
14989 2007-04-16  Jackson Harper  <jackson@ximian.com>
14990
14991         * RichTextBox.cs: namespace cleanup.
14992
14993 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14994
14995         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
14996
14997 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14998
14999         [Fixes #79447]
15000         * Control.cs: Call invalidate in set_Region.
15001
15002         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
15003         it dont works here.
15004
15005 2007-04-16  Jackson Harper  <jackson@ximian.com>
15006
15007         * TextBoxBase.cs: When enter is pressed, we need to update all
15008         lines below the current.
15009
15010 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
15011
15012         * MdiClient.cs: Implement implicit menu merging for MDI
15013         children.  When a child form is active, if it has a menustrip
15014         and the parent form has a MainMenuStrip, automatically merge
15015         the menus.
15016
15017 2007-04-15  Andreia Gaita  <avidigal@novell.com>
15018
15019         * TabControl.cs: Refactored sizing methods to not repeat
15020         code all over the place. Tab bounds are now calculated
15021         as if alignment is top and single line, and only when 
15022         setting the bounds are the positions adjusted according
15023         to alignment. Replaced hardcoded positions, spacings and
15024         paddings by getting the values the ThemeEngine. 
15025         Fixes #79619.
15026         
15027         * Theme.cs: Change TabControl properties and methods so
15028         that all start with TabControl*. Added more properties
15029         to help remove hardcoded values on tabcontrol.
15030         Add CPDrawBorder3D declaration so the Theming classes
15031         can access it.
15032         
15033         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
15034
15035         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
15036         on the Theming namespace, and call the appropriate methods here.
15037         Change CPDrawBorder3D to public.
15038
15039 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15040
15041         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
15042         the control after firing the OnMouseUp event, instead of sending
15043         the message before the mentioned event. This is so we can match the
15044         MS behaviour. Fixes part of #80385.
15045
15046 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
15047
15048         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
15049         RightToLeft property.
15050
15051 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
15052
15053         * ToolStrip.cs: Add properties and internal methods to support merging.
15054         * ToolStripItem.cs: Add MergeAction and MergeIndex.
15055         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
15056         not trigger reparenting or layouts.
15057         * ToolStripManager.cs: Add Merge and RevertMerge methods.
15058         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
15059         is hosting the overflow menu.
15060
15061 2007-04-13  Jackson Harper  <jackson@ximian.com>
15062
15063         * TextControl.cs: Set the line ending correctly for the first
15064         inserted line.
15065
15066 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
15067
15068         * Theme.cs: Update GetMethod to get the new definition for 
15069         KnownColors.Update (and fix theme color updates).
15070
15071 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
15072
15073         * MessageBox.cs: Fix some test and button position.
15074
15075 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15076
15077         * Form.cs: Consider the implicit controls in
15078         GetRealChildAtPoint. We need it since this method
15079         is called on Form when handling the some messages in
15080         WndProc, and need to consider those implicit ones too.
15081         Fixes #80385.
15082
15083 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
15084
15085         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
15086         if there are no ShortcutKeys set.
15087         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
15088         set, use it when painting.
15089
15090 2007-04-12  Jackson Harper  <jackson@ximian.com>
15091
15092         * TextControl.cs: Fix some off-by-one issues in line duplication
15093         and insertion in the undo manager. Also, overwrite the first tag
15094         of a line on insert, if it is just a zero lengthed tag. This
15095         prevents us from getting an extra stranded tag at the beginning of
15096         the first line.
15097
15098 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
15099
15100         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
15101         to calculated proper size including when handle was not created yet.
15102
15103 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15104
15105         * MdiWindowManager.cs: When moving a form, allow the form to be moved
15106           when the mouse is outside of it's parent's client rectangle. Fixes
15107           #79982 (take 3, part 2).
15108
15109 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15110
15111         * X11Structs.cs: Add a few ToString() overrides.
15112         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
15113           the window location in a window-manager independent way. Reworked
15114           FrameExtents, it now actually works. Reworked AddConfigureNotify
15115           and ReparentNotify handling to use GetTopLevelWindowLocation
15116           instead of the earlier, more hacky solution. Reworked SetWMStyles,
15117           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
15118           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
15119           for all other windows (fixes #81281 part 1), a toolwindow is hidden
15120           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
15121           and generally refactored to do as few calculations as possible
15122           inside the lock.
15123
15124 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
15125
15126         * Theme.cs: Change "reflective-contract" between MWF and SD to 
15127         minimize # of calls, avoid Color serialization and avoid updating 
15128         every "known colors" each time a single one is updated.
15129
15130 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
15131
15132         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
15133         when not readonly and the text is explicitly set. Code style updates.
15134         * DataGridTableStyle.cs: Removed extra line.
15135         * DataGrid.cs: Code style updates. Removed extra whitespace.
15136         * DataGridColumnStyle.cs: Code style updates. Removed extra 
15137         whitespace.
15138
15139 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15140
15141         * XplatUIX11.cs: Added comment that "fixes" #80021.
15142
15143 2007-04-09  Jackson Harper  <jackson@ximian.com>
15144
15145         * TextControl.cs: We don't need this -1 on the line count anymore.
15146
15147 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
15148
15149         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
15150         entered value to underlying type, and convert it back to a string to
15151         apply formatting. Modified GetFormattedValue to use TypeConverter
15152         if available.
15153
15154 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
15155
15156         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
15157         Use SubItems property when we want to ensure there's at least one
15158         subitem. Modified SubItems property to ensure there's always at least
15159         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
15160         the NRE's reported by MS.
15161
15162 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
15163
15164         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
15165         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
15166         Spaces to tabs. Removed extra tabs.
15167
15168 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
15169
15170         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
15171         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
15172
15173 2007-04-06  Jackson Harper  <jackson@ximian.com>
15174
15175         * TextBoxBase.cs: When a delete removes a line, recalculate all
15176         lines below that line (they need to get offsets setup correctly)
15177         and invalidate.
15178
15179 2007-04-05  Jackson Harper  <jackson@ximian.com>
15180
15181         * TextControl.cs: We need to invalidate across the width of the
15182         document when we are invalidating multiple lines.
15183         * TextBoxBase.cs: Don't delete into the line ending.
15184
15185 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15186
15187         * ListView.cs: Restore the check for the MouseHover event
15188         in ListView. It looks like the ListView fires more than one MouseHover
15189         event when HoverSelection is true  _only_ in weird-corner scenarios, but
15190         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
15191         event.
15192
15193 2007-04-05  Mike Kestner  <mkestner@novell.com>
15194
15195         * ListView.cs : raise MouseDown before updating selection.
15196         [Fixes #80373 tab 1&3]
15197
15198 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
15199
15200         * ToolStripRenderer.cs: Add static method to mirror image.
15201         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
15202         and RightToLeftAutoMirrorImage.
15203         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
15204
15205 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
15206
15207         * ToolStripSplitStackLayout.cs: Support Alignment property.
15208         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
15209
15210 2007-04-05  Jackson Harper  <jackson@ximian.com>
15211
15212         * TextControl.cs: Move around the line endings when crossing line
15213         boundaries.
15214         - When combining lines, strip the ending text off the first line.
15215
15216 2007-04-05  Jackson Harper  <jackson@ximian.com>
15217
15218         * TextControl.cs:
15219         * TextBoxBase.cs: Try to never move the cursor into the line
15220         ending.
15221         
15222 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
15223
15224         * ToolStripItem.cs: Make sure we aren't firing mouse events when
15225         the item is disabled.  Also add a few missing methods.
15226
15227 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15228
15229         * ListView.cs: We don't need the MouseEnter/MouseLeave check
15230         to fire just one MouseHover event when HoverSelection is true, since
15231         .Net does fire more than one MouseHover event in that scenario. Also,
15232         fix the selection in HoverSelection, by invoking UpdateMultiSelect
15233         if MultiSelect is true, instead of only setting ListViewItem.Selected.
15234         Finally, we need to reset the Hover logic in MouseMove, even when we
15235         don't have a selected item.
15236
15237 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
15238
15239         * ToolStrip.cs: Add several missing methods, properties, and events.
15240
15241 2007-04-04  Chris Toshok  <toshok@ximian.com>
15242
15243         * DataGridTextBoxColumn.cs: set the bounds of the text box to
15244         (0,0,0,0) in Commit, as MS does.
15245
15246         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
15247         make sure we set CurrentRow on a row header click *before* calling
15248         Select.  This moves the current cell (and the textbox) to the new
15249         row.  The call to Select then hides the textbox, giving us the
15250         correct behavior.  Fixes #80362.
15251
15252         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
15253         (ListChangedHandler): reorder the position/current changed events,
15254         and call UpdateIsBinding in the ItemAdded case.
15255
15256         * GridColumnStylesCollection.cs: add some columns events, one of
15257         which raises the CollectionChanged event.
15258
15259 2007-04-04  Jackson Harper  <jackson@ximian.com>
15260
15261         * TextControl.cs: When we delete multiple selection lines
15262         invalidate the selection area, don't need to do that for single
15263         lines because the final update view will handle it.
15264
15265 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
15266
15267         * Control.cs: When we CreateControl, we need to also create all of the
15268         control's children.  The child's OnLoad must also fire before the parent's
15269         OnLoad.  Fixes the toolbox size in PDN.
15270
15271 2007-04-04  Jackson Harper  <jackson@ximian.com>
15272
15273         * TextBoxBase.cs: When the user presses enter, insert a line
15274         ending into the text. (Maybe this would be a good spot for
15275         Environment.NewLine).
15276         * TextControl.cs: Remove undo manager hack, line endings get
15277         inserted properly now.
15278         
15279 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
15280
15281         * MenuAPI.cs: 
15282         - Remove unneeded parameters in UpdateCursor.
15283         - Fix UpdateCursor to check if menu is active.
15284         - Call UpdateCursor when menu deactivate my click.
15285         [Fixes remaining issues from #80410]
15286
15287 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
15288
15289         * Control.cs: GetRealChildAtPoint method added, it make an
15290         recursive child control search for the point. 
15291
15292         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
15293         menu.
15294
15295         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
15296
15297 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
15298
15299         * Form.cs: Fix mouse position when send back mouse event after closes
15300         menu.
15301
15302 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
15303
15304         * Form.cs: Simplify the BUTTONDOWN for active tracker.
15305
15306 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
15307
15308         * Control.cs: Fix an issue where if a user resized a control inside
15309         a sizing method like OnResize, we would overwrite their explicit
15310         value.  Also, only call DefaultSize once in the constructor instead
15311         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
15312         nothing actually changed.
15313
15314 2007-04-03  Jackson Harper  <jackson@ximian.com>
15315
15316         * TextControl.cs: Don't attempt to copy text for lines with no
15317         text in them (technically this shouldn't happen, but we aren't
15318         always inserting line endings when we should be).
15319
15320 2007-04-03  Jackson Harper  <jackson@ximian.com>
15321
15322         * TextBoxBase.cs: Calculate the scrollbars before calculating the
15323         document, because this sets some of the document size properties
15324         that are needed.
15325
15326 2007-04-03  Jackson Harper  <jackson@ximian.com>
15327
15328         * TextBoxBase.cs: We need to calculate maximums even if this is
15329         not a multiline control, because the maxs are used for scrolling.
15330         - Display the caret after doing a page up/down, we need to
15331         manually display it because a proper CaretMoved event isn't
15332         triggered (this is because of the way the math is done to
15333         determine how far to scroll).
15334
15335 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
15336
15337         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
15338         (ToolBar was relying on SetBoundsCore to default the values sent 
15339         base off of BoundsSpecified.)
15340
15341 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15342
15343         * DateTimePicker.cs: Change Text so that when a null value or empty
15344           string is assigned to the test we always raise ValueChanged and
15345           TextChanged (earlier implementation would only raise ValueChanged
15346           if the current date value was different from DateTime.Now).
15347
15348 2007-04-03  Andreia Gaita <avidigal@novell.com> 
15349
15350         * ButtonBase: Call update after invalidation, fixes #80194
15351
15352 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15353
15354         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
15355           #79335.
15356
15357 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15358
15359         * XplatUIX11.cs: SetWMStyles: If the control is a form with
15360           FormBorderStyle = None, don't give the window any decorations.
15361           Fixes #81276.
15362
15363 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15364
15365         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
15366         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
15367           to check for is a mix of several styles (such as WS_CAPTION for
15368           instance).
15369         * Control.cs: Don't paint an area bigger than the client area when
15370           painting the background colour. Add an internal GetCreateParams.
15371           Update calls to XplatUI.CalculateWindowRect due to API change.
15372         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
15373           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
15374           the size if it hasn't been handled by any windows. When creating
15375           and moving windows, X wants the location of the entire window, but
15376           the size of the client window, so add
15377           TranslateClientRectangleToXClientRectangle,
15378           TranslateWindowSizeToXWindowSIze and
15379           TranslatedXWindowSizeToWindowSize to cope with this, and call them
15380           before every window creation and move. Update CalculateWIndowRect
15381           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
15382           In AddConfigureNotify don't do anything if the hwnd is a zombie
15383           (fixes the BadWindow we were getting while running the tests),
15384           always calculate the offsets when it's a parentless window, not
15385           only when reparented, and translate the window size, since we're
15386           getting the client size of the whole window, excluding entire
15387           window.
15388         * Theme.cs: Added BorderSizableSize.
15389         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
15390           anymore. Update calls to XplatUI.CalculateWindowRect due to API
15391           chang
15392         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
15393           change. Fake the window styles here instead of in XplatUIWin32 so
15394           that all back-ends get the same window styles (and it's Form that's
15395           deciding when to use wm, not the Win32 backend anyways)
15396         * Hwnd.cs: Completely reworked GetWindowRectangle and
15397           GetClientRectangle - they are now passed a CreateParams and they
15398           only use Style and ExStyle to determine the rectangles (they should
15399           now work just like Win32AdjustWindowRectEx - though quite a few
15400           special cases are probably missing). They should also be 100%
15401           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
15402           == rect), and all numbers (borders, menu sizes) are taken from the
15403           current theme. Added a GetBorders helper function that will return
15404           the borders for any given CreateParams (including captions and
15405           menus), and GetBorderSize that returns the given border size only.
15406         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
15407           Hwnd.GetClientRectangle.
15408
15409 2007-04-02  Chris Toshok  <toshok@ximian.com>
15410
15411         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
15412         logic between the values we present to the user and the values
15413         which are stored in the column's property.  Also, don't call
15414         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
15415
15416 2007-04-02  Jackson Harper  <jackson@ximian.com>
15417
15418         * TextBoxBase.cs: Scroll faster!
15419
15420 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
15421
15422         * StatusStrip.cs: Layout fixes for PDN.
15423         * ToolStrip.cs: Set item's available to true, and placement to main when
15424         added.
15425         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
15426         changing in setter before doing any work, add InternalVisible.
15427         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
15428         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
15429         infinite loop.
15430
15431 2007-04-02  Jackson Harper  <jackson@ximian.com>
15432
15433         * TextBox.cs: LBUTTON does not make the textbox select all of it's
15434         text on focus.
15435
15436 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15437
15438         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
15439           Makes ToolStripComboBoxes show up again.
15440
15441 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15442
15443         * ListView.cs: Add a hover_pending field in ListView
15444         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
15445         cycle (we are resetting the MouseHover logic in XplatUI
15446         to handle HoverSelection). Fixes #80429.
15447
15448 2007-04-02  Jackson Harper  <jackson@ximian.com>
15449
15450         * TextControl.cs: Make sure the attributes get set on the last
15451         tag.
15452         - Still have to do the end tag if we have stepped all the ways to
15453         the end.
15454
15455 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
15456
15457         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
15458         on an internal libgdiplus call when the information is already 
15459         available via the public API.
15460
15461 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15462
15463         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
15464           control is removed from a control collecftion.
15465         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
15466           Fixes FormPropertyTest (failed on rare occasions).
15467         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
15468           of Win32SetParent (when changing from no parent to a parent it
15469           might add the new parent's location in screen coordinates to this
15470           window's location).
15471         * Form.cs: Rework ChangingParent once again, now the handle is
15472           recreated whenever a FormWindowManager is added or removed (that is
15473           whenever a normal form is parented or abandoned). Also change
15474           CreateParams so that all non-toplevel windows always get the
15475           specified sice (StartupPosition is never considered for
15476           non-TopLevel forms).
15477         * ContainerControl.cs: Add ChildControlRemoved, the container control
15478           needs to be notified when a control is removed from it's
15479           collection, in the case the removed control is the active control.
15480
15481 2007-04-02  Jackson Harper  <jackson@ximian.com>
15482
15483         * RichTextBox.cs: Use the new methods for setting the font and
15484         color, these methods set the specified attribute without
15485         overriding the other attributes.
15486
15487 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
15488
15489         * ToolStripPanel.cs: Fixes for better layouts in PDN.
15490
15491 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
15492
15493         * TextBox.cs: Added internal ChangeBackColor method to special-case
15494         Color.Empty. Added check for invalid ScrollBars value.
15495         * TextBoxBase.cs: Added internal ChangeBackColor method.
15496         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
15497         internal ChangeBackColor method to special-case Color.Empty. Added
15498         check for invalid ScrollBars value.
15499
15500 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
15501
15502         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
15503
15504 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
15505
15506         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
15507         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
15508         [Based on submitted patch from Olivier Duff.]
15509
15510 2007-03-30  Jackson Harper  <jackson@ximian.com>
15511
15512         * TextBox.cs: Only select all on initial focus if the user has not
15513         specified a selection area.
15514
15515 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
15516
15517         * UserControl.cs: Override CreateParams.
15518
15519 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15520
15521         [ Fixes #80995 ]
15522
15523         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
15524         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
15525           check for is a mix of several styles (such as WS_CAPTION for instance).
15526         * Control.cs: Don't paint an area bigger than the client area when painting
15527           the background colour. Add an internal GetCreateParams. Update calls to
15528           XplatUI.CalculateWindowRect due to API change.
15529         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
15530           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
15531           hasn't been handled by any windows. When creating and moving windows, X
15532           wants the location of the entire window, but the size of the client
15533           window, so add TranslateClientRectangleToXClientRectangle,
15534           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
15535           to cope with this, and call them before every window creation and move.
15536           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
15537           removing DeriveStyles). In AddConfigureNotify don't do anything if the
15538           hwnd is a zombie (fixes the BadWindow we were getting while running the
15539           tests), always calculate the offsets when it's a parentless window, not
15540           only when reparented, and translate the window size, since we're getting
15541           the client size of the whole window, excluding entire window.
15542         * Theme.cs: Added BorderSizableSize.
15543         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
15544           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
15545         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
15546           Fake the window styles here instead of in XplatUIWin32 so that all
15547           back-ends get the same window styles (and it's Form that's deciding when
15548           to use wm, not the Win32 backend anyways)
15549         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
15550           they are now passed a CreateParams and they only use Style and ExStyle
15551           to determine the rectangles (they should now work just like
15552           Win32AdjustWindowRectEx - though quite a few special cases are probably
15553           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
15554           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
15555           sizes) are taken from the current theme. Added a GetBorders helper
15556           function that will return the borders for any given CreateParams
15557           (including captions and menus), and GetBorderSize that returns the given
15558           border size only.
15559         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
15560           Hwnd.GetClientRectangle.
15561
15562 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15563
15564         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
15565           layout of the mdi children is handled by CreateParams. Fixes
15566           #79964,
15567
15568 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
15569
15570         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
15571         processed.
15572
15573         * Form.cs: When active tracker mouse down is not processed, send event 
15574         back to control inside mouse position. [Fixes #81227]
15575
15576 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
15577
15578         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
15579         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
15580         stealing focus from the active form on Windows.  (Control will be made
15581         visible in ShowWindow.)
15582
15583 2007-03-29  Mike Kestner  <mkestner@novell.com>
15584
15585         * ImageList.cs : add internal Changed event.
15586         * ListView.cs : hook up to StateImageList.Changed to perform
15587         invalidations when the the state icon list changes. [Fixes #81191]
15588
15589 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
15590
15591         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
15592         to prevent tooltips from stealing focus from the active form on Windows.
15593
15594 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
15595
15596         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
15597
15598         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
15599
15600 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
15601
15602         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
15603         balloons.
15604
15605 2007-03-29  Jackson Harper  <jackson@ximian.com>
15606
15607         * TextControl.cs: When deleting text from non multiline textboxes,
15608         we need to update the entire document, because line offsets will
15609         be shifting.
15610
15611 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
15612
15613         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
15614         added to theme, now we can create themes that uses diferent notify engines
15615         like notification-daemon from galago project or growl for Mac OS.
15616
15617 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
15618
15619         * NotifyIcon.cs: Prevent Balloon to show in task bar.
15620
15621 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
15622
15623         * XplatUIX11.cs: Prevent system to open more than one balloon.
15624
15625         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
15626         some compiler warning messages.
15627
15628 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
15629
15630         [Fixes #79149]
15631
15632         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
15633
15634         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
15635         implemented, this methods is used by NotifyIcon.BalloonWindow class.
15636
15637         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
15638         systems.
15639
15640 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15641
15642         * ListViewItem.cs: Forgot to make Invalidate internal.
15643
15644 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15645
15646         * ListView.cs: Add a InvalidateSelection method to
15647         invalidate methods which are currently selected, and call
15648         it when setting FullRowSelect and HideSelection, instead of
15649         calling Redraw.
15650
15651 2007-03-28  Chris Toshok  <toshok@ximian.com>
15652
15653         * XplatUIX11.cs (UnmapWindow): reindent this block.
15654
15655         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
15656         the selection_start if we're moving the selection (that is, not
15657         extending it). Fixes bug #80461.
15658
15659 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15660
15661         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
15662         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
15663         create private ControlCollection.
15664
15665 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15666
15667         * Control.cs: We need to call OnVisibleChanged for our implicit
15668         children as well as our normal children.  Fixes scrollbars in
15669         comboboxes not showing up.
15670
15671 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15672
15673         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
15674         the check for IsHandleCreated first.  The check in CreateHandle is not
15675         good enough because CreateHandle can be overriden, and the override 
15676         should not be called if the handle is already created.
15677
15678 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15679
15680         * ToolStrip.cs: Remove MonoTODO for tooltips.
15681         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
15682         * ToolStripContainer.cs: Add custom ControlCollection class.
15683         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
15684         * ToolStripDropDown.cs: Add some missing properties/methods.
15685         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
15686         * ToolStripItem.cs: Remove MonoTODO for tooltips.
15687         * ToolStripManager.cs: Add IsShortcutDefined.
15688         * ToolStripOverflow.cs: Override LayoutEngine.
15689         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
15690         * ToolStripSeparator.cs: Add ImageKey.
15691
15692 2007-03-28  Jackson Harper  <jackson@ximian.com>
15693
15694         * TextControl.cs: If a char delete removes a line ending, we need
15695         to update the ending style.
15696         - Make sure the line ending calcs get called.
15697
15698 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15699
15700         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
15701           it was making the new code not work. Fixed a typo in the new code
15702           as well. Fixes #79826.
15703
15704 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15705
15706         * XplatUIWin32.cs:
15707         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
15708         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
15709         - SystrayBalloon method implemented.
15710         [Add support for notifyicon balloon on win32, #79149]
15711
15712 2007-03-27  Mike Kestner  <mkestner@novell.com>
15713
15714         * ThemeWin32Classic.cs : update StateImageList selection to mirror
15715         the ms behavior when only one image is added to the list.
15716         [Fixes #81191]
15717
15718 2007-03-27  Jackson Harper  <jackson@ximian.com>
15719
15720         * TextControl.cs: Improvements to non multiline line ending
15721         drawing/measuing.
15722
15723 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15724
15725         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
15726
15727 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15728
15729         * NotifyIcon.cs: 
15730         - Balloon message handling added.
15731         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
15732
15733         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15734         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
15735         to SystrayBalloon to me like other Systray method, also a
15736         handle parameter added.
15737
15738 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15739
15740         * ListView.cs: Show scrollbars even when items.Count == 0
15741         but the columns Width is bigger than the ListView.Width.
15742         Also, when columns.Count == 0 set layout_wd and layout_ht
15743         to the ClientRectangle values, so we don't show any scrollbar
15744         in that case.
15745
15746 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15747
15748         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
15749
15750 2007-03-27  Jackson Harper  <jackson@ximian.com>
15751
15752         * RichTextBox.cs: The RTF library decodes the text properly for us
15753         now.
15754
15755 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15756
15757         * ListView.cs: Display HeaderControl even when columns.Count == 0.
15758         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
15759         ListView header (HeaderControl), instead of Control.BackColor.
15760
15761 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
15762
15763         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
15764         Fixes tab control issues where controls would not show up because they
15765         never received their OnVisibleChanged call.
15766
15767 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15768
15769         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
15770         BalloonTipShown).
15771
15772 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
15773
15774         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
15775         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
15776         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
15777         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
15778         the handle.  Fix WindowState by using the internal variable until we are 
15779         sure that we've been shown.
15780         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
15781         max or min.
15782         [Fixes bug #81198]
15783
15784 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15785
15786         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
15787           (at least borders). Fixes #79386 on Linux (with a small difference
15788           in behaviour: when trying to resize a caption-less window metacity
15789           shows the sysmenu. Resizing is still possible though).
15790         * XplatUIWin32.cs: When setting window styles send request an extra
15791           WM_NCCALCSIZE when it's a form without title (due to no text and no
15792           caption), since Win32 seems to calculate it wrong the first time we
15793           get the message, though the second time things work as they should.
15794         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
15795           newly reparented window might show up unparented. Update
15796           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
15797           there's no title text. Fixes #79386.
15798
15799 2007-03-27  Mike Kestner  <mkestner@novell.com>
15800
15801         * ListBox.cs : don't perform invalidations if the handle hasn't been
15802         created.  [Fixes #80753]
15803
15804 2007-03-27  Mike Kestner  <mkestner@novell.com>
15805
15806         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
15807         [Fixes #80428]
15808
15809 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15810
15811         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
15812         needed to implement Balloon.
15813
15814 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15815
15816         * ListViewItem.cs: In the constructors that take
15817         an array of strings, don't use ListViewSubItemCollection.AddRange
15818         method to add items, since we need to have a different behaviour (in
15819         the constructors we add an item for each null string, opposed to
15820         the behaviour of AddRange, which adds nothing).
15821
15822 2007-03-26  Andreia Gaita  <avidigal@novell.com>
15823
15824         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
15825
15826 2007-03-26  Jackson Harper  <jackson@ximian.com>
15827
15828         * TextControl.cs: Draw and measure line endings when in non
15829         multiline mode.
15830         - When searching the text, count the end of the last line as a
15831         word boundary.
15832
15833 2007-03-26  Jackson Harper  <jackson@ximian.com>
15834
15835         * RichTextBox.cs: The selection_start and selection_end don't
15836         really track the correct tags for the selection. So we'll manually
15837         compute the correct tag here.
15838
15839 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15840
15841         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
15842           and Continuous styles. Fixes #79469.
15843
15844 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
15845
15846         * ToolStrip.cs: Implement Tooltips.
15847         * ToolStripItem.cs: Create internal method for determining tooltip.
15848
15849 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
15850
15851         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
15852
15853 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15854
15855         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
15856         it prevents a problem thak keeps icon visible after application 
15857         closes on win32.
15858
15859 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15860
15861         * NotifyIcon.cs: Balloon properties and methods created.
15862
15863         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15864         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
15865
15866 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
15867
15868         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
15869
15870 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
15871
15872         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
15873         parameter indicates which aspects were explicit/user-set.
15874         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
15875
15876 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
15877
15878         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
15879         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
15880         SmallChange, and Value (2.0).
15881         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
15882
15883 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15884
15885         * ListView.cs: Always set item_control.Width in LayoutDetails
15886         if View is Details. Setting it later in CalculateScrollBars
15887         in a not-so-corner scenario (the sum of columns width is
15888         not bigger than the ListView width when handle is created, and then
15889         that sum gets bigger by increasing the width of the columns)
15890         causes a very weird recursion path (which shouldn't be happening,
15891         since header_control sets it in CalculateScrollBars too). This bug
15892         appeared after Chris' fixes for handle created issues, so probably
15893         it's related to some handle-creation time.
15894
15895 2007-03-23  Chris Toshok  <toshok@ximian.com>
15896
15897         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
15898         case where there's an add row, just so we don't end up in a case
15899         where it's not displayed (this happens when the row is partially
15900         obscured).  Fixes bug #79574.
15901
15902 2007-03-23  Jackson Harper  <jackson@ximian.com>
15903
15904         * TextControl.cs:
15905         * TextBoxBase.cs:
15906         * RichTextBox.cs: Preserve line endings in the lines text buffer,
15907         also added an enum that represents the line ending type. 
15908
15909 2007-03-23  Andreia Gaita  <avidigal@novell.com>
15910
15911         * NumericUpDown.cs: Fix logic so Text and Value properties are not
15912         messed with in every method call, but only from DownButton, 
15913         UpButton, UpdateEditText() and ValidateText. Fixes #80346
15914
15915 2007-03-23  Chris Toshok  <toshok@ximian.com>
15916
15917         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
15918         format objects if the format spec is "".  Fixes bug #80889.
15919
15920 2007-03-22  Miguel de Icaza  <miguel@novell.com>
15921
15922         * ToolStripPanel.cs (Join): added stubs to build PDN3
15923
15924         * Control.cs (AutoScrollOffset): Add.
15925
15926         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
15927         property, its only implemented for Win32, on X11 it defaults to
15928         some hardcoded value.
15929
15930         * ToolStripItem.cs (AllowDrop): Add property
15931
15932 2007-03-22  Mike Kestner  <mkestner@novell.com>
15933
15934         * ListView.cs : in FullRowSelect Details mode, only enable box
15935         selection if the user clicks over the "item" column outside of the
15936         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
15937
15938 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15939
15940         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
15941           handle is not created yet.
15942         * Form.cs: Select: Don't call CreateHandle if the handle is already
15943           created, avoids a stack overflow on Windows when we are recreating
15944           controls.
15945         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
15946           they are made visible, and override AfterTopMostControl to keep
15947           them on top when other controls are brought to front.
15948           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
15949           or force_*scroll_visible is true (old implementation always shows
15950           scrollbars when needed, no matter what auto_scroll was set to).
15951         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
15952           IsHandleCreated check.
15953
15954 2007-03-22  Andreia Gaita  <avidigal@novell.com>
15955
15956         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
15957         row or col separator.
15958         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
15959
15960 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15961
15962         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
15963
15964 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15965
15966         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
15967         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
15968         every time. Fixes #80410.
15969
15970 2007-03-22  Chris Toshok  <toshok@ximian.com>
15971
15972         * BindingSource.cs (AddNew): partially implement.
15973
15974         remove a couple of NotImplementedException's
15975         to get bug #81148 closed.
15976
15977 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15978
15979         [Fixes #80380]
15980         
15981         * Control.cs:
15982         - UpdateCursor method added to update the screen cursor.
15983         - GetAvailableCursor method added to return cursor for enabled tree,
15984         it searches for cursor on control and it's parent's for enabled control.
15985         - Call UpdateCursor method on setter of Cursor property.
15986         - On setter of Enabled call UpdateCursor when it is false, we need to
15987         change cursor to normal (or to this parent cursor) because cursor 
15988         setting theres no effect to disabled controls.
15989         - Some minor source changes to follow the coding style guidelines.
15990
15991         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
15992         controls.
15993
15994 2007-03-22  Chris Toshok  <toshok@ximian.com>
15995
15996         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
15997         generates.
15998
15999 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16000
16001         * XplatUIX11.cs: Implement default locations for forms.
16002         * Form.cs: Completely rework startup location for forms. Fixes #79964.
16003         * Hwnd.cs: Add previous_child_startup_location (to track the current
16004           startup location for any child forms of the current form) and
16005           previous_main_startup_location (to track the startup location for
16006           the current toplevel form).
16007
16008 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
16009
16010         * Control.cs: Don't trigger a layout if an implicit control is added
16011         that isn't visible.  Also, don't notify the owner when an implicit control
16012         is added.  (Owners shouldn't even know about their implicit controls.)
16013
16014 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
16015
16016         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
16017         to save some re-layouts.
16018
16019 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
16020
16021         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
16022         [Fixes #81203]
16023
16024 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
16025
16026         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
16027         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
16028
16029 2007-03-21  Mike Kestner  <mkestner@novell.com>
16030
16031         * ListView.cs : disable selection update for non-left button clicks
16032         with mods and over selected items.  [Fixes #80524]
16033
16034 2007-03-20  Jackson Harper  <jackson@ximian.com>
16035
16036         * TextControl.cs:
16037         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
16038         \r\r\n, \n.
16039
16040 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16041
16042         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
16043           very probably a more complicated calculation there. Update the
16044           textbox' ForeColor and BackColor when the ComboBox' colors are
16045           changed. Change the border change in LayoutComboBox to only affect
16046           the textbox, not all the calculations there. Seems to fix most of
16047           #79436.
16048
16049 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16050
16051         * ComboBox.cs: Handle Home and End keys as well as all combinations of
16052           modifiers + navigation keys as input keys, enables advanced text
16053           selection in the combobox (like Shift+Left Arrow for instance).
16054           ComboTextBox now overrides Focused and returns whatever
16055           ComboBox.Focused returns, since it really should be focused
16056           whenever the ComboBox is. Fixes #80795. Also make the border around
16057           the text box one pixel bigger, as mentioned in #79436.
16058
16059 2007-03-20  Jackson Harper  <jackson@ximian.com>
16060
16061         * TreeView.cs: Don't offset the images, this was causing some
16062         artifacts when expanding/collapsing with images that were the
16063         exact height of the treenode.
16064
16065 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16066
16067         * TrackBar.cs: Query the theme for the correct value when the mouse
16068           moves and the thumb is pressed. 
16069         * Theme.cs: Added TrackBarValueFromMousePosition
16070         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
16071           implementation was updating the trackbar value when drawing, now
16072           the drawing methods only draw. Fixes #80900. Refactored the
16073           calculations out to TrackBarValueFromMousePosition and
16074           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
16075           according to the mouse position whenever it wants to. Changed the
16076           light coloured pen when drawing the thumb from ControlLight to
16077           ControlLightLight, because the ControlLight is the same colour as
16078           the background so the 3D effect is lost. 
16079
16080 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
16081
16082         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
16083         defined. Fixes #80784.
16084
16085 2007-03-20  Marek Habersack  <mhabersack@novell.com>
16086
16087         * ContextMenuStrip.cs: align with the change introduced in
16088         revision 74664.
16089
16090 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
16091
16092         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
16093         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
16094         in SetTopmost.
16095
16096 2007-03-19  Chris Toshok  <toshok@ximian.com>
16097
16098         * Control.cs (WmPaint): don't make use of the Handle property
16099         after an event is emitted, as the user could have closed the
16100         form/destroyed the control.  Store the Handle in a local variable
16101         and make use of that.  Fixes bug #80768.
16102
16103 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
16104
16105         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
16106         behavior in X11 environments.
16107
16108 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
16109
16110         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
16111         because on setter of topmost we dont call SetTopmost when handle is not
16112         created.
16113
16114 2007-03-20  Jackson Harper  <jackson@ximian.com>
16115
16116         * TextControl.cs: Need to use SelectionLength () not
16117         selection_length, since that var is reset to -1.
16118         - Draw the caret when we don't have focus.
16119         * TextBox.cs: The selectall actually doesn't occur until the first
16120         focus.
16121         * TextBoxBase.cs: Need to update the caret position after a
16122         selectall.
16123         
16124 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16125
16126         * ListView.cs: Enable scrolling when using Tile view.
16127
16128 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
16129
16130         [Fixes #80902]
16131
16132         * XplatUIDriver.cs: Abstract SetOwner method created.
16133
16134         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
16135         must be implemented and was masked as todo.
16136
16137         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
16138         GWL_HWNDPARENT.
16139
16140         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
16141         cheking for null owner to remove transient. The SetTopmost will be change
16142         on a decond step.
16143
16144         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
16145         SetTopmost. Now owned forms will work properly in win32 and X11.
16146
16147 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16148
16149         * MdiWindowManager.cs: Update function name.
16150         * Form.cs: After closing a form MdiParent is always null.
16151         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
16152           better what it should do: necessary book-keeping when the form is
16153           closed, it should not close the form itself.
16154
16155 2007-03-19  Andreia Gaita  <avidigal@novell.com>
16156
16157         * ListViewItem.cs: Fix back and fore color. The subitems only
16158         use their own colors if they are set, otherwise use the listview's
16159         colors. Don't set default colors on constructor for subitem.
16160         Fixes #79315.
16161
16162 2007-03-19  Mike Kestner  <mkestner@novell.com>
16163
16164         * ListView.cs : make box selection for Details views with 
16165         FullRowSelect conform to MS behavior when clicking in the "item" 
16166         column and clicking outside the defined columns.
16167         [Fixes case 5-6 of #80374]
16168
16169 2007-03-19  Chris Toshok  <toshok@ximian.com>
16170
16171         * ScrollableControl.cs: create the controls from within the ctor,
16172         but don't actually add them until our handle is created.  this
16173         fixes a NRE possibility jpobst found (if you override OnLayout in
16174         a subclass, it's called before your ctor).  Also, add a
16175         IsHandleCreated guard to UpdateSizeGripVisibility as well.
16176
16177 2007-03-19  Jackson Harper  <jackson@ximian.com>
16178
16179         * TextBox.cs: Reduce the amount of invalidation we do.
16180         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
16181         some of them are true by default on MS.
16182         - Add some functions to reduce the amount of invalidates we do.
16183         * TextControl.cs: Less invalidation.
16184
16185 2007-03-19  Chris Toshok  <toshok@ximian.com>
16186
16187         [ Fixes #81773, and *seems* to fix #81553 as well ]
16188
16189         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
16190         AccumulateDestroyedHandles.  We need to do it *after* we send
16191         WM_DESTROY, as the user's code can access Control.Handle in
16192         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
16193         move the WM_DESTROY/zombie handling to before the call to
16194         XDestroyWindow.  For some reason without this ordering
16195         FormTest.RecreateHandle hangs.  This ordering is semantically
16196         equivalent, however, as XDestroyWindow is async anyway.
16197
16198 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
16199
16200         * RichTextBox.cs: Reset backcolor_set after setting default.
16201
16202 2007-03-19  Chris Toshok  <toshok@ximian.com>
16203
16204         * ScrollableControl.cs: the scroll position should not effect the
16205         canvas size.  commit patch from georgegiolfan@yahoo.com, which
16206         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
16207         
16208 2007-03-19  Chris Toshok  <toshok@ximian.com>
16209
16210         * ScrollableControl.cs: clean this up a bit.  create the
16211         scrollbars in the ctor and just show/hide them as needed.  Also,
16212         make hscroll_visible/vscroll_visible internal to Recalculate, and
16213         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
16214         everywhere else.  This seems to fix the scrollbars appearing
16215         beneath the content for me (i have *no* idea why that is,
16216         however.)
16217
16218 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
16219
16220         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
16221         some redundacy for stuff in Anchor and Dock that base will take care of.
16222         [Fixes #80762]
16223
16224 2007-03-19  Mike Kestner  <mkestner@novell.com>
16225
16226         * ListView.cs : make box selection for Details views without 
16227         FullRowSelect dependent on the text bounds, not item bounds.
16228         * ListViewItem.cs : add an internal property to obtain the TextBounds
16229         in Details view.  [Fixes case 1-4 of #80374]
16230
16231 2007-03-19  Andreia Gaita  <avidigal@novell.com>
16232
16233         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
16234         we're < 2.0. #78448 && #80316
16235
16236 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
16237
16238         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
16239         have the same style available as the previously selected one.  Also,
16240         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
16241
16242 2007-03-19  Jackson Harper  <jackson@ximian.com>
16243
16244         * TextControl.cs: Add an alignment property that all new lines
16245         will be given.
16246         - Make sure to use the align shift when calculating the line's X
16247         position.
16248         * TextBox.cs: Set the alignment on the document as well as on all
16249         the document lines.
16250
16251 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16252
16253         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
16254           throw if setting the parent of an mdichild that already has an
16255           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
16256           AssemblyProductAttribute in the assembly, use the type's namespace (as
16257           MS seems to do). CreateControl: don't create the handle if the control
16258           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
16259           create handle if the control is not a form. Change FocusInternal to
16260           virtual so that it can be overriden by Form.
16261         * TextBox.cs: Update call to FocusInternal.
16262         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
16263           form is not a toplevel form when it's a mdi child, so update is_toplevel
16264           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
16265           hasn't been created. Show (IWin32Window): Don't allow this overload for
16266           toplevel windows. CenterToParent/CenterToScreen/Select: create the
16267           handle as MS does. SetVisibleCore: if called on a MdiChild and the
16268           parent isn't visible yet, save the visibility and restore it when the
16269           parent is made visible.
16270         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
16271           methods, since the visibility of the scrollbars can be changed from
16272           several places, not only from AutoScroll.
16273           [Fixes #81179]
16274
16275 2007-03-19  Jackson Harper  <jackson@ximian.com>
16276
16277         * RichTextBox.cs: Enable shortcuts by default.
16278         * TextBoxBase.cs: Add conditional shortcuts.  
16279
16280 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
16281
16282         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
16283
16284 2007-03-19  Chris Toshok  <toshok@ximian.com>
16285
16286         [ Fixes bug #80604]
16287         
16288         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
16289         swallow the message we're waiting on, instead of delivering it, as
16290         this is only used for the WM_SHOWWINDOW raised from
16291         MapWindow/UnmapWindow, and the message needs to be generated
16292         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
16293         before doing the Map/Unmap.  Also make sure that the Hwnd is still
16294         alive after the message has been handled.
16295
16296         *before* the window is shown.
16297
16298         * Control.cs (CreateControl): guard a few more things inside the
16299         if (!is_created) block, as we might end up being called again -
16300         yay .net.
16301         (WmShowWindow): call CreateControl if we're showing the control.
16302
16303 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16304
16305         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
16306           controls without a handle if they have any parent with a handle. In
16307           Dispose add a check whether the handle is created or not before
16308           calling BeginInvoke, this removes the need of the extra disposing
16309           parameter (which was bogus anyway since it didn't prevent the
16310           invoke from happening, it only skipped the check for an existing
16311           handle, meaning that the invoke would call on an inexistent
16312           handle).
16313
16314 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
16315
16316         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
16317         appears in taskbar.
16318
16319 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
16320
16321         * MessageBox.cs:
16322         - Fixed a problem that dont show help button for messages with 3 buttons.
16323         - Refactory button size and position calculations, now dont use fixed 
16324         values, also fixed button sizes (#80043) and form's border space.
16325         - AddButton method created, now all other AddButton methods call this one.
16326         - Some other source code cosmetic changes.
16327
16328 2007-03-18  Jackson Harper  <jackson@ximian.com>
16329
16330         * RichTextBox.cs: Don't do this all fonts must match check if
16331         there is only one char selected.
16332
16333 2007-03-18  Jackson Harper  <jackson@ximian.com>
16334
16335         * TreeView.cs: ScrollWindow works properly now, so we don't need
16336         to screw around with the scroll area.  This fixes some artifacts
16337         when expanding and collapsing.
16338
16339 2007-03-18  Jackson Harper  <jackson@ximian.com>
16340
16341         * TextBoxBase.cs: Allow updating the selection position when the
16342         cursor is outside the textarea, but we have a capture.
16343         * TextControl.cs: A special case for when the cursor is outside
16344         the bounds of the TB.
16345         
16346 2007-03-18  Jackson Harper  <jackson@ximian.com>
16347
16348         * TextBoxBase.cs: Remove image pasting code for now.  There is no
16349         way to get an image on the clipboard right now anyways.
16350         * TextControl.cs:
16351         * RichTextBox.cs: Use the new RTF Picture class for pictures.
16352
16353 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
16354
16355         * MessageBox.cs:
16356         - Set window properties in constructor intead of on CreateParams.
16357         - Remove topmost from Window ExStyle.
16358         - Set ShowInTaskbar to false.
16359         - Set form border to FixedDialog.
16360         - Some cosmetic changes and remove unneeded comments.
16361         - It fixes itens 2,3 and 4 of bug #80043.
16362
16363 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
16364
16365         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
16366         none was explicitly set. Fixes part of bug #79949.
16367
16368 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
16369
16370         * ToolStripComboBox.cs: Add AutoComplete*.
16371
16372 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
16373
16374         * ToolStripComboBox.cs: Add FlatStyle.
16375
16376 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
16377
16378         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
16379         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
16380
16381 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16382
16383         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
16384           CheckBox.cs, RadioButton.cs, BindingSource.cs,
16385           DataGridColumnStyle.cs: Remove warnings.
16386
16387 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16388
16389         * Menu.cs: MergeMenu: Check menu argument for null before looping over
16390           it.
16391         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
16392           visibility of mdi child forms. FormSizeChangedHandler: update the
16393           maximized size if size has changed while maximized.
16394         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
16395           creating the handle.
16396         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
16397           avoid creating the handle if not created.
16398         * XplatUI.cs: Update debug output.
16399         * XplatUIStructs.cs: Added ToString's for a couple of structs.
16400
16401 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
16402
16403         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
16404         ProcessCmdKey().
16405         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
16406         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
16407         Implement keyboard shortcuts.
16408
16409 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
16410
16411         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
16412         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
16413         ColorDialog and all derived classes.
16414
16415 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
16416
16417         [ Fixes bug #79828 ]
16418
16419         * ToolBar.cs:
16420         - Rename ToolBarButtonInfor to ToolBarItem.
16421         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
16422         - Maintain an array of ToolBarItem, used instead of ToolBarButton
16423         collection to be able add same button more than one time on a toolbar.
16424         - Refactory all properties and methods to use ToolBarItem. 
16425
16426         * ToolBarButton.cs: 
16427         - Remove all propeties and methods that is now in ToolBarItem.
16428         - Rectangle propery now gets the rectangle from first ToolBarItem to
16429         mimic win32 behavior.
16430         - Size calculation and layout methods also removed.
16431
16432         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
16433         ToolBarItem instead of ToolBarButton to right drawing buttons when
16434         same button/separator was added more than one time to ToolBar.
16435
16436         * ThemeNice.cs: Same as above. 
16437
16438 2007-03-15  Andreia Gaita  <avidigal@novell.com>
16439
16440         * XplatUIX11.cs: Fire extra MouseMove events right after
16441         MouseDown and MouseUp, emulating win32's <censored> behaviour
16442         for apps that rely on it.
16443
16444 2007-03-15  Jackson Harper  <jackson@ximian.com>
16445
16446         * TextControl.cs:
16447         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
16448         it is drawn on the controls client window and there is no NC
16449         area.
16450         - Set the background color to gray on 2.0 when we are readonly.
16451
16452 2007-03-15  Chris Toshok  <toshok@ximian.com>
16453
16454         [ Fixes bug #81144 ]
16455         
16456         * XplatUIX11.cs: implement VirtualScreen independently of
16457         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
16458         property.
16459
16460 2007-03-15  Chris Toshok  <toshok@ximian.com>
16461
16462         * Hwnd.cs: add an internal field for the cached_window_state.
16463
16464         * XplatUIX11.cs: cache the window state, invalidating the cache
16465         (and thus re-querying the X server) only when we see an update to
16466         the _NET_WM_STATE property.
16467
16468 2007-03-15  Chris Toshok  <toshok@ximian.com>
16469
16470         * BindingSource.cs: get a lot of the unit tests working.
16471
16472 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
16473
16474         * Control.cs: Modify UpdateStyles to store distances when bounds >=
16475         0 instead of just bounds > 0.  [Fixes bug #80912]
16476
16477 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
16478
16479         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
16480         and methods.
16481
16482 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
16483         
16484         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
16485         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
16486         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
16487         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
16488
16489 2007-03-15  Chris Toshok  <toshok@ximian.com>
16490
16491         [ Fixes #81101 ]
16492         
16493         * Control.cs: add Ivan's fix for 81101, with a slight modification
16494         - you can set control.Target to null.
16495
16496 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
16497
16498         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
16499         HideDropDown, use Hide instead to prevent an NRE.
16500         [Fixes bug #81147]
16501
16502 2007-03-14  Jackson Harper  <jackson@ximian.com>
16503
16504         * TextBoxBase.cs: Mess with the creation stuff a little. We need
16505         to calculate the document before the handle is created, in some
16506         cases. (Actually just one case).
16507
16508 2007-03-14  Jackson Harper  <jackson@ximian.com>
16509
16510         * TextBoxBase.cs: Need to display the caret after letting the base
16511         wndproc handle the focus methods, because the caret display
16512         methods check the focus state.
16513         - Try to display the caret after updating it's position with SelectWord.
16514         - Don't need to do an immediate update on this recalc, since there
16515         will be an invalidate anyways.
16516
16517 2007-03-14  Jackson Harper  <jackson@ximian.com>
16518
16519         * TreeView.cs: Some workarounds so that we can match event order a
16520         little better.
16521
16522 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
16523
16524         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
16525         #80803. Avoid NullReferenceException when Control does not have
16526         parent. Fixed different blinkstyle issues. Only subscribe to Tick
16527         event a single time. Only draw error icon when control is created and
16528         visible. Fixes failing unit tests.
16529
16530 2007-03-14  Andreia Gaita  <avidigal@novell.com>
16531
16532         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
16533         Selecting events. Fire Leave and Enter events when changing tabs.
16534
16535 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
16536
16537         * TreeView.cs: Add TreeViewNodeSorter.
16538         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
16539
16540 2007-03-14  Chris Toshok  <toshok@ximian.com>
16541
16542         * Form.cs: go ahead and remove the RecreateHandles that jpobst
16543         removed earlier and I had him add back it.  It turns out metacity
16544         *does* in fact handle the MOTIF_WM_HINTS property changing, it
16545         just doesn't redraw the window titlebar until you resize the
16546         window.  This also means we aren't recreating the entire window
16547         hierarchy on X when you change this property.  And it looks better
16548         on windows, too.
16549
16550 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16551
16552         * ListViewItem.cs:
16553         * ListView.cs: Collecting selection information
16554         is now done in SelectedIndexCollection rather than in
16555         SelectedListViewItemCollection. This is done so we can
16556         have the selection information code in one single place
16557         (virtual mode selection information entirely depends on
16558         SelectedIndexCollection).
16559
16560 2007-03-13  Miguel de Icaza  <miguel@novell.com>
16561
16562         * ErrorProvider.cs: Add stubs for ISupportInitialize
16563
16564 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16565
16566         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
16567         in the right order with the right values, from the Checked property, 
16568         just as MS does (instead of triggering them from ListView).
16569
16570         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
16571
16572 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16573
16574         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
16575         the correct handler in OnItemCheck method (ItemCheckEventHandler 
16576         instead of EventHandler). This used to throw an InvalidCastException.
16577
16578 2007-03-13  Jackson Harper  <jackson@ximian.com>
16579
16580         * TextBoxBase.cs: Calculate the document before the handle is
16581         created, so there isn't an extra invalidate called.
16582
16583 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
16584
16585         * Form.cs: Don't set owner in ShowDialog until we are sure
16586         that we aren't going to throw an exception.  [Fixes bug #80773]
16587
16588 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
16589
16590         * TreeView.cs: Make it compile.
16591
16592 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
16593
16594         * Control.cs: Another place we don't call SizeFromClientSize.
16595         * Form.cs: Another place we don't call SizeFromClientSize.
16596         [Fixes bug #81125]
16597
16598 2007-03-12  Jackson Harper  <jackson@ximian.com>
16599
16600         * TreeView.cs: Basically emulating some strangness here with
16601         exanding nodes and setting node positions when windows aren't
16602         created.
16603         - Also attempting to walk the node tree less than previously, and
16604         just use visible order calculations for determining offsets.
16605         - oops made scrolling backwards.
16606         * TreeNode.cs: We need to start nodes with a zero visible order,
16607         because the order calcs are based on the first nodes order.
16608
16609 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
16610
16611         * Form.cs: Don't exit the program if RecreateHandle is called on
16612         the main form.
16613
16614 2007-03-12  Chris Toshok  <toshok@ximian.com>
16615
16616         * XEventQueue.cs: remove the use of PostQuitState.
16617
16618         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
16619         WM_QUIT message in GetMessage, return false (and if we're in the
16620         nested WaitForHwndMessage, repost the WM_QUIT message).
16621
16622 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
16623
16624         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
16625         or the MaximizeBox properties.  [Part of bug #80640]
16626
16627 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
16628
16629         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
16630         no links.
16631
16632 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
16633
16634         * ToolStripItem.cs: Fix some tests I broke by checking Visible
16635         instead of visible.
16636
16637 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
16638
16639         * FileDialog.cs: Use text of File name combobox to determine what
16640         files the user selected. Added tokenizer to parse the file names.
16641         Fixes bug #81123.
16642
16643 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
16644
16645         * Control.cs: We can't call SizeFromClientSize in the constructor,
16646         but we still need to do the same work, so make an internal version.
16647         [Fixes bug #80621]
16648
16649 2007-03-12  Jackson Harper  <jackson@ximian.com>
16650
16651         * TreeView.cs:
16652         * TreeNode.cs:
16653         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
16654         IsExpanded.
16655
16656 2007-03-12  Jackson Harper  <jackson@ximian.com>
16657
16658         * TextBoxBase.cs: Now that the handles are being created a little
16659         later, we need to make sure that the document is recalculated when
16660         the handle is created.
16661
16662 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
16663
16664         * Theme.cs: GetLinkFont abstract method added.
16665         
16666         * LinkLabel.cs: 
16667         - Remove CalcTrimRectangle, no longer needed.
16668         - Factor also remove, position issues must be fixed in libgdiplus.
16669         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
16670         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
16671         care about font used to draw links.
16672         - Set TabStop to true when control is "Selectable", control is selectable
16673         when have one or more links. Fixes #80501 (test case is also added).
16674         - Set the LinkArea values after links change, LinkArea values must be
16675         based in first link position and size, a test case was created.
16676         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
16677         the attribute must be true LinkArea.Length > 0. The same was applied to
16678         TabStop.
16679         
16680         * ThemeWin32Classic.cs: 
16681         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
16682         in draw method.
16683         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
16684         color change.
16685         - Draw focus rectangle for every parts focused, including parts that 
16686         is on another line, its because regions returns various rectangles
16687         and not only one. Needed to mimic W32 look.
16688         - Uses Graphics.Clip to delimite region painted, it mean that now 
16689         complete text is passed to DrawString, with this we solve layout
16690         issues without create another text renderer.
16691         - Uses Region.Intersect to fix some flickers problems, now only needed
16692         parts will redrawed.
16693         - This changes fixes #79614 and some other unreported issues, on Linux 
16694         some layout problems still remain, the problem is under 
16695         MeasureCharacterRanges but it is an libgdiplus bug.
16696
16697 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
16698
16699         * TextBox.cs: Set for foreground color.
16700         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
16701         this is already done in Control.
16702
16703 2007-03-10  Jackson Harper  <jackson@ximian.com>
16704
16705         * TextBox.cs: Set the background color, but reset the
16706         backcolor_set flag which is just for the user setting the
16707         background color.
16708
16709 2007-03-09  Chris Toshok  <toshok@ximian.com>
16710
16711         * Control.cs: really remove the call to XplatUI.SetVisible from
16712         CreateHandle(), like I said I did when I merged the branch.
16713
16714         * BindingSource.cs: implement some more of this stuff.
16715
16716 2007-03-09  Jackson Harper  <jackson@ximian.com>
16717
16718         * TextBox.cs: Don't explicitly set our background colors.
16719         * TextControl.cs:
16720         * TextBoxBase.cs: Draw readonly text.
16721         - Need to invalidate when backcolor or readonly are changed.
16722         
16723 2007-03-09  Jackson Harper  <jackson@ximian.com>
16724
16725         * TextBoxBase.cs: Don't set the forecolor until the handle is
16726         created.
16727         - Do not raise OnPaint, and removed some old debug code.
16728
16729 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
16730
16731         * ScrollableControl.cs: Fix mouse wheel scrolling.
16732
16733 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
16734
16735         * Control.cs: Wire up MouseDoubleClick event.
16736
16737 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
16738
16739         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
16740         top or bottom.
16741         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
16742         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
16743         item is added.  This logic was moved to ToolStrip.OnItemAdded.
16744         [Fixes bug #81090]
16745
16746 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16747
16748         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
16749
16750 2007-03-08  Jackson Harper  <jackson@ximian.com>
16751
16752         * TreeView.cs: Show the correct image for selected node (this used
16753         to work, not sure how the code got deleted). Also implemented 2.0 feature
16754         SelectedImageKey.
16755
16756 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16757
16758         * ListView.cs:
16759         * ListViewItem.cs: Cache index in items when retrieving them
16760         in VirtualMode.
16761
16762 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16763
16764         * ToolStripItem.cs: Don't return the explicit_size if we are using 
16765         AutoSize.  Fixes invalidation issue when user has explicitly set a
16766         size and has AutoSize = true.
16767
16768 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16769
16770         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
16771
16772 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16773
16774         * DataGridView.cs: Remove event handler from DataView when a
16775         DataTable is used as DataSource.
16776
16777 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16778
16779         * Control.cs: Create internal setter for client_size to allow it to be
16780         set without triggering resizing code.
16781         * Form.cs: Calculate client_size in constructor, only change client_size
16782         in FormBorderStyle property if Handle has been created.
16783         [Fixes #80574, #80791]
16784
16785 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
16786
16787         * SystemInformation.cs: Add TerminalServerSession.
16788
16789 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16790
16791         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
16792         TreeView code.
16793
16794 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16795
16796         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
16797         Handle before we were supposed to.  Now checks ActivateOnShow property
16798         in Control.
16799         * Control.cs: Add internal ActivateOnShow property.
16800         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
16801         for ActivateOnShow.
16802         * Hwnd.cs Remove no longer needed no_activate field.
16803
16804 2007-03-07  Jackson Harper  <jackson@ximian.com>
16805
16806         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
16807         2.0 properties
16808         * DrawTreeNodeEventHandler.cs: Add
16809         * DrawTreeNodeEventArgs.cs: Correct default value.
16810         
16811 2007-03-07  Chris Toshok  <toshok@ximian.com>
16812
16813         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
16814         to be called before NativeWindow.WndProc.  Put the HwndCreating
16815         magic there to hook up our Hwnd's to handles.
16816
16817 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
16818
16819         * DataGridView.cs: Comment out debug code.
16820
16821 2007-03-07  Chris Toshok  <toshok@ximian.com>
16822
16823         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
16824         to make the rest of the world happy]
16825
16826         * Control.cs (CreateHandle): there's no need to call
16827         XplatUI.SetVisible here, it's effectively done by
16828         XplatUI.CreateWindow on X now, and always was on windows.
16829
16830         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
16831         shortcircuit out of the loop if we have a message loop running on
16832         this thread.
16833
16834         [Changelog from merge]
16835
16836         2007-03-05  Chris Toshok  <toshok@ximian.com>
16837
16838                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
16839                 causes handle creation.
16840
16841         2007-02-28  Chris Toshok  <toshok@ximian.com>
16842
16843                 * ApplicationContext.cs: Add a flag to make sure we only raise the
16844                 ThreadExit event once (ExitThreadCore can be indirectly called
16845                 from a few places.)  I don't like the additional flag, but it
16846                 makes the event ordering/count correct.
16847
16848                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
16849                 without locking the collection.  An enumerator doesn't give us any
16850                 protection from modification anyway.  Lock the thread hash and
16851                 replace the complicated enumerator loop with a foreach.
16852                 (Application.CloseForms): make internal so it can be called from
16853                 ApplicationContext.  This should probably be moved to MWFThread.
16854                 (Application.ExitThread): don't call MWFThread.Current.Exit()
16855                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
16856                 when the runloop exits (in response to WM_QUIT.)
16857                 (Application.RunLoop): add a comment (and check) for
16858                 context.MainForm being null after setting context.MainForm.Visible
16859                 = true.  This is because you're perfectly free to dispose of a
16860                 form in VisibilityChanged.  Chalk this up to another case where we
16861                 need to synchronously generate WM_ACTIVATE from Control.Show.
16862                 Also, add handling for WM_QUIT here so we'll exit the loop.
16863                 
16864                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
16865                 fact that we don't wait if we're only unmapping the whole_window
16866                 makes me a bit nervous, but it doesn't seem to cause any problems
16867                 yet.
16868
16869                 also, add a comment about the stupid, broken and wrong resetting
16870                 of PostQuitState to false in GetMessage().
16871
16872                 In PostQuitMessage, we need to add a WM_QUIT message to the
16873                 thread's queue.  We use the FosterParent to get the right
16874                 handle/hwnd/queue.
16875
16876                 Lastly, in SetVisible, we need to unmap both windows, since the
16877                 waiting only happens when we're unmapping the client window.  So
16878                 now, the *only* time we unmap just the whole_window is in the hack
16879                 for resizing a control to 0,0.
16880                 
16881         2007-02-21  Chris Toshok  <toshok@ximian.com>
16882
16883                 * Application.cs (CloseForms): rewrite this so that we don't
16884                 modify the list while we're traversing it.
16885
16886         2007-02-20  Chris Toshok  <toshok@ximian.com>
16887
16888                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
16889                 of OnHandleCreated.
16890                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
16891                 handle is created.  otherwise we'll create it here.
16892                 (VerticalScrollEvent): same here.
16893
16894                 * Application.cs (CloseForms): call Form.Dispose, don't post
16895                 WM_CLOSE_INTERNAL.
16896
16897                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
16898                 here. Application should Dispose() of the Form's.
16899
16900                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
16901                 WM_DESTROY as well.
16902                 (MapWindow,UnmapWindow): only actually do the waiting for
16903                 SHOWWINDOW if the control we're dealing with is a Form.
16904                 (CreateWindow): if the control isn't a form, SendMessage
16905                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
16906
16907                 * Control.cs (SetVisibleCore): always use is_visible here, not
16908                 value.  If we use value, we can end up re-setting something
16909                 visible if, for instance, you do Control.Hide() in a delegate
16910                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
16911
16912         2007-02-20  Chris Toshok  <toshok@ximian.com>
16913
16914                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
16915                 the message we need.  PeekMessage returning false should not be a
16916                 condition under which we exit the loop.
16917
16918         2007-02-15  Chris Toshok  <toshok@ximian.com>
16919
16920                 * Control.cs (Refresh): only refresh if we've got a handle and are
16921                 visible.
16922                 (CreateAccessibilityInstance): CreateControl() here.
16923                 (UpdateChildrenZOrder): complicate the code loop even more by
16924                 taking into account controls that haven't had their handle
16925                 created, and those that aren't visible.  But on the flip side,
16926                 simplify the code by splitting it into two loops.  one which
16927                 builds up the list of child controls we're interested in, and the
16928                 other that sets the z order of those children.
16929
16930         2007-02-14  Chris Toshok  <toshok@ximian.com>
16931
16932                 * Control.cs: Control.AccessibilityObject causes the control to be
16933                 created, not just the handle.
16934
16935         2007-02-14  Chris Toshok  <toshok@ximian.com>
16936
16937                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
16938                 problem on X where a window might have its handle created (and be
16939                 visible) while the window is unmapped.  calling XConfigureWindow
16940                 on an unmapped window is bad, and generates X errors.
16941
16942         2007-02-13  Chris Toshok  <toshok@ximian.com>
16943
16944                 * Control.cs (CreateHandle): don't loop over our children setting
16945                 their parent here.  do it when in WndProc when we're shown.
16946                 (UpdateChildrenZOrder): make this internal so we can call it from
16947                 ScrollableControl.
16948                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
16949                 creating its handle.  Also, remove the calls to PerformLayout from
16950                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
16951                 OnVisibleChanged only seems to be called directly here for the
16952                 toplevel control.  It's propagated down the window hierarchy by
16953                 calls to child.OnParentVisibleChanged.
16954                 (OnVisibleChanged): don't do layout here - it's done (oddly
16955                 enough, according to a glance at stack traces on ms.net..) in
16956                 ScrollableControl.
16957                 
16958                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
16959                 z order of our children before calling PerformLayout.
16960
16961         2007-02-12  Chris Toshok  <toshok@ximian.com>
16962
16963                 [big change, fixes #80020]
16964                 
16965                 * AccessibleObject.cs: we need to make owner internal again to fix
16966                 some of ControlAccessibleObject.
16967
16968                 * Control.cs: lots of changes here.  add support for WM_CREATE,
16969                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
16970                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
16971                 we create child controls.  leave the MonoTODO's for the
16972                 accessibility calls, but fix the exceptions so the tests pass.
16973
16974                 Add the InvalidOperationExceptions to Invoke methods, and remove a
16975                 couple of InvokeInternal methods we aren't using.
16976                 
16977                 Also, add a couple of CreateHandle calls in places where we know
16978                 the handles are being created but our code doesn't reference
16979                 .Handle.
16980
16981                 Make SetVisibleCore call OnVisibleChange if the handle isn't
16982                 created.  If the handle is created, we rely on XplatUI.SetVisible
16983                 generating the event synchronously.
16984                 
16985                 Lastly, make sure we don't use this.Handle inside CreateHandle,
16986                 because we can call back into client (and that code can dispose of
16987                 the control).
16988
16989                 * XplatUIStructs.cs: misc/cleanup.
16990
16991                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
16992                 although we don't populate the wParam properly.
16993                 (CreateWindow): generate WM_CREATE.
16994                 (MapWindow,UnmapWindow): make these calls synchronous, at great
16995                 performance expense (particularly in the unmap case), to match
16996                 win32 behavior.
16997
16998                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
16999                 to call it.
17000                 (set_MdiParent): don't recreate the handle unless it's been
17001                 created already.
17002                 
17003                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
17004                 it's created.
17005
17006                 * NativeWindow.cs: this is probably the weirdest part of the
17007                 patch.  We need a way to link up the window being created to the
17008                 WM_CREATE message.  Since we can only be creating one window at a
17009                 time on a given thread, we keep track of a per-thread reference so
17010                 we can dispatch it properly.  We also need to keep track of the
17011                 Hwnd currently being created so that the win32 backend doesn't
17012                 have problems.
17013                 
17014                 * XplatUIWin32.cs: a similar change to the one we made in
17015                 NativeWindow.cs.
17016
17017 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
17018
17019         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
17020         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
17021         to draw the menu shortcut string.
17022
17023 2007-03-07  Jackson Harper  <jackson@ximian.com>
17024
17025         * TreeNode.cs: Add the 2.0 collapse method.
17026
17027 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
17028
17029         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
17030
17031 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
17032
17033         * DataGridView.cs: Change DataSource will clear column and row
17034         lists. Call Invalidate() to reflect DataSource change.
17035
17036 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
17037
17038         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
17039         and a new row is added to it.
17040
17041 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
17042
17043         * DataGridView.cs: Add columns when DataSource is en empty list but
17044         is a System.Data.DataView (from a System.Data.DataTable).
17045
17046 2007-03-06  Andreia Gaita  <avidigal@novell.com>
17047
17048         * Label.cs: Implement AutoEllipsis (2.0)
17049
17050 2007-03-06  Jackson Harper  <jackson@ximian.com>
17051
17052         * TreeView.cs: Implement 2.0 TopNode setter property.
17053         - Use a local var instead of the skipped_nodes field for computing
17054         how many nodes to skip.  Otherwise we won't scroll because the
17055         valuechanged handler checks if skipped_nodes is equal to the new
17056         value.
17057         - Implement 2.0 Sort method.
17058         - Add useless 2.0 DoubleBuffer property
17059         - Implement 2.0 LineColors property.  Lets you change the color of
17060         the lines in the tree. Terribly useful for creating non cohesive
17061         desktops.
17062         - Implement 2.0 image key feature.
17063
17064 2007-03-06  Jackson Harper  <jackson@ximian.com>
17065
17066         * TreeView.cs: We can't get the bounds of the nodes before raising
17067         the AfterSelect event, because that event could change the node's
17068         bounds (scrolling, font change, etc).
17069
17070 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17071
17072         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
17073         * Form.cs: Don't recreate handle when creating FormWindowManager, just
17074           update window styles. In CreateParams us VisibleInternal instead of
17075           VIsible to get the actual visible flag set for this form.
17076         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
17077           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
17078           handle the case when the form is already maximized, in which case
17079           it should be restored. Fixes #81043.
17080
17081 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17082
17083         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
17084
17085 2007-03-05  Jackson Harper  <jackson@ximian.com>
17086
17087         * TreeViewHitTestInfo.cs: implement.
17088
17089 2007-03-05  Jackson Harper  <jackson@ximian.com>
17090
17091         * InternalWindowManager.cs: class status fix.
17092
17093 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17094
17095         * InternalWindowManager.cs: All windows that have a parent
17096         are confined to their parent when they're being moved.
17097         Fixes #80822.
17098
17099 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
17100
17101         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
17102         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
17103
17104 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17105
17106         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
17107           buttons invisible before deciding which ones should be visible
17108           (fixes minimize/maximize buttons showing up in toolwindows). Remove
17109           an unused variable.
17110         * InternalWindowManager.cs: Remove warning.
17111
17112 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17113
17114         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
17115         to throw an InvalidOperationException is virtual mode is being used.
17116
17117 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
17118
17119         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
17120         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
17121         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
17122         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
17123         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
17124         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
17125
17126 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17127
17128         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
17129           driver.KeyboardDelay from XplatUI.KeyboardDelay 
17130         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
17131           (patch by Sergey Volk)
17132
17133 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17134
17135         * ToolWindowManager.cs: Added, contains logic for
17136           tool windows.
17137         * CreateParams.cs: Add a few helper methods and an
17138           internal variable to know which control the CreateParams belongs
17139           to.
17140         * Control.cs: Call Form.ChangingParent when the
17141           parent is about to be changed.
17142         * XplatUIX11.cs: DeriveStyles (): Set
17143           caption_height for all windows that have captions and are children.
17144           Update to use ToolWindowManager instead of InternalWindowManager
17145           for ToolWindows.
17146         * XplatUIWin32.cs: Set fake window styles for all
17147           windows that have window managers.
17148         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
17149           now duplicated for mdi windows when they are
17150           maximized, first for the buttons the window itself has, then for
17151           the buttons that appear in the menu bar. Makes things a little
17152           easier). Updated UpdateWindowDecorations, SetWindowState and the
17153           mouse eventhandlers accordingly.
17154         * Form.cs: Add ChangingParent (), contains the
17155           logic of what should happen when the parent changes. In MdiParent
17156           don't set things that ChangingParent () is doing. When handling
17157           WM_CLOSE, we can close the form if there are any other modal forms
17158           and the current form is a descendent of the modal form.
17159         * InternalWindowManager.cs: A lot of refactoring,
17160           the title buttons are now extracted to a separate container class
17161           that takes care of all button code (clicks, tooltips, etc). Moved
17162           Iconic|Maximized|Normal Bounds properties to this class from
17163           MdiWindowManager, so that the window state logic can succeed for
17164           other than mdi wm's. Implemented general window state change logic.
17165           Moved CreateButtons to ThemeWin32Classic, since the theme might
17166           override which buttons are available when as well as the exact
17167           location.
17168         * FormWindowManager.cs: Added, contains logic for
17169           normal forms.
17170         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
17171           which buttons go where (and if they are at all visible). 
17172           Removed special handling of maximized windows, since they aren't special. 
17173           In DrawManagedWindowDecorations don't try to draw the text if it is
17174           empty.
17175         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
17176           use whatever the wm gives us.
17177
17178 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
17179
17180         * ButtonBase.cs: Add 2.0 properties.
17181         * Button.cs: Override Draw for 2.0.
17182         * Control.cs: Add Entered and Selected properties.
17183         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
17184         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
17185         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
17186         buttons.
17187         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
17188
17189 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
17190
17191         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
17192
17193 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
17194
17195         * XplatUIWin32.cs: Register a new class with Windows each time we get
17196         a new ClassStyle.  [Fixes bugs #79432, #80817]
17197         * Controls.cs: Set the correct ClassStyle in CreateParams.
17198         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
17199
17200 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
17201
17202         * ListView.cs: Add fireEvent argument to ReorderColumn since the
17203         ColumnReordered event must not be signaled when modifying DisplayIndex
17204         of a ColumnHeader. Added internal ReorderColumns method which takes
17205         care of drawing, and updating the internal DisplayIndex of the
17206         ColumnHeader. Added AddColumn method which is invoked from
17207         ColumnHeaderCollection when adding or inserting columns, and which
17208         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
17209         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
17210         Recalculated dispay indices after removing a ColumnHeader.
17211         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
17212         match MS. Allows last display index to be returned after ListView
17213         is disposed. Update actual location of ColumnHeader when DisplayIndex
17214         is modified.
17215
17216 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
17217
17218         * LinkLabel.cs: Improve CalcTrimRectangle.
17219         
17220         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
17221
17222 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
17223
17224         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
17225         get rectangle as a result value.
17226
17227 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
17228
17229         * LinkLabel.cs: Theres some diferences between rectangle return from 
17230         MeasureCharacterRanges and the area used for DrawString to fix this 
17231         CalcMeasurementFactor method was created, it calcules the diferences
17232         to be use later to adjust rectangle in draw operations. Fixes #80473.
17233         
17234         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
17235         to adjust draw rectangle.
17236
17237 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
17238
17239         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
17240         text and some other changes to reduce and optimize source code.
17241
17242 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
17243
17244         * RadioButton.cs: Implement 2.0 event.
17245         * RelatedImageListAttribute.cs: Implement new class.
17246
17247 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
17248
17249         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
17250
17251 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
17252
17253         * CheckBox.cs: Implement 2.0 functionality.
17254
17255 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17256
17257         * ListView.cs: Refactor Add and AddRange methods of
17258         ListViewItemCollection, to not update the ListView
17259         everytime an item is added in AddRange. Also move the update
17260         code to a new CollectionChanged method, and call it
17261         from other methods that need it as well (this should also fix some
17262         bugs when Sorting is used).
17263
17264 2007-02-27  Jackson Harper  <jackson@ximian.com>
17265
17266         * TextControl.cs: Try to never let the caret stay in a non-text
17267         tag.
17268         * TextBoxBase.cs: Update the caret.
17269
17270 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
17271
17272         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
17273         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
17274         delete POINT structure, duplicate of one in XplatUIStructs.
17275         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
17276
17277 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
17278
17279         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
17280         edit box since otherwise the Label would immediately be set (even if
17281         the user did not modify the label). In OnKeyDown set Handled to true
17282         if Return or Escape was pressed. In ColumnHeaderCollection unlink
17283         columns that are to be removed. In ListViewItemCollection unlink items
17284         that are to be removed.
17285
17286 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
17287
17288         * TextRenderer.cs: If we set a GDI clip region, we need to clear
17289         it when we are done.  [Fixes bug #80949]
17290
17291 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
17292
17293         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
17294
17295 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17296
17297         * ListView.cs: I forgot to commit the changes for ListView 
17298         in my previous patch.
17299
17300 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
17301
17302         * Clipboard.cs: Partially implement an overload of SetDataObject.
17303         * Form.cs: Implement ShowWithoutActivation.
17304         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
17305
17306 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17307
17308         This is a first set of changes to make the Virtual mode works,
17309         by avoiding the retrieval of ListViewItem instances until
17310         draw time.
17311
17312         * ListView.cs: Store item position in the ListView instead of the
17313         ListViewItem, this way we don't request the Bounds property of
17314         ListViewItem inside the ListView calculations, as well as cache the item
17315         size in item_size field. Store indexes instead of ListViewItem
17316         instances in the matrix used by icon view. Add a ItemMatrixLocation
17317         struct to hold the row and col info of the matrix info.
17318
17319         * ListViewItem.cs: Don't store the location anymore, and only cache
17320         the rectangles for GetBounds. Use the ListView.GetItemLocation
17321         method to retrieve the actual location.
17322
17323 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
17324
17325         * TextRenderer.cs: Add clipping support, thanks to George.
17326         [Fixes bug #80949]
17327
17328 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
17329
17330         * ListViewItem.cs: Cancel label edit when item is removed from 
17331         ListView.
17332         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
17333         event before the edit textbox is displayed.  Added CancelEdit method
17334         which is used end to editing while ignoring the value set by the
17335         user. In EndEdit, set focus to ListView to avoid losing focus to
17336         other controls. In ListViewItemCollection.Clear, cancel editing of
17337         any of the items.  In Remove, cancel editing of item being removed.
17338         Avoid udplicate code by modifing RemoveAt to invoke Remove.
17339
17340 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
17341
17342         * FileDialog.cs: Update FSEntry when move is successful. Fixes
17343         bug #80948.  
17344
17345 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
17346
17347         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
17348         compatible with non X11 systems. Fixes #80901.
17349
17350 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
17351
17352         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
17353         whether the item should be unselected and reselect. We do no want this
17354         when we're starting to edit the label. Do not fire the 
17355         SelectedIndexChanged event from ListView when its already been fired
17356         by modifying ListViewItem.Selected. Fixes bug #80943.
17357
17358 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
17359
17360         * TextRenderer.cs: Previos commit logic was backwards.
17361
17362 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
17363
17364         * TextRenderer.cs: Don't add padding on MeasureText if we were
17365         sent the NoPadding flag.
17366
17367 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
17368
17369         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
17370         after DrawButton. To prevent image overlaps button borders SetClip and 
17371         ResetClip added before and after draw image. Fixes #79129.
17372
17373 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
17374
17375         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
17376         window size, it fix problem when you run under win32 that theres
17377         Size diferent than ClientSize. Also fix controls size and positions
17378         to mimic Win32. Fixes #80837.
17379
17380 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
17381
17382         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
17383         menu area to fix some problems for non X11 systems. Fixes #80613.
17384
17385 2007-02-22  Jackson Harper  <jackson@ximian.com>
17386
17387         * TreeNode.cs: When a node is expanded, set its is_expanded flag
17388         even if it doesn't have any children.
17389
17390 2007-02-22  Jackson Harper  <jackson@ximian.com>
17391
17392         * TreeView.cs: Calculate the top node 'on the fly', this
17393         eliminates issues where you need to click on the tree before
17394         scrolling it to get the top node computed correctly.
17395         * TreeNodeCollection.cs: We don't need to mess with the top node
17396         anymore.
17397
17398 2007-02-22  Jackson Harper  <jackson@ximian.com>
17399
17400         * DataGridViewRow.cs: Fix typo so height can actually be set.
17401         Patch by Peter Grimm.
17402
17403 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
17404
17405         * FileDialog.cs: Fixed support for renaming files and directories.
17406         * ListView.cs: Do not lose focus when edit is canceled. Process
17407         Escape as regular key (to prevent closing of dialogs).
17408
17409 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
17410
17411         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
17412         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
17413
17414 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
17415
17416         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
17417         did not modify label.
17418         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
17419         modified the text. Reset Label when user presses Escape in edit mode.
17420         Move focus to ListView after having cancelled or finished editing the
17421         label.
17422
17423 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
17424
17425         * ComboBox.cs: Removed unnecessary initializations. Marked items field
17426         private. Clear textbox when Text is set to null and SelectedIndex is
17427         already -1.
17428         * FileDialog.cs: Removed unnecessary initializations. Removed 
17429         workarounds for ComboBox bugs that are now fixed. Modified
17430         DefaultExt, InitialDirectory and Title property to change null to
17431         zero-length string in getters. Avoid directly accessing fields.
17432
17433 2007-02-20  Jackson Harper  <jackson@ximian.com>
17434
17435         * TextControl.cs: Remove RecalAlignments call, that was some
17436         debugging leftovers.
17437         - Don't use the line indent when we shouldn't.
17438         * RichTextBox.cs: Add support for paragraph left indents.
17439
17440 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17441
17442         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
17443         Seems like the class status pages doesn't catch params differences.
17444
17445 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
17446
17447         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
17448
17449 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
17450
17451         * ComboBox.cs: Setting Text should have no effect if item text of
17452         selected item exactly matches value. First lookup text using
17453         case-sensitive comparison, and fallback to case-insensitive comparison.
17454         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
17455         allow startIndex to be last index. Changed ArgumentOutOfRangeException
17456         paramname to match MS. Restart from first item if string is not found
17457         after startIndex. Fixed paramname of ArgumentNullException that is
17458         thrown for null value in ObjectCollection.Contains.
17459
17460 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
17461
17462         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
17463
17464 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17465
17466         * ListControl.cs: In SelectedValue use value.Equals to compare for
17467         equality instead of ==, otherwise it will fail for strings.
17468         Fixes #80794.
17469
17470 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17471         
17472         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
17473         since the caret won't show up unless ShowSelection is true. 
17474         Fixes #80795.
17475
17476 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17477
17478         * Application.cs: When disabling all forms but the main form, do not
17479           disable any descendants of the main form (such as mdi children or
17480           other parented forms). Fixes #80822 on Windows.
17481         * Form.cs: If we have a parent, set the WS_CHILD style.
17482         * Control.cs: Update the window styles if the control whose parent has
17483           changed is a form (the WS_CHILD style has to be switched).
17484
17485 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
17486
17487         * XplatUIStructs.cs: MsgUIState structure added.
17488
17489 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
17490
17491         * FileDialog.cs: Removed need for separate fileName field. On 2.0
17492         profile, do not check filename(s) for illegal character if filename(s)
17493         were set non-interactively but always check on 1.0 profile. Fixed NRE
17494          in DefaultExt and only strip off first leading dot. Improve exception
17495         message when invalid Filter is set. Do not ignore InitialDirectory if
17496         it does no exist. Store specified Title, and if empty use default
17497         title (depending on type of dialog). Added an internal DialogTitle 
17498         property for retrieving dialog title. Fixed logic of displayed dir to
17499         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
17500         string as its buggy.
17501         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
17502         FileName is a zero-length string (it can never be null). Override 
17503         DialogTitle property to set default title of dialog box.
17504         * SaveFileDialog.cs: Override DialogTitle property to set default
17505         title of dialog box.
17506
17507 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
17508
17509         * FileDialog.cs: Modify default text of filename and filetype labels
17510         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
17511         after we've updated the SelectedIndex. Fixes part of bug #80887.
17512         * SaveFileDialog.cs: Set text of filetype label.
17513
17514 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17515
17516         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
17517         label field. Needed by latest Jackson's fixes for ListView.
17518
17519 2007-02-16  Andreia Gaita  <avidigal@novell.com>
17520
17521         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
17522         print preview images.
17523
17524 2007-02-16  Jackson Harper  <jackson@ximian.com>
17525
17526         * ListView.cs: Make AfterLabelEdit work correctly.
17527         * FileDialog.cs: After changing the name of the folder, we have to
17528         make sure that it is created, or that we pop up an error because
17529         it already exists.
17530
17531 2007-02-16  Jackson Harper  <jackson@ximian.com>
17532
17533         * X11Dnd.cs: Implement aliases on mime handlers, so things like
17534         System.String are mapped to text.
17535         - Handle dataobjects, getting all the possible formats out of them
17536         - We dont need the drag event args before we give feedback. This
17537         allows feedback cursors to be immediate before selections have
17538         been converted.
17539
17540 2007-02-16  Jackson Harper  <jackson@ximian.com>
17541
17542         * TextBoxBase.cs: Modified the method for inserting images to
17543         taking a line and position instead of tag and position.
17544         * RichTextBox.cs: Handle PngBlip data by inserting the png image
17545         into the RTF file.
17546         * TextControl.cs: Allow images to be inserted as the first tag of
17547         a line.
17548         - Fix some off by one issues when we assume the first tag is a
17549         text tag, not an image tag.
17550
17551 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17552
17553         * ListView.cs: Set focus to ListView when ItemControl gets a
17554         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
17555         Fixes part of #80467.
17556
17557 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17558
17559         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
17560           validate Text input (if null or empty string reset Value to default
17561           value). Fixes #80830.
17562
17563 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17564
17565         * ListView.cs: Set owner as null for columns and items when
17566         Dispose is invoked. Fixes #80607.
17567
17568 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
17569
17570         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
17571         showing DropDowns, don't show a Grip when doing Flow layout.
17572         [This fixes the toolbox in PDN 2.72.]
17573         * ToolStripItem.cs: Add Anchor property and some internal properties to
17574         reduces needed changes to FlowLayout.
17575         * ToolStripOverflow.cs: Remove unused variable.
17576         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
17577         use it in the layout calculations.
17578
17579 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
17580
17581         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
17582         reported in #79640.
17583         
17584         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
17585         size calculation.
17586
17587 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
17588
17589         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
17590         MeasureString format, it can make button very large in some cases, it is
17591         strange but is what win32 do.
17592
17593 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
17594
17595         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
17596         size calculation.
17597
17598         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
17599         rendering, the value is based on MenuAccessKeysUnderlined.
17600
17601 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
17602
17603         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
17604         for most themes.
17605         
17606         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
17607         
17608         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
17609         and use MenuAccessKeysUnderlined instead.
17610
17611 2007-02-13  Andreia Gaita  <avidigal@novell.com>
17612
17613         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
17614         A selected control would not get a Focus call if:
17615                 - the default active control of the container is the same as
17616                   the one that was selected
17617                 - we are switching from one container to another
17618         Under these conditions, the container being selected already has
17619         an active_control, which is the same as the one being activated, 
17620         so set_ActiveControl would always return and not send the Focus
17621         call. Fix to check if the currently active control of the container
17622         is actually focused.
17623
17624 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
17625
17626         * StatusStrip.cs: Implement the spring layout.
17627         * ToolStripControlHost.cs: Make sure the hosted control's visibility
17628         always matches the host.
17629         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
17630         and TextAfterImage.
17631
17632 2007-02-13  Andreia Gaita  <avidigal@novell.com>
17633
17634         * Control.cs: Code reorganization only.
17635           - Reorganize the WndProc cases so that each case has it's own handling method, 
17636           to help with the no-line-numbering stack traces.
17637           - Formatting changes (it's vstudio's fault, really :p)
17638
17639 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17640
17641         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
17642           Thread.CurrentUICulture to match DateTimePicker's (and MS)
17643           behaviour.
17644
17645 2007-02-12  Jackson Harper  <jackson@ximian.com>
17646
17647         * RichTextBox.cs:
17648         * TextBox.cs: By default we have a non multiline document
17649         - use the multiline property instead of the internal variable
17650         * TextBoxBase.cs: Treat multiline and non multiline the same in
17651         most places.
17652         - Use the documents multiline flag instead of tracking it ourself
17653         * TextControl.cs: Attempt at getting multiline to match MS
17654         behavior.  Lines now track an offset, which is either their X or Y
17655         offset depending on whether or not we are in multiline mode.
17656         - Update all the methods to understand that lines have an X value.
17657         - Fix crash in Undo::Duplicate when empty lines are deleted.
17658
17659 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
17660
17661         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
17662         code moved to properties PreferredHeight and PreferredWidth. It solve the
17663         all problems when preferred sizes must be recalculated. Fixes #80801.
17664
17665 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
17666
17667         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
17668         font height when compatible_text_rendering is false. Partially fix #80801.
17669
17670 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
17671
17672         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
17673
17674 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
17675
17676         * Form.cs: Improved exception messages in ShowDialog.
17677
17678 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
17679
17680         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
17681         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
17682         if not set. Fixes bug #80764. Avoid accessing current_settings field
17683         directly.
17684
17685 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
17686
17687         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
17688         false.
17689
17690         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
17691         public in 2.0 and for easy maintenance and dont break compatibility it is 
17692         internal in 1.1.
17693         
17694 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17695
17696         * ToolStripItem.cs: Implement using images from ImageList.
17697
17698 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17699
17700         * DateTimePicker.cs: Change default date-formatting culture from
17701           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
17702           seems to be the way MS does it.
17703
17704 2007-02-08  Andreia Gaita  <avidigal@novell.com>
17705
17706         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
17707         (the 6 was cut off on the right side)
17708
17709 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17710
17711         * Form.cs: Tell MenuStrips to close when the form is clicked.
17712         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
17713         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
17714         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
17715         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
17716         support for Overflow, where items that do not fit are automatically
17717         reparented to a drop down menu.
17718         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
17719         Also: fixes bug #80747.
17720
17721 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17722
17723         * ComboBox.cs: Remove warning (unused code).
17724         * ScrollableControl.cs: Remove warning for 1.1 profile.
17725
17726 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17727
17728         * Form.cs: Remove a warning.
17729
17730 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17731
17732         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
17733           'g' specifier, not documented anywhere, but seems to always show up
17734           as a single space (might have something to do with the DateTime 'g'
17735           specifier, which is the era format, but since DateTimePicker can't
17736           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
17737           won't crash if the format has an unmatched quote. Now shows
17738           single-character formats correctly. Fixes #80744.
17739
17740 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17741
17742         * StatusStrip.cs: Stretch property needs to call base.Stretch,
17743         not this.Stretch to fix stack overflow. [Fixes bug #80760]
17744
17745 2007-02-07  Chris Toshok  <toshok@ximian.com>
17746
17747         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
17748         background color.  it overwrites the background image we've
17749         already painted.  Fixes #80599.
17750
17751 2007-02-07  Chris Toshok  <toshok@ximian.com>
17752
17753         * DataGrid.cs: return immediately from Edit() when there are no
17754         columns.  Fixes #80662.
17755
17756 2007-02-07  Chris Toshok  <toshok@ximian.com>
17757
17758         * MessageBox.cs: fix #80625.  don't always show the Help button in
17759         2.0.  use the displayHelpButton parameter to determine if we
17760         should show it. Also, make the internal show_help field private.
17761
17762 2007-02-07  Chris Toshok  <toshok@ximian.com>
17763
17764         * Control.cs (SetVisibleCore): check in the proposed patch for
17765         80604, and set is_visible before calling CreateControl.
17766
17767 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
17768
17769         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
17770         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
17771         on it.
17772
17773 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
17774
17775         * MenuAPI.cs: hotkey_active internal field added, it is required because
17776         we need to know when hotkeys must be draw, before this change a keystate
17777         Navigating was used but we can have menu in navigating state without
17778         hotkeys. Fixes #80694.
17779         
17780         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
17781
17782 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17783
17784         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
17785           corresponding events and methods to be internal for 1.1 profile and
17786           public for 2.0 profile (required by SizeGrip).
17787         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
17788           implicit control list). Don't set the size nor the location of the
17789           SizeGrip anymore as it's not needed.
17790         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
17791           draw directly on the captured control (fixes #80656). Removed
17792           ShowGrip (it wasn't used anywhere), redraw (always true), added
17793           GetDefaultSize and GetDefaultRectangle to calculate defaults.
17794         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
17795           be called from SizeGrip.
17796
17797 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17798
17799         * Timer.cs: Throw ArgumentException if Interval <= 0.
17800
17801 2007-02-05  Jackson Harper  <jackson@ximian.com>
17802
17803         * TreeView.cs: We need to check scrollbar visibility when window
17804         visibility is updated, because non visible trees don't ever add
17805         scrollbars.
17806         * Cursor.cs: We want the override cursor to be reset to NULL when
17807         we set current cursor to the default cursor.
17808
17809 2007-02-05  Jackson Harper  <jackson@ximian.com>
17810
17811         * TextControl.cs: Don't have crlfs when we are non multiline.
17812         - Consolidate the line position.
17813
17814 2007-02-05  Jackson Harper  <jackson@ximian.com>
17815
17816         * X11Keyboard.cs: BACK+CTRL gets a special char code.
17817
17818 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17819
17820         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
17821           handling LeaveNotify->NotifyUngrab in order to send
17822           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
17823           after calling XUngrabPointer, so we call WindowUngrabbed directly
17824           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
17825         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
17826           MouseCaptureChanged correctly. Also create handles if changing
17827           Capture (matches MS behaviour).
17828
17829 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17830
17831         * SizeGrip.cs: Make the last change 2.0 only.
17832
17833 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17834
17835         * SizeGrip.cs: If resizing and the capture is lost, revert any size
17836           changes to initial size (fixes #80597).
17837
17838 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17839
17840         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
17841
17842 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17843
17844         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
17845           background) and only allow dragging if enabled. This way the
17846           sizegrip can be used to fill the open square that otherwise would
17847           have been shown in the bottom right corner of ScrollableControl
17848           when ScrollableControl is not suppose to support sizing.
17849         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
17850           sizegrip is shown and enabled, and hook up with necessary events.
17851
17852 2007-02-01  Chris Toshok  <toshok@ximian.com>
17853
17854         * DataGridTextBoxColumn.cs: clean up the
17855         GetFormattedString/GetColumnValueAtRow combination of functions.
17856         Also fix UpdateUI, and the initial state of
17857         IsInEditOrNavigateMode.
17858
17859         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
17860         aren't supposed to scroll the textbox here, we're supposed to
17861         scroll the datagrid.
17862
17863 2007-02-01  Chris Toshok  <toshok@ximian.com>
17864
17865         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
17866         setting the position.
17867
17868 2007-02-01  Chris Toshok  <toshok@ximian.com>
17869
17870         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
17871         here, since the most recent focus fixes keep us from generating
17872         the Leave event when our textbox gets focus.
17873         (Edit): we should be passing null for the column style's
17874         instantText parameter.
17875         
17876 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
17877
17878         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
17879         raised.  Fixes menu text/icons not showing up in PDN.
17880
17881 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17882
17883         * Control.cs: Remove code in constructor that makes every
17884         control with WS_CHILD set have initial location -1, -1.
17885
17886 2007-01-31  Jackson Harper  <jackson@ximian.com>
17887
17888         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
17889         XplatUIX11.
17890         * XplatUIX11.cs: Give teh keyboard to teh dnd.
17891
17892 2007-01-31  Jackson Harper  <jackson@ximian.com>
17893
17894         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
17895         - Remove some debug code.
17896
17897 2007-01-31  Jackson Harper  <jackson@ximian.com>
17898
17899         * XplatUIX11.cs: If you set the override cursor during a grab, it
17900         should actually override the grab cursor.  This comes into play
17901         when you are setting custom cursors in a DND feedback method.
17902
17903 2007-01-31  Jackson Harper  <jackson@ximian.com>
17904
17905         * X11Dnd.cs: Add support for handling the QueryContinue and
17906         GiveFeedback events.
17907         - Cancel drag and drop actions when the escape key is clicked.
17908         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
17909         can handle the ESCAPE key.
17910         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
17911         done when dnd events are continued after the button is released.
17912         - Add a new helper method so that dnd can translate key events.
17913
17914 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
17915
17916         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
17917         make it more obvious what is happening.
17918
17919 2007-01-30  Jackson Harper  <jackson@ximian.com>
17920
17921         * XplatUIX11.cs: Don't break when handling button release in drag
17922         and drop operations. We need that BUTTONUP message to get through
17923         so capture is released.
17924         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
17925         this is handled automatically when the mouse is down.
17926
17927 2007-01-30  Jackson Harper  <jackson@ximian.com>
17928
17929         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
17930         is closed, so we need to make sure that we aren't changing the
17931         dialog result when the OK (Open or Save) button has been clicked
17932         and we are closing the window ourselves.  Note we don't need to
17933         worry about the cache being written in this case, because it was
17934         already done in the previous FilOk call.
17935
17936 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17937         
17938         * DateTimePicker.cs: Remove a warning.
17939         * ComboBox.cs: Remove a couple of warnings.
17940
17941 2007-01-29  Chris Toshok  <toshok@ximian.com>
17942
17943         * XplatUIX11.cs: don't crash, and remove the icon if the user has
17944         set one, if SetIcon is passed a null icon.
17945
17946 2007-01-29  Andreia Gaita  <avidigal@novell.com>
17947
17948         * TextBox.cs: Redraw when the password characters changes
17949         * TextControl.cs: Check if textbox has a password char and draw 
17950         a line of password chars instead of the text in the line. LineTag gets 
17951         an extra Draw() method which allows document.Draw to override the text 
17952         that will be drawn. Removes 1024 char limitation on length of passworded 
17953         lines.
17954
17955 2007-01-29  Jackson Harper  <jackson@ximian.com>
17956
17957         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
17958         single chars is not.
17959
17960 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
17961
17962         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
17963         one pixel.  Fix a StackOverflowException caused by an overload wrongly
17964         calling itself.
17965
17966 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
17967
17968         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
17969         also remove ProcessArrowKey and put the code inside ProcessKeys.
17970
17971 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
17972
17973         * PaddingConverter.cs: Added.
17974
17975 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17976         
17977         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
17978         ShowPanels is false (fixes #80600). Only draw up to 127 characters
17979         of text (fixes #80601). For panels clip the text to draw to the
17980         panel (fixes #80603).
17981
17982 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17983
17984         * ComboBox.cs: Fixed implementation of ResetText.
17985
17986 2007-01-25  Jackson Harper  <jackson@ximian.com>
17987
17988         * TextControl.cs: For the last char of a line we need to use the
17989         line size, not that chars width, since it won't actually be
17990         computed since the right side of a char is based on the start of
17991         the left side of the next char, and the next char does not exist.
17992
17993 2007-01-25  Chris Toshok  <toshok@ximian.com>
17994
17995         * Splitter.cs: fix the new unit tests, and reindent some switch
17996         statements.
17997
17998 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17999
18000         * ComboBox.cs: Implemented 2.0 methods and events.
18001         * TextBoxBase.cs: Added OnTextUpdate, so that
18002         ComboBox.ComboTextBox can inform ComboBox of it.
18003
18004 2007-01-25  Jackson Harper  <jackson@ximian.com>
18005
18006         * TextControl.cs: Respect ShowSelection when deciding whether or
18007         not to display the caret, this allows comboboxes to have carets
18008         when the combotextbox does not have focus.
18009
18010 2007-01-25  Jackson Harper  <jackson@ximian.com>
18011
18012         * TextControl.cs: Add a Suspend/Resume for updating, basically the
18013         same as the Suspend/Resume for recalc, except this will do actual
18014         Invalidates.
18015         - New Undo manager, works much like the MS version.
18016         - Implemented Redo
18017         * TextBoxBase.cs: The Cut operation is undoable.
18018
18019 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18020         
18021         * TextBoxBase.cs: Don't antialias text. Makes it look way better
18022         on Windows (no difference on Linux).    
18023
18024 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18025
18026         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
18027         we don't want to activate any windows. Fixes #79433.
18028
18029 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
18030
18031         - ButtonBase.cs: Fix capitalization of parameter: disposing.
18032         [Fixes bug #80609]
18033
18034 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
18035
18036         * FileDialog.cs:
18037         - Move to using System.ComponentModel.EventHandlerList
18038         - Replace Refresh with Invalidate
18039         - Clear the mime filecache on closing
18040         - Some other memory reducing work. After beeing closed FD now uses
18041           only about 300 KB for the fdo mime stuff plus the memory of the
18042           cached icons.
18043         * Mime.cs: Changed coding style and removed unnecessary commented
18044         code. Some more memory memory reducing work.
18045
18046 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18047
18048         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
18049         a few other missing 2.0 properties.
18050         * Theme.cs: Added DrawFlatStyleComboBox.
18051         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
18052
18053 2007-01-24  Chris Toshok  <toshok@ximian.com>
18054
18055         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
18056         wake_waiting flag, not just when there's data to be read.  if we
18057         don't, then future wakeup's won't reach us and we'll be doomed to
18058         wait for the entire 1 second timeout forever (unless there are X
18059         events to be had).
18060
18061 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
18062
18063         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
18064         until you pass Items.Count, not Items.Count - 1 like 1.1.
18065
18066 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
18067
18068         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
18069
18070 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
18071
18072         * ToolStripContainer.cs: The recent Dock fix exposed that I was
18073         adding the panels in the wrong order.
18074
18075 2007-01-24  Jackson Harper  <jackson@ximian.com>
18076
18077         * TextBoxBase.cs: When we move the caret we also need to move the
18078         selection, this fixes some random crashing after doing select
18079         text, unselect, delete a char, paste.
18080
18081 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18082
18083         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
18084
18085 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
18086
18087         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
18088         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
18089         * ToolBar.cs: Force redraw in BackgroundImageChanged.
18090
18091 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
18092
18093         * ToolBar.cs:
18094         - Implement support for vertical toolbars. Fixes #80539;
18095         - Call LayoutToolBar when resize, it fix some other problems in layout.
18096         - Rename requested_height to requested_size, as we can have width on it
18097         when toolbar is vertical.
18098         - Create a private property "Vertical" that uses Dock to verify when 
18099         toolbar is vertical or not.
18100         - Set ControlStyles when change Dock property.
18101         - Refactory in LayoutToolBar to have better variables names and to support
18102         vertical toolbars.
18103         - Fixes default value for ButtonSize when button count is equal zero, size
18104         must be (39, 36) test case writed.
18105
18106 2007-01-23  Chris Toshok  <toshok@ximian.com>
18107
18108         * Control.cs: fix the checks so that they work correctly for mdi
18109         parents/children.
18110
18111 2007-01-23  Chris Toshok  <toshok@ximian.com>
18112
18113         * Control.cs: ControlCollection seems to have super-secret
18114         abstraction breaking knowledge of Mdi containers.  allow MdiClient
18115         to add toplevel controls.
18116
18117 2007-01-23  Chris Toshok  <toshok@ximian.com>
18118
18119         * Control.cs: throw an ArgumentException if a toplevel control is
18120         added to our control collection from ControlCollection.Add, as
18121         well as from ControlCollection.IList.Add.  This fixes the
18122         ControlSetTopLevelTest.TestTopLevelAdd unit test.
18123
18124         Also, in ControlCollection.IList.Add, don't through an
18125         ArgumentNullException, throw an ArgumentException, when value ==
18126         null.  This matches MS.
18127
18128 2007-01-23  Chris Toshok  <toshok@ximian.com>
18129
18130         * BindingSource.cs: initial, incomplete, implementation of
18131         BindingSource.
18132
18133 2007-01-23  Jackson Harper  <jackson@ximian.com>
18134
18135         * TextControl.cs:
18136         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
18137         that I can fix a broken unit test (TextBoxTest::ClearUndo)
18138         
18139 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
18140
18141         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
18142
18143 2007-01-23  Andreia Gaita  <avidigal@novell.com>
18144
18145         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
18146         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
18147         IndexOfKey() for 2.0
18148
18149 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18150
18151         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
18152         to prevent it from changing z-order.
18153         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
18154         leave UI updates in MdiWindowManager.
18155         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
18156         1 sized (NC handling goes weird on Linux otherwise).
18157         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
18158         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
18159         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
18160         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
18161         and SetWindowState(s) to allow for changing the size of an activated child
18162         before activating it (reduces a lot of flicker).
18163
18164 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
18165
18166         * Form.cs: Changing FormBorderStyle has different semantics based
18167         on whether the Form is visible or not.  If not visible, don't change
18168         the Size.  But InvalidateNC needs to be called to force the window
18169         to pick up the changes and redraw itself.  [Fixes bug #80574]
18170
18171 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
18172
18173         [Moma work]
18174         * ContainerControl.cs: ProcessCmdKey.
18175         * ErrorProvider.cs: new constructor.
18176         * Form.cs: fix AutoValidateEvent compiler warning.
18177         * Label.cs: fix OnAutoSizeChanged compiler warning.
18178         * MenuStrip.cs: fix CanOverflow compiler warning.
18179         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
18180         * TextBox.cs: Dispose.
18181         * ToolStrip.cs: CanOverflow, re-enable double buffering.
18182         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
18183         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
18184         * ToolStripItem.cs: Overflow, RightToLeft properties.
18185
18186 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18187
18188         * Form.cs: Move the layout of the main form to MdiWindowManager.
18189         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
18190         do a layout of the main window to update MdiClient's client area to
18191         the right area. Fixes #80533. Remove the calculation of nc size, 
18192         it was just wrong and the correct one is the same as for 
18193         InternalWindowManager. 
18194
18195 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
18196
18197         * Control.cs: Setting Anchor or Dock needs to reset the other
18198         to its default.  [Fixes bug #80556]
18199
18200 2007-01-20  Chris Toshok  <toshok@ximian.com>
18201
18202         * CheckedListBox.cs: class status changes.
18203
18204         * ScrollableControl.cs: same.
18205
18206         * RichTextBox.cs: same.
18207
18208         * ContainerControl.cs: same.
18209
18210         * ListView.cs: same.
18211
18212         * NotifyIcon.cs: same.
18213
18214         * MenuStrip.cs: same.
18215
18216         * RadioButton.cs: same.
18217
18218         * CheckBox.cs: same.
18219
18220         * PrintPreviewDialog.cs: same.
18221
18222         * Form.cs: same.
18223
18224 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
18225
18226         * TreeNode.cs: Apply Alan's patch for Name property.
18227
18228 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18229         
18230         * Form.cs: Implemented SizeGripStyle.
18231         * SizeGrip.cs: Check for minimum and maximum size for the
18232         control being resized and only resize if size has actually
18233         changed.
18234
18235 2007-01-19  Chris Toshok  <toshok@ximian.com>
18236
18237         * DataGridColumnStyle.cs: stop setting _readonly in the
18238         PropertyDescriptor setter.  fixes a unit test failure.
18239
18240         also, rename ParentReadOnly to TableStyleReadOnly, and have it
18241         just consult our table style (if we have one).  We don't need to
18242         consult the datagrid readonly attribute because that's passed in
18243         as the _ro arg to Edit.  this simplifies things a little.
18244         
18245         * DataGrid.cs: use CurrentColumn instead of
18246         current_cell.ColumnNumber just to simplify some of the code.
18247
18248         switch the order of some things in the CurrentCell setter to keep
18249         the previous cell from getting a textbox again -
18250         EnsureCellVisibility causes scrolling to happen, which calls Edit.
18251         So we need to set the new cell before calling it.
18252         
18253         call Edit in OnEnter, as does Microsoft.
18254         
18255         also, make sure the current table style isn't the one we create
18256         initially when checking to see if it's different than the one
18257         we're setting it to in BindColumns (this fixes #80421).
18258
18259         * GridTableStylesCollection.cs: table styles can have "" for a
18260         mapping name.  part of the fix for #80421.
18261
18262         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
18263         Edit significantly.
18264
18265 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
18266
18267         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
18268         and less GDI object leaky-er.
18269
18270 2007-01-18  Andreia Gaita  <avidigal@novell.com>
18271
18272         * LinkLabel.cs: Add opaque control style
18273
18274 2007-01-18  Jackson Harper  <jackson@ximian.com>
18275
18276         * TextControl.cs: Calculate width properly.
18277         - Don't store the tag's X offset, this can be figured out very
18278         easily.
18279         - When getting the caret tag make sure to get the last empty tag.
18280
18281 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
18282
18283         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
18284         [Fixes bug #79959]
18285
18286         * Control.cs: Color.Empty shouldn't count for previous transparent
18287         redraw changes.
18288
18289 2007-01-18  Jackson Harper  <jackson@ximian.com>
18290
18291         * TextBox.cs:
18292         * RichTextBox.cs:
18293         * TextControl.cs: Starting to merge in some pieces of my older
18294         undo work.  Basically just some slight cleanup of the undo API.
18295
18296 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18297
18298         * TrackBar.cs: Fix signature of RightToLeftLayout.
18299         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
18300         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
18301         * Application.cs: Implemented UseWaitCursor.
18302
18303 2007-01-18  Jackson Harper  <jackson@ximian.com>
18304
18305         * TextControl.cs: We can't skip tags if any part of the tag is
18306         visible.
18307
18308 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
18309
18310         * ContainerControl.cs: Override OnLayout.
18311
18312 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
18313
18314         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
18315
18316         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
18317         everything else.
18318
18319 2007-01-18  Chris Toshok  <toshok@ximian.com>
18320
18321         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
18322         (leftover from the container_selected days, I'd wager).  fixes bug
18323         #80546.
18324
18325 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
18326
18327         * Control.cs: Apply patch from George to fix the new testcase on
18328         bug #80451.  We can't just check for Color.Transparent, we need 
18329         to check if the back color's alpha channel is < 255.
18330
18331 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
18332
18333         * Form.cs: Move setting show_icon = true to before the constructor
18334         so that the base constructor has that information when it calculates
18335         the form's size.  Was causing forms to be (6, 6) bigger than they
18336         were supposed to be.  Thanks for catching this Rolf!
18337
18338 2007-01-18  Jackson Harper  <jackson@ximian.com>
18339
18340         * TextControl.cs: When replacing a selection we need to invalidate
18341         from the initial selection start, because selection start is moved
18342         to the end of the replacement.
18343
18344 2007-01-18  Andreia Gaita  <avidigal@novell.com>
18345
18346         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
18347
18348 2007-01-18  Chris Toshok  <toshok@ximian.com>
18349
18350         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
18351         I just added.
18352
18353 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
18354
18355         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
18356         layout methods and properties from ToolBarButton must be available
18357         into ToolBarButtonInfo.
18358
18359 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
18360
18361         * Control.cs: If the control has a transparent background, we
18362         need to refresh it when it moves and when it's parent's background
18363         image changes.  [Fixes bug #80451]
18364
18365 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
18366
18367         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
18368
18369 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
18370
18371         * XplatUIWin32.cs: Implement proper double buffering for Windows.
18372         [Fixes bug #80447, and probably speeds up things as well]
18373
18374 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18375
18376         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
18377         * XplatUIWin32.cs: We need to recalculate NC size after changing 
18378         window style to toolwindow (otherwise the client rectangle will be
18379         3 pixels to small for some reason).
18380         * MdiWindowManager.cs: Revert NC size calculations to match how
18381         they are calculated only based on window styles (to match
18382         Win32AdjustWindowRectEx, since otherwise when setting size or 
18383         location, Control will call Win32AdjustWindowRectEx to update client 
18384         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
18385         calculate a different value of client size causing another paint 
18386         (and flickering))
18387         * InternalWindowManager.cs: When moving or resizing a window only
18388         update size or location if they actually changed.
18389         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
18390         (seems to match Windows behaviour better). Cleaned up 
18391         ManagedWindowDecorations to draw what's needed and nothing else
18392         (was drawing borders and lines where they shouldn't be)
18393         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
18394         (style = 0xFFFF) and takes into account caption height when 
18395         calculating window rectangle.   
18396
18397 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
18398
18399         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
18400         can be added to toolbar multiple times, we need to maintain a list of 
18401         button information for each positions.
18402
18403 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
18404
18405         * ToolBar.cs: Some small stetic changes.
18406
18407 2007-01-16  Jackson Harper  <jackson@ximian.com>
18408
18409         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
18410         that allow us to have nested recalc = false blocks.
18411         - Add paste support for images in the RichTextBox
18412         * RichTextBox.cs: flush the text after the color is changed, so
18413         the change takes effect.
18414         - Use SuspendRecalc
18415         - Some extra debugging info
18416         * TextControl.cs: Tags no longer track their length, it is just
18417         computed from the next tags length, this makes things a little
18418         simpler and reduces places that we have to track length changes.
18419         - Refactored the linetag class a little so we could make it
18420         a base class for different kinds of tags
18421         - Created a image tag, a tag that can have a single image inserted
18422         into it
18423         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
18424         that we can call suspend multiple times.
18425         - Add some debugging methods
18426
18427 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18428
18429         * MdiClient.cs: Add ActivatePreviousChild for 
18430         mdi child window navigation.
18431         * Form.cs: Use MdiClient.ActivateNextChild/
18432         ActivatePreviousChild instead of Form.SelectNextControl
18433         to select the next/previous child since 
18434         SelectNextControl doesn't do it in the same order
18435         as mdi children should do it.
18436
18437 2007-01-16  Chris Toshok  <toshok@ximian.com>
18438
18439         * Control.cs: remove container_selected field.
18440
18441 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18442
18443         * MdiClient.cs: Update main form's ActiveChild when
18444         updating keyboard focus for the mdi child.
18445
18446 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
18447
18448         * Control.cs: PreferredSize fix.
18449
18450         * Form.cs: Add several 2.0 events, properties, and methods.
18451
18452 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
18453
18454         * Form.cs: Provide meaningful message when MdiParent is assigned a
18455         Form that is not an MdiContainer.
18456
18457 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18458
18459         * MdiClient.cs: Update main form's ActiveChild when
18460         activating a mdi child.
18461
18462 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18463
18464         * MdiWindowManager.cs: Fix NRE when merging menus and main form
18465         doesn't have a menu.
18466
18467         * Form.cs: Request NCRecalc after creating a mdi child window.
18468         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
18469         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
18470         
18471         * MdiClient.cs: Add new method SendFocusToActiveChild that either
18472         sends keyboard focus to the active child, or to the MdiClient
18473         if there are no child forms.
18474         
18475 2007-01-15  Chris Toshok  <toshok@ximian.com>
18476
18477         * ListView.cs: drop the *Internal overrides, just do our work in
18478         ItemControl's WndProc instead.
18479
18480         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
18481         of the various controls, and forward the events properly (in the
18482         same manner as MS) from the textbox to the UpDown.  Also the
18483         ActiveControl of the UpDownBase gets set properly now.  Finally,
18484         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
18485
18486         * NumericUpDown.cs: set Text in the ctor.
18487
18488         * DomainUpDown.cs: call UpdateEditText in the ctor.
18489         
18490         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
18491         so even a Selectable = false textbox can be focused if you click
18492         in it.  Go figure.
18493
18494         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
18495         just add their handling in their respective WndProc's.  Also add
18496         an explicit FocusInternal method that doesn't consult CanFocus
18497         before calling Select(this).
18498
18499         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
18500         do our work in WndProc instead.
18501
18502         * TabControl.cs: same.
18503
18504         * ComboBox.cs: same.
18505
18506 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
18507
18508         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
18509         Fixes #80006.
18510
18511 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18512
18513         * ListViewItem.cs:
18514         * ThemeWin32Classic.cs: Don't draw the item text outside
18515         item bounds in Details view, as well as use trimming.
18516         Fixes bug #80376.
18517
18518 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
18519
18520         * Form.cs: Implement Form.ShowIcon.
18521         
18522         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
18523         null, which when combined with the DlgModalFrame window style removes
18524         the icon from the title bar.
18525
18526 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
18527
18528         * Control.cs: Call OnMouseClick after OnClick. (2.0)
18529
18530 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
18531
18532         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
18533         menu when mdi child windows theres a menu, uses insert to get icon
18534         at first position. Partially fix #80006.
18535
18536 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
18537
18538         * Clipboard.cs: Implement 2.0 methods.
18539
18540 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
18541
18542         * Menu.cs: Implement Insert method of MenuItemCollection class
18543         to fix MenuMerge.
18544
18545 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18546
18547         * ListView.cs: Implement 2.0 FindItemWithText method.
18548
18549 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
18550
18551         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
18552         to calculate menu bar size. Fixes #80290.
18553
18554 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
18555
18556         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
18557
18558 2007-01-11  Chris Toshok  <toshok@ximian.com>
18559
18560         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
18561         initial form.
18562
18563 2007-01-11  Chris Toshok  <toshok@ximian.com>
18564
18565         * LinkLabel.cs: make sure to call base.Select in our Select method
18566         if it turns out we're going to be selected (i.e. if we have a link
18567         that is going to receive focus).  That way our container's
18568         ActiveControl is updated properly.
18569
18570 2007-01-11  Chris Toshok  <toshok@ximian.com>
18571
18572         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
18573         they have 1 or more links.  this fixes the crash gert reported.
18574
18575 2007-01-11  Andreia Gaita  <avidigal@novell.com>
18576
18577         * ContainerControl.cs: Remove ContainerSelected flag, not needed
18578         anymore.
18579
18580         * Control.cs (Controls.Add): Check if control to be added to the collection
18581         is a top level control, and throw an ArgumentException if it is.
18582         Remove ContainerSelectedFlag, not needed anymore.
18583
18584         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
18585         top most control doesn't activate the form. This fixes a problem in the
18586         MessageBox, where the default button wouldn't get focus because the form
18587         was activated before being Loaded - when the Owner is set, SetTopMost is
18588         called, and it would activate it.
18589
18590 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
18591
18592         * Button.cs: When clicked and setting the parent form's DialogResult,
18593         use FindForm instead of Parent, since parent could be a container
18594         control and not the Form.  Fixes bug #80495.
18595
18596 2007-01-10  Chris Toshok  <toshok@ximian.com>
18597
18598         * Form.cs: move the call to SendControlFocus into the same
18599         is_loaded check.
18600
18601 2007-01-10  Chris Toshok  <toshok@ximian.com>
18602
18603         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
18604         It breaks in the face of the new ActiveControl stuff, and should
18605         be unnecessary.
18606
18607         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
18608         activecontrol's focus if it's not already set, after we set
18609         ActiveControl, but before we call OnActivated.  Re-fixes #79667
18610         after the previous focus/active control fixes regressed it.
18611
18612         * Control.cs: reindent some code.
18613         
18614 2007-01-10  Chris Toshok  <toshok@ximian.com>
18615
18616         * Splitter.cs: clearing some outstanding changes from my tree.
18617         Replace all accesses (not writes) to the internal dock_style field
18618         with the Dock property.
18619
18620 2007-01-10  Chris Toshok  <toshok@ximian.com>
18621
18622         * Control.cs: make FireEnter, FireLeave, FireValidating, and
18623         FireValidated virtual.
18624
18625         * Form.cs: override and don't chain up calls to FireEnter and
18626         FireLeave.
18627
18628 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18629
18630         * ListView.cs: Add more text padding space when using
18631         auto resize for columns (the previous value didn't work fine).
18632
18633         * ThemeWin32Classic.cs: Update text position inside columns,
18634         to match the appeareance of .Net.
18635
18636         * ColumnHeader.cs: When using auto resize, only the Width should
18637         depend on the sub items, not the Height. Also, set width after
18638         auto resizing (the value of Width should never remain as -1 or -2).
18639
18640 2007-01-10  Chris Toshok  <toshok@ximian.com>
18641
18642         * Application.cs: fix compilation errors when debug is enabled.
18643
18644 2007-01-10  Chris Toshok  <toshok@ximian.com>
18645
18646         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
18647         add some nice ascii art pictures and explanation of the process).
18648         (GetMostDeeplyNestedActiveControl): new utility function we need
18649         because our ActiveControl can refer to a child container with its
18650         own ActiveControl.
18651
18652         * Form.cs (OnActivated): remove the call to SelectActiveControl
18653         from here, since you can override this method and not chain up,
18654         and winforms still sets the active control.
18655         (OnCreateControl): also remove the unnecessary SelectActiveControl
18656         call from here.
18657         (WndProc): it's actually called from the WM_ACTIVATE block, just
18658         before calling OnActivated.
18659
18660         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
18661         inside the else.  the ActiveControl setter will end up setting
18662         focus on @control.  This keeps us from setting it again (and
18663         generating an extra LostFocus/GotFocus pair).
18664         (Select (bool, bool)): reindent.
18665
18666 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
18667
18668         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
18669         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
18670         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
18671         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
18672         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
18673         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
18674         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
18675         ToolStripTextBox.cs: Another wave of corcompare work.
18676
18677 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18678
18679         * ColumnHeader.cs: Implement 2.0 AutoResize method using
18680         the Width property.
18681
18682         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
18683         methods by callling Column.AutoResize method on columns.
18684
18685 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
18686
18687         * Control.cs: Provide proper implementations of PreferredSize
18688         and GetPreferredSize (2.0).
18689
18690 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
18691
18692         * Form.cs: Remove one character (!) to make my previous OnClosing
18693         stuff work for modal windows like MessageBox.
18694
18695 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18696
18697         * ListView.cs:
18698         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
18699         ListView.Columns to get the last displayed column. Fixes #80452.
18700
18701 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
18702
18703         * Label.cs, LinkLabel.cs: Source code identation fixes.
18704
18705 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
18706
18707         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
18708         we dont need to invalidate only borders because when we invalidate four
18709         border lines the invalidate's generates a complete redraw of button, 
18710         because it now invalidate a complete rect some other redraws operations
18711         are fixed. Fixes #80196.
18712         
18713         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
18714         Remove ToolBarInvalidateEntireButton as it is not used.
18715
18716 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
18717         
18718         * Form.cs: Make sure that both OnClosing and OnFormClosing are
18719         called for 2.0 profile.
18720         * CloseReason.cs: Make class internal for 1.1.
18721
18722 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
18723
18724         * ToolStripManager.cs: Implement FindToolStrip functionality.
18725         * ToolStrip.cs: Register and unregister with ToolStripManager.
18726
18727 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
18728
18729         * Control.cs: This was messy.  2.0 moves much of ControlCollection
18730         to ArrangedElementCollection.  Implemented this with as few #if's as 
18731         possible (which is still too many).
18732
18733 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
18734
18735         * Control.cs: Implement SizeFromClientSize() [2.0].
18736
18737 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
18738
18739         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
18740         use Theme.BorderSize to calculate area instead of static value 1, 
18741         by the way use new BorderStaticSize instead     Border3DSize when 
18742         border_static is true. Fixes #79537.
18743         
18744         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
18745         
18746         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
18747         it is not needed.
18748
18749 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
18750
18751         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
18752
18753 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
18754
18755         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
18756         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
18757         
18758         * Hwnd.cs: 
18759         - border_static field added, it will used to define when a control 
18760         theres 3D border but it must be static (thin).
18761         - In GetWindowRectangle use Theme.BorderSize to calculate area 
18762         instead of static value 1, by the way use new BorderStaticSize instead
18763         Border3DSize when border_static is true.
18764
18765         * XplatUIX11.cs, XplatUIOSX.cs: 
18766         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
18767         
18768         * Theme.cs: BorderStaticSize field added.
18769
18770 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
18771
18772         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
18773
18774 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
18775
18776         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
18777         mimic same behavior than win32 that set border only in CreateParams,
18778         it fix problems under CreateParams overrides. Fix #79442 and partial
18779         fix #79537.
18780         
18781         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
18782         of thi control you must call recreate handle. 
18783         
18784         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
18785         need to do anything as RecreateHangle will take care about borders.
18786
18787 2007-01-05  Mike Kestner  <mkestner@novell.com>
18788
18789         * ListView.cs: hack to eliminate Lost/Got focus notifications on
18790         cycles between the ItemControl and parent.  Fixes #80388.
18791
18792 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
18793
18794         * Control.cs: Lazy init layout engine. Do not directly use 
18795         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
18796
18797 2007-01-05  Chris Toshok  <toshok@ximian.com>
18798
18799         * DataGrid.cs: don't forceably rebind columns in SetDataSource
18800         unless our list manager has changed (i.e. unless we have reason to
18801         believe our columns have changed).  Fixes #80422.
18802         
18803         also, disable the call do BindColumns in
18804         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
18805         1.1 the event isn't raised in response to a column addition on a
18806         table.)
18807
18808 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
18809
18810         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
18811         that inheritors can not call it if they choose.  Fixes bug #80456.
18812
18813 2007-01-05  Andreia Gaita  <avidigal@novell.com>
18814
18815         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
18816         doesn't blow up with a null exception on marshalling.
18817         
18818 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
18819
18820         * Control.cs: Implement several 2.0 protected properties and methods.
18821         Ensure that all necessary events are being called when properties
18822         are set.
18823
18824 2007-01-05  Mike Kestner  <mkestner@novell.com>
18825
18826         * ListView.cs: implement PgUp/PgDn for Details view.  Also
18827         fixes First/LastVisibleIndex to use the item_control.ClientRect 
18828         instead of the parent control.  Fixes #80378.
18829
18830 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
18831
18832         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
18833           determine whether to use yard-pound or not (bug #78399).
18834
18835 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
18836
18837         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
18838         problems. So it is time to bring back the old popupbutton colors.
18839
18840 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18841
18842         * ColumnHeader.cs:
18843         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
18844         property by using the internal information of the
18845         columns order in ListView.
18846
18847 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
18848
18849         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
18850         Add 2.0 Tag properties.
18851
18852         * LinkArea.cs: Add 2.0 ToString method.
18853
18854 2007-01-03  Chris Toshok  <toshok@ximian.com>
18855
18856         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
18857         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
18858         when we're editing, which fixes #80047.
18859
18860 2007-01-03  Chris Toshok  <toshok@ximian.com>
18861
18862         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
18863         #80404.
18864
18865 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
18866
18867         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
18868         property and implementation.
18869
18870         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
18871         for MdiWindowListItem property.
18872
18873         * ToolStripDropDown.cs: Don't consider hidden menu items while
18874         laying out the menu.
18875
18876 2007-01-03  Andreia Gaita  <avidigal@novell.com>
18877
18878         * SendKeys.cs: window handle is not needed in win32, so just
18879         get the active window for X after parsing keys and don't use
18880         it when building the message; it is passed by parameter to the 
18881         Xplat method and used there to build the message instead. Also,
18882         wait for events to be processed on SendWait, as opposed to Send,
18883         which doesn't wait :) Playing with threads and Send() completely 
18884         hangs on ms.net, only SendWait() works.
18885         
18886         XplatUIX11.cs
18887         X11Display.cs: Check for valid window handle.
18888
18889 2007-01-03  Jackson Harper  <jackson@ximian.com>
18890
18891         * TextControl.cs: Need to prevent wrap calculations when replacing
18892         text (this was there before i removed it accidently).
18893         - Don't update the cursor during the positioning, just set it to
18894         selection_start at the end of the operaion.
18895
18896 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18897
18898         * Control.cs:
18899         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
18900         
18901 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18902
18903         * MonthCalendar.cs: Added Click and DoubleClick events again,
18904         but this time they only hide Control's Click and DoubleClick.
18905         
18906 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
18907
18908         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
18909         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
18910
18911 2007-01-02  Jackson Harper  <jackson@ximian.com>
18912
18913         * TextBoxBase.cs: We move the caret with the split now, so we
18914         don't need to explicitly move the caret after splitting.  This
18915         fixes the caret bumping down an extra line on Enter.
18916
18917 2007-01-02  Miguel de Icaza  <miguel@novell.com>
18918
18919         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
18920         2.72). 
18921
18922         * ScrollableControl.cs: Add Scroll event.
18923
18924 2007-01-02  Mike Kestner  <mkestner@novell.com>
18925
18926         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
18927         to fix all hdr height padding codepaths.  Fixes #80207.
18928
18929 2007-01-02  Chris Toshok  <toshok@ximian.com>
18930
18931         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
18932         setting it to the Control defaults anyway, and it being after the
18933         Dock set was screwing up layout.
18934         (set_Dock): don't short circuit out of setting base.Dock.  Also,
18935         no need to call UpdateStatusBar here, as it'll be re-layed out if
18936         it needs to be.
18937
18938 2007-01-02  Mike Kestner  <mkestner@novell.com>
18939
18940         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
18941         to header height for width == -1. Fixes the rest of #80207.
18942
18943 2007-01-02  Mike Kestner  <mkestner@novell.com>
18944
18945         * ListView.cs: rework the mouse event forwarding everaldo added
18946         to translate the coordinates to the parent control not
18947         raise the parent events until after we've done our work. Hover
18948         needs more work, in the case where HoverSelection is on, because
18949         the item control receives more than one MouseHover per Enter
18950         event, so we need to ensure only the "first" hover gets forwarded.
18951         Opening a minor bug for that.
18952
18953 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
18954
18955         * CheckedListBox.cs: Fixed SelectionMode to match MS.
18956         * ListControl.cs: Implemented AllowSelection property. Removed extra
18957         tabs.
18958         * ListBox.cs: Implemented AllowSelection property.
18959
18960 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18961
18962         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
18963         SelectedItem, it prevent for errors when you must disable item
18964         before perform click. Fixes #80409.
18965
18966 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18967
18968         * MenuAPI.cs: Prevent second level and beyond submenus to close
18969         until first level when move out side of popup.
18970         
18971 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18972
18973         * MenuAPI.cs:
18974         - Down submenu positin in three pixels.
18975         - Closes sub menu when mouse leaves from menu. Fixes #80402.
18976
18977 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18978
18979         * ThemeWin32Classic.cs:
18980         - Fix popup menu size adding one pixel on the top.
18981         - Down menu item border from two to one to mimic Win32.
18982         - Some source identation fixes. 
18983
18984 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18985
18986         * ThemeWin32Classic.cs: Use float numbers to calculate size and
18987         position of menu arrows, it fix wrong arrow size.
18988
18989 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18990
18991         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
18992         instead of line, it simplify draw operation and fix it using 3D
18993         borders to mimic Win32.
18994
18995 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
18996
18997         * StatusStrip.cs: Add implementation of the sizing grip.
18998
18999         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
19000         StatusStrip rendering.
19001
19002 2006-12-31  Chris Toshok  <toshok@ximian.com>
19003
19004         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
19005         override the layout style (anchor/dock) of the control.  assign to
19006         Dock instead.  Fixes bug #80416.
19007
19008         * ToolStrip.cs: same.
19009
19010 2006-12-31  Andreia Gaita  <avidigal@novell.com>
19011
19012         * ContainerControl.cs: Use ContainerSelected flag to check if 
19013         a Container is directly selected, or if Select is called on a 
19014         non-container. If a container is directly selected, focus events 
19015         should not be raised.
19016         Apply #80411 patch to throw exception on set_ActiveControl if 
19017         control is the same as the current one.
19018         
19019         * Control.cs: Use ContainerSelected flag (see above).
19020         Add invalidation check to raise event but not invalidate if 
19021         dimensions are 0.       
19022         Apply #80411 patch.
19023         
19024
19025 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
19026
19027         * MenuAPI.cs: After click, dont close popup menu when menu is
19028         ContextMenu. Fixes #80399.
19029
19030 2006-12-30  Chris Toshok  <toshok@ximian.com>
19031
19032         * ContainerControl.cs: make sure we throw the exception if the
19033         container control doesn't contain the control we're setting
19034         ActiveControl to.
19035
19036 2006-12-30  Chris Toshok  <toshok@ximian.com>
19037
19038         * Control.cs (SetTopLevel): fix the exception raised by
19039         SetTopLevel for child controls.
19040         (set_Anchor): call UpdateDistances when setting the anchor type.
19041         This fixes bug #80336.
19042
19043 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
19044
19045         * Theme.cs: For now, revert back to 8pt font.
19046
19047 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
19048
19049         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
19050         Fixes #80395.
19051
19052 2006-12-29  Chris Toshok  <toshok@ximian.com>
19053
19054         * Control.cs: reorder the code in OnResize to give the same event
19055         ordering as MS.
19056
19057 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19058
19059         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
19060         TileHorizontally and TileVertically.
19061         
19062 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
19063
19064         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
19065         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
19066         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
19067         Corrected copyright and email adress.
19068
19069 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
19070
19071         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
19072         of Exception in FullPath property if no TreeView is associated with
19073         the TreeNode.
19074
19075 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
19076
19077         * Theme.cs: Marked default_font as private, and initialize it in ctor
19078         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
19079         on 2.0 profile.
19080         * ThemeGtk.cs: Removed default_font intialization.
19081         * ThemeWin32Classic.cs: Removed default_font initialization.
19082
19083 2006-12-28  Chris Toshok  <toshok@ximian.com>
19084
19085         * Control.cs: fix a couple of place where we were creating handles
19086         more aggressively than we should be.  Fixes ControlRefresh unit
19087         tests.
19088
19089 2006-12-28  Chris Toshok  <toshok@ximian.com>
19090
19091         * Control.cs: contrary to what the comment said, Control.Dock does
19092         not supercede Control.Anchor - the last one you assign to decides
19093         the layout behavior.  so we need to keep track of which was the
19094         last set.  Also, fix some of the affected property arguments in
19095         PerformLayout calls, and remove an redundant parent.PerformLayout
19096         call in OnResized.
19097
19098         Add a VisibleInternal property, which returns is_visible.  We
19099         can/should get rid of all the usage of this field elsewhere.
19100
19101 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19102         
19103         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
19104         control style, not DoubleBuffer. Added UseDoubleBuffering property
19105         that indicates whether doublebuffering is enabled and supported.
19106         (comment from and code based on Gert Driesen's patch in #80324).
19107         Fixes #80324.
19108
19109 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19110         
19111         * Control.cs: Fixed a NRE.
19112
19113 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19114
19115         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
19116         for 2.0.
19117
19118 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19119
19120         * Control.cs: Rewrote double buffering, now a seperate
19121         class handles all the buffering, no Graphics is disposed of
19122         until the painting is finished (earlier implementation 
19123         would crash if the control was resized in the OnPaint, 
19124         since it would cause the double buffer to be recreated
19125         and the old one disposed), a separate Graphics is 
19126         created for every paint (MS behaviour and anyways the state
19127         of the Graphics would have to be saved and restored otherwise)
19128         
19129         * XplatUIDriver.cs: 
19130         * XplatUIX11.cs:
19131         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
19132         so that we can get the graphics for the back buffer without
19133         having to create a new one and remove the offscreen_dc parameter
19134         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
19135         
19136 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19137
19138         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
19139         Also make virtual all the key-related methods.
19140
19141         * ListViewItem.cs: Make virtual the key related methods for
19142         ListViewSubItemCollection.
19143
19144 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19145
19146         * ListView.cs:
19147         * ListViewItem.cs:
19148         * ThemeWin32Classic.cs:
19149         * Theme.cs: Initial support for Tile view in ListView,
19150         as well as the implementation of the required bits for it (Item
19151         and Subitem).
19152
19153 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
19154
19155         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
19156         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
19157         Provide useful exception messages.
19158
19159 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19160
19161         * TrackBar.cs: Remove a warning.
19162         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
19163         when used by DateTimePicker, fixes #80287. This also requires that 
19164         MonthCalendar implements it's own drawing for the yearly updown control,
19165         otherwise the Capture tracking would be too complicated. Removed the Click 
19166         and DoubleClick events (according to comments they were hiding the base class
19167         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
19168         raise these events, not that they cannot be raised. It is possible to raise 
19169         them by calling OnClick and OnDoubleClick). Added two internal fields in 
19170         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
19171         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
19172         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
19173         event, no longer needed.
19174         
19175 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
19176
19177         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
19178         true if new value differs from current value.
19179
19180 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
19181
19182         * Control.cs: ControlCollection.Count must be public. Fixed build of
19183         unit tests.
19184
19185 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
19186
19187         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
19188
19189 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
19190
19191         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
19192
19193 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
19194
19195         * Control.cs: Invalidates control including when Width and Height is 
19196         equal zero or is not visible, only Paint event must be care about 
19197         this. Fixes #79913.
19198
19199 2006-12-26  Chris Toshok  <toshok@ximian.com>
19200
19201         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
19202         more corcompare work.
19203
19204         * DataGridView.cs: fix compiler warning.
19205
19206         * ColumnHeader.cs: some corcompare work, and also take the
19207         opportunity to make the internal fields private.
19208
19209         * ListView.cs: fix the fallout from the above field change.
19210
19211 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
19212
19213         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
19214         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
19215         ToolStripTextBox.cs: Fixes to events and corcompare.
19216
19217 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
19218
19219         * ListView.cs: Call owner.OnMousexx event to propagate events from
19220         item to ListView. Fixes #80367.
19221
19222 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
19223
19224         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
19225         if value is less than one. ItemHeight should not be set to a value
19226         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
19227         Removed extra tabs.
19228
19229 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
19230
19231         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
19232         * ToolStripStatusLabel.cs: Add Spring for Moma.
19233
19234 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
19235
19236         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
19237         Fixed code formatting. Removed debug code.
19238         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
19239
19240 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
19241
19242         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
19243         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
19244         ArgumentOutOfRangeException if ColumnCount is negative. In 
19245         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
19246         less than 4 or higher than 32768.
19247         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
19248         Fixed FormatProvider to return CurrentCulture unless explicitly set.
19249         Fixed IsFormatProviderDefault to return true if FormatProvider has
19250         not been explicitly set.
19251
19252 2006-12-25  Chris Toshok  <toshok@ximian.com>
19253
19254         * Application.cs: add a couple of 2.0 events.
19255
19256 2006-12-25  Chris Toshok  <toshok@ximian.com>
19257
19258         * Control.cs: fix compiler warning.
19259
19260         * AxHost.cs: corcompare fixes.
19261
19262         * ApplicationContext.cs: corcompare fixes.
19263
19264 2006-12-25  Chris Toshok  <toshok@ximian.com>
19265
19266         * Control.cs: only update dist_right/dist_bottom if the
19267         width/height is > 0.  this fixes anchored controls being resized
19268         smaller until they disappear and then resized larger again.
19269
19270 2006-12-25  Chris Toshok  <toshok@ximian.com>
19271
19272         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
19273         since they're nothing more than X/Left and Y/Top, respectively.
19274
19275         Also, move back to a per-control Bitmap/Graphics for
19276         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
19277         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
19278         Height.
19279
19280 2006-12-25  Miguel de Icaza  <miguel@novell.com>
19281
19282         * MessageBox.cs: Implemented overload that takes a new "bool
19283         displayHelpButton" by adding a new internal field "show_help".
19284         When clicked this will raise the HelpRequested on the owner or the
19285         main form. 
19286
19287         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
19288         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
19289
19290         * ListView.cs: Add support ColumnWidthChanged and
19291         ColumnWidthChanging. 
19292
19293         Add support for ColumnReordered event.
19294         (ReorderColumn): Add NET_2_0 specific support for cancelling the
19295         reorder.
19296
19297         Very nice codebase!
19298
19299         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
19300
19301         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
19302
19303 2006-12-24  Chris Toshok  <toshok@ximian.com>
19304
19305         * GridTablesFactory.cs: 2.0 corcompare work.
19306
19307         * ToolStripContainer.cs: add "override" to
19308         ContextMenuStripChanged, and remove the local event object.
19309
19310         * ToolStripDropDown.cs: same with a couple properties.
19311
19312         * ToolStripPanel.cs: same with AutoSizeChanged event.
19313
19314         * TextBoxBase.cs: add "override" to AutoSizeChanged.
19315
19316         * Form.cs: add the remaining 2.0 events, and do some corcompare
19317         attribute work.
19318
19319         * DateTimePicker.cs: add "new" to padding.
19320
19321         * ButtonBase.cs: use Control's use_compatible_text_rendering.
19322
19323         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
19324
19325         * DataGridView.cs: PaddingChanged is overridden.
19326
19327 2006-12-24  Chris Toshok  <toshok@ximian.com>
19328
19329         * Control.cs: corecompare work here too.
19330
19331         * DataGridViewElement.cs, DataGridView.cs,
19332         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
19333         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
19334         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
19335         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
19336         work.
19337
19338 2006-12-24  Miguel de Icaza  <miguel@novell.com>
19339
19340         * Control.cs: Switched the error message on the console for a
19341         todo.  A review of the code will have to cope with this anyways
19342         (since its a large feature, it is in our radar) and it was
19343         producing too much output when running PDN.
19344
19345         * ToolStripComboBox.cs: Set the text when the SelectedIndex
19346         changes.  Applications depend on this (PDN 2.72)
19347
19348 2006-12-23  Chris Toshok  <toshok@ximian.com>
19349
19350         * TableLayoutSettings.cs: finish up the corcompare work for this
19351         class.
19352
19353 2006-12-23  Chris Toshok  <toshok@ximian.com>
19354
19355         * Control.cs: make SetImplicitBounds internal, do some futzing
19356         with LayoutEngine so that it's available in 1.1, and remove the
19357         entire duplicated code mess from PerformLayout.  Use
19358         System.Windows.Forms.Layout.DefaultLayout instead.
19359
19360         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
19361
19362 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
19363
19364         * Form.cs: Add MainMenuStrip property.
19365
19366 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
19367
19368         * Control.cs: Add ContextMenuStrip property and implementation.
19369         Fix ContextMenu implementation to show menu centered on control when
19370         activated using the keyboard instead of showing at screen (0,0).
19371
19372         * ToolStripDropDown.cs: Fix needed overload of Show ().
19373
19374 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
19375
19376         * Menu.cs: Name property added for 2.0 profile.
19377         
19378 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
19379
19380         * Menu.cs: Update information about FindMenuItem, method to be
19381         implemented soon.
19382
19383 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
19384
19385         * MenuAPI.cs: When deselect items deselect also selected subitems.
19386         
19387 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
19388
19389         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
19390         FindSubItemByCoord to found itens that is not active, also an
19391         cheking added to FindSubItemByCoord to search for items only 
19392         in visible popup windows. Fixes #80274.
19393
19394 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
19395
19396         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
19397         internal property, it be care about change ExStyle. 
19398
19399 2006-12-22  Andreia Gaita  <avidigal@novell.com>
19400
19401         * ContainerControl.cs: set activeControl for parent forms up the 
19402         tree when the new activecontrol is a container.
19403         When validating the active control, if it is a container, also
19404         raise up the validation for it's active control. Fixes #80280
19405         
19406         * Control.cs: Add internal property flag and check to prevent
19407         Focus events from getting raised when Select() is called for
19408         a ContainerControl. There are still too many focus events being
19409         raised at the moment though.
19410         Cleaned up the code a bit.
19411
19412 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19413
19414         * Control.cs: Added all missing 2.0 events.and
19415         fixed a couple of corcompare issues.
19416         * TrackBar.cs: Implemented missing 2.0 bits.
19417         * MonthCalendar.cs, 
19418         * DateTimePicker.cs, 
19419         * MdiClient.cs: Fixed some corcompare issues.
19420
19421 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
19422
19423         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
19424         SplitterPanel.cs: corecompare work.
19425
19426 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
19427
19428         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
19429         Clean up warnings for BackgroundImageChanged and PaddingChanged
19430         events now that they are implemented in Control.cs.
19431
19432 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
19433
19434         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
19435         
19436         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
19437         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
19438         of TableLayoutPanel and supporting cast.
19439
19440 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19441
19442         * XplatUIWin32.cs: 
19443         - GrabWindow now confines the mouse pointer to the confine window.
19444         - Added Win32ClipCursor and Win32GetClipCursor.
19445
19446         * Control.cs: 
19447         - Added CaptureWithConfine to be able to capture and confine 
19448         mouse pointer.
19449         
19450         * InternalWindowManager.cs: 
19451         - Call CaptureWithConfine instead of Capture if we're an
19452         MdiChild (fixes #79982).
19453
19454 2006-12-21  Chris Toshok  <toshok@ximian.com>
19455
19456         * DataGrid.cs: guard against the initial state of selection, where
19457         selection_start == -1.  make sure we only select from index >= 0.
19458         Fixes bug #80291.
19459
19460 2006-12-21  Chris Toshok  <toshok@ximian.com>
19461
19462         * Control.cs: we don't need to be so draconian with
19463         UpdateDistances, and we thusly don't need to call it before
19464         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
19465
19466 2006-12-21  Daniel Nauck  <dna@mono-project.de>
19467
19468         * ComboBox.cs,
19469         TextBox.cs: Implemented AutoComplete properties.
19470
19471 2006-12-20  Chris Toshok  <toshok@ximian.com>
19472
19473         * DataGridView*.cs: some corecompare work.
19474
19475 2006-12-20  Jackson Harper  <jackson@ximian.com>
19476
19477         * XplatUIX11.cs: We need to hide the caret when deleting it,
19478         otherwise you get carets left lying around everywhere.
19479         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
19480         prevents getting some weird half drawn caret tracers when
19481         scrolling.
19482         * TextControl.cs: Attempt to reduce the number of times we need to
19483         recreate the caret.
19484
19485 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
19486
19487         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
19488
19489 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19490
19491         * DateTimePicker.cs:
19492         - Implemented missing 2.0 bits.
19493         - Changed some default values to match MS.
19494         
19495 2006-12-20  Jackson Harper  <jackson@ximian.com>
19496
19497         * TextBoxBase.cs: When changing the font across the document we
19498         can't recalculate after changing each line, since that will cahnge
19499         the line count.
19500         - PreferredHeight is a little different than i thought.
19501         - When backspacing, move the caret before we do the actual char
19502         delete, because when that delete crosses a wrap boundary the
19503         positional information will change.
19504
19505 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19506
19507         * Control.cs: Added some missing 2.0 bits: 
19508         BackgroundImageLayout, BackgroundImageLayoutChanged, 
19509         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
19510         add IBindableComponent and IDropTarget implementation.
19511         
19512         * MonthCalendar.cs: 
19513         - Added all missing 2.0 features:
19514         BackgroundImageLayout, RightToLeftLayout, 
19515         OnHandleDestroyed, RightToLeftLayoutChanged, 
19516         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
19517         PaddingChanged.
19518         - Rewrote all the BoldDate code, it was completely broken.
19519         - Fixed all the tests (the tests can now be re-enabled, the
19520         problems were not with the tests, but with the control, it was
19521         mostly broken).
19522         
19523         * DateTimePicker.cs: Changed the location where the 
19524         MonthCalendar is shown.
19525         
19526 2006-12-19  Chris Toshok  <toshok@ximian.com>
19527
19528         * DataGridView.cs: add IDropTarget implementation.
19529
19530         * ToolStripPanel.cs: add IDropTarget implementation.
19531
19532 2006-12-19  Jackson Harper  <jackson@ximian.com>
19533
19534         * TextControl.cs: soft now means something different than what it
19535         used to mean, we want to move the caret regardless of whether or
19536         not this break was soft (would we really have wanted the caret
19537         to not move with the break in the old context?)
19538         * TreeView.cs: Make sure we factor in the vert scrollbar when
19539         calculating the horizontal scrollbar's maximum.
19540
19541 2006-12-19  Andreia Gaita  <avidigal@novell.org>
19542
19543         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
19544         check for keywords in alternate casing, close bug #80049.
19545
19546 2006-12-19  Chris Toshok  <toshok@ximian.com>
19547
19548         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
19549         methods (which all do nothing).
19550
19551         * IDropTarget.cs: add the 4 missing methods.
19552
19553 2006-12-19  Chris Toshok  <toshok@ximian.com>
19554
19555         * TableLayoutRowStyleCollection.cs: corcompare work.
19556         
19557         * TableLayoutSettings.cs: same.
19558
19559         * TableLayoutStyle.cs: same.
19560
19561         * TableLayoutColumnStyleCollection.cs: same.
19562
19563 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
19564
19565         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
19566         TableLayoutPanel I've had in my local tree for way too long.
19567
19568 2006-12-19  Miguel de Icaza  <miguel@novell.com>
19569
19570         * TableLayoutSettings.cs: Finish the public API (still needs all
19571         the logic to update on changes). 
19572
19573         * TableLayoutPanelCellPosition.cs: new file.
19574         
19575         * TableLayoutRowStyleCollection.cs,
19576         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
19577         TableLayoutSettings.cs: Track the final 2.0 table api.
19578
19579 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19580
19581         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
19582         and Image List 2.0 members for ColummnHeader.
19583         * ListView.cs: Add key-related 2.0 methods for
19584         ColumnHeaderCollection.
19585
19586 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
19587
19588         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
19589         ArgumentNullException if items argument is null. Ignore null item in
19590         arrays. Removed extra tabs.
19591
19592 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
19593
19594         * MonthCalendar.cs: Fixed InvalidCastException.
19595
19596 2006-12-19  Jackson Harper  <jackson@ximian.com>
19597
19598         * TextControl.cs: Don't increment the position here.
19599         - When calculating char positions only add in the line break size
19600         for hard line breaks.
19601
19602 2006-12-19  Andreia Gaita  <avidigal@novell.org>
19603
19604         * SendKeys.cs: Changed some things to match ms.net behaviour
19605         when parsing shifted capital letters.
19606         
19607         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
19608         Add window handle as parameter to SendInput. X11 needs the 
19609         window handle, and the handle being passed      to it in the keys 
19610         queue is the active control handle (which windows needs), not 
19611         the window handle.
19612         
19613         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
19614         to support SendKeys on X.       
19615         
19616         * X11Keyboard: Implement helper method to lookup a linux keycode
19617         given the virtual keycode. Added table of keycode-2-virtualkey
19618         values to support this.
19619
19620 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19621
19622         * ListView.cs: Add support for SelectedIndexCollection
19623         and SelectedItemCollection 2.0 methods. Implement support
19624         for ImageKey too.
19625         * ListViewItem.cs: Add support for ListViewSubItemCollection
19626         2.0 methods. Also, fix an incorrect behavior of AddRange method
19627         (it shouldn't call Clear).
19628         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
19629
19630 2006-12-19  Jackson Harper  <jackson@ximian.com>
19631
19632         * RichTextBox.cs: 
19633         * TextBoxBase.cs: New args for FormatText
19634         * TextControl.cs: Rewrote the main drawing method, this version
19635         feels a little easier to understand and debug to me.  Hopefully it
19636         does to others also
19637         - Fix FormatText to OR in the new formating values.  Added
19638         FormatSpecified param, basically this works in the same way as
19639         BoundsSpecified in Control.
19640         - Set the caret properties when the caret is positioned.
19641         - When wrapping text make sure that we calculate the width of the
19642         last character
19643         - when calculating alignments we might have wrapped down to the
19644         next line, so don't search for an individual tag, search for the
19645         end of the line
19646         - We need to invalidate the selection area when we replace the
19647         selection.
19648         
19649 2006-12-19  Daniel Nauck  <dna@mono-project.de>
19650
19651         * Application.cs: add Restart () 2.0 support
19652
19653 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19654
19655         * MenuItem.cs: Invalidate menu item rectangle after change Enable
19656         property. Fixes #80268.
19657         
19658 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19659
19660         * MenuAPI.cs: Dont trigger select event when closes top menu
19661         item. Fixes #80270.
19662
19663 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19664
19665         * MenuAPI.cs: When you click on menuitem only trigger onselect
19666         event for top menu itens. Fixes #80271.
19667         
19668 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19669
19670         * MdiWindowManager.cs: Make IconicBounds depend on
19671         the bottom of MdiClient, not the top (fixes #80267)
19672         
19673 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19674
19675         * MdiClient.cs: Added missing 2.0 attribute
19676
19677 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19678
19679         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
19680         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
19681
19682 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19683
19684         * MenuAPI.cs: Fix click when menuitem is not popup,
19685         this regression was caused by last commit (#80272).
19686
19687 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
19688
19689         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
19690         fire click event or close menu. Fixes #80272.
19691
19692 2006-12-17  Daniel Nauck  <dna@mono-project.de>
19693
19694         * ListViewHitTestInfo.cs: add
19695
19696 2006-12-17  Daniel Nauck  <dna@mono-project.de>
19697
19698         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
19699         * FlatButtonAppearance.cs: add
19700         * DockingAttribute.cs: add
19701
19702 2006-12-17  Chris Toshok  <toshok@ximian.com>
19703
19704         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
19705         and rebind our columns when it does - this way, if you make
19706         changes to the DataTable (or set the Table attribute on a DataView
19707         after setting it as the DataGrid's DataSource, the changes are
19708         made visible.)  Fixes bug #80107.
19709
19710 2006-12-17  Daniel Nauck  <dna@mono-project.de>
19711
19712         * ListViewGroup.cs: add internal Location property for layouting.
19713         * Theme.cs: add abstract ListViewGroupHeight function.
19714         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
19715
19716 2006-12-16  Andreia Gaita  <avidigal@novell.com>
19717
19718         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
19719         Added reset of selected index to 0 when adding first tab page.
19720         Fixes #80264
19721         
19722         * NumericUpDown.cs: Fix NET_2_0 check
19723
19724 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19725
19726         * ListViewGroup.cs: fixed DefaultValueAttribute value
19727
19728 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19729
19730         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
19731
19732 2006-12-15  Miguel de Icaza  <miguel@novell.com>
19733
19734         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
19735         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
19736         ScrollableControl.cs: Add a handful of methods that are
19737         overwritten in 2.0 
19738
19739 2006-12-15  Chris Toshok  <toshok@ximian.com>
19740
19741         * XplatUIWin32.cs: initial implementation of the Reversible
19742         drawing functions.  there are some problems.  DrawReversibleFrame
19743         doesn't seem to work at all for Dashed FrameStyle, and in the
19744         Thick case there are drawing errors at the corners (we probably
19745         need to bind Rectangle instead of doing moveto/lineto's.)
19746
19747 2006-12-16  Andreia Gaita  <avidigal@novell.com>
19748         
19749         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
19750         to send blocks of key messages. Send accumulates keys to send with Flush, 
19751         while SendWait sends all keys immediately.
19752                 
19753         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
19754         XplatUIX11.cs,  XplatUIX11-new.cs:
19755         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
19756         to Win32 SendInput.
19757         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
19758         
19759         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
19760         testing for ms.net on this class is very tricky, as the tests run too fast 
19761         to allow the hook to release, essentially freezing the keyboard and the 
19762         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
19763         category :p
19764
19765 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19766
19767         * Padding.cs: fixed serialization compability to MS ("_var" field names),
19768                         added missing attributes.
19769  
19770 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19771
19772         * ListViewGroup.cs: Added missing attributes.
19773         * ListViewGroupCollection.cs: Added missing attributes.
19774
19775 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19776
19777         * ListViewItem.cs: fixed ListViewSubItem text property.
19778
19779 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19780         
19781         * Control.cs: Added missing 2.0 attributes
19782         
19783 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19784         
19785         * MdiClient.cs: Added missing 2.0 attribute.
19786         * MonthCalendar.cs: Added some missing 2.0 attributes 
19787         and properties.
19788         
19789 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19790
19791         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
19792
19793 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
19794
19795         * MainMenu.cs: Add the new 2.0 constructor to help out people
19796         using the MainMenu in VS2005.
19797
19798 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19799         
19800         * MdiChildContext.cs: Removed it, no longer used.
19801         * MdiClient.cs: Added missing 2.0 attributes.
19802         
19803 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19804         
19805         * InternalWindowManager.cs: Fix a NullRef with previous 
19806         changes for toolwindows.
19807         
19808 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19809
19810         * Control.cs: 
19811         - Added AfterTopMostControl to allow for certain controls 
19812         to always stay on top when normal controls are brought to 
19813         front.
19814         
19815         * XplatUIWin32.cs: 
19816         - (DrawInversibleRectangle): Get window rectangle from Win32 
19817         in stead of from control, since Win32 doesn't calculate
19818         screen coords correctly from control's Location if it 
19819         have docked siblings.
19820         
19821         * MdiWindowManager.cs:
19822         - Correct the control menu popup location when clicked on
19823         the maximized form icon. (fixes #80223.1)
19824         - Don't show moving rectangle if mouse hasn't moved from
19825         the original clicked point.
19826         - Removed FormGotFocus handler (not used).
19827         - Calculate the control buttons location from the main
19828         window's size and not client size (fixes #79770).
19829         - Form is now closed when the form icon is double-clicked
19830         (fixes #79775). 
19831         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
19832         
19833         * InternalWindowManager.cs:
19834         - Moved some MDI-only methods to MdiWindowManager.
19835         - Removed unused properties and methods.
19836         - Unified method naming for methods handling wm messages.
19837         - Moved all message handling to seperate methods for
19838         each message.
19839         
19840         * ThemeWin32Classic.cs:
19841         - DrawManagedWindowDecorations now draws the title bar 
19842         with a gradient brush.
19843         - Add a CPDrawButtonInternal that allows us to specify
19844         light, normal and dark colors for the buttons (control 
19845         buttons for MDI children were drawn with the same light
19846         color as the background, therefore loosing the 3D effect).
19847         
19848         * SizeGrip.cs:
19849         - Add a CapturedControl property that is used to 
19850         determine the control to resize (defaults to parent). 
19851         Needed for MdiClient, since its SizeGrip's parent is
19852         MdiClient, but the control to resize is the main form.
19853         
19854         * MdiClient.cs:
19855         - Set SizeGrip's CapturedControl to the main form in order
19856         to resize the main form and not the MdiClient.
19857         - Override AfterTopMostControl to leave the scrollbars 
19858         always on top.
19859
19860 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19861
19862         * ListView.cs: fixed ListViewItemCollection AddRange and
19863                         implemented ListViewItemCollection AddRange 2.0 support.
19864
19865 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19866
19867         * ListViewGroup.cs: Add.
19868         * ListViewGroupCollection.cs: Add
19869         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
19870         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
19871                                 stub for ImageKey 2.0 support.
19872
19873 2006-12-14  Mike Kestner  <mkestner@novell.com>
19874
19875         * ListView.cs: add text padding to the autocalculation for columns
19876         of width -2.  Fixes #80207.
19877  
19878 2006-12-14  Mike Kestner  <mkestner@novell.com>
19879
19880         * ListView.cs: add some index guarding for partial row navigation 
19881         logic.  Fixes #80250.
19882
19883 2006-12-14  Mike Kestner  <mkestner@novell.com>
19884
19885         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
19886         are added or inserted to the collection.  Fixes #81099.
19887
19888 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
19889
19890         * MenuAPI.cs: Closes menu when right click out side of popup
19891         it fix problem in ContextMenu and MainMenu. Fixes #80252.
19892
19893 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19894
19895         * ListViewItem.cs: Fix dumb error.
19896
19897         * ListView.cs: Add Find and ContainsKey methods in 
19898         ListViewItemCollection, and also return true for IsReadOnly
19899         and IsFixedSize (changes for 2.0). 
19900
19901 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
19902
19903         * Control.cs: Allow Region to be set to null.
19904
19905 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19906
19907         * MdiWindowManager.cs: Remove unused (commented out) code.
19908         * Form.cs: When the MdiChild is maximized, the form needs 
19909         WM_NCMOUSELEAVE, so request it.
19910         * InternalWindowManager.cs: 
19911         - Added tooltips to control buttons.
19912         - Removed duplicated control button handling code.
19913         - Removed unused (commented out) code.
19914         
19915 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
19916
19917         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
19918         was used because we must set cursor without trigger ChangeCursor event
19919         and without change Cursor control property. Fixes #79963.
19920
19921 2006-12-12  Andreia Gaita  <avidigal@novell.com>
19922         
19923         * Control.cs: Check if Region setter value is null, and ignore
19924
19925 2006-12-12  Jackson Harper  <jackson@ximian.com>
19926
19927         * TextControl.cs: We were almost always drawing one more line then
19928         needed, since the GetLineByPixel will return the last line found
19929         at that pixel. In most cases though, we were invalidating up to
19930         the junction between two lines.
19931         - Improve debug code.
19932
19933 2006-12-12  Chris Toshok  <toshok@ximian.com>
19934
19935         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
19936         and FillReversibleRectangle.
19937
19938         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
19939         and FillReversibleRectangle.
19940
19941         * XplatUIWin32.cs: add stubs which do nothing for
19942         DrawReversibleFrame, DrawReversibleLine, and
19943         FillReversibleRectangle.
19944
19945         * XplatUIOSX.cs: add stubs which raise NIE for
19946         DrawReversibleFrame, DrawReversibleLine, and
19947         FillReversibleRectangle.
19948
19949         * XplatUIX11.cs: add working implementation for
19950         DrawReversibleFrame, DrawReversibleLine, and
19951         FillReversibleRectangle.
19952         
19953         * ControlPaint.cs: implement DrawReversibleFrame,
19954         DrawReversibleLine, and FillReversibleRectangle, by calling into
19955         the appropriate XplatUI method.
19956
19957 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19958
19959         * Form.cs: Make MdiClient have the focus even if it's
19960         not selectable, since it should receive WM_KEY* and WM_MOUSE 
19961         messages. Fixes #79907.
19962         
19963 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19964
19965         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
19966         queried after the window is created.
19967         
19968         * XplatUIX11.cs: Added SendParentNotify to implement 
19969         WM_PARENTNOTIFY logic. Fixes #79965.
19970         
19971         * Control.cs: Added MakeParam.
19972         
19973 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19974
19975         * MdiClient.cs: Resume Layout before setting window
19976         states (fixes #80201).
19977
19978 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19979
19980         * MenuAPI.cs: Deselect a menu item after performing
19981         the click (fixes #80197).
19982
19983 2006-12-11  Jackson Harper  <jackson@ximian.com>
19984
19985         * TextBoxBase.cs: We need to cap this value, since Maximum -
19986         ViewPortHeight can be less than zero.
19987         - Only do selection with the left mouse button.
19988         * TextBox.cs: Don't tell the world that we have a context menu.
19989         * Control.cs: New method so that we can control whether or not the
19990         context menu is visible outside MWF.
19991
19992 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19993
19994         * ToolBarButton.cs: Fix text positon. 
19995
19996 2006-12-11  Miguel de Icaza  <miguel@novell.com>
19997
19998         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
19999
20000         * Control.cs (DoubleBuffered): Add implementation.
20001
20002         * Application.cs (OpenForms): Add.
20003
20004 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
20005
20006         * Form.cs: Use opacity instead of Opactiy to determine if we need
20007         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
20008
20009 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
20010
20011         * Control.cs: Fix NRE if Control.Site was set to null.
20012
20013 2006-12-11  Chris Toshok  <toshok@ximian.com>
20014
20015         * Control.cs: ControlCollection.Remove should return if the arg is
20016         null, and ControlCollection.SetChildIndex should raise a ANE.
20017
20018 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
20019
20020         * Control.cs: Verify value set for Dock property. Code formatting
20021         updates.
20022
20023 2006-12-11  Jackson Harper  <jackson@ximian.com>
20024
20025         * TextControl.cs: Draw the caret and the selection when a flag is
20026         set on the owner.
20027         * TextBoxBase.cs: We want to draw the caret and the selection for
20028         TextBox but not for TextBoxBase.
20029         - If the window is resized and scrolling is no longer needed (the
20030         whole doc is visible) set the scroll position to zero.
20031         - The default SelectWord (the one TextBox uses) should move the
20032         caret to the end of the word.
20033         - SelectAll moves the caret to the end of the selection.
20034         * TextBox.cs: We don't selectall on focus, we just do it when the
20035         control is created.
20036         
20037 2006-12-11  Mike Kestner  <mkestner@novell.com>
20038
20039         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
20040
20041 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20042
20043         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
20044         2.0 support.
20045         * ListViewItem.cs: Add Name 2.0 property.
20046
20047 2006-12-11  Andreia Gaita  <avidigal@novell.com>
20048
20049         * TabControl.cs: Set visibility on selected or default tab 
20050         when tabcontrol handle is created, so that it's contents
20051         actually show up (duh). Fixes #80193
20052         Don't redraw the control if there is no handle created, as
20053         the selected index might be completely invalid. Added some tests
20054         to check for this.
20055
20056 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
20057
20058         * ToolBar.cs: Uses maximun width and height of all buttons as 
20059         button rectangle when ButtonSize specified, it looks strange but
20060         is what happens in Win32. Fixes #80189.
20061
20062 2006-12-11  Jackson Harper  <jackson@ximian.com>
20063
20064         * TextControl.cs: Need to track undo levels ourself, since
20065         compound actions will mess them up.
20066
20067 2006-12-10  Andreia Gaita  <avidigal@novell.com>
20068
20069         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
20070         SelectedIndex value is changed (even if it's not valid).
20071         Reset SelectedIndex to 0 when the handle is created and if
20072         the current index is invalid.
20073         Fixes SelectdeIndex unit tests and #80128
20074
20075 2006-12-08  Chris Toshok  <toshok@ximian.com>
20076
20077         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
20078         calls EndEdit, it needs to be called before we set current_cell to
20079         its new value.  Otherwise, we end up committing the value in the
20080         textbox to the new cell as well.  Fixes bug #80160.
20081
20082 2006-12-08  Chris Toshok  <toshok@ximian.com>
20083
20084         * Form.cs (set_CancelButton): if the button's DialogResult is
20085         None, set it to Cancel.  Fixes bug 80180.
20086
20087 2006-12-08  Jackson Harper  <jackson@ximian.com>
20088
20089         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
20090         to watch ourselves when setting the canvas size and setting the
20091         scrollbar values.
20092
20093 2006-12-08  Chris Toshok  <toshok@ximian.com>
20094
20095         * DataGrid.cs: comment out the two MakeTransparent calls for the
20096         time being so people using trunk (and not 1.2.2) on windows can
20097         actually use the datagrid.  This deals with bug #80151.
20098
20099 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
20100
20101         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
20102         Graphics.DrawImage (image, int, int, int, int) overload instead
20103         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
20104         the dpi difference and was blurring images it drew.
20105         [Fixes bug #79960]
20106
20107 2006-12-08  Chris Toshok  <toshok@ximian.com>
20108
20109         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
20110         rowcnt is 0 (such as with an empty datasource), and make sure we
20111         initialize not_usedarea.Y to cells.Y, so we don't draw over the
20112         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
20113
20114 2006-12-08  Chris Toshok  <toshok@ximian.com>
20115
20116         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
20117         grid.
20118
20119 2006-12-08  Chris Toshok  <toshok@ximian.com>
20120
20121         [ Fixes bug #80167 ]
20122         
20123         * ThemeWin32Classic.cs: don't draw the image if the button's flat
20124         style is FlatStyle.System.
20125
20126         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
20127         ButtonBase.flat_style private, and switch uses of it to the public
20128         property.
20129         
20130 2006-12-08  Chris Toshok  <toshok@ximian.com>
20131
20132         [ Fixes bug #80121 ]
20133         
20134         * ThemeWin32Classic.cs: center the caption text in the datagrid
20135         when we draw it.
20136
20137         * DataGrid.cs: lessen the amount we add to the caption height from
20138         6 to 2.  6 was making it huge.
20139
20140 2006-12-08  Andreia Gaita  <avidigal@novell.com>
20141
20142         * UpDownBase: Handle MouseWheel call directly instead of capturing
20143         the inner textbox's OnMouseWheel. Fixes #80166
20144
20145 2006-12-08  Jackson Harper  <jackson@ximian.com>
20146
20147         * TextControl.cs: We need to invalidate the textbox when we empty
20148         it (how had this not been discovered before?)
20149
20150 2006-12-08  Jackson Harper  <jackson@ximian.com>
20151
20152         * TextBoxBase.cs: Reworked the mouse down code so I could get it
20153         to behave like MS, we now ignore the eventargs.Click and just
20154         track state ourself, which we were already doing anyways.
20155         - Constrain the double click handler to the double click size.
20156         
20157 2006-12-08  Chris Toshok  <toshok@ximian.com>
20158
20159         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
20160         direction if that scrollbar isn't shown.  fixes bug #80158.
20161
20162 2006-12-08  Andreia Gaita  <avidigal@novell.com>
20163
20164         * NumericUpDown.cs: Update value on getter. Fixes #79950
20165
20166 2006-12-08  Chris Toshok  <toshok@ximian.com>
20167
20168         * MenuItem.cs: add back in the event cloning code.  I didn't know
20169         how to do it in the face of the EventHandlerList work i'd done
20170         last week.  Fixes bug #80183.
20171
20172 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
20173
20174         * Control.cs: Add an invalidate to the BackgroundImage setter.
20175         [Fixes 80184]
20176
20177 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
20178
20179         * ToolStrip*: Add some small properties reported by MoMA, fix event
20180         firing and default properties based off of unit tests, and add some
20181         attributes based off of the class status page.
20182
20183 2006-12-07  Jackson Harper  <jackson@ximian.com>
20184
20185         * TextBoxBase.cs: Take HideSelection into account when determining
20186         whether or not to show the selection.
20187         * RichTextBox.cs: After inserting the RTF into the document move
20188         the cursor to the beginning of the document.
20189
20190 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
20191
20192         * Control.cs: Remove static ArrayList "controls" which maintained
20193         a reference to every control created.
20194         * Application.cs: Create a static FormCollection to maintain a reference
20195         to every form created.  Use it in places that formerly enumerated through
20196         the controls one looking for forms.
20197         * Form.cs: Add and remove self from above FormCollection.
20198
20199 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
20200
20201         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
20202           not libgdk (though it makes me wonder why I didn't have any
20203           problems)
20204
20205 2006-12-07  Chris Toshok  <toshok@ximian.com>
20206
20207         [ you had to know this was coming after that last commit...]
20208         
20209         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
20210         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
20211         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
20212         XCopyArea).
20213
20214 2006-12-07  Chris Toshok  <toshok@ximian.com>
20215
20216         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
20217         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
20218         all the behavior we need for double buffering.
20219
20220         * XplatUIDriver.cs: implement the 3 double buffer methods using a
20221         client side Bitmap, just like the old Control-based double buffer
20222         code did.  The methods are virtual, so each XplatUI driver
20223         subclass can replace the implementation to use a faster, platform
20224         specific approach.
20225
20226         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
20227         double buffer code, and clean things up a bit in the process.
20228
20229 2006-12-06  Chris Toshok  <toshok@ximian.com>
20230
20231         * Control.cs: reindent WndProc.
20232
20233 2006-12-06  Chris Toshok  <toshok@ximian.com>
20234
20235         [ I wanna be like BenM when I grow up ]
20236         
20237         * Hwnd.cs: create a single static Graphics object on the static
20238         Bitmap we create.  use this for our text measurements.
20239
20240         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
20241         This was causing us to allocate a backbuffer for every control,
20242         even when it wasn't flagged as double buffered.  Instead use the
20243         single graphics instance.  This might have implications for
20244         multithreaded applications.  If we run into problems we can switch
20245         to creating 1 Graphics per control, on the static Hwnd bitmap.
20246
20247         this change nets us a 7M savings in private dirty mappings when
20248         running FormsTest.exe.
20249
20250 2006-12-06  Chris Toshok  <toshok@ximian.com>
20251
20252         * ListView.cs: the BackgroundImage override is just to set
20253         attributes.  chain up to base.BackgroundImage.
20254
20255         * RichTextBox.cs: same.
20256
20257         * ToolBar.cs: same, but we need to also redraw the toolbar when it
20258         changes, so instead a handler for BackgroundImageChanged.
20259         
20260         * Control.cs: make background_image private.
20261
20262 2006-12-06  Chris Toshok  <toshok@ximian.com>
20263
20264         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
20265         sure we even need this assignment, but roll with it for now.
20266
20267         * Control.cs: make the cursor field private.
20268
20269 2006-12-06  Chris Toshok  <toshok@ximian.com>
20270
20271         * Form.cs: we don't need to explicitly set ImeMode to
20272         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
20273         behavior in the face of ImeMode.Inherit.
20274
20275         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
20276         change the ctor's assignment to use ImeMode instead of ime_mode.
20277
20278         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
20279         ImeModeInherit.  Only check for the parent's imemode (and return
20280         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
20281         This fixes the button unit test, which sets both ImeMode and
20282         DefaultImeMode to ImeMode.Disable.
20283
20284         also make the ime_mode field private.
20285
20286 2006-12-06  Chris Toshok  <toshok@ximian.com>
20287
20288         * Control.cs: make control_style private.
20289
20290         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
20291         setting the styles to true, then setting them to false instead of
20292         reverting to their previous values.
20293
20294         also, call SetStyle on the scrollbars instead of using
20295         control_style directly.
20296
20297 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
20298
20299         * FormCollection.cs: Implement. [2.0]
20300
20301 2006-12-06  Chris Toshok  <toshok@ximian.com>
20302
20303         * Control.cs: make tab_stop private.
20304
20305         * Label.cs: set TabStop, not tab_stop.  reformat some event
20306         add/remove methods to make them more compact.
20307
20308 2006-12-06  Chris Toshok  <toshok@ximian.com>
20309
20310         * RadioButton.cs: fix TabStop handling.
20311
20312 2006-12-06  Chris Toshok  <toshok@ximian.com>
20313
20314         * TextBox.cs: remove the explicit assignments to has_focus.
20315         Control does that.
20316
20317         * ButtonBase.cs: remove the assignment to has_focus.  Control will
20318         manage that.
20319         
20320 2006-12-06  Chris Toshok  <toshok@ximian.com>
20321
20322         * ButtonBase.cs: remove all uses of is_enabled from this code.
20323         it's always true when any of the code containing the checks is
20324         executed.
20325
20326 2006-12-06  Chris Toshok  <toshok@ximian.com>
20327
20328         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
20329         with different semantics (some are present in both 1.1 and 2.0
20330         profiles) so that we match MS's behavior in our unit tests.
20331
20332 2006-12-06  Jackson Harper  <jackson@ximian.com>
20333
20334         * TextControl.cs: Make this operation undoable.
20335         * TextBoxBase.cs: Factor the border width into the preferred
20336         height.
20337         - implement Modified as per the spec.
20338
20339 2006-12-06  Chris Toshok  <toshok@ximian.com>
20340
20341         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
20342
20343 2006-12-06  Chris Toshok  <toshok@ximian.com>
20344
20345         * Control.cs: make right_to_left and context_menu fields private.
20346
20347 2006-12-06  Chris Toshok  <toshok@ximian.com>
20348
20349         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
20350         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
20351         Control.child_controls private.  switch all uses over to
20352         Control.Controls.
20353
20354 2006-12-06  Chris Toshok  <toshok@ximian.com>
20355
20356         * System.Windows.Forms/GroupBox.cs,
20357         System.Windows.Forms/AccessibleObject.cs,
20358         System.Windows.Forms/ErrorProvider.cs,
20359         System.Windows.Forms/Control.cs,
20360         System.Windows.Forms/UpDownBase.cs,
20361         System.Windows.Forms/ScrollBar.cs,
20362         System.Windows.Forms/DateTimePicker.cs,
20363         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
20364         System.Windows.Forms/ToolTip.cs,
20365         System.Windows.Forms/RadioButton.cs,
20366         System.Windows.Forms/LinkLabel.cs,
20367         System.Windows.Forms/Splitter.cs,
20368         System.Windows.Forms/TextBoxBase.cs,
20369         System.Windows.Forms/ToolStripTextBox.cs,
20370         System.Windows.Forms/ContainerControl.cs,
20371         System.Windows.Forms/ThemeWin32Classic.cs,
20372         System.Windows.Forms/SizeGrip.cs,
20373         System.Windows.Forms/ToolStripDropDown.cs,
20374         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
20375         private.  switch all uses over to Control.Parent.
20376
20377 2006-12-06  Chris Toshok  <toshok@ximian.com>
20378
20379         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
20380         Control does this before calling emitting these events.
20381
20382         * TabControl.cs: same.
20383
20384         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
20385         Control.client_rect.
20386
20387         * ButtonBase.cs: use the ClientSize property instead of the
20388         client_size field.
20389
20390         * ScrollableControl.cs: same.
20391
20392         * Control.cs: another pass at making properties private.  also,
20393         move the initialization of tab_stop to the ctor.
20394
20395 2006-12-05  Andreia Gaita <avidigal@novell.com>
20396
20397         * TabControl.cs: Let the selected index be set freely if the 
20398         control handle is not yet created.
20399
20400 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
20401
20402         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
20403         internal until I can rewrite DefaultLayout.
20404         * ToolStrip.cs: Fix build error and some general cleaning.
20405         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
20406         Fix build errors caused by making some of Control's fields private.
20407
20408 2006-12-05  Jackson Harper  <jackson@ximian.com>
20409
20410         * TextControl.cs: Redo Insert a little so that it use IndexOf
20411         instead of Split, this prevents it from messing up on things like
20412         \n\n\n. Also more effecient since the split array doesn't need to
20413         be created.
20414         * TextBoxBase.cs: AppendText doesnt handle multiline and non
20415         multiline text differently, this is the first of many fixes that
20416         will make multiline/non-multiline the same thing as far as the
20417         TextBoxBase is concerned.
20418         - Don't split the text and insert lines, this can lose some line
20419         endings (like is the last line a soft or hard break). Instead use
20420         the new Insert.
20421         - Fix an off by one when combining all the lines in the Text
20422         getter.
20423         - Remove separate multiline handling from the Text getter/setter.
20424
20425 2006-12-05  Chris Toshok  <toshok@ximian.com>
20426
20427         * ButtonBase.cs: a few changes:
20428
20429         - don't reinitialize internal Control fields in the ctor when they
20430         have the same values as Control sets them.
20431
20432         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
20433         this before calling those methods.
20434
20435         - we don't need to call Refresh for anything.  use Invalidate
20436         instead.
20437
20438         - OnEnabledChanged doesn't need to redraw at all - Control.cs
20439         calls Refresh in its OnEnabledChanged.
20440         
20441         - several of the events we were registered for in the ctor to
20442         redraw ourselves already include calls to Invalidate in the
20443         property setters that raise the events.  remove the extra
20444         invalidation.
20445
20446         - reformat a switch statement that was 83274658 columns wide.
20447         
20448 2006-12-05  Mike Kestner  <mkestner@novell.com>
20449
20450         * ComboBox.cs: fix a unit test regression from a TextBox
20451         SelectionLength return of -1 when there's no selection.  
20452
20453 2006-12-05  Chris Toshok  <toshok@ximian.com>
20454
20455         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
20456         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
20457         cleaning up some of the internal Control fields being used by
20458         subclasses.
20459
20460 2006-12-05  Mike Kestner  <mkestner@novell.com>
20461
20462         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
20463         listbox after AddImplicit calls since it defaults to hidden. Add a 
20464         hack to preserve requested heights across DropDownStyle changes.
20465
20466 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
20467
20468         * PropertyGrid.cs: Hide FindFirstItem method from public API.
20469
20470 2006-12-05  Chris Toshok  <toshok@ximian.com>
20471
20472         * DataGridView.cs: fix compiler warnings.
20473
20474         * PrintControllerWithStatusDialog.cs: same.
20475
20476         * ToolBar.cs: same.
20477
20478         * FolderBrowserDialog.cs: same.
20479
20480         * Splitter.cs: same.
20481
20482         * DataGridViewComboBoxCell.cs: same.
20483
20484         * XplatUIWin32.cs: same.
20485
20486         * PictureBox.cs: same.
20487
20488         * Win32DnD.cs: same.
20489
20490         * PageSetupDialog.cs: same.
20491
20492         * FileDialog.cs: same.
20493
20494         * PrintDialog.cs: same.
20495
20496         * DataGridTextBoxColumn.cs: same.
20497
20498         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
20499
20500 2006-12-05  Chris Toshok  <toshok@ximian.com>
20501
20502         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
20503         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
20504         System.ComponentModel.EventHandlerList work.
20505
20506 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
20507
20508         * DrawTreeNodeEventArgs.cs: Added.
20509
20510 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20511         
20512         * InternalWindowManager.cs: Remove an unused field.
20513         
20514 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20515
20516         * InternalWindowManager.cs:
20517         - Save the point where the title bar is clicked.
20518         
20519         * MdiWindowManager.cs:
20520         - Only allow moving of the window as long as the 
20521         clicked point on the title bar does not get out of
20522         MdiClient's rectangle. Fixes #79982.
20523         
20524         * MdiClient.cs:
20525         - Added Horizontal/VerticalScrollbarVisible.
20526         - Simplified the scrollbar sizing algorithm.
20527         - Cache the difference in scrolled value in
20528         H/VBarValueChanged and move the calculation out
20529         of the for loop.
20530
20531 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20532
20533         * Control.cs: Make the Console.WriteLine in WndProc 
20534         write more info.
20535
20536 2006-12-05  Chris Toshok  <toshok@ximian.com>
20537
20538         * ToolStripManager.cs, ToolStripButton.cs,
20539         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
20540         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
20541         ToolStripSplitButton.cs, ToolStripSeparator.cs,
20542         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
20543         ToolStripProgressBar.cs, ToolStripContainer.cs,
20544         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
20545         to using System.ComponentModel.EventHandlerList.
20546
20547 2006-12-04  Chris Toshok  <toshok@ximian.com>
20548
20549         * LinkLabel.cs: fix up compiler warnings.
20550
20551         * TableLayoutSettings.cs: same.
20552
20553         * TreeView.cs: same.
20554
20555         * ToolBar.cs: same.
20556
20557         * TabControl.cs: same.
20558
20559         * RichTextBox.cs: same.
20560
20561         * ListViewItem.cs: same.
20562
20563         * PropertyGrid.cs: same.
20564
20565         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
20566
20567         * ToolTip.cs same.
20568
20569         * TextRenderer.cs: fix up compiler warnings.
20570
20571         * Label.cs: same.
20572
20573         * Form.cs: corcompare fixes.
20574
20575         * PictureBox.cs: fix up compiler warnings.
20576
20577         * ImageListStreamer.cs: same.
20578
20579         * TrackBar.cs: corcompare fix.
20580
20581         * Control.cs: fix up compiler warnings.
20582
20583         * SplitterPanel.cs: same.
20584
20585         * NumericTextBox.cs: same.
20586
20587         * ImageList.cs: same.
20588
20589         * StatusStrip.cs: same.
20590
20591         * ProgressBar.cs: corcompare fix.
20592
20593         * ToolStripButton.cs: fix up compiler warnings.
20594
20595         * ToolStripStatusLabel.cs: same.
20596
20597         * ToolStripSplitButton.cs: same.
20598
20599         * ToolStripSeparator.cs: same.
20600
20601         * ToolStripProgressBar.cs: same.
20602
20603         * ToolStripDropDownMenu.cs: same
20604
20605         * ToolStripDropDown.cs: same.
20606
20607         * ToolStripDropDownButton.cs: same.
20608
20609         * ToolStrip.cs: same.
20610
20611         * ToolStripControlHost.cs: same.
20612
20613         * ToolStripContentPanel.cs: same.
20614
20615         * ToolStripDropDown.cs: same.
20616
20617         * ToolStripContainer.cs: same.
20618
20619         * ToolStripPanel.cs: same, and add "new" where we need it to work
20620         with the new ArrangedElementCollection.
20621
20622         * ToolStripItemCollection.cs: add "new" where we need it to work
20623         with the new ArrangedElementCollection.
20624
20625 2006-12-04  Andreia Gaita <avidigal@novell.com>
20626
20627         * TabControl.cs: Fix default tab selection to after TabControl
20628         gets focus and not before. Fixes #80128
20629
20630 2006-12-04  Chris Toshok  <toshok@ximian.com>
20631
20632         * DataGridTableStyle.cs: remove the gross calling of
20633         datagrid.Refresh from here.  It's a broken idea and it doesn't
20634         work anyway.
20635
20636         * DataGrid.cs: instead, just register/unregister from the
20637         DataGridTableStyle events in CurrentTableStyle.  we play it
20638         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
20639         even though some would most likely not require it.  Fixes bug
20640         #80115 (and one portion of #80117 as a side effect).
20641
20642 2006-12-04  Chris Toshok  <toshok@ximian.com>
20643
20644         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
20645         so the textbox (if any) goes away.  Fixes bug #80117.
20646
20647 2006-12-04  Chris Toshok  <toshok@ximian.com>
20648
20649         * DataGridColumnStyle.cs: set the column's readonly property
20650         initially based on the property descriptor's IsReadOnly.  Fixes
20651         bug #80044.
20652
20653 2006-12-04  Chris Toshok  <toshok@ximian.com>
20654
20655         * ComboBox.cs: wrap the dropdown style changing work in
20656         SuspendLayout/ResumeLayout.  Fixes bug #79968.
20657
20658 2006-12-04  Jackson Harper  <jackson@ximian.com>
20659
20660         * TextBoxBase.cs: Fix off by one, since these are one-based.
20661         * TextBox.cs: Select all the text when we get focus.  The TextBox
20662         does this but the RTB does not.
20663
20664 2006-12-04  Chris Toshok  <toshok@ximian.com>
20665
20666         * DataGridTextBoxColumn.cs: remove some spew.
20667
20668         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
20669         but some part of me is saying "it shouldn't be here.."  At any
20670         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
20671         setting the value.
20672
20673 2006-12-04  Chris Toshok  <toshok@ximian.com>
20674
20675         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
20676         to reassign the propertydescriptor.
20677
20678 2006-12-04  Jackson Harper  <jackson@ximian.com>
20679
20680         * TextBoxBase.cs:
20681         * TextControl.cs: Remove some unused variables.  Maybe this will
20682         patch things up between mike and I.
20683         - don't split lines less then one char wide, if the viewport is
20684         that small text won't be visible anyways.
20685         
20686 2006-12-04  Jackson Harper  <jackson@ximian.com>
20687
20688         * TextBoxBase.cs: Default selection length is -1, need to do some
20689         more testing on windows to see when this is used for the property.
20690         - Redid the Lines [] property to that we properly remove soft line
20691         breaks
20692         - added support for preserving carriage returns
20693         -  CanUndo is not a variable like 'is undo enabled' it just returns
20694         true if there is undo operations available.
20695         - AppendText doesn't need to grab the last tag itself anymore,
20696         this happens automatically when we move the cursor.
20697         * TextControl.cs: Add CompoundActions to the undo class. This
20698         allows combining the other operations into one big option.  ie a
20699         paste will combine { delete old, insert new, move cursor }
20700         - Add InsertString undo operation
20701         - New method for deleting multiline text
20702         - Add carriage returns to lines. So we can preserve carriage
20703         returns when text is 'roundtripped'
20704
20705 2006-12-04  Chris Toshok  <toshok@ximian.com>
20706
20707         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
20708         minimum 0.  Fixes the scrollbar exception in bug #80136.
20709
20710 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20711
20712         * MdiClient.cs: 
20713         * MdiWindowManager: Removed unused fields and methods.
20714         
20715 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20716         
20717         * StatusBar.cs: Update all panels when a AutoSize=Contents
20718         panel needs updating.
20719         
20720         * StatusBarPanel.cs: Remove twidth and only use initialize.
20721         Fixes #80031.
20722                 
20723 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20724
20725         * Form.cs: When a form's MdiParent is set add it directly
20726         on top of the z-order in stead of relying on MdiClient's
20727         ActivateChild to do it. Fixes #80135.
20728         
20729         * MdiClient.cs: 
20730         - Remove original_order, mdi_child_list is already doing
20731         the same thing.
20732         - Create mdi_child_list on construction in
20733         stead of first use (avoids a few null checks).
20734
20735         * MenuItem.cs: Use an already existing list of mdi children
20736         to get the correct order of children and remove the other
20737         redundant list.
20738
20739 2006-12-04  Chris Toshok  <toshok@ximian.com>
20740
20741         * PropertyGridView.cs: cached_splitter_location is only used in
20742         !DOUBLEBUFFER code.
20743
20744         * PropertyGrid.cs: implement the ComComponentNameChanged event
20745         using Events, hoping that would fix the warning.  Looks like a
20746         compiler bug instead (#80144).
20747
20748         * PropertyManager.cs: remove unused method.
20749
20750 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
20751
20752         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
20753         include parentesis to fix expression evaluation. Fixes #79634.
20754
20755 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
20756         
20757         * MenuAPI.cs:
20758         - Changes to fix behavior in Menu control, some reported in #80097
20759         and other detected during behavior refactory like a select event
20760         problems.
20761         - Remove unneded "if's" conditions.
20762         - Created an internal to flag when popup is active in control, we need 
20763         it because in .NET you can have menu active but without popup active
20764         when you active menu using popup without visible items.
20765         - Mimic win32 behavior for Select and Popup events.  
20766         - Dont open popup menu when you dont have visible subitems.
20767         - Do nothing when click on disabled menu item.
20768         - Some small changes to follow the coding style guidelines.
20769         - Unselect menu only when another control gives focus. Fixes #80097.
20770         - Remove unused code.
20771         
20772         * MenuItem.cs: internal VisibleItems method to check if menu
20773         theres visible subitems, it will be usefull to fix some 
20774         behavior in Menu control.
20775         
20776 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
20777         
20778         * Timer.cs: Tag property for 2.0 profile.
20779         
20780 2006-12-01  Chris Toshok  <toshok@ximian.com>
20781
20782         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
20783         
20784         * Win32DnD.cs: comment out some unused fields.
20785
20786         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
20787         some unused properties/methods.
20788
20789         * XplatUIX11.cs: fix MousePosition so we override the base class's
20790         property instead of conflicting with it.
20791
20792         * PictureBox.cs: comment out some unused fields
20793
20794         * OSXStructs.cs: make some struct fields public.
20795
20796         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
20797         MousePosition so we override the base class's property instead of
20798         conflicting with it.
20799
20800         * X11Dnd.cs: comment out some unused fields
20801
20802         * X11DesktopColors.cs: fix some struct field visibility to quiet
20803         the compiler.
20804
20805         * X11Dnd.cs: remove some debug code.
20806
20807         * ThemeClearlooks.cs: comment out unused field.
20808
20809         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
20810
20811         * ThemeGtk.cs: comment out some unused pinvokes.
20812
20813         * Timer.cs: remove some unused fields.
20814
20815         * ThemeClearlooks.cs: comment out unused field.
20816
20817         * UpDownBase.cs: comment out unused field.
20818
20819         * DataObject.cs: comment out unused field.
20820
20821         * DataGridBoolColumn.cs: reomve unused field.
20822
20823         * DataGrid.cs: remove unused field.
20824
20825         * Cursor.cs: remove old ToBitmap code.
20826
20827         * ControlPaint.cs: remove unused method.
20828
20829         * ScrollBar.cs: remove unused fields.
20830
20831         * ComboBox.cs: remove unused field, and chain up to
20832         AccessibleObject ctor.
20833
20834         * ListBox.cs: remove unused field.
20835
20836         * ButtonBase.cs: wrap a couple fields in NET_2_0.
20837
20838         * GridEntry.cs: remove unused fields.
20839
20840         * Binding.cs: remove unused fields.
20841
20842         * AxHost.cs: remove unused method.
20843
20844         * ContainerControl.cs: remove unused field.
20845
20846         * ScrollableControl.cs: remove unused fields.
20847
20848 2006-12-01  Chris Toshok  <toshok@ximian.com>
20849
20850         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
20851         the Where/WhereString stuff.  it's easy enough to CWL
20852         Environment.StackTrace.
20853
20854         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
20855         unused private fields.
20856
20857 2006-12-01  Jackson Harper  <jackson@ximian.com>
20858
20859         * TextControl.cs: Do not update the view while inserting multiline
20860         text. If we update the view we might wrap lines, before entering
20861         the new lines, which causes the new line insertion calculations to
20862         be totally fubared.
20863         - Remove an old TODO
20864         - Make debug output a little nicer
20865         
20866 2006-12-01  Chris Toshok  <toshok@ximian.com>
20867
20868         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
20869
20870 2006-12-01  Chris Toshok  <toshok@ximian.com>
20871
20872         [ fix the majority of the CS0108 warnings we've been suppressing ]
20873         
20874         * TreeView.cs: mark BackgroundImageChanged as 'new'.
20875
20876         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
20877         to "LayoutToolBar" to quiet mcs.
20878         
20879         * TabControl.cs: mark our ControlCollection class as 'new'.
20880
20881         * TextBoxBase.cs: mark some events as 'new'.
20882
20883         * Splitter.cs: TabStop is 'new'.
20884
20885         * ControlBindingsCollection.cs: mark a few methods as new since
20886         they change the visibility from protected to public.
20887
20888         * RadioButton.cs: DoubleClick -> base class, and remove unused
20889         HaveDoubleClick.
20890
20891         * MonthCalendar.cs: ImeMode property -> base class, and mark many
20892         events as new.
20893
20894         * NumericUpDown.cs: TextChanged -> base class.
20895
20896         * CheckedListBox.cs: mark our ObjectCollection class as new to
20897         quiet mcs.
20898
20899         * FolderBrowserDialog.cs: make HelpRequest event new and have it
20900         muck with the base class.
20901
20902         * StatusBar.cs: fix some mcs warnings about Update being the same
20903         name as a base class method.
20904
20905         * RichTextBox.cs: mark some events as new, and make them do things
20906         to the base class impl.
20907
20908         * UserControl.cs: mark TextChanged as new, and have it manipulate
20909         base.TextChanged.
20910
20911         * UpDownBase.cs: mark some things new.
20912
20913         * CheckBox.cs: mark DoubleClick "new", and add some text about
20914         what we need to look at.
20915
20916         * Panel.cs: make the events "new", and manipulate the base
20917         version.  these are just here for attributes.
20918
20919         * AccessibleObject.cs: make owner private.
20920
20921         * Control.cs: deal with AccessibleObject.owner being private.
20922         cache our own copy if we need it.
20923
20924         * Button.cs: add "new" to the DoubleClickEvent.
20925
20926         * ListBox.cs: no need to track our own has_focus here.  let
20927         Control.has_focus do it for us.  Also some other work to clear up
20928         warnings about not overriding base class methods of the same name.
20929         
20930         * ComboBox.cs: clear up some warnings about not override base
20931         class methods of the same name.
20932
20933 2006-12-01  Chris Toshok  <toshok@ximian.com>
20934
20935         * Form.cs: flag a few things as "new" to quiet some of the mcs
20936         warnings.
20937
20938         * AxHost.cs: same.
20939
20940         * PrintPreviewDialog.cs: same.
20941
20942         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
20943         now DGV isn't so horrible on the class status page.  also, move
20944         all events to using System.ComponentModel.EventHandlerList.  my
20945         wrists hurt.
20946
20947 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20948
20949         * MdiWindowManager.cs:
20950         - Set form to active mdi child if shown,
20951         and update the active mdi child to the next 
20952         remaining child in the z-order if the form is hidden.
20953
20954         * Form.cs: 
20955         - Track if the form has been visible and if its 
20956         visibility is beeing changed, so that the MdiClient
20957         can properly decide the ActiveMdiChild. The MdiClient 
20958         cannot track this since the form can change visibility 
20959         before MdiClient is created.
20960
20961         * MdiClient.cs:
20962         - Don't activate anything of the parent form is changing
20963         its visibility.
20964         - Rework ActiveMdiChild to only return visible mdi 
20965         children and take into account several other corner 
20966         cases.
20967
20968 2006-12-01  Chris Toshok  <toshok@ximian.com>
20969
20970         * IBindableComponent.cs: new 2.0 interface.
20971
20972 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
20973
20974         * DataGrid.cs: Font for caption area is bold by default.
20975
20976 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
20977
20978         * Menu.cs: Tag property for 2.0.
20979         
20980 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
20981
20982         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
20983         
20984 2006-12-01  Chris Toshok  <toshok@ximian.com>
20985
20986         * TreeView.cs: doh, the Begin* events should be
20987         TreeViewCancelEventHandler.
20988
20989 2006-12-01  Chris Toshok  <toshok@ximian.com>
20990
20991         * Form.cs: Form.ControlCollection already stores off the
20992         form_owner field.  don't access the base class's internal "owner"
20993         field.
20994
20995         * Control.cs: make all the fields in Control.ControlCollection
20996         private.  there's no need for any internal fields here.
20997
20998 2006-12-01  Chris Toshok  <toshok@ximian.com>
20999
21000         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
21001         OnHandleCreated.  Fixes bug #80109.
21002
21003 2006-12-01  Chris Toshok  <toshok@ximian.com>
21004
21005         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
21006         SplitContainer.cs, Control.cs, StatusStrip.cs,
21007         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
21008         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
21009         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
21010         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
21011         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
21012         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
21013         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
21014         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
21015         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
21016         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
21017
21018         do most of the work to convert our code over to use
21019         System.ComponentModel.Component.Events for
21020         adding/removing/dispatching events.
21021
21022
21023 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
21024
21025         * DataGridView.cs: Fix an ArgumentNullException reported 
21026         twice today in IRC.
21027
21028 2006-11-30  Mike Kestner  <mkestner@novell.com>
21029
21030         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
21031         grabbed listbox.  Fixes #80036 and #80101.
21032
21033 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
21034
21035         * Message.cs: Changed ToString() to match MS.
21036         
21037 2006-11-30  Jackson Harper  <jackson@ximian.com>
21038
21039         * TextBoxBase.cs: You can still change the selected text on a read
21040         only textbox.
21041         * TextControl.cs: Lower magic number for wrap calculations. This
21042         lets text get closer to the right (far) edge.
21043
21044 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
21045
21046         * Control.cs: Tweak 2.0 layout properties.
21047         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
21048         * TextRenderer.cs: Add a new overload.
21049         * ToolStrip*: Huge amount of changes and new features.
21050
21051 2006-11-30  Mike Kestner  <mkestner@novell.com>
21052
21053         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
21054         scroll range correct.  Fixes #79994.
21055
21056 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
21057
21058         * MdiWindowManager.cs: Update main form's text when
21059         a form is closed. (fixes #80038)
21060         
21061 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
21062
21063         * ToolBar.cs:
21064         - Fix an regression in ButtonSize.
21065         - Get ImeMode default value change to "Disable".
21066         - Get ShowTooltips default value change to true, default value is 
21067         "false" but after make a test in .NET we get "true" result as default.
21068         
21069 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
21070
21071         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
21072
21073 2006-11-29  Chris Toshok  <toshok@ximian.com>
21074
21075         * XplatUIWin32.cs (GetWindowTransparency): check return value of
21076         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
21077         SetWindowTransparency hasn't been called.
21078
21079 2006-11-29  Chris Toshok  <toshok@ximian.com>
21080
21081         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
21082         if it's supported.
21083         (set_AllowTransparency): reorder things a little so that the
21084         WS_EX_LAYERED style is removed properly.
21085
21086 2006-11-29  Chris Toshok  <toshok@ximian.com>
21087
21088         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
21089         
21090         * Form.cs: only call the XplatUI transparency method (get/set) if
21091         SupportsTransparency says it's supported. Otherwise fallback to
21092         doing nothing (in the set case) or returning the instance field we
21093         cache (in the get case).
21094
21095         * XplatUIStructs.cs: add TransparencySupport flag enum.
21096         
21097         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
21098         change to SupportsTransparency.
21099
21100         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
21101         TransparencySupport.None from SupportsTransparency.
21102
21103         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
21104         TransparencySupport.Set from SupportsTransparency.
21105
21106         * XplatUIWin32.cs: implement GetWindowTransparency calling
21107         GetLayeredWindowAttributes, and implement SupportsTransparency by
21108         checking whether or not both
21109         GetWindowTransparency/SetWindowTransparency are available
21110         entrypoints.  We need to do this since SetWindowTransparency is
21111         available as of win2k, but GetWindowTransparency requires winxp.
21112         yay win32 api.
21113
21114         * XplatUI.cs: Add GetWindowTransparency, and change
21115         SupportsTransparency to allow for either/both Get/Set.
21116
21117 2006-11-29  Chris Toshok  <toshok@ximian.com>
21118
21119         * DataGrid.cs: keep from going into an infinite loop redrawing a
21120         datagrid that has no datasource.  Fixes bug #80033.
21121
21122 2006-11-29  Chris Toshok  <toshok@ximian.com>
21123
21124         * MenuItem.cs: fix the NRE when we assign text (and therefore call
21125         Invalidate) before the mainmenu has been assigned to a control.
21126
21127 2006-11-29  Chris Toshok  <toshok@ximian.com>
21128
21129         * DataGrid.cs: detect when we should be double the double click
21130         row/column autosize stuff, although that codepath has yet to be
21131         written.  part of the work for bug #79891.
21132
21133 2006-11-29  Chris Toshok  <toshok@ximian.com>
21134
21135         * Binding.cs (SetControl): fix unit test.
21136
21137 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21138
21139         * PageSetupDialog.cs: Validate the margins and set them in
21140         PageSettings. 
21141         * NumericTextBox.cs: New class to mimic the behavior of the
21142         textboxes used in the printing dialogs.
21143
21144 2006-11-29  Andreia Gaita  <avidigal@novell.com>
21145         
21146         * Form.cs: Revert previous change (remove call UpdateBounds
21147         from form constructor), because it messes with the handle creation
21148         order, and that one needs lots and lots of love.
21149         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
21150         for valid printer and throw InvalidPrinterException if document
21151         is set but printer not valid), adding a MonoTODO. Once 
21152         handle creation is done properly, we can put this back in.
21153
21154 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
21155
21156         * MenuItem.cs: Create a invalidate method for menu item, to be
21157         calling from set text, it make text changes to imadiate update
21158         on screen. Fixes #80013. 
21159         
21160 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
21161
21162         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
21163         fixes bug #80070 and some other problem on toolbar buttons
21164         layout.
21165
21166 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
21167
21168         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
21169         with dotted brush.      Fixes #79564
21170         
21171 2006-11-28  Andreia Gaita  <avidigal@novell.com>
21172
21173         * Form.cs: Removed call to UpdateBounds on Form
21174         constructor, it was causing a call to CreateHandle
21175         before it was supposed to.
21176         * PrintControllerWithStatusDialog: Applied patch
21177         by Chris Toshok to hide controller when there are
21178         no printers available.
21179         PrintDialog.cs: initialize printer settings to 
21180         null - correct DefaultValues test #5
21181         * PrintPreviewControl.cs: Move PrintController
21182         initialization to GeneratePreview
21183         * PrintPreviewDialog.cs: 
21184         - Remove Preview generation     from Document_set(). It is 
21185         called on OnPaint
21186         - Throw InvalidPrinterException on CreateHandle if
21187         a Document is set but there are no printers or 
21188         printer is not valid.
21189         * ThemeWin32Classic: don't paint PrintPreviewControl
21190         if there is nothing to paint    
21191
21192 2006-11-28  Miguel de Icaza  <miguel@novell.com>
21193
21194         * Form.cs: Add another popular method.
21195
21196         * TabPage.cs: ditto.
21197
21198 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21199
21200         * MenuItem.cs: Fixed a warning.
21201         * InternalWindowManager: Fixed a warning.
21202
21203 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21204
21205         * MenuItem.cs:
21206         - When cloning a menu also clone MdiList and clone the 
21207           window menu items properly (as the forms and menuitems
21208           are kept in an internal hashtable, these need updating 
21209           as well)
21210         - Rewrote the window menu code, menu items are added in the
21211           order the forms were added to their parent, and they are
21212           updated every time the window menu is shown (before the
21213           list was only generated once, in the current order of the
21214           forms, and would never be updated). A checkmark is shown
21215           next to the item corresponding to the active mdi child.
21216
21217 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21218
21219         * XplatUIStructs.cs: 
21220         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
21221         
21222         * XplatUIWin32.cs: 
21223         - Added TME_NONCLIENT to TMEFlags.
21224         - Handles WM_NCMOUSEMOVE in GetMessage to 
21225           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
21226
21227         * MdiWindowManager:
21228         - Now merges mdi child menu to parent menu when maximized.
21229         - Recalculate NC areas of both mdi child and mdi parent. 
21230           Fixes #79757 (4).
21231           on window state and size changes.Fixes #79844 (3).
21232         - Handle WM_NCCALCSIZE to properly calculate borders.
21233
21234         * Form.cs:
21235         - Add/remove to the mdi containers list of mdi children 
21236           in the order they are added.
21237         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
21238           to the maximized mdi child.
21239         
21240         * InternalWindowManager.cs:
21241         - Only execute a click on the control buttons on the mouse up,
21242           not on the mouse down. Show the state of the button 
21243           (was only showing Normal state, never Pressed state). The
21244           pressed button now follows the mouse (if you click the Close 
21245           button and move the mouse over the Maximize button, the 
21246           Maximize button will be shown as pressed). Since Win32 does
21247           not generate WM_NCLBUTTONUP if you release the button outside
21248           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
21249           it as a mouse up.
21250         
21251         * ThemeWin32Classic.cs:
21252         - Draw a missing border around mdi child forms. Fixes #79844 (2).
21253
21254         * MdiClient.cs:
21255         - Added a list of forms which contains the order the forms are
21256           added to the mdi parent.
21257         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
21258         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
21259         - If the active form changes set the scrollbars to the top
21260           of the Z order, otherwise the form could hide them.
21261         - Scrollbars are now sized according to ClientSize, not 
21262           to Size, and they take into account the other scrollbar
21263           to determine maximum.
21264         
21265 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
21266         
21267         * XplatUI.cs:
21268         * XplatUIDriver.cs:
21269         * XplatUIX11.cs:
21270         * XplatUIWin32.cs:
21271         * XplatUIOSX.cs:
21272         - Added RequestAdditionalWM_NCMessages for windows to 
21273           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
21274           Currently only implemented in XplatUIWin32.
21275
21276 2006-11-27  Chris Toshok  <toshok@ximian.com>
21277
21278         * Hwnd.cs: only add the hwnd to the windows hash in
21279         set_WholeWindow and set_ClientWindow if whole_window/client_window
21280         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
21281
21282 2006-11-27  Mike Kestner  <mkestner@novell.com>
21283
21284         * ComboBox.cs: remove redundant OnDropDown call.  It is called
21285         from the ComboListBox.ShowWindow code. Fixes #79969.
21286
21287 2006-11-27  Chris Toshok  <toshok@ximian.com>
21288
21289         * Hwnd.cs: remove the setters for ExposePending and
21290         NCExposePending - noone uses them.
21291
21292 2006-11-27  Jackson Harper  <jackson@ximian.com>
21293
21294         * TextControl.cs: new param for ReplaceSelection which determines
21295         whether we select the new selection, or set the cursor to the end
21296         of the new selection.
21297         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
21298         pasting, select the new text.
21299         * RichTextBox.cs: Use new param for ReplaceSelection.
21300
21301 2006-11-27  Jackson Harper  <jackson@ximian.com>
21302
21303         * TextBoxBase.cs: Set the selection to the caret after the caret
21304         is moved, otherwise they get out of sync.
21305
21306 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
21307
21308         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
21309         it fixes #80015
21310
21311 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
21312
21313         * ThemeWin32Classic.cs: 
21314         - Fix toolbar drop down arrow position.
21315         - Fix drop down appearance when ToolBar.Appearance is normal,
21316         it fixes #80018.
21317         
21318 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
21319
21320         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
21321         * Control.cs: Same.
21322         * UpDownBase.cs: Same.
21323         * ButtonBase.cs: Same.
21324         * ScrollBar.cs: Same.
21325         * TrackBar.cs: Same.
21326         * PictureBox.cs: Same.
21327         * UserControl.cs: Same.
21328         * Label.cs: Same.
21329         * ListControl.cs: Same.
21330         * TextBoxBase.cs: Same.
21331         * ListView.cs: Same.
21332         * RichTextBox.cs: Same.
21333         * TreeView.cs: Same.
21334
21335 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
21336
21337         * PrintDialog.cs:
21338         - Text label for where 
21339         - Text label comment was not shown
21340
21341 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
21342
21343         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
21344
21345 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
21346
21347         * InternalWindowManager.cs: 
21348         - Handle WM_PARENTNOTIFY to activate the form
21349         if any child control is clicked.
21350         - The form is only sizable if not minimized.
21351
21352         * MdiWindowManager.cs:
21353         - Save the IconicBounds if the form is moved.
21354         - Rework SetWindowState, now the window bounds 
21355         are stored only if the old window state is Normal.
21356         
21357         * MdiClient.cs:
21358         - In SetWindowStates store the old window state if 
21359         the window is maximized and restore window state if
21360         the window looses focus.
21361         - Don't handle any scrollbar value changes if 
21362         initializing the scroll bars. Fixes #79771.
21363         - Reworked ArrangeIconicWindows. Current algorithm
21364         tests bounds agains all other minimized windows, if
21365         any intersections create new bounds (going left to 
21366         right, bottom to top) and then test again. When 
21367         successful the bounds are saved and never computed
21368         again. Fixes #79774.
21369
21370 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
21371
21372         * InternalWindowManager.cs: Added HandleTitleBarUp.
21373
21374 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
21375
21376         * NumericUpDown.cs: In .NET 1.1, user entered text is still
21377         hexadecimal in ParseUserEdit.
21378
21379         
21380 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
21381
21382         * MdiWindowManager.cs: 
21383         - Handle a click on the form's icon to show the 
21384         system menu (when maximized). Fixes #79775.
21385         - Change the existing click handler for the form's
21386         icon when not maximized to show on MouseUp.
21387         Fixes #79776.
21388
21389         * Form.cs: In OnResize only layout the mdi child's
21390         parent if it actually has a parent. Might not if
21391         the window is closing.
21392
21393
21394 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
21395
21396         * MdiClient.cs: Ignore active MDI client for text of parent, if
21397         child has no text set.
21398
21399 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
21400
21401         * ToolBar.cs: Fixed ToString to match MS.
21402
21403 2006-11-22  Andreia Gaita  <avidigal@novell.com>
21404
21405         * NumericUpDown: 
21406         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
21407         update inner values on set. Fixes #79966.
21408         - Override OnLostFocus to update value on NET 2. Fixes #79950.
21409         - Fix hexadecimal parsing.
21410         
21411         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
21412         parent. Fixes #79957
21413
21414 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21415
21416         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
21417         the actual size has to be queried, since if height /
21418         width is negative Win32 changes it to 0. 
21419         Fixes #79999 on Windows.
21420         
21421         * XplatUIX11.cs: Set height / width to 0 if negative
21422         in SetWindowPos. Fixes #79999 on Linux.
21423         
21424 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
21425
21426         * ThemeWin32Classic.cs: Fix text redenring when button is
21427         pressed.
21428
21429 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
21430
21431         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
21432         and later navigate by mouse. Fixes #79528.
21433
21434 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
21435
21436         * ToolBar.cs: Set default value for TabStop to false in
21437         constructor, it fixes remaining behavior of bug #79863.
21438
21439 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21440
21441         * MdiWindowManager.cs:
21442         * InternalWindowManager.cs:
21443         - Moved a few methods specific to Mdi from 
21444         InternalWindowManager to MdiWindowManager.
21445         Fixes #79996.
21446         
21447 2006-11-21  Chris Toshok  <toshok@ximian.com>
21448
21449         * XplatUIOSX.cs: stub out InvalidateNC.
21450
21451         * XplatUIWin32.cs: implement InvalidateNC using the call I found
21452         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
21453
21454         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
21455
21456         * XplatUIDriver.cs: add InvalidateNC abstract method.
21457
21458         * XplatUI.cs: add InvalidateNC.
21459
21460 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
21461
21462         * ToolBar.cs: Invalidate complete button area when pressed status 
21463         was changed.
21464         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
21465         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
21466         by 1 when button is pressed.
21467
21468 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
21469
21470         * ToolButton.cs: Invalidate middle of DropDown button when
21471         ToolBar theres DropDownArrows.
21472         * ThemeWin32Classic.cs: Change position of DropDown arrow and
21473         fix DropDown drawing operations.
21474
21475 2006-11-20  Chris Toshok  <toshok@ximian.com>
21476
21477         * NativeWindow.cs: fix the formatting of functions ('{' on the
21478         following line), and enable the thread exception dialog.
21479
21480         * Application.cs: remove the duplicate exception catching from
21481         here.
21482
21483 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
21484
21485         * Toolbar.cs: Triggers button click event when click on icon
21486         of dropdown ToolBarButton. Fixes #79912.
21487         
21488 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21489
21490         * Theme.cs:
21491         * ThemeWin32Classic.cs:
21492         - Added a property WindowBorderFont to enable themeing
21493           of mdi child windows' Text.
21494           
21495 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21496
21497         * InternalWindowManager.cs:
21498         * Form.cs:
21499         * MdiClient.cs:
21500         * MdiWindowManager.cs: 
21501         - If mdi child is maximized, set mdi parent's
21502           text to "Parent - [Child]". Fixes #79770.
21503         - If there is any maximized mdi child windows, only the active 
21504           window (and any new windows) is maximized, the rest are normal.
21505         - On a WindowState change only save mdi child's window bounds 
21506           if the old window state was normal. Fixes #79774.
21507         - The scroll bars are now calculated on hopefully all
21508           necessary events. Fixed #79771 / #79844->6 / #79906.
21509         - MdiClient.SizeScrollBars() now takes into account docked 
21510           controls in the parent when calculating available space.
21511         - InternalWindowManager now always repaints the entire title
21512           area. Fixes #79844->1/4/5.
21513         - Added RequestNCRecalc on mdi child windowstate changes.
21514           Fixes #79772.
21515
21516 2006-11-20  Mike Kestner  <mkestner@novell.com>
21517
21518         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
21519         in the MouseUp handler of the listbox and move the return handling
21520         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
21521
21522 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
21523
21524         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
21525
21526 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
21527
21528         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
21529           working in 1.2.x anymore. So, updated.
21530
21531 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
21532
21533         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
21534         NumberGroupSeparator of current culture instead of assuming en-US.
21535         Fixed bug #79967.
21536
21537 2006-11-17  Mike Kestner  <mkestner@novell.com>
21538
21539         * Control.cs: Add the concept of implicit bounds setting so that
21540         dock/undock round trips preserve explicitly set size/locations.
21541         Fixes #79313.
21542
21543 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
21544
21545         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
21546           can't handle those filters. (Fixes bug #79961)
21547
21548 2006-11-17  Chris Toshok  <toshok@ximian.com>
21549
21550         [ fixes the exit/crashes associated with #79835.  it's clearly
21551         suboptimal though, we need to figure out a better way to solve
21552         this. ]
21553         
21554         * PrintPreviewControl.cs: deal with the new invalid printer
21555         exceptions.
21556
21557         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
21558         and return false (so CommonDialog.ShowDialog doesn't actually show
21559         the form.)
21560
21561         * PrintDialog.cs: enable/disable the Ok button depending on
21562         whether or not the printer is valid.
21563
21564         * CommonDialog.cs (ShowDialog): only actually show the form if
21565         RunDialog returns true.
21566
21567 2006-11-17  Jackson Harper  <jackson@ximian.com>
21568
21569         * TextControl.cs: When soft splitting a line, mark it as a soft
21570         split line. Also carry over the current line break to the next
21571         line.
21572
21573 2006-11-17  Chris Toshok  <toshok@ximian.com>
21574
21575         * XplatUIX11.cs: when scrolling a window with an invalid area, we
21576         only want to shift the part of the invalid area that overlaps the
21577         area we're scrolling.  we also don't want to clear the invalid
21578         area unless the invalid area was entirely contained within the
21579         scrolling area.
21580
21581 2006-11-16  Chris Toshok  <toshok@ximian.com>
21582
21583         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
21584         also make sure to free the memory returned by XGetWindowProperty
21585         in GetText().
21586
21587         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
21588
21589 2006-11-16  Chris Toshok  <toshok@ximian.com>
21590
21591         * XplatUI.cs: add a new super secret way to get at the totally
21592         unsupported X11 backend.
21593
21594 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
21595
21596         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
21597
21598 2006-11-16  Jackson Harper  <jackson@ximian.com>
21599
21600         * TreeView.cs: Allow more explicit setting of top node position
21601         for scrollbars. Slower algo, but more accurate.
21602         - CollapseAll should maintain the current top node.
21603         * TextBoxBase.cs: When positioning the caret, use the line, pos
21604         method, since the x, y method does not grab the correct tag, and
21605         the caret height never gets set correctly. (Maybe I should just do
21606         away with the caret having its own height, and always use the
21607         carets current tag for height).
21608
21609 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
21610
21611         [Fixes 79778, 79923]
21612
21613         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
21614         Parent to the FosterParent instead.
21615
21616 2006-11-16  Jackson Harper  <jackson@ximian.com>
21617
21618         * TreeView.cs: Need to recalc the topnode when we expand or
21619         collapse. The scrolling methods can't handle this on their own,
21620         since they use differences between the last scroll position, and
21621         those difference get completely messed up since we are expanding
21622         nodes.  This problem should probably be fixed in the scrolling
21623         methods, so they can figure out exactly where they are, but this
21624         will slow things down a little.
21625         * ThemeWin32Classic.cs: Special case for groupboxes with empty
21626         strings, makes nunit-gui look a lot nicer.
21627
21628 2006-11-16  Chris Toshok  <toshok@ximian.com>
21629
21630         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
21631         the broken multithreaded event handling we have in here.  File
21632         this entry under "Why we should move to the new X11 backend".
21633
21634         Any thread can make it into UpdateMessageQueue, which gets events
21635         from the X socket - some of which could belong to hwnds being
21636         managed by a different thread.  We can also have multiple threads
21637         in UpdateMessageQueue at the same time, with each one reading from
21638         the X socket.  This leads to many problems, with the following
21639         solutions:
21640
21641         We can't use hwnd.Queue.Enqueue anywhere in here and must use
21642         EnqueueLocked.
21643
21644         The MotionNotify compression we do can't work across threads
21645         (without locking the entire queue, perhaps) since we call
21646         hwnd.Queue.Peek, so we just punt and don't compress motion events
21647         unless the owning thread is the one which got the X event.
21648
21649         ConfigureNotify is another fun one, since it modifies the hwnd's
21650         bounds and then enqueues the event.  We add a lock to Hwnd which
21651         is held when setting configure_pending to true (and enqueuing the
21652         event).
21653
21654         There is a race wrt the wake socket.  we need to make sure that
21655         only 1 thread is waiting on that socket, or else a thread could
21656         sleep waiting for data that never comes.  It's difficult (but not
21657         impossible) to make happen, because it seems to require something
21658         like the following:
21659
21660             1. Thread 1 polls on wake_receive
21661         
21662             2. poll returns saying there's data to be read on
21663                wake_receive.
21664         
21665             3. Thread 2 polls on wake_receive and immediately returns
21666                saying there's data to be read.
21667
21668             4. Thread 2 reads the wakeup byte from wake_receive
21669
21670             5. Thread 1 attempts to read the wakeup byte from
21671                wake_receive.
21672
21673             6. Thread 2 exits (due to a form closing, perhaps).
21674
21675             7. Thread 1 blocks forever.
21676         
21677         Fun, eh?
21678
21679         Fixing the Expose handling isn't done yet, and the races inherent
21680         in that piece of code are responsible for the drawing mistakes you
21681         see when generating expose events in a MT app (like NPlot).  This
21682         one is the likely to be the hardest to bandaid, and it doesn't
21683         appear to cause anything but drawing problems.  The other issues
21684         caused apps to exit or hang.
21685
21686         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
21687         called from a different thread than the one that should be calling
21688         these functions.
21689
21690         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
21691
21692 2006-11-15  Chris Toshok  <toshok@ximian.com>
21693
21694         * Application.cs: null out the context's MainForm when we exit
21695         RunLoop.  Fixes a newly checked in unit test as well as the last
21696         ODE from bug #79933.
21697
21698 2006-11-15  Chris Toshok  <toshok@ximian.com>
21699
21700         * Form.cs (set_Owner): allow a null value so we can clear the
21701         form's owner.
21702         (Dispose): set all our owned_form's Owner properties to null, and
21703         clear the owned_forms collection.
21704         (WM_CLOSE): clean up this a little bit.. still not right though.
21705
21706         * ApplicationContext.cs: OnMainFormClosed should only call
21707         ExitThreadCore if the main form isn't recreating.  Fixes unit
21708         test.
21709
21710 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21711
21712         [Fixes 78346]
21713
21714         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
21715
21716 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21717
21718         [Fixes 79433]
21719
21720         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
21721         keep popup window types from stealing focus from the main form
21722         on Windows.
21723
21724         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
21725
21726         * MenuAPI.cs: Set above flag to true.
21727
21728 2006-11-15  Chris Toshok  <toshok@ximian.com>
21729
21730         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
21731         the button being released is not in wParam.
21732
21733 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21734
21735         * Form.cs: Add the released button to MouseEventArgs.Button
21736         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
21737         on Win32.
21738
21739 2006-11-15  Chris Toshok  <toshok@ximian.com>
21740
21741         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
21742         GetText().  untested because it's unused in our implementation.
21743         Control.Text always caches the text, even if
21744         ControlStyles.CacheText is not set.
21745
21746         fixes bug #79939.
21747
21748 2006-11-15  Chris Toshok  <toshok@ximian.com>
21749
21750         [ fixes #79933 ]
21751         
21752         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
21753         message.  no hiding, no disposing.
21754
21755         in the WM_CLOSE handler, hide the form if it's modal.
21756
21757 2006-11-15  Chris Toshok  <toshok@ximian.com>
21758
21759         * XplatUIX11.cs: use AddExpose instead of sending a message.
21760         fixes textbox border drawing.
21761
21762 2006-11-15  Chris Toshok  <toshok@ximian.com>
21763
21764         * PropertyGridView.cs: keep from crashing on mouse move/down when
21765         the property grid is empty.
21766
21767 2006-11-14  Jackson Harper  <jackson@ximian.com>
21768
21769         * TextControl.cs: Make PageUp and PageDown more like the MS
21770         versions.
21771         * TextBoxBase.cs: When we set the text property position the
21772         cursor at the beginning of the document.
21773
21774 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21775
21776         * Form.cs: if a mdi child's WindowState has changed
21777         before it's creation, it would display wrong control
21778         buttons.
21779         
21780 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
21781
21782         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
21783           (Fixes bug #79927)
21784
21785 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
21786
21787         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
21788         the window gets to paint its borders even if the window is
21789         getting smaller.
21790         
21791         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
21792         otherwise the old control buttons would still be painted 
21793         if the window gets bigger.
21794         
21795         * PaintEventArgs.cs: add an internal method so that the clip 
21796         rectangle can be changed.
21797         
21798 2006-11-13  Chris Toshok  <toshok@ximian.com>
21799
21800         [ fixes bug #79745 ]
21801         
21802         * NotifyIcon.cs: lots of cleanup.
21803
21804         * X11Structs.cs: add an enum for XEMBED messages.
21805
21806         * XplatUIX11.cs: reindent one of the giant switch statements, it
21807         was taking up an additional tab stop, and this file is already way
21808         too wide for my laptop's screen.
21809
21810         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
21811         we get it, resize the hwnd to the WMNormalHints max_width/height.
21812
21813 2006-11-13  Jackson Harper  <jackson@ximian.com>
21814
21815         * TextBoxBase.cs: Compute the value changes for the mouse wheel
21816         teh simple way.
21817
21818 2006-11-13  Chris Toshok  <toshok@ximian.com>
21819
21820         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
21821         #79898.  force a reference to the Region to stick around so the
21822         unmanaged object isn't collected (rendering our handle in the MSG
21823         stale).
21824
21825 2006-11-13  Chris Toshok  <toshok@ximian.com>
21826
21827         * XplatUIX11.cs: fix #79917 for window managers which support
21828
21829         using XStoreName on the raw utf8, and we need to convert to
21830         COMPOUND_TEXT if it's non-latin1.
21831
21832 2006-11-13  Chris Toshok  <toshok@ximian.com>
21833
21834         * Form.cs (set_DialogResult): we need to set closing to false if
21835         we're setting our result to None.  fixes bug #79908.
21836
21837 2006-11-13  Jackson Harper  <jackson@ximian.com>
21838
21839         * TextControl.cs: When formatting text, compute the adjusted tag
21840         lengths correctly, using FindTag for the end tag instead of trying
21841         to figure it out outselves.
21842         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
21843         the item, ItemHeight doesn't work, because trees with large
21844         imagelists use those for their height
21845         * TreeView.cs: ActualItemHeight factors in the image height
21846         - compute left edge of checkboxes correctly
21847         - when expanding/collapsing move the bottom down one pixel, so we
21848         aren't moving part of the node
21849
21850 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21851
21852         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
21853         stack in PaintEventStart so that it won't get disposed by the gc
21854         before reaching PaintEventEnd.
21855
21856 2006-11-13  Jackson Harper  <jackson@ximian.com>
21857
21858         * TextBoxBase.cs: Don't select the word if we are on a line with
21859         no text.
21860         - We don't need to position the caret on mouse up, since the mouse
21861         move handler should be doing this
21862         - When double clicking a blank line, the caret is advanced to the
21863         next line.
21864
21865 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
21866
21867         * TreeNodeCollection.cs: Avoid duplicating indexer code.
21868
21869 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
21870
21871         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
21872         Fixes part of bug #79910.
21873
21874 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
21875
21876         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
21877           (bug #79903). Some minor string updates to match ms.
21878
21879 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21880
21881         * FileDialog.cs: Don't add an extension if the filename
21882           already ends with that extension.
21883
21884 2006-11-10  Jackson Harper  <jackson@ximian.com>
21885
21886         * TreeView.cs: Use the currently highlighted node for the
21887         BeforeSelect event.
21888         * TextBoxBase.cs: There is no need to expand selection on
21889         MouseMove.
21890         - CanUndo means 'is there any undo operations', not 'is undo
21891         allowed on this textcontrol. Fixed ClearUndo unit test.
21892
21893 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
21894
21895         * Button.cs: only perform click when button is Selectable (so as 
21896         not to activate default buttons when they're disabled)
21897         
21898         * Control.cs: Rewrite of the SelectNextControl and related 
21899         methods. HandleClick now selects next control if the current one
21900         is being disabled.
21901         
21902         * Form.cs: OnActivated selects next active control only if Load 
21903         has already occurred. If Load hasn't run, there's no point in 
21904         selecting here, Load might change the state of controls.
21905         
21906         * FocusTest.cs: Tests marked as working again for these fixes
21907
21908 2006-11-10  Chris Toshok  <toshok@ximian.com>
21909
21910         * XplatUIX11.cs: a couple of fixes.
21911
21912         - use XInternAtoms with almost all the atoms we need to register,
21913         instead of many, many calls to XInternAtom.  should help a bit on
21914         startup time, at the expense of making the code look a little
21915         worse.
21916
21917         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
21918         isn't reparented (which seems to be a clue that we're running fon
21919         compiz) and they have an Owner form.  This fixes the tool windows
21920         in paint.net when running under compiz.
21921
21922         - when setting the opacity of a window, support both the case
21923         where the window has been reparented and also when it hasn't been.
21924         Since compiz/beryl doesn't seem to reparent windows, and these are
21925         the only window managers which support translucency, I'm not sure
21926         why we need the hwnd.reparented case at all.. but leave it in.
21927         now we get translucent windows in paint.net under compiz/beryl.
21928
21929 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21930
21931         * FileDialog.cs: Always return the value for FilterIndex that
21932           was set. Internally convert it to values that make sense.
21933
21934 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21935         
21936         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
21937
21938 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21939
21940         * Toolbar.cs: Change default value of DropDownArrows to true, the 
21941         signature still using false to make it compatible with MS but the 
21942         initial value is true. Fixes #79855.
21943
21944 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21945
21946         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
21947           only available on Linux.
21948
21949 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
21950
21951         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
21952         reduce number of calls to redraw method during toolbar creation.
21953
21954 2006-11-09  Mike Kestner  <mkestner@novell.com>
21955
21956         * ListView.cs : raise SelectedIndexChanged when an item is selected
21957         programmatically via the Item.Selected property.  Gert's nice 
21958         ListViewSelectedIndexChanged test fixture now runs clean.
21959
21960 2006-11-09  Mike Kestner  <mkestner@novell.com>
21961
21962         * ListView.cs : raise SelectedIndexChanged when a selected item is
21963         removed from the item collection using Remove or RemoveAt.
21964
21965 2006-11-09  Mike Kestner  <mkestner@novell.com>
21966
21967         * ListView.cs : raise SelectedIndexChanged once per selected item
21968         for compat with MS.  Fixes #79849+.
21969
21970 2006-11-09  Chris Toshok  <toshok@ximian.com>
21971
21972         * TabControl.cs: initialize row_count to 0, and set it to 1 when
21973         we need to (if we have any tab pages).  Fixes unit test.
21974
21975 2006-11-09  Chris Toshok  <toshok@ximian.com>
21976
21977         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
21978         width is 0, not 3.  Fixes a unit test.
21979
21980 2006-11-09  Mike Kestner  <mkestner@novell.com>
21981
21982         * ListView.cs : use Implicit scrollbars so that focus isn't 
21983         stolen from the listview when they are clicked. Fixes #79850.
21984
21985 2006-11-09  Chris Toshok  <toshok@ximian.com>
21986
21987         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
21988         have a root item.  Fixes #79879.
21989
21990 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
21991
21992         * FileDialog.cs:
21993           - Fix ToString ()
21994           - An ArgumentException is now thrown if a wrong filter
21995             is applied (matches ms). The previous filter doesn't change
21996             anymore if an exception is thrown.
21997           - Changing the FileName property also affects FileNames
21998         * ColorDialog.cs: The length of the CustomColors array is always
21999           16. It doesn't matter if we use a smaller array or null to update
22000           or change the custom colors property.
22001         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
22002           for RootFolder if we get a undefined value.
22003
22004 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
22005
22006         * StatusBarPanel.cs: 
22007         - Width is set to MinWidth if Width is smaller than
22008         MinWidth. Fixes #79842.
22009         - MinWidth now always overrides Width (MSDN says MinWidth
22010         is set to Width when AutoSize = None, but they do not 
22011         behave like that).
22012         - Style has now the the correct default value.
22013         
22014 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
22015  
22016         * TrackBar.cs: 
22017         - The control is completely invalidated on 
22018         Got/LostFocus to draw the focus rectangle correctly.
22019         - When AutoSize then height is always 45 (width for 
22020         vertical controls).
22021         
22022         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
22023         on the mouse when moved and it doesn't move when grabbed
22024         until the mouse moves as well. Also fixed some wrong 
22025         calculations when clicking on the thumb (control thought
22026         click was outside of thumb and didn't grab it).
22027         Fixes some of the issues in #79718.
22028
22029 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
22030
22031         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
22032
22033 2006-11-08  Chris Toshok  <toshok@ximian.com>
22034
22035         * PropertyGridView.cs: only call ToggleValue if the item is not
22036         readonly.
22037
22038 2006-11-08  Jackson Harper  <jackson@ximian.com>
22039
22040         * TextBoxBase.cs: The RichTextBox and textbox have very different
22041         word selection methods.  Implement the textbox's simple word
22042         selection here, and let the RichTextBox override and provide it's
22043         own.
22044         - Don't do extra selection on mouseup
22045         * RichTextBox.cs: Use the documents word selection algorithm, I
22046         think ideally, this function will be pulled into the
22047         RichTextBox.cs code someday.
22048
22049 2006-11-08  Chris Toshok  <toshok@ximian.com>
22050
22051         * RootGridEntry.cs: new class to represent GridItemType.Root.
22052
22053         * CategoryGridEntry.cs: reformat, and add boilerplate.
22054         
22055         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
22056         returns the UI parent anyway, and we need special handling to
22057         implement the GetTarget method in the face of it.  Also, implement
22058         Select().
22059
22060         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
22061         a root grid item, and use that instead of PropertyGrid.grid_items.
22062         Also, make use of TypeConverters (and add limitted support for
22063         ICustomTypeDescriptors) when initially populating the grid.
22064         Arrays now show up more or less properly.
22065
22066 2006-11-08  Chris Toshok  <toshok@ximian.com>
22067
22068         * Application.cs: set the modal dialog to non modal after we close
22069         it.  Fixes bug #79866.
22070
22071 2006-11-08  Jackson Harper  <jackson@ximian.com>
22072
22073         * TextControl.cs: When combining lines carry over the line end
22074         style from the end line.
22075         - Invalidate the selected area when setting it, if it is visible.
22076         * TextBoxBase.cs: Only rich text box can do full line selects.
22077         - Make sure to set the cursor position when there is a click,
22078         otherwise two clicks in separate areas could cause a large chunk
22079         to be selected.
22080
22081 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
22082
22083         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
22084         Fixes #79863.
22085
22086 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
22087
22088         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
22089         time. Remove tooltips when ToolButton click events.  Fixes #79856.
22090
22091 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
22092
22093         * MenuAPI.cs: Ignore right click for menu actions and fixes
22094         menu border when clicked.  Fixes #79846.
22095
22096 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
22097
22098         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
22099         MouseState after create wParam for message, this fixes mouse button 
22100         equal none in mouse up events.
22101         
22102 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
22103
22104         * Control.cs : Focus() now calls Select to set the Container's
22105         Active Control and to give it focus. To avoid infinite recursion
22106         (because ActiveControl also calls Focus at one point), a check 
22107         is made in Focus with the help of a new internal variable
22108         is_focusing.
22109
22110 2006-11-07  Mike Kestner  <mkestner@novell.com>
22111
22112         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
22113         if there's a selection.  Fixes #79849.
22114
22115 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
22116
22117         * PropertyGrid.cs: Avoid fixed height of help description label.
22118         Fixes part of bug #79829.
22119
22120 2006-11-07  Chris Toshok  <toshok@ximian.com>
22121
22122         * XplatUIX11.cs: fix #79790 again, by using the
22123         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
22124
22125 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
22126
22127         * ToolBar.cs: Fix left click checking.
22128
22129 2006-11-07  Chris Toshok  <toshok@ximian.com>
22130
22131         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
22132
22133 2006-11-07  Chris Toshok  <toshok@ximian.com>
22134
22135         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
22136         PropertyManager unit tests.
22137
22138         * PropertyManager.cs: make property_name internal.
22139
22140 2006-11-07  Chris Toshok  <toshok@ximian.com>
22141
22142         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
22143         pass a unit test.  Also, don't set image_index to anything in
22144         response to setting the ImageList property.
22145
22146 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
22147
22148         * ToolBar.cs: Ignore click events when mouse button is not a
22149         left button, only accepts other button for dropdown menus.  
22150         Fixes #79854.
22151
22152 2006-11-07  Chris Toshok  <toshok@ximian.com>
22153
22154         * DataGrid.cs: make the back and parent row buttons a little less
22155         ugly.
22156
22157 2006-11-07  Jackson Harper  <jackson@ximian.com>
22158
22159         * TextBoxBase.cs: When converting to Text don't put line breaks in
22160         for soft line breaks.
22161         * TextControl.cs: There is an initial "fake" line in the document,
22162         this is now a soft break line, so that an extra line feed doesn't
22163         get added to the end of documents.
22164
22165 2006-11-07  Chris Toshok  <toshok@ximian.com>
22166
22167         [ fix bug #79778 ]
22168         
22169         * CurrencyManager.cs: if the list is readonly, don't bother
22170         checking if IBindingList.AllowNew is true.
22171
22172         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
22173         for non-DataRowView datasources..  or rather, make it not crash.
22174         (DataGridPaintRelationRow): make sure we limit the row painting to
22175         the area not covered by the row header, and make our cell width at
22176         least large enough to cover the relation area.  This allows grids
22177         that have relations but no rows to render correctly.
22178         (DataGridPaintRowContents): same type of changes here.
22179         (SetDataSource): move back to always calling
22180         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
22181         navigating back through relations.
22182         (HitTest): handle the case where we have no cells but have
22183         relations.  Right now we generate a hit in cell 0 of whatever the
22184         row is, not sure if this is strictly correct, but it works for our
22185         purposes.
22186         
22187         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
22188         bother doing anything.
22189
22190 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
22191
22192         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
22193         early version of StatusStrip.  Not responsible for eaten
22194         application or firstborn children.
22195
22196 2006-11-06  Chris Toshok  <toshok@ximian.com>
22197
22198         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
22199         call GetTabRect with a -1 index.  Fixes #79847.
22200
22201 2006-11-06  Jackson Harper  <jackson@ximian.com>
22202
22203         * TreeNodeCollection.cs: Update scrollbars after clearing.
22204
22205 2006-11-06  Chris Toshok  <toshok@ximian.com>
22206
22207         * NumericUpDown.cs: fix the ToString method for some unit test
22208         love.
22209
22210 2006-11-06  Chris Toshok  <toshok@ximian.com>
22211
22212         * PropertyGrid.cs:
22213         - set the initial SelectedGridItem if we can.
22214
22215         - Exclude non-mergable properties only if we're merging > 1
22216         object.  Merging 1 object isn't really merging, obviously.
22217
22218         - Handle PropertySort.NoSort just like Alphabetical, which is
22219         wrong of course, but at least gets things on the screen.
22220         
22221         * PropertyGridView.cs:
22222         - Add method "FindFirstItem" which finds the first property grid
22223         item, so we can select it by default.
22224
22225         - make use of GridEntry.CanResetValue.
22226
22227         - Don't call RedrawBelowItemOnExpansion here anymore, the
22228         individual GridEntry's will do that.
22229
22230         - Remove the ITypeDescriptorContextImpl internal class.
22231         
22232         * GridEntry.cs:
22233         - this class needs to implement ITypeDescriptorContext, as it's
22234         what MS's PropertyDescriptorGridEntry does, which means we can
22235         remove the ITypeDescriptorContextImpl internal class from
22236         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
22237
22238         - keep a reference to our PropertyGridView, and move the call to
22239         RedrawBelowItemOnExpansion here from PGV.  This means
22240         programmaticly setting Expanded actually does something visible.
22241
22242         - add a CanResetValue() function which takes into account our
22243         possibly multiple "selected_objects" in the merged case.  Shifting
22244         PropertyGridView to use this method fixes another unreported
22245         crasher found running the test for #79829.
22246
22247         - when Top or Bounds is updated, make sure the PropertyGridTextBox
22248         is updated to reflect this.
22249
22250         * CategoryGridEntry.cs: the ctor takes the PGV now.
22251         
22252 2006-11-06  Jackson Harper  <jackson@ximian.com>
22253
22254         * TextControl.cs: These are 1 based.
22255         * TextBoxBase.cs: When setting the selected text, don't change the
22256         selected text tags, this is done by ReplaceText, just position the
22257         cursor at the end of the new text.
22258
22259 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
22260
22261         * ListView.cs: Allow label edit only when, when LabelEdit is
22262           set to true.
22263
22264 2006-11-06  Jackson Harper  <jackson@ximian.com>
22265
22266         * TextControl.cs: If a suitable wrapping position isn't found,
22267         just wrap right in the middle of a word.
22268
22269 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
22270
22271         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
22272           bug #79820.
22273
22274 2006-11-06  Jackson Harper  <jackson@ximian.com>
22275
22276         * TreeView.cs: Can't use the VisibleCount property when setting
22277         scrollbar heights, because this doesn't take into account whether
22278         or not the horz scrollbar just came visible.
22279
22280 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
22281
22282         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
22283         activated.  Fixes #79369, #79832.
22284
22285 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
22286
22287         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
22288           had to remove support for links that point to a directory. FileInfo
22289           returns no usefull information (means, the directory they point to)
22290           for such links. Replaced some empty string ("") with String.Empty.
22291
22292 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
22293
22294         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
22295         NullReferenceException when attempting to remove node that is not in
22296         collection. Throw NullReferenceException when null is passed to 
22297         Remove. Allow first element of the collection to be removed. Fixes
22298         bug #79831.  In GetEnumerator ().Current return null if positioned 
22299         before the first element of the collection. In GetEnumerator ().Reset,
22300         position before first element of the collection.
22301
22302 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
22303
22304         * PropertyGrid.cs: To match MS, remove default title and description
22305         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
22306         buttons.
22307
22308 2006-11-04  Chris Toshok  <toshok@ximian.com>
22309
22310         * Theme.cs: add a Clamp method, just for kicks.
22311
22312         * ThemeWin32Classic.cs: clamp all color components to [0..255].
22313
22314 2006-11-04  Chris Toshok  <toshok@ximian.com>
22315
22316         * Form.cs: if the form isn't visible, Close() does nothing.
22317
22318 2006-11-03  Chris Toshok  <toshok@ximian.com>
22319
22320         * Form.cs (Close): if the form is modal, don't Dispose of it, only
22321         Hide it.
22322         (WndProc): don't Dispose after handling the WM_CLOSE message.
22323
22324         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
22325         them as such, instead of using casts from Control to Form.  Also,
22326         don't Dispose of the modal dialog when we fall out of the loop -
22327         Close() it instead.
22328
22329         fixes bug #79813.
22330
22331 2006-11-03  Chris Toshok  <toshok@ximian.com>
22332
22333         * Control.cs (Dispose): only go through the dispose thing if we're
22334         @disposing, and we haven't already been disposed.  Fixes bug
22335         #79814.
22336
22337         * Form.cs: no reason to call "base.Dispose()" here instead of
22338         "Dispose()".
22339
22340 2006-11-03  Mike Kestner  <mkestner@novell.com>
22341
22342         * ComboBox.cs : use ToString instead of casts in AddItem for
22343         sorting functionality.  Fixes #79812.
22344
22345 2006-11-03  Chris Toshok  <toshok@ximian.com>
22346
22347         * Application.cs: pave the way for actually using the thread
22348         exception dialog.  it's ifdefed out at the moment.
22349
22350 2006-11-03  Chris Toshok  <toshok@ximian.com>
22351
22352         * ThreadExceptionDialog.cs: until we get a better layout, actually
22353         hide the details textbox and label when we shouldn't see them.
22354
22355 2006-11-03  Jackson Harper  <jackson@ximian.com>
22356
22357         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
22358         multiline textboxes anymore.  This method also determines the
22359         width/height of a textboxes canvas area.
22360         - Sorta a revert of the last patch.  For multiline just position
22361         the controls, then bail.  This way the scrollbar width won't be
22362         altered.
22363
22364 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
22365
22366         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
22367         it dont need.  Fixes #79537.
22368
22369 2006-11-02  Jackson Harper  <jackson@ximian.com>
22370
22371         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
22372         send the status after firing the DndOver event.
22373
22374 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
22375
22376         * TrackBar.cs: Now orientation only switches height / width if
22377         the control's handle is created (Win32 does it like this). Also 
22378         fixed a typo in ToString() for a test to pass, changed the 
22379         exception thrown in set_LargeChange and set_SmallChange to 
22380         match Win32 behaviour, and added TrackBar tests to the unit 
22381         tests.
22382
22383 2006-11-02  Chris Toshok  <toshok@ximian.com>
22384
22385         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
22386         not _NET_WM_STATE_NO_TASKBAR.
22387
22388 2006-11-02  Jackson Harper  <jackson@ximian.com>
22389
22390         * TextControl.cs: Increment count by one, since in the update view
22391         count - 1 is used.
22392
22393 2006-11-02  Jackson Harper  <jackson@ximian.com>
22394
22395         * TextBoxBase.cs: Use client rectangle not bounds for checking if
22396         the mouse is in the client rectangle (duh).
22397
22398 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
22399         
22400         * TrackBar.cs: Fixed trackbar jumping around when clicking
22401         on it - the trackbar was not detecting correctly at which
22402         side of the thumb the click was done. (fixes #79718)
22403
22404 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
22405
22406         * ListBox.cs: scroll visible area when change SelectedIndex to
22407         a non visible area.  Fixes #79481.
22408
22409 2006-11-01  Jackson Harper  <jackson@ximian.com>
22410
22411         * TextControl.cs: When replacing the selection move the selection
22412         start/end/anchor to the end of the new text.
22413
22414 2006-11-01  Jackson Harper  <jackson@ximian.com>
22415
22416         * XplatUIWin32.cs: When setting the parent change the controls
22417         visibility to it's visibility flag, not to it's old parents
22418         visibility (.Visible walks the parent chain).
22419
22420 2006-11-01  Chris Toshok  <toshok@ximian.com>
22421
22422         * XplatUIX11.cs: revert the #79790 fix, as the simple.
22423         XSetTransientForHint fix breaks paint .net's tool windows.  more
22424         work needed for that one.
22425
22426 2006-11-01  Chris Toshok  <toshok@ximian.com>
22427
22428         * ScrollBar.cs: throw ArgumentException instead of Exception in
22429         LargeChange/SmallChange setters.  fixes unit tests.
22430
22431 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
22432
22433         * ContainerControl.cs: reverted rev.67183 (which was itself
22434         a reversion of rev.66853... eh).
22435         
22436         * Control.cs: Fixes Reflector hang by changing Focus() call
22437         to what it was before rev.66643 (calling Select() here sets 
22438         ActiveControl, which in some situations calls back Focus and 
22439         eventually does a stack overflow). Temp fix.    
22440         Changes to GetNextControl() to not look for children to select when
22441         parent cannot be selectable (so it looks for siblings instead)  
22442         
22443 2006-10-31  Mike Kestner  <mkestner@novell.com>
22444
22445         * CheckedListBox.cs : off by one error in returned index from
22446         ObjectCollection.Add.  Fixes #79758.
22447
22448 2006-10-31  Chris Toshok  <toshok@ximian.com>
22449
22450         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
22451         calls for the textbox/spinner, to keep from recursing to the point
22452         where we crash.  Fixes #79760.
22453
22454 2006-10-31  Chris Toshok  <toshok@ximian.com>
22455
22456         * ListControl.cs (set_SelectedValue): don't throw exceptions on
22457         null/"" value, just return.  matches ms's behavior and fixes some
22458         failing tests.
22459
22460 2006-10-31  Chris Toshok  <toshok@ximian.com>
22461
22462         * Control.cs (set_Capture): make a logic a little easier to
22463         follow.
22464
22465         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
22466         if it's being destroyed.  A necessary fix surely, but a bandaid
22467         also, to fix the stuck capture problem in bug #78413.
22468
22469 2006-10-31  Chris Toshok  <toshok@ximian.com>
22470
22471         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
22472         convention of clearing hwnd.ClientRect when we set the
22473         width/height (so it'll be recalculated by Hwnd).
22474
22475 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
22476
22477         * ContainerControl.cs: reversed Contains check from
22478         ActiveControl due to hanging problems. This fix
22479         partly regresses #79667 (button does not have
22480         initial focus), so this might be a symptom for 
22481         a larger parenting problem (set_ActiveControl
22482         is being called but the child control does
22483         not have the parent set yet?)   
22484         
22485 2006-10-31  Mike Kestner  <mkestner@novell.com>
22486
22487         * MenuAPI.cs : fix keynav when menu is click activated.
22488
22489 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
22490
22491         * ToolStrip*: Version 0.2.
22492
22493         * MenuStrip.cs: Version 0.1.
22494
22495         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
22496
22497 2006-10-30  Chris Toshok  <toshok@ximian.com>
22498
22499         [ fixes the oversized notify icon issue in bug #79745 ]
22500         
22501         * NotifyIcon.cs: scale the icon down to the size we're given by
22502         the XplatUI layer (this would be faster if we did it once instead
22503         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
22504         since it's never invoked.
22505
22506         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
22507         pixels high by default, so let's hardcode our systray icon to that
22508         size.  The SYSTEM_TRAY protocol should really have a way for
22509         client apps to query for the correct icon size.. but oh well.  A
22510         couple of patches to deal with the screwy client_window ==
22511         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
22512         instance, and also make sure we don't XSelectInput twice).
22513
22514 2006-10-30  Chris Toshok  <toshok@ximian.com>
22515
22516         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
22517         recreating forms.  Control recreation is the bane of my existence.
22518         Fix it in a way that keeps everyone happy.
22519
22520 2006-10-30  Chris Toshok  <toshok@ximian.com>
22521
22522         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
22523         just non-CHILD ones.  otherwise sometimes scrollbars end up with
22524         client_windows not being resized to the proper size (ReportBuilder
22525         shows this extremely well).
22526
22527 2006-10-30  Chris Toshok  <toshok@ximian.com>
22528
22529         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
22530         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
22531         showing up in the gnome taskbar.  Fixes bug #79790.
22532
22533 2006-10-30  Chris Toshok  <toshok@ximian.com>
22534
22535         * ApplicationContext.cs: guard against a NRE.
22536
22537         * Application.cs: null out the old MainForm for the context, so we
22538         don't try to use it again once it's disposed.  Fixes bug #79783.
22539
22540 2006-10-30  Chris Toshok  <toshok@ximian.com>
22541
22542         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
22543         BindingContext, set the data source directly, otherwise do the
22544         lazy approach - the actual ListManager will be created when we get
22545         a BindingContext. Fixes bug #79700.
22546
22547 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
22548
22549         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
22550           XplatUIX11.cs: Remove old 2 parameter SetVisible.
22551
22552         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
22553
22554 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
22555
22556         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
22557         of SetVisible that allows a window to be shown, but not activated.
22558         This is needed on Windows for MenuStrip, and can probably be used
22559         with MainMenu and ComboBox to fix the focus stealing issues on
22560         Windows.
22561
22562         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
22563
22564 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
22565
22566         * PictureBox.cs: Fix the output of the ToString method.
22567
22568 2006-10-29  Chris Toshok  <toshok@ximian.com>
22569
22570         * Control.cs (get_TopLevelControl): fix bug #79781.
22571
22572 2006-10-29  Chris Toshok  <toshok@ximian.com>
22573
22574         * ListControl.cs (set_DataSource): throw Exception here, not
22575         ArgumentException, to match MS behavior.
22576
22577 2006-10-29  Chris Toshok  <toshok@ximian.com>
22578
22579         * Form.cs: remove the try-catch's around calls to GetWindowState.
22580         We can just check the return value.
22581
22582         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
22583         Instead return -1.
22584
22585         * XplatUI.cs: Add note about additional return value for
22586         GetWindowState.
22587
22588 2006-10-29  Chris Toshok  <toshok@ximian.com>
22589
22590         * Control.cs (CreateHandle): when we create our handle, we also
22591         create the handles of our child controls.  Fixes one of the
22592         Control unit tests (CH11).
22593
22594 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
22595
22596         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
22597
22598 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
22599
22600         * ThemeClearlooks.cs: A little speedup.
22601
22602 2006-10-27  Chris Toshok  <toshok@ximian.com>
22603
22604         * Control.cs: implement Control.FromChildHandle in a way that
22605         matches the docs (and fixes the failed test.)
22606
22607 2006-10-27  Chris Toshok  <toshok@ximian.com>
22608
22609         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
22610         comments).
22611
22612         * DataGrid.cs: implement ResetForeColor such that the tests
22613         succeed.
22614         
22615 2006-10-27  Chris Toshok  <toshok@ximian.com>
22616
22617         * ToolBarButton.cs: setting text/tooltiptext to null results in it
22618         being set to "".  Fixes bug #79759.
22619
22620 2006-10-27  Jackson Harper  <jackson@ximian.com>
22621
22622         * TextControl.cs: We need to clear the entire selection area when
22623         setting the start, otherwise multiline selections are still
22624         visible.
22625
22626 2006-10-26  Chris Toshok  <toshok@ximian.com>
22627
22628         * PropertyGridView.cs: 
22629
22630         - ifdef all the code specific to the double
22631         buffer case, and provide some alternatives in the non-doublebuffer
22632         code, which makes heavy use of XplatUI.ScrollWindow to move things
22633         around without having to invalidate (and cause flicker).  There
22634         are still some drawing problems in the non-doublebuffered case, so
22635         DOUBLEBUFFER is defined by default.
22636
22637         - Fix the way dropdowns are handled.  now we explicitly watch for
22638         the events which might cause the dropdown to close, and break out
22639         of the nested event loop there.  This gets rid of all Capture
22640         code, at the expense of the Msg special casing.  Seems to work,
22641         though, and fixes bug #79743.
22642
22643 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
22644         * Control.cs: SetIsRecreating now recreates implicitly added
22645         child controls as well. Finally fixes #79629. The flag passed to 
22646         SetIsRecreating has also been removed since it wasn't used.
22647         
22648 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22649
22650         * PageSetupDialog.cs: Clean some code, fix some bits, 
22651         add some checks, and add a printer sub-dialog.
22652
22653 2006-10-26  Chris Toshok  <toshok@ximian.com>
22654
22655         * PropertyGrid.cs: make set_SelectedObject call
22656         set_SelectedObjects, and move the duplicate logic to the
22657         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
22658
22659         * PropertyGridView.cs: hide the textbox when we get a
22660         SelectedObjectsChanged event.
22661
22662         Fixes bug #79748.
22663
22664 2006-10-26  Chris Toshok  <toshok@ximian.com>
22665
22666         * PropertyGridView.cs: deal with the type converter not supporting
22667         GetStandardValues() or GetStandardValues() returning null, which
22668         is does in the default case.  Fixes #79742.
22669
22670 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
22671
22672         * CheckedListBox.cs: nunit no longer crashes when selecting 
22673         Project/Edit menu option
22674         
22675 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
22676
22677         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
22678         is no menu selected. fixes #79739
22679
22680 2006-10-25  Chris Toshok  <toshok@ximian.com>
22681
22682         * PropertyGridView.cs: factor out the splitter invalidation code
22683         into the SplitterPercent setter, and for kicks implement the
22684         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
22685         amount in either direction.
22686
22687 2006-10-25  Chris Toshok  <toshok@ximian.com>
22688
22689         * PropertyGridView.cs: do some cleanup of the brush used to draw
22690         text - read only fields should be grayed out.  not sure how to do
22691         this with the textbox, though.  but the textbox's should also be
22692         readonly now at least.  Also, hide/show the textbox when resizing
22693         the control.
22694         
22695         * CursorConverter.cs: use System.Reflection when getting the
22696         properties of Cursors, as TypeDescriptor.GetProperties isn't
22697         returning static properties.
22698
22699 2006-10-25  Chris Toshok  <toshok@ximian.com>
22700
22701         * PropertyGridView.cs: factor out the up/down handling, and reuse
22702         it for page up/down.  also add End/Home support.
22703
22704 2006-10-25  Chris Toshok  <toshok@ximian.com>
22705
22706         * PropertyGridView.cs:
22707
22708         - ensure the selected grid item is visible in the scrolled area,
22709         fixes bug #79572.
22710
22711         - fix Keys.Down handling when you're on the last item in the
22712         propertygrid.
22713
22714 2006-10-25  Mike Kestner  <mkestner@novell.com>
22715
22716         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
22717         clicks too.  Fixes #79725.
22718
22719 2006-10-24  Chris Toshok  <toshok@ximian.com>
22720
22721         * PropertyGrid.cs: use property.Converter instead of
22722         TypeDescriptor.GetConverter(property.PropertyType), so we catch
22723         TypeConverters declared on the property as well as on the
22724         PropertyType.  Fixes bug #79678.
22725
22726 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
22727
22728         * MimeIcon.cs, Mime.cs:
22729           Fallback to the default platform handler if no shared mime info
22730           stuff exists (fixes #79693).
22731
22732 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22733         * ContainerControl.cs: Incorrect contains check in ActiveControl 
22734         from previous fix (duh).
22735
22736 2006-10-20  Chris Toshok  <toshok@ximian.com>
22737
22738         * PropertyGridView.cs: the dropdown should be MIN(number of items
22739         in list, 15).  Fixes #79551.
22740
22741 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22742         Fixes #79384, #79394, #79652, #79667
22743         * Application.cs: 
22744         
22745         - Modal windows are now destroyed in the proper order for windows
22746         
22747         * ContainerControl.cs:
22748         
22749         - ActiveControl setter has more conditions on when to return:
22750                 - if we're reselecting the active control, but it actually
22751                 didn't have focus (window hidden or some such), it runs
22752                 - if the active control being selected doesn't actually 
22753                 exist in the container, it returns
22754         
22755         * Form.cs
22756         
22757         - The ShowDialog now gets the current form as the owner when
22758         invoking without parameters, and correctly activates the owner 
22759         when returning
22760         
22761         * MessageBox.cs
22762         
22763         - MessageBox now catches the Escape key to exit
22764
22765 2006-10-20  Chris Toshok  <toshok@ximian.com>
22766
22767         * PropertyGridView.cs: fix a number of issues (bug #78565, and
22768         most of bug #79676):
22769
22770         - you can navigate around the property grid with the arrow keys.
22771
22772         - the dropdown is sized properly when the pg has a vertical
22773         scrollbar.
22774
22775         - fix the indentation for subentries, and properly select the
22776         entire label rect.
22777
22778         - fix the gray bar's drawing (only draw it to the last element,
22779         not for the height of the control.  Also make sure we draw that
22780         last horizontal grid line.
22781
22782         - use the same mechanism the datagrid uses wrt the editing textbox
22783         when scrolling/resizing/etc.  Namely, we hide it first, do the
22784         operation, then show it again (if it's still visible).
22785         
22786         - aggressively remove a lot of unnecessary refreshes (and also
22787         calls to Invalidate(). call more limited variants, and only redraw
22788         what we need.)
22789         
22790         * PropertyGrid.cs:
22791
22792         - when we're populating the merged collection, fill in the UI
22793         parent with either the passed in item, or the category item we
22794         create.
22795
22796         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
22797
22798         * GridItem.cs: drop some fully qualified names.
22799         
22800         * GridEntry.cs: add a "UIParent", which is basically the parent
22801         treenode.
22802
22803         * GridItemCollection.cs: add an IndexOf method.
22804
22805 2006-10-20  Mike Kestner  <mkestner@novell.com>
22806
22807         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
22808         a working win32 NC invalidation mechanism, we can't invalidate
22809         menus.  [Fixes #79705]
22810
22811 2006-10-20  Mike Kestner  <mkestner@novell.com>
22812
22813         * ListBox.cs : don't update the VScrollbar if the list is empty,
22814         just hide it.  [Fixes #79692]
22815
22816 2006-10-20  Jackson Harper  <jackson@ximian.com>
22817
22818         * RichTextBox.cs: Handle some special chars better, and don't skip
22819         the entire group when we encounter a special char that we don't
22820         handle correctly.
22821
22822 2006-10-18  Chris Toshok  <toshok@ximian.com>
22823
22824         * PropertyGridView.cs: address a number of issues from bug #79676,
22825         mostly of the cosmetic variety.
22826
22827         - The highlight rectangle for indented items not extends all the
22828         way to the left.
22829
22830         - Indented items aren't indented so much.
22831
22832         - the dropdown is properly sized width-wise if the pg has a
22833         vertical scrollbar.
22834
22835 2006-10-18  Chris Toshok  <toshok@ximian.com>
22836
22837         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
22838         systray stuff is rather convoluted to begin with.
22839
22840         systray icons are a single window for some reason (that I haven't
22841         figured out yet), and for them, client_window == whole_window.
22842         Given the way the tests are structured elsewhere to determine
22843         which paints are pending (client vs. nc), that situation will
22844         always yield PAINT, not NCPAINT.  So, if we have a pending
22845         nc_expose and no pending expose, remove the hwnd from the paint
22846         queue, and also set nc_expose_pending to false, to keep us from
22847         blocking further expose's adding the hwnd to the paint queue.
22848
22849         phew.  like i said, a rather convoluted change.  Fixes the
22850         notifyicon repaint issues in bug #79645.
22851
22852 2006-10-18  Chris Toshok  <toshok@ximian.com>
22853
22854         * Form.cs: when getting the backcolor of the form, don't get
22855         base.BackColor, as this allows parents to influence the background
22856         color.  This breaks mdi forms.  Instead, if the background_color
22857         is empty, return the default.
22858
22859 2006-10-18  Chris Toshok  <toshok@ximian.com>
22860
22861         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
22862         to being private instead of internal static.
22863
22864         * Control.cs: remove all the stupid ParentWaitingOnRecreation
22865         crap, it wasn't working for more deeply nested controls anyway,
22866         and we already have the is_recreating flag - use that instead.
22867         Before calling DestroyHandle in RecreateHandle, recurse through
22868         the control tree setting it to true.  this returns the recreate
22869         code to much of its original simplicity, while now guaranteeing we
22870         actually recreate everything we're supposed to.  This change gets
22871         fyireporting actually showing mdi children.
22872
22873 2006-10-17  Chris Toshok  <toshok@ximian.com>
22874
22875         * Form.cs: remove some debug spew, and collapse some duplicate
22876         code at the end of SetClientSizeCore.
22877
22878         * XplatUIX11.cs: 
22879         - add some more debug spew here too wrt Destroy handling.
22880         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
22881         in Control's handling of WM_DESTROY.
22882         - Remove the handling of zombie window DestroyNotifies from the
22883         event loop - we don't need it.  Now the only DestroyNotifies we
22884         actually handle are ones generated by X.
22885         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
22886         match gtk's (functioning) handling of this. This keep metacity
22887         from leaving droppings in the form of wm borders with no window
22888         contents all over the place.
22889
22890         * Control.cs:
22891         - add a bunch of debug spew wrt control recreation.
22892         - fix a bug where we weren't tracking Visible properly on
22893         recreated hwnds.
22894         - fixed the WM_PAINT double buffer handling to support re-entrant
22895         calls (yes, i know it's gross, but it's happening to us).
22896
22897 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22898         * ThemeWin32Classic.cs: changed drawing of selected days
22899         to make them look better.
22900
22901 2006-10-16  Chris Toshok  <toshok@ximian.com>
22902
22903         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
22904         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
22905
22906         * XplatUIX11.cs: move away from using hwnd.client_dc and
22907         hwnd.non_client_dc and on to a stack of dc's (and in window's
22908         case, PAINTSTRUCT's), so we can deal with nested Paint calls
22909         without puking or not disposing of Graphics objects.
22910
22911         * XplatUIOSX.cs: same.
22912
22913         * XplatUIWin32.cs: same.
22914
22915 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22916
22917         * FileDialog.cs: Don't call on_directory_changed inside
22918           OnSelectedIndexChanged (it changes the SelectedIndex too).
22919           Instead move it to OnSelectionChangeCommitted.
22920
22921 2006-10-13  Chris Toshok  <toshok@ximian.com>
22922
22923         * XplatUIX11.cs: more Destroy work.  the current code does the
22924         following things, in order:
22925
22926         1. Enumerates all handles of all controls at or below the one
22927         being destroyed, in pre-order.  As it is doing this, it marks the
22928         handles as zombie and clears all references to them.
22929         
22930         2. calls XDestroyWindow on the window passed in.
22931
22932         3. SendMessage's WM_DESTROY to all he handles in the accumulated
22933         list.
22934
22935 2006-10-13  Chris Toshok  <toshok@ximian.com>
22936
22937         * XplatUIX11.cs: set hwnd.zombie to true before calling
22938         SendMessage (WM_DESTROY).  this keeps us from marking the new
22939         window a zombie, and also keeps us from calling sendmessage at
22940         all.
22941
22942 2006-10-13  Jackson Harper  <jackson@ximian.com>
22943
22944         * TextControl.cs: Do not show the caret and selection at the same
22945         time.  Reduces ugliness by 35%.
22946
22947 2006-10-13  Chris Toshok  <toshok@ximian.com>
22948
22949         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
22950         zombie after we do the recursive call, so we actually do call
22951         SendMessage on the children controls.
22952         (GetMessage): if we find a pending paint event for a zombie hwnd,
22953         remove the hwnd from the paint queue, or else it will always be
22954         there (and we'll effectively loop infinitely)
22955
22956 2006-10-13  Mike Kestner  <mkestner@novell.com>
22957
22958         * MenuItem.cs : add Selected format under keynav too.
22959         Fixes #79528.
22960
22961 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
22962
22963         * PropertyGrid.cs: Fixed some NRE's and small difference between our
22964         implementation and that of MS.
22965
22966 2006-10-13  Chris Toshok  <toshok@ximian.com>
22967
22968         * Control.cs (OnInvalidated) only futz with the invalid_region if
22969         the control is double buffered.  this fixes the apparent hang in
22970         the ListView unit tests.  Someone needs to make the
22971         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
22972
22973 2006-10-13  Chris Toshok  <toshok@ximian.com>
22974
22975         * PropertyGridView.cs:
22976
22977         - do a little refactoring so that only one place calls
22978         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
22979         else call that.  Also make it Refresh, since there are redraw bugs
22980         otherwise (we should take a look at that...)
22981
22982         - do a little more refactoring work to share the body of code
22983         involved with the drop down.  it was duplicated in the code
22984         dealing with the listbox handling and in the code dealing with the
22985         UITypeEditors.
22986
22987         - add a Capture to the dropdown form's control once it's
22988         displayed, and add a MouseDown handler that checks to make sure
22989         the position is inside the control.  If it's not, close the
22990         dropdown.  This fixes #78190.
22991
22992         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
22993         if the value is different than the initial value.
22994         
22995 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
22996
22997         * Control.cs: see #78650
22998         - Fixed GetNextControl for several cases:
22999                 - Changed FindFlatForward to return 
23000                 correct sibling control when more than one
23001                 control has same TabIndex as the currently 
23002                 focused one.
23003                 - Changed FindFlatBackward to loop children
23004                 from last to first and apply same logic as in
23005                 FindFlatForward
23006                 - Changed FindControlForward to search for
23007                 children when control is not a container
23008                 but has children, or search for siblings if
23009                 control is a container...
23010                 - Changed FindControlBackward   to continue
23011                 searching for child controls when hitting 
23012                 Panel-like parents
23013                 
23014         - Fixed Focus method to update ActiveControl
23015         (FocusTest.FocusSetsActive failure)
23016         
23017         * TabControl.cs:
23018         - Focus rectangle now refreshes when gaining
23019         or losing focus
23020         - Removed grab for Tab key on IsInputKey that 
23021         was keeping tab navigation from working (#78650)
23022
23023 2006-10-13  Chris Toshok  <toshok@ximian.com>
23024
23025         * PropertyGridView.cs:
23026         - Rewrite SetPropertyValue to loop over SelectedGridItem's
23027         SelectedObjects.
23028
23029         - Deal with GridItem.Value == null a few places.
23030
23031         * PropertyGrid.cs: 
23032         - replace the PopulateGridItemCollection with a pair of methods
23033         which compute the intersection of all the properties in the
23034         SelectedObjects array.  Fixes #79615.
23035
23036         - Throw ArgumentException from set_SelectedObjects if there's a
23037         null in the array.
23038
23039         - Add GetTarget method which can be used to traverse up the
23040         GridItem.Parent chain.  It depends on the assumption that
23041         selected_objects for different GridEntries are always in the same
23042         order (a safe assumption).  Use this method and loop over all the
23043         selected objects in the entry when calling RemoveValueChanged and
23044         AddValueChanged.
23045         
23046         * GridEntry.cs: Make this handle multiple selected objects.
23047         .Value returns null if not all the selected objects share the same
23048         value.
23049
23050 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
23051         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
23052           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
23053           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
23054           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
23055           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
23056         add additional functionality.
23057
23058 2006-10-12  Mike Kestner  <mkestner@novell.com>
23059
23060         * ErrorProvider.cs : new ToolTipWindow ctor sig.
23061         * HelpProvider.cs : new ToolTipWindow ctor sig.
23062         * ToolTip.cs : remove ToolTip param from Window sig since it is
23063         not used.
23064         * ToolBar.cs : add tooltip support.  Fixes #79565.
23065
23066 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
23067
23068         * ComboBox.cs: move the events in set_SelectedIndex to 
23069         after the call to HighlightIndex in order to avoid 
23070         possible recursion and subsequent problems with the call
23071         to HighlightIndex and include a range check in 
23072         set_HighlightIndex. Fixes #79588
23073         
23074 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
23075
23076         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
23077         to ui thread's settings instead of sunday. 
23078         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
23079
23080 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
23081
23082         * DateTimePicker.cs
23083         * MonthCalendar.cs
23084         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
23085         and implement missing functionality (selecting different parts 
23086         of the date and edit them individually with the keyboard).
23087         
23088 2006-10-11  Chris Toshok  <toshok@ximian.com>
23089
23090         * Control.cs (OnInvalidated): fix NRE relating to last change.
23091
23092 2006-10-11  Chris Toshok  <toshok@ximian.com>
23093
23094         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
23095         atoms in _NET_WM_STATE here if the window is maximized.  We need
23096         to do this because we're *replacing* the existing _NET_WM_STATE
23097         property, so those atoms will be lost otherwise, and any further
23098         call to GetWindowState will return Normal for a window which is
23099         actually maximized.  Fixes #79338.
23100
23101 2006-10-11  Jackson Harper  <jackson@ximian.com>
23102
23103         * TextControl.cs: Special case for setting selection end to
23104         selection start, we basically kill the anchor.
23105         - some todo comments.
23106
23107 2006-10-11  Chris Toshok  <toshok@ximian.com>
23108
23109         * Control.cs: switch to using an "invalid_region" to track which
23110         parts of the image buffer need updating.  This is more code than
23111         the simple fix from r66532.  That version just attempted to always
23112         fill the entire buffer on redraw, which turns out to be
23113         inefficient when invalidating small rectangles.  This version
23114         simply adds the invalid rectangle to the invalid region.  When we
23115         get any WM_PAINT message we see if it can be filled using the
23116         image buffer, and if it can't (if the paint event's clip rectangle
23117         is visible in the invalid region) we first fill the image buffer.
23118         So, the image buffer is still a cache, we just fill it lazily.
23119
23120         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
23121         need it any longer.
23122
23123 2006-10-11  Chris Toshok  <toshok@ximian.com>
23124
23125         * XplatUIX11.cs (SetWindowPos): we need to update both position as
23126         well as size after calling XMoveResizeWindow.  This keeps us from
23127         ignoring future SetWindowPos calls.  Fixes the disappearing
23128         DateTimePicker in the ToolBarDockExample from bug #72499.
23129
23130 2006-10-11  Chris Toshok  <toshok@ximian.com>
23131
23132         * TextBoxBase.cs: reorder things a bit when it comes to
23133         resizing-causing-recalculation.  we were recalculating the
23134         document when our position was changed, which shouldn't happen.
23135         We only care about size changes.  Clear up some more redundant
23136         recalculation calls while I'm at it.  This makes the toolbar dock
23137         example snappy when you're just dragging toolbars around (since it
23138         causes a relayout whenever you move one.)
23139
23140 2006-10-11  Chris Toshok  <toshok@ximian.com>
23141
23142         * ToolBarButton.cs (get_Rectangle): this only returns
23143         Rectangle.Empty if Visible == false, or Parent == null.
23144         Parent.Visible doesn't matter.
23145
23146 2006-10-10  Chris Toshok  <toshok@ximian.com>
23147
23148         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
23149         by .net 1.1, so switch to an internal method instead.
23150
23151 2006-10-10  Chris Toshok  <toshok@ximian.com>
23152
23153         * Control.cs (WM_PAINT): when a control is double buffered we draw
23154         initially to the ImageBuffer and then copy from there.  But when a
23155         parent control which has child controls is double buffered, the
23156         initial drawing doesn't encompass the entire ClientRectangle of
23157         the parent control, so we end up with uninitialized bits (this is
23158         easily seen by dragging the top toolbar in
23159         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
23160         manually set the ClipRectangle of the paint_event (only the one we
23161         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
23162         of the nastiness in bug #72499.
23163
23164         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
23165         which we use in Control.cs's WM_PAINT handling.
23166
23167 2006-10-10  Jackson Harper  <jackson@ximian.com>
23168
23169         * TextBoxBase.cs: Finish off the autoscrolling stuff.
23170
23171 2006-10-10  Chris Toshok  <toshok@ximian.com>
23172
23173         * Cursor.cs: Apply a slightly different patch to the one suggested
23174         in #79609.
23175
23176 2006-10-10  Jackson Harper  <jackson@ximian.com>
23177
23178         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
23179         not the parent form.
23180         * TextControl.cs: use difference in old line count vs new count to
23181         calculate how many lines were added, this takes into account soft
23182         line breaks properly.
23183
23184 2006-10-10  Chris Toshok  <toshok@ximian.com>
23185
23186         * LinkLabel.cs: don't call MeasureCharacterRanges against a
23187         rectangle located at 0,0 and the size of the text.  Use
23188         ClientRectangle instead.  This fixes rendering of non-left aligned
23189         link labels.
23190
23191 2006-10-10  Jackson Harper  <jackson@ximian.com>
23192
23193         * TextBoxBase.cs: When we set the selection start position the
23194         caret.
23195         * TextControl.cs: Need to update the caret when we decrement it to
23196         zero.
23197         - Make sure that the selection_visible flag gets reset to false if
23198         the selection isn't visible.  Before this you could get it set to
23199         visible by changing the selection start, then changing the end to
23200         equal the start.
23201
23202 2006-10-09  Jackson Harper  <jackson@ximian.com>
23203
23204         * TreeView.cs: Don't update scrollbars when we aren't visible.
23205         * TreeNodeCollection.cs: Only need to update scrollbars if being
23206         added to an expanded visible node or the root node.
23207
23208 2006-10-09  Chris Toshok  <toshok@ximian.com>
23209
23210         * XplatUIX11.cs (SendMessage): fix NRE.
23211
23212 2006-10-09  Jackson Harper  <jackson@ximian.com>
23213
23214         * TextBoxBase.cs: Implement horizontal autoscrolling.
23215         * TextControl.cs: Add a movement types that allows moving forward
23216         and backwards without wrapping.
23217
23218 2006-10-09  Mike Kestner  <mkestner@novell.com>
23219
23220         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
23221         with focus "expansion" of labels.  Fixes #79532 and then some.
23222         * ThemeWin32Classic.cs : add LineLimit to ListView label format
23223         when wrapping.
23224
23225 2006-10-09  Jackson Harper  <jackson@ximian.com>
23226
23227         * TextBoxBase.cs: Set the default max values to MaxValue since
23228         we use the scrollbar for autoscrolling and the default value is
23229         100.  If we don't do this the caret won't keep up with typing
23230         after about 18 characters.
23231         * TextControl.cs: Make sure the selection is offset by the
23232         viewport x.  This fixes selection when using auto scrolling.
23233
23234 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
23235         
23236         * Form.cs: The active control should be selected after the 
23237         OnLoad so that any child control initialization that affects
23238         the selection is done. Fixes #79406
23239
23240 2006-10-06  Chris Toshok  <toshok@ximian.com>
23241
23242         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
23243         to have no evil effects.
23244
23245         - Stop selecting StructureNotifyMask on non-toplevel windows.
23246
23247           The only way children should be resized is by using the SWF api,
23248           and we already send WM_WINDOWPOSCHANGED messages in those cases.
23249           Toplevel windows can be interacted with via the window manager,
23250           and so we keep the input mask there.
23251
23252           The other event StructureNotifyMask gives us (that we care
23253           about) is DestroyNotify.  The code is already structured such
23254           that it assumes we won't be getting a DestroyNotify event for
23255           the window we pass to XDestroyWindow (which is what
23256           StructureNotifyMask is supposed to guarantee.)  So, that code
23257           shouldn't be affected by this either.
23258
23259         - Stop selecting VisibilityChangeMask altogether.
23260
23261           We weren't doing anything with the resulting events anyway.
23262         
23263         This vastly reduces the number of X requests and events we see
23264         when resizing/laying out a large ui.
23265
23266 2006-10-06  Chris Toshok  <toshok@ximian.com>
23267
23268         * ScrollableControl.cs (DisplayRectangle): we need to take into
23269         account the DockPadding regardless of whether or not auto_scroll
23270         == true.  rework this slightly to this effect, and fix bug #79606,
23271         and part of #72499 (you can now see the drag handles and drag
23272         toolbars around).
23273
23274 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
23275
23276         * ListViewItem.cs: Collections of selected and checked items are now
23277         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
23278         we mark the collection "dirty".
23279         * ListView.cs: Marked collections readonly. Modified UpdateSelection
23280         to only clear SelectedItems when a new item is selected and MultiSelect
23281         is enabled. CheckedItems and SelectedItems now subscribe to Changed
23282         event of ListViewItemCollection, and mark its list dirty whenever
23283         that event is fire. This allows us to return selected/checked items 
23284         in the same order as they are in the Items collection. This matches
23285         the MS behavior.
23286
23287 2006-10-06  Chris Toshok  <toshok@ximian.com>
23288
23289         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
23290         right mouse clicks.  Fixes bug #79593.
23291
23292 2006-10-06  Chris Toshok  <toshok@ximian.com>
23293
23294         * Splitter.cs: doh, fix splitters that don't want to cancel the
23295         movement when you drag them.  Also, impose the limits on the
23296         values we send to the SplitterMovingEvent.  Fixes #79598.
23297
23298 2006-10-06  Jackson Harper  <jackson@ximian.com>
23299
23300         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
23301         since we use this for auto scrolling also.
23302
23303 2006-10-05  Chris Toshok  <toshok@ximian.com>
23304
23305         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
23306         beginning to think that most datagrid column types don't need this
23307         method.  Fixes bug #79392.
23308
23309 2006-10-05  Chris Toshok  <toshok@ximian.com>
23310
23311         * DataGrid.cs: move back to a more lazy scheme for creating the
23312         CurrencyManager, so we aren't updating it every time you set
23313         either DataSource or DataMember.  Also, don't call
23314         RecreateDataGridRows if the currency manager hasn't changed.
23315
23316 2006-10-05  Chris Toshok  <toshok@ximian.com>
23317
23318         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
23319         emitted, SelectedIndex should already be updated.  Fixes bug
23320         #78929.
23321
23322 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
23323
23324         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
23325           ToolStripTextBox.cs: Initial commit.
23326         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
23327
23328 2006-10-05  Jackson Harper  <jackson@ximian.com>
23329
23330         * TabControl.cs: We need to invalidate the tab control area when
23331         new ones are added (duh).
23332
23333 2006-10-03  Chris Toshok  <toshok@ximian.com>
23334
23335         * Form.cs (ProcessDialogKey): if the focused control is in this
23336         form and is a button, call its PerformClick method here.  Fixes
23337         #79534.
23338
23339 2006-10-04  Jackson Harper  <jackson@ximian.com>
23340
23341         * TabPage.cs: Ignore setting of Visible, and add an internal
23342         method for setting the controls visibility.  TabPage's Visible
23343         property is a little strange on MS, this seems to make us
23344         compatible, and fixes cases where people set all the tab pages to
23345         visible.
23346         * TabControl.cs: Use the new internal setting on tab pages
23347         visibility.
23348
23349 2006-10-03  Mike Kestner  <mkestner@novell.com>
23350
23351         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
23352
23353 2006-10-03  Mike Kestner  <mkestner@novell.com>
23354
23355         * ListView.cs : use is_visible instead of Visible to check if 
23356         scrollbars should be placed/sized.  Also some max_wrap_width
23357         love for LargeIcon view.  [Fixes #79533]
23358
23359 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
23360
23361         * TextControl.cs :
23362           Make set_TextAlign() do actually update the align. Fixed #78403.
23363
23364 2006-10-03  Chris Toshok  <toshok@ximian.com>
23365
23366         * DataGrid.cs: fix a crash when switching datasources if the
23367         vertical scrollbar is at someplace other than Value = 0.  Also,
23368         reduce the number of recalculation passes we do in SetDataSource
23369         from 2 to 1.
23370
23371 2006-10-03  Jackson Harper  <jackson@ximian.com>
23372
23373         * TextBoxBase.cs: Move the if value the same bail check up, we
23374         don't want to empty the document if it is already empty, this
23375         seems to severly mess up the caret.  TODO: I should probably fix
23376         the empty statement to update teh caret somehow.
23377
23378 2006-10-03  Chris Toshok  <toshok@ximian.com>
23379
23380         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
23381         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
23382         reflection, an internal row type, properties on said type, etc.)
23383         will work with our datagrid.  Fixes #79531.
23384
23385 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
23386
23387         * FileDialog.cs: Don't crash if a path is not accessible
23388           (System.UnauthorizedAccessException). Fixes #79569.
23389         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
23390           a ':' too. Return unknown icon for those paths/files.
23391
23392 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
23393
23394         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
23395         GetContainerControl returns null.
23396
23397 2006-10-02  Chris Toshok  <toshok@ximian.com>
23398
23399         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
23400         call to XGetWindowAttributes instead of "handle".  fixes an X
23401         error using notifyicon after the NotifyIconWindow to Form base
23402         class switch.
23403
23404 2006-10-02  Chris Toshok  <toshok@ximian.com>
23405
23406         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
23407         server grab and looping we need to do to get down to the most
23408         deeply nested child window.
23409         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
23410         QueryPointer again after the WarpPointer so we can generate a
23411         proper (fake) MotionNotify event to be enqueued in the destination
23412         window's queue.
23413         (GetCursorPos): call QueryPointer.
23414
23415         Fixes #79556.
23416
23417 2006-10-02  Jackson Harper  <jackson@ximian.com>
23418
23419         * NotifyIcon.cs: Derive the notify icon from a form, so things
23420         like FindForm work on it.
23421         - Swallow the WM_CONTEXTMENU message, since that is generated on
23422         mouse down, and context menu is a mouse up kinda guy.  I believe
23423         the correct fix here is probably to make the notify icon entirely
23424         NC area, but this seems to work fine for anyone not manipulating
23425         WndProc.
23426
23427 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
23428
23429         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
23430           ToolStripItemCollection.cs, ToolStripLabel.cs,
23431           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
23432           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
23433           Initial implementation.
23434         * TextRenderer.cs: Provide padding to MeasureText.
23435
23436 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
23437
23438         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
23439         of ButtonBaseAccessibleObject. Fix bug #79552.
23440
23441 2006-10-02  Jackson Harper  <jackson@ximian.com>
23442
23443         * MdiWindowManager.cs: When maximizing use the containers client
23444         rect, not it's bounds, so nc area is accounted correctly.
23445         - Use the parent form's size for the menu position, since the
23446         client isn't always the full form size.
23447
23448 2006-10-01  Chris Toshok  <toshok@ximian.com>
23449
23450         * ScrollableControl.cs: make sure neither right_edge or
23451         bottom_edge are < 0, since they're used as LargeChange for the
23452         horiz/vert scrollbars respectively.  Fixes #79539.
23453
23454 2006-10-01  Chris Toshok  <toshok@ximian.com>
23455
23456         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
23457         the xplatuix11 code can cause us to destroy/recreate our handle.
23458
23459         * XplatUIX11.cs
23460         (SystrayAdd):
23461         - this code can be invoked many times for the same Hwnd.  Make
23462           sure we only destroy the client window once (the first time this
23463           method is called).  This fixes bug #79544.
23464         - Remove the call to the improperly bound XSync.  why we had two
23465           bindings to this, I will never know, but this call resulted in
23466           events being discarded from the queue(!).
23467         - correct a misunderstanding of _XEMBED_INFO - the second atom is
23468           not our current state but the state we wish to be in.  So, 0 if
23469           we don't want to be mapped.  Change it to 1.
23470         (SystrayRemove): The XEMBED spec makes mention of the fact that
23471         gtk doesn't support the reparent of client windows away from the
23472         embedder.  Looking at gtksocket-x11.c seems to agree with this.
23473         The only avenue we have for removing systray icons is to destroy
23474         them.  We don't want the handle to go away for good, though, so
23475         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
23476         #79545.
23477         
23478 2006-10-01  Chris Toshok  <toshok@ximian.com>
23479
23480         * Form.cs (WndProc): inline the native_enabled variable usage into
23481         the cases in which it's used.  Fixes #79536.
23482
23483 2006-09-29  Mike Kestner  <mkestner@novell.com>
23484
23485         * ListView.cs : toggle the selection state for ctrl clicks in 
23486         multiselect mode. [Fixes #79417]
23487
23488 2006-09-29  Mike Kestner  <mkestner@novell.com>
23489
23490         * ListView.cs : kill CanMultiSelect and refactor the selection
23491         code to support multiselection in the absence of mod keys. Steal
23492         arrow/home/end keys by overriding InternalPreProcessMessage to
23493         restore regressed keynav behavior.
23494         [Fixes #79416]
23495
23496 2006-09-29  Jackson Harper  <jackson@ximian.com>
23497
23498         * MdiClient.cs: Repaint the titlebars when the active window is
23499         changed.
23500
23501 2006-09-29  Chris Toshok  <toshok@ximian.com>
23502
23503         * Application.cs: when entering a runloop with a modal, make sure
23504         the hwnd is enabled.  Fixes #79480.
23505
23506 2006-09-29  Chris Toshok  <toshok@ximian.com>
23507
23508         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
23509         when ListManager.CanAddRows == false, bump us back one.
23510
23511         * DataGridColumnStyle.cs (ParentReadOnly): remove the
23512         listmanager.CanAddRows check.  This makes ArrayLists uneditable
23513         using a datagrid, which is not right.
23514         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
23515         is an IEditable, but call property_descriptor.SetValue regardless.
23516         fixes #79435.
23517
23518 2006-09-29  Chris Toshok  <toshok@ximian.com>
23519
23520         * DataGridBoolColumn.cs: we need to test equality in the face of
23521         possible null values (as is the case with the default NullValue).
23522         This patch keeps us from crashing in that case.
23523
23524 2006-09-29  Jackson Harper  <jackson@ximian.com>
23525
23526         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
23527         here, since it will get called for every node collection in the
23528         tree. This is now done in the treeview once the sorting is
23529         finished.
23530         * TreeView.cs: Recalculate the visible order, and update the
23531         scrollbars after sorting, set the top nope to the root so that the
23532         recalc actually works.
23533
23534 2006-09-29  Chris Toshok  <toshok@ximian.com>
23535
23536         * LinkLabel.cs: more handling of the default link collection in
23537         the face of LinkArea manipulation.  The default link collection
23538         contains 1 element (start=0,length=-1).  If the user sets LinkArea
23539         to anything and the links collection is the default, clear it.
23540         Then only add the link if its nonempty.  Fixes #79518.
23541
23542 2006-09-29  Chris Toshok  <toshok@ximian.com>
23543
23544         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
23545         piece correctly when we hit a '\n'.  Fixes #79517.
23546
23547 2006-09-29  Chris Toshok  <toshok@ximian.com>
23548
23549         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
23550         change the binding of gdk_init_check to take two IntPtr's, and
23551         pass IntPtr.Zero for both of them.  Fixes #79520.
23552
23553 2006-09-29  Mike Kestner  <mkestner@novell.com>
23554
23555         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
23556         [Fixes #78779]
23557
23558 2006-09-28  Jackson Harper  <jackson@ximian.com>
23559
23560         * XplatUIX11.cs: When translating NC messages make sure we go from
23561         whole window to screen, not client window to screen.
23562         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
23563         method doesn't exist
23564         - Skip over controls that aren't forms when arranging.
23565
23566 2006-09-28  Jackson Harper  <jackson@ximian.com>
23567
23568         * XplatUIWin32.cs: Clip the rect to the parent window.
23569         * XplatUIStructs.cs: Add clipping modes struct.
23570         * InternalWindowManager.cs: New private method that factors title
23571         bar heights in when calculating the pos of an NC mouse message.
23572         - Use SendMessage to force a paint when the form's size is changed
23573         instead of painting the decorations immediately.
23574         - Don't let the NC button click messages get to DefWndProc,
23575         because they will attempt to handle windowing themself, and this
23576         messes up z-order (it will put them in front of the scrollbars).
23577         * XplatUIX11.cs: Make sure that we don't reset window managers if
23578         we already have one (ie the window is an MDI window).
23579
23580 2006-09-28  Chris Toshok  <toshok@ximian.com>
23581
23582         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
23583         menu code really needs going over.
23584
23585 2006-09-27  Chris Toshok  <toshok@ximian.com>
23586
23587         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
23588         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
23589         window is maximizable.  So, we need to make sure that even if we
23590         clear the border/wm frame of those functions, they're still
23591         available (basically, we remove the decoration without removing
23592         the function).  Half the fix for #79338.
23593
23594 2006-09-27  Chris Toshok  <toshok@ximian.com>
23595
23596         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
23597         Fixes bug #79515.
23598
23599 2006-09-27  Chris Toshok  <toshok@ximian.com>
23600
23601         * Splitter.cs: reorder things a bit so that we don't actually
23602         draw/move the splitter until after calling OnSplitterMoving.  This
23603         lets users cancel/disallow the movement by explicitly setting
23604         event.SplitX/SplitY.  Fixes #79372.
23605
23606 2006-09-27  Jackson Harper  <jackson@ximian.com>
23607
23608         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
23609         because it is most likely on a window being destroyed, and that
23610         will give us an X11 error.
23611
23612 2006-09-27  Chris Toshok  <toshok@ximian.com>
23613
23614         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
23615         the dropdown button now toggles between showing and hiding the
23616         dropdown.  Also, get rid of dropdown_form_showing and just use
23617         dropdown_form.Visible.  We still don't do a grab, but I'll leave
23618         that part to someone who has handled Capture-fu before.
23619
23620 2006-09-27  Chris Toshok  <toshok@ximian.com>
23621
23622         * DataGrid.cs: return false if alt isn't pressed when '0' is
23623         pressed.  this keeps the '0' key from being swallowed, and fixes
23624         bug #79350.
23625
23626 2006-09-27  Chris Toshok  <toshok@ximian.com>
23627
23628         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
23629         Calling Refresh (in response to a scrollbar event) screws up the
23630         scrollbar painting.  Fixes bug #78923.
23631
23632 2006-09-27  Chris Toshok  <toshok@ximian.com>
23633
23634         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
23635         then insert into hashtable" blocks threadsafe.
23636
23637 2006-09-27  Chris Toshok  <toshok@ximian.com>
23638
23639         * MessageBox.cs (CreateParams): the styles should be |'ed with our
23640         baseclass's, since otherwise the
23641         ControlBox/MinimizeBox/MaximizeBox assignments above have no
23642         effect.  This gets the close button back in messageboxes.
23643
23644 2006-09-27  Chris Toshok  <toshok@ximian.com>
23645
23646         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
23647         flag, not just != 0.  this makes flags that are actually multiple
23648         bits (like WS_CAPTION) work.  fixes bug #79508.
23649
23650 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
23651
23652         * PageSetupDialog.cs: add support for getting and settings the 
23653         paper size, source and orientation.
23654
23655 2006-09-26  Chris Toshok  <toshok@ximian.com>
23656
23657         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
23658         and caption == "", we need to remove the resize handles as well as
23659         the title bar.
23660
23661         * Control.cs (set_Text): turns out that setting Text on a form
23662         should change the WM styles on the window, since if ControlBox ==
23663         false, the only way to get a window border is to have a non-""
23664         Text property.  check winforms/forms/text.cs for an example.  so,
23665         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
23666         update both window styles and title.  This fixes a lot of dialogs
23667         (including the preferences dialog in MonoCalendar.)
23668
23669 2006-09-26  Chris Toshok  <toshok@ximian.com>
23670
23671         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
23672         control isn't a Form), call Win32ShowWindow to hide the window,
23673         but don't update the control Visible property.  When we reparent
23674         back to a parent control, call SetVisible in order for the
23675         window's visibility to be reinstated.
23676
23677         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
23678         the FosterParent.
23679
23680         * Control.cs (ControlCollection.Remove): remove that value.Hide()
23681         call for good, since it breaks MonoCalendar (and other things I'm
23682         sure.) Also, set all_controls to null *after* the owner calls,
23683         which end up regenerating it.
23684         (ChangeParent): allow new_parent to be == null, passing
23685         IntPtr.Zero down to XplatUI.
23686
23687         this fixes #79294 the right way.
23688
23689 2006-09-26  Mike Kestner  <mkestner@novell.com>
23690
23691         * GridEntry.cs : internal SetParent method.
23692         * PropertyGrid.cs : attach to property changed on the proper
23693         target if we have a hierarchical grid with subobjects. Setup
23694         GridItem.Parent for hierarchical items.
23695         * PropertyGridView.cs : Set value on the correct target for
23696         hierarchical grids. [Fixes #78903]
23697
23698 2006-09-26  Chris Toshok  <toshok@ximian.com>
23699
23700         * Control.cs (ChildNeedsRecreating): this should return true if
23701         either we're being recreated and the child is in our list, or our
23702         parent is waiting for our recreation.
23703
23704 2006-09-26  Chris Toshok  <toshok@ximian.com>
23705
23706         * Control.cs (ControlCollection.Remove): reinstate the
23707         value.Hide() call as suggested in bug #79294.
23708
23709 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
23710
23711         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
23712         coordinates (versus a relative move).
23713
23714 2006-09-26  Chris Toshok  <toshok@ximian.com>
23715
23716         * Control.cs: rework child recreation a little bit.  It turns out
23717         that we race between the DestroyNotify the WM_DESTROY message.  If
23718         the parent gets its DestroyNotify before the child gets the
23719         WM_DESTROY message, the child ends up not recreating (since the
23720         parent finishes its recreation on DestroyNotify, and the child
23721         checks ParentIsRecreating.)
23722
23723         So, instead we store off a list of all the child controls which
23724         need to be recreated when the parent control starts to recreate
23725         itself.  Then, when child controls get their WM_DESTROY message we
23726         check to see if they're in the parent's pending recreation list,
23727         and if so, we recreate.  This removes all dependency on ordering
23728         from the code and fixes the initial MonoCalendar upgrade dialog.
23729         
23730 2006-09-26  Jackson Harper  <jackson@ximian.com>
23731
23732         * TextControl.cs: Use the Line to get the length of the line,
23733         since soft line breaks can change the end line.
23734
23735 2006-09-26  Chris Toshok  <toshok@ximian.com>
23736
23737         * Control.cs (ControlCollection.AddImplicit): don't add the
23738         control again if it's already in one of our lists.  This keeps us
23739         from adding controls over and over again for comboboxes when their
23740         handle gets recreated (as the combobox adds implicit controls in
23741         OnHandleCreated).  Fixes the X11 errors in bug #79480.
23742
23743 2006-09-26  Jackson Harper  <jackson@ximian.com>
23744
23745         * TextControl.cs: When deleting characters make sure that any
23746         orphaned zero lengthed tags get deleted.
23747         - Fix ToString for zero lengthed tags.
23748
23749 2006-09-25  Jackson Harper  <jackson@ximian.com>
23750
23751         * TextControl.cs: When getting a tag at the location there can be
23752         multiple tags at the same spot, these are 0-lengthed tags that
23753         appear when extra formatting has been stuck in a location.  We
23754         need to pull out the last of these 0 lengthed tags.
23755
23756 2006-09-25  Jackson Harper  <jackson@ximian.com>
23757
23758         * TextControl.cs: Fix print out in debug method.
23759         * TextBoxBase.cs: When text is set bail if we are setting to the
23760         previous value.
23761         
23762 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
23763
23764         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
23765           It is now possible to change the selected index in a FontXXXListBox
23766           with the up and down arrow keys from the FontXXXTextBoxes.
23767           Also, send the FontXXXTextBox mouse wheel event to the corresponding
23768           FontXXXListBoxes to match ms.
23769
23770 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
23771
23772         * SystemInformation.cs: Return a clone of the theme's MenuFont because
23773         anyone can dispose it, anytime. All other properties returns enums, 
23774         structs or basic types so they don't need such tricks.
23775
23776 2006-09-22  Jackson Harper  <jackson@ximian.com>
23777
23778         * XplatUI.cs:
23779         * XplatUIWin32.cs:
23780         * Clipboard.cs:
23781         * DataFormats.cs:
23782         * XplatUIOSX.cs:
23783         * XplatUIDriver.cs: Update interface to add a primary selection
23784         flag, so the driver can use the primary selection buffer if
23785         needed.
23786         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
23787
23788         * RichTextBox.cs: We need to supply the data object to paste now
23789         (so we can choose to supply CLIPBOARD or PRIMARY).
23790         * TextBoxBase.cs: Supply data object to paste (see above).
23791         - Middle click uses the primary selection data object.
23792         
23793 2006-09-21  Chris Toshok  <toshok@ximian.com>
23794
23795         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
23796         of SetWMStyles.  It's still a rat's nest and is largely
23797         order-dependent which I dislike immensely.  This also fixes the X
23798         button disappearing from toplevel forms.
23799
23800 2006-09-21  Mike Kestner <mkestner@novell.com>
23801
23802         * ListBox.cs: move Jordi's click/dblclick raising code to the
23803         mouse up handler.
23804
23805 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
23806
23807         * ListBox.cs: Fixes 79450
23808
23809 2006-09-21  Mike Kestner <mkestner@novell.com>
23810
23811         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
23812         to deal with people updating the TreeNodeCollection after the tree
23813         is disposed.  "Fixes" 79330.
23814
23815 2006-09-20  Jackson Harper <jackson@ximian.com>
23816
23817         * TextControl.cs: Push the cursor record onto the undo stack
23818         before the delete action. This fixes 78651.
23819
23820 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
23821
23822         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
23823         CreateParams. Fixes 79329.
23824
23825 2006-09-19  Chris Toshok  <toshok@ximian.com>
23826
23827         * XplatUIX11.cs: a couple of blanket code massage passes to clean
23828         things up a bit.  First, get rid of the NetAtoms array (and the NA
23829         enum), and just embed the atoms as static fields.  Also, add a
23830         couple of functions (StyleSet and ExStyleSet) to clean up all the
23831         bitmask testing of styles.
23832
23833         * X11Structs.cs: remove the NA enum, not needed anymore.
23834         
23835 2006-09-19  Chris Toshok  <toshok@ximian.com>
23836
23837         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
23838         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
23839         added cleanup to get MessageBox titles appearing again, which were
23840         broken by my earlier fix for caption-less/ControlBox-less windows.
23841
23842 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
23843
23844         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
23845           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
23846           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
23847           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
23848           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
23849           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
23850           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
23851           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
23852           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
23853           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
23854           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
23855             Inital import.
23856         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
23857           ToolStripButton.cs: Stubs needed for above.
23858         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
23859
23860 2006-09-15  Chris Toshok  <toshok@ximian.com>
23861
23862         * XplatUIX11.cs:
23863         - make the MessageQueues hashtable Synchronized.
23864         
23865         - SendMessage: if the Hwnd is owned by a different thread, use the
23866         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
23867         thread.  Fixes bug #79201.
23868
23869 2006-09-15  Chris Toshok  <toshok@ximian.com>
23870
23871         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
23872         ControlBox == false, we disallow maximize/minimize/close.  If the
23873         form Caption is "" we also disallow move (and get rid of the Title
23874         decoration).  Unfortunately, regardless of how things are set,
23875         we're stuck with the Title and WM menu.
23876
23877 2006-09-15  Chris Toshok  <toshok@ximian.com>
23878
23879         * Application.cs: add locking around the static message_filters
23880         ArrayList, part of #79196.
23881
23882 2006-09-15  Chris Toshok  <toshok@ximian.com>
23883
23884         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
23885         Form.ControlBox == false, the window has no titlebar nor resize
23886         handles.  fixes bug #79368.
23887
23888 2006-09-15  Chris Toshok  <toshok@ximian.com>
23889
23890         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
23891         >= 0.  Fixes bug #79370.
23892
23893 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
23894         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
23895         * Control.cs:
23896             Add properties: LayoutEngine, Margin, DefaultMargin.
23897             Add method: GetPreferredSize.
23898             Move layout logic from PerformLayout to layout engines. 
23899
23900 2006-09-13  Chris Toshok  <toshok@ximian.com>
23901
23902         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
23903         fix for #79326 broke #78718, so this change addresses that.
23904
23905         - in SendWMDestroyMessages remove the call to
23906         CleanupCachedWindows, since we might be recreating the control and
23907         need to maintain the references to right Hwnd handles.  Also, set
23908         the zombie flag to true for each of the children in the hierarchy
23909         instead of calling hwnd.Dispose.  This will cause GetMessage to
23910         ignore all events for the window except for DestroyNotify.
23911
23912         - In GetMessage, ignore messages except for DestroyNotify for
23913         zombie hwnds.
23914         
23915         * Control.cs: revert the is_recreating fix from the last
23916         ChangeLog.  It's definitely "right", but it breaks switching from
23917         an MDI form to a non-MDI form.  Will need to revisit that.
23918
23919         * Hwnd.cs: add a zombie flag, which means "the
23920         client_window/whole_window handles are invalid, but we're waiting
23921         for the DestroyNotify event to come in for them".  Set the flag to
23922         false explicitly if setting WholeWindow/ClientWindow, and also
23923         when Disposing.
23924         
23925 2006-09-13  Chris Toshok  <toshok@ximian.com>
23926
23927         * XplatUIX11.cs: rework window destruction slightly.
23928
23929         - when destroying the windows associated with a control, we don't
23930         need 2 separate XDestroyWindow calls.  Just the one for the
23931         whole_window (or for client_window if whole_window is somehow
23932         IntPtr.Zero -- can this happen?) is enough.
23933
23934         - reworked SendWMDestroyMessages slightly, so we always dispose
23935         the child control hwnd's after sending the messages.
23936         
23937         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
23938         the two places it was used (one was even using hwnd.Handle and the
23939         other hwnd.client_window.  ugh), adding another call in
23940         SendWMDestroyMessages.  We need this new call because now the
23941         DestroyNotify events in the queue will be ignored for the child
23942         controls (as their hwnd's were disposed, and the window id's
23943         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
23944
23945         - this fixes bug #79326.
23946
23947 2006-09-13  Chris Toshok  <toshok@ximian.com>
23948
23949         * Control.cs: don't always set is_recreating to false at the end
23950         of RecreateHandle, since sometimes we're not done (and won't be
23951         until WndProc handles the WM_DESTROY message).  Also, set
23952         is_recreating to false in the WM_DESTROY handling code.  Part of
23953         the fix for bug #79326.
23954
23955 2006-09-13  Miguel de Icaza  <miguel@novell.com>
23956
23957         * X11DesktopColors.cs: Start the droppage of debugging messages.
23958
23959         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
23960
23961 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
23962
23963         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
23964
23965 2006-09-12  Chris Toshok  <toshok@ximian.com>
23966
23967         * DataGrid.cs (get_ListManager): if the list_manager is null, try
23968         to create it using SetDataSource.  Fixes bug #79151.
23969
23970 2006-09-11  Chris Toshok  <toshok@ximian.com>
23971
23972         * XEventQueue.cs: add a DispatchIdle property.
23973
23974         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
23975         either the queue is null, or the queue has DispatchIdle set to
23976         true.
23977         (DoEvents): set queue.DispatchIdle to false around the
23978         peek/translate/dispatch message loop in this method.  This keeps
23979         Application.Doevents from emitting idle events.  Part of the fix
23980         for #78823.
23981
23982 2006-09-11  Chris Toshok  <toshok@ximian.com>
23983
23984         * DataGrid.cs (set_DataSource): make this work for both the
23985         winforms/datagrid test and ReportBuilder.  It seems as though when
23986         we've created a ListManager (or maybe it's if we have a
23987         BindingContext?), when we set the DataSource it clears the
23988         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
23989         #79333.
23990
23991 2006-09-11  Chris Toshok  <toshok@ximian.com>
23992
23993         * XplatUIX11.cs: deal with queue being null, which happens in all
23994         the Clipboard functions.  Fixes one of the two problems mentioned
23995         in #78612.
23996
23997 2006-09-11  Chris Toshok  <toshok@ximian.com>
23998
23999         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
24000         button on various spots (including outside the menu) works closer
24001         to MS, and doesn't crash.  Fixes #79343.
24002
24003 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
24004
24005         * ListView.cs: Do not initialize item_sorter in init. To match MS,
24006         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
24007         and the internal comparer is set. When a new ListViewItemSorter is set,
24008         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
24009         was specified. No further processing is necessary if SortOrder is set
24010         to it's current value. If Sorting is modified to None, and View is
24011         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
24012         (either custom or our internal ItemComparer) to null, on 1.0 profile
24013         only set item_sorter to null if its our internal IComparer. If Sorting
24014         is modified to Ascending or Descending, then use our internal IComparer
24015         if none is set, and if the current IComparer is our internal one then:
24016         on 2.0 profile always replace it with one for new Sorting, and on 1.0
24017         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
24018         Enum.IsDefined to verify whether a valid View value is specified in
24019         its setter. Automatically sort listview items when listview is
24020         created. In Sort, do nothing if ListView is not yet created, or if
24021         no item_sorter is set (no Sorting was set, Sorting was explicitly set
24022         to None or ListViewItemSorter was set to null). Added Sort overload
24023         taking a bool to indicate whether the ListView should be redrawn when
24024         items are sorted (we use this in ListViewItemCollection to avoid double
24025         redraws). Modified our internal IComparer to take the sort order into
24026         account. In Add and AddRange methods of ListViewItemCollection, also
24027         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
24028         view), but use overload with noredraw option to avoid double redraw.
24029         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
24030         true when View is Tile, and do the same when attempting to set View to
24031         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
24032         for selected/checked indices, as it involves overhead when sorting is
24033         done while these collections are not used all that often. Instead
24034         we'll build the indices on demand. Modified IList implementation of
24035         CheckedIndexCollection to use public methods if object is int.
24036         Modified CheckedListViewItemCollection to hide checked items if
24037         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
24038         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
24039         IList implementation in SelectedIndexCollection to use public methods
24040         if object is int. Modified SelectedListViewItemCollection to hide
24041         selected items if listview is not yet created.
24042         * ListViewItem.cs: CheckedIndices list no longer needs to be
24043         maintained separately (see ListView changes). Also clone font, fixes
24044         test failure.
24045
24046 2006-09-11  Mike Kestner  <mkestner@novell.com>
24047
24048         * ComboBox.cs: if we are updating the contents of the currently
24049         selected index, refresh the control or the textbox selection.
24050         [Fixes #79066]
24051
24052 2006-09-11  Mike Kestner  <mkestner@novell.com>
24053
24054         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
24055         the 'specified' logic has been moved there.  This seems like a bug 
24056         in Control.cs, since our current SetBoundsCore completely ignores 
24057         the specified parameter.  Peter's commit seems to indicate that is 
24058         the way the MS control implementation works.  [Fixes #79325]
24059
24060 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
24061
24062         * XplatUI.cs: Set default_class_name to be composed
24063         of current domain id. This allows MWF to be loaded in multiple
24064         domains on Win32.
24065
24066 2006-09-09  Miguel de Icaza  <miguel@novell.com>
24067
24068         * X11Keyboard.cs: If we are unable to obtain the input method, do
24069         not call CreateXic to create the input context.   Should fix
24070         #78944/79276.
24071
24072 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
24073
24074         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
24075           Simplified gnome support by adding more pinvokes to get the
24076           icon for a file or mime type.
24077
24078 2006-09-08  Jackson Harper  <jackson@ximian.com>
24079
24080         * MenuAPI.cs: Deslect popup context menu items before closing the
24081         window, so that you don't see the previously selected item
24082         selected when you reopen the menu.
24083         * TextControl.cs: Update the cursor position even if we don't have
24084         focus.  This fixes typing in things like the ComboBox.  I'm not
24085         totally sure we should always set the visibility if we don't have
24086         focus, but couldn't find any corner cases where the cursor showed
24087         up when it shouldn't.
24088
24089 2006-09-08  Chris Toshok  <toshok@ximian.com>
24090
24091         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
24092         our arrays are length 256.  & 0xff before indexing.  Fixes the
24093         crash in bug #78077.
24094         
24095 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24096
24097         * ThemeWin32Classic.cs: 
24098         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
24099         is true. Handle that check box too.
24100
24101 2006-09-07  Chris Toshok  <toshok@ximian.com>
24102
24103         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
24104         79244.
24105
24106 2006-09-07  Chris Toshok  <toshok@ximian.com>
24107
24108         * Control.cs: in set_BackColor only do the work if
24109         background_color != value.
24110
24111         * XplatUIX11.cs: move the clearing of invalid areas (both client
24112         and nc) to the same block of code where we set (nc_)expose_pending
24113         to false.  That is, move it from PaintEventEnd to PaintEventStart,
24114         so things that cause invalidates from within OnPaint will trigger
24115         another call to OnPaint.  Fixes bug #79262.
24116
24117 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
24118
24119         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
24120         * FileDialog.cs: Fix typo
24121
24122 2006-09-07  Jackson Harper  <jackson@ximian.com>
24123
24124         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
24125         for tab pages if they have any.
24126
24127 2006-09-06  Mike Kestner  <mkestner@novell.com>
24128
24129         * Splitter.cs: use the "current" rect when finishing drag handle
24130         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
24131
24132 2006-09-06  Mike Kestner  <mkestner@novell.com>
24133
24134         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
24135         support offset splitters. [Fixes #79298]
24136
24137 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
24138
24139         * Mime.cs: Fixed a bug that could override the global mime type
24140           result.
24141
24142 2006-09-05  Jackson Harper  <jackson@ximian.com>
24143
24144         * TabControl.cs: Better calculation method for setting the slider
24145         pos. Prevents crashes on really wide tabs.
24146         - Draw Image on tab pages if an image list is used.
24147
24148 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24149
24150         * MonthCalendar.cs: When Font changes, the Size should be
24151         updated to fit the new font's space requirements.
24152
24153 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
24154
24155         * ListBox.cs: If the items are cleared with Items.Clear set
24156           top_index to 0.
24157
24158 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24159
24160         * MonthCalendar.cs: Handle arrow keys as input keys. Also
24161         fire DateChanged event instead of DateSelected event when
24162         the date was changed by keyboard interaction.
24163
24164 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24165
24166         * DateTimePicker.cs: Handle DateChanged for the associated
24167         month_calendar control, and set month_calendar.Font from 
24168         OnFontChanged method, as well as resize the height of the
24169         control when needed. Make PreferredHeight proportional.
24170
24171 2006-09-01  Chris Toshok  <toshok@ximian.com>
24172
24173         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
24174         properties.
24175
24176         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
24177
24178 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
24179
24180         * FileDialog.cs: Set ClientSize instead of window size, to allow space
24181           for decorations (Fixes #79219)
24182
24183 2006-09-01  Mike Kestner  <mkestner@novell.com>
24184
24185         * ComboBox.cs: first stab at sorting plus some selection handling
24186         fixes to bring us more in line with MS behavior.  Also switches back
24187         to index based selection.  Alternative patches for index-based 
24188         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
24189         and latency@gmx.de on bug 78848.  I assume they were similar to this
24190         code I've had simmering in my tree forever.
24191         [Fixes #78848]
24192
24193 2006-09-01  Chris Toshok  <toshok@ximian.com>
24194
24195         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
24196         when setting list position guard against ending up with a -1 index
24197         (the other part of the fix for #78812).  Should probably make sure
24198         we don't need the analogous fix in the ItemDeleted case.
24199
24200         * DataGrid.cs:
24201         - in SetDataSource, work around the fact that the way
24202         OnBindingContextChanged is invoked will cause us to re-enter this
24203         method.  I'll remove the hack once I investigate
24204         OnBindingContextChanged.
24205
24206         - fix the logic in set_DataSource and set_DataMember (basically
24207         what to do if the other of the two is null.)
24208         
24209         - in OnListManagerItemChanged, we need to take into account the
24210         edit row when deciding whether or not to call RecreateDataGridRows
24211         (part of the fix for #78812).
24212
24213 2006-09-01  Jackson Harper  <jackson@ximian.com>
24214
24215         * Splitter.cs: Don't do anything if there is no control to affect
24216         (prevents us from crashing in weird tet cases).
24217         * TreeView.cs: Bounding box for the mouse movement reverting
24218         focus/selection back to previously selected node.  This matches
24219         MS, and makes the tree a lot more useable.
24220         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
24221         use clipping so they are not drawn.  This fixes when the control
24222         is set to have a transparent background, or if it was over an
24223         image.
24224
24225 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
24226
24227         * MimeIcon.cs: Improved handling for reading default icons when
24228           using gnome (2.16 made it necessary). Check and read svg icons
24229           first, then 48x48 and then 32x32 icons.
24230
24231 2006-08-31  Chris Toshok  <toshok@ximian.com>
24232
24233         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
24234         visible.
24235
24236         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
24237         ProcessKeyPreview.  Fixes part of #77806.
24238
24239         * DataGrid.cs: big patch.
24240
24241         - revert the queueing up of DataSource/DataMember if inside
24242         BeginInit/EndInit calls.  That's not the way the datagrid achieves
24243         its delayed databinding.  Instead, call SetDataSource in
24244         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
24245         #78811.
24246
24247         - Also, it wasn't mentioned in #78811, but the test case exhibits
24248         behavior that was lacking in our datagrid implementation - Columns
24249         that have mapping names that don't exist in the datasource's
24250         properties aren't shown.  Yuck.  To fix this I added the bound
24251         field to the column style, and basically any calculation to figure
24252         out anything about columns uses a loop to find the bound columns.
24253         still need to investigate if I can cache an array of the bound
24254         columns or if the indices must be the same.
24255
24256         - When setting CurrentCell, we no longer abort if the cell being
24257         edited was in the add row.  This fixes the other part of #77806.
24258
24259         - The new code also fixes #78807.
24260         
24261         * ThemeWin32Classic.cs: perpetrate the same disgusting
24262         column.bound field hack, and only render bound fields.
24263
24264 2006-08-31  Chris Toshok  <toshok@ximian.com>
24265
24266         * DataGridColumnStyle.cs: add bound field.  this field is true if
24267         the datasource has a property corresponding to the mapping name.
24268
24269         * DataGridTableStyle.cs: set the bound field on the column styles
24270         depending on whether or not we have a column for that property.
24271
24272 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
24273
24274         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
24275           splitter control (fixes #79228)
24276
24277 2006-08-31  Chris Toshok  <toshok@ximian.com>
24278
24279         * DataGridColumnStyle.cs: we need to delay the assignment of
24280         property descriptor until the last possible moment due to the lazy
24281         databinding stuff in the datagrid.  Also, fix the exceptions
24282         thrown by CheckValidDataSource to match MS.
24283
24284 2006-08-31  Jackson Harper  <jackson@ximian.com>
24285
24286         * Form.cs: When activated select the active control, if there is
24287         no active control, we select the first control.
24288         * XplatUIX11.cs: If there is no focus control when we get a
24289         FocusIn event, find the toplevel form and activate it.  This
24290         occurs when you popup a window, it becomes the focus window, then
24291         you close that window, giving focus back to the main window.
24292
24293 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24294
24295         * MonthCalendar.cs: 
24296         * ThemeWin32Classic.cs: Cache Font in bold style, as well
24297         as StringFormat with Center alignments in MonthCalendar,
24298         instead of creating new ones when drawing the control. 
24299         Also, draw the month name in bold style.
24300
24301 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
24302
24303         * Control.cs:
24304           - PerformLayout(): It would seem MS performs the fill even if the 
24305             control is not visible (part of #79218 fix)
24306           - ResetBackColor(): Use the setter to reset the color, to allow
24307             overriders to catch the change.
24308         * Form.cs:
24309           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
24310           - CreateHandle(): dito (part of $79218 fix)
24311           - Don't set an icon if we have a dialog
24312         * ScrollableControl.cs:
24313           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
24314           - ScrollIntoView(): No need to scroll if control is already visible
24315             (resolves fixme and fixes #79218)
24316
24317 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24318
24319         * MonthCalendar.cs: Change proportions in SingleMonthSize
24320         to match the aspect of the original control.
24321
24322 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
24323
24324         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
24325           get updated when they get maximized.
24326
24327 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
24328
24329         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
24330
24331 2006-08-29  Chris Toshok  <toshok@ximian.com>
24332
24333         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
24334
24335 2006-08-29  Jackson Harper  <jackson@ximian.com>
24336
24337         * TreeView.cs: Need to track selected node and highlighted node,
24338         they aren't always the same thing, when the mouse is down on a
24339         node it is hilighted, but not selected yet.
24340         - Do the HideSelection stuff right
24341         - Need to focus on rbutton mouse down. And redraw selection when
24342         right click is mouse upped.
24343
24344 2006-08-29  Mike Kestner  <mkestner@novell.com>
24345
24346         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
24347         when SubItems.Count < Columns.Count.  [Fixes #79167]
24348
24349 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
24350
24351         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
24352
24353 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
24354
24355         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
24356           from X. Only send based on ConfigureNotify if we don't have the
24357           correct location in hwnd (if the window manager moved us)
24358
24359 2006-08-28  Mike Kestner  <mkestner@novell.com>
24360
24361         * ListView.cs: remove a TODO. 
24362         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
24363         [Fixes ListView part of #79166]
24364
24365 2006-08-28  Mike Kestner  <mkestner@novell.com>
24366
24367         * ListView.cs: move wheel handler to parent since it is focused
24368         instead of the item_control now.  [Fixes #79177]
24369
24370 2006-08-28  Mike Kestner  <mkestner@novell.com>
24371
24372         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
24373         when the control is focused. [Fixes #79171]
24374
24375 2006-08-28  Mike Kestner  <mkestner@novell.com>
24376
24377         * ListView.cs: size the item and header controls for empty and
24378         unscrollable views.
24379         * ThemeWin32Classic.cs: draw disabled backgrounds.
24380         [Fixes #79187]
24381
24382 2006-08-28  Chris Toshok  <toshok@ximian.com>
24383
24384         * Form.cs: remove unused "active_form" static field.
24385
24386         * Hwnd.cs: lock around accesses to static windows collection.
24387
24388         * Application.cs: lock threads in Exit ().
24389
24390 2006-08-28  Chris Toshok  <toshok@ximian.com>
24391
24392         * NativeWindow.cs: lock around accesses to window_collection.
24393         
24394 2006-08-28  Chris Toshok  <toshok@ximian.com>
24395
24396         * Control.cs: err, fix this the right way, by locking on controls
24397         when using it.  not by making it synchronized.
24398
24399 2006-08-28  Chris Toshok  <toshok@ximian.com>
24400
24401         * Control.cs: make the static "controls" field synchronized, as it
24402         gets updated from multiple threads.
24403
24404 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
24405
24406         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
24407           Prevent other threads from exiting when calling thread sets quit state.
24408         * XEventQueue.cs: Added PostQuitState property
24409
24410 2006-08-27  Chris Toshok  <toshok@ximian.com>
24411
24412         * AsyncMethodData.cs: add a slot for the window handle.
24413
24414         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
24415         window (the destination control's window, not the foster window).
24416
24417         * Control.cs (BeginInvokeInternal): store the window's handle in
24418         the AsyncMethodData.
24419         
24420
24421 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
24422
24423         * XplatUIX11.cs:
24424           - PostQuitMessage: Removed resetting S.D display handle, we might have
24425             another loop started after calling PostQuitMessage (Fixes #79119)
24426           - Created destructor to reset S.D handle
24427
24428 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
24429
24430         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
24431
24432 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
24433
24434         * TextControl.cs (Insert): Update the caret position even if we don't
24435           have a handle yet, just don't call the driver in that case.
24436         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
24437           to the end of the new selection text (Fixes #79184)
24438
24439 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
24440
24441         * Form.cs (Activate): Only activate if the handle is created)
24442         * Control.c:
24443           - Mark window as invisible when it's disposed
24444           - Check if window handle is created when setting window visible, 
24445             instead of relying just on the is_created variable
24446           - Check if object is disposed when creating the control (Fixes #79155)
24447
24448 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
24449
24450         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
24451           when allowing layout again. Otherwise we re-generate the anchoring 
24452           distance to the border again and actually alter what the user wanted
24453           This is ugly, it'd be better if we used DisplayRectangle instead of
24454           ClientRectangle for Control.UpdateDistances, but that causes us to
24455           have other problems (initial anchoring positons would be wrong)
24456           (Fixes #78835)
24457
24458 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
24459
24460         * Control.cs:
24461           - The size and location setters shouldn't go directly to 
24462             SetBoundsCore, but to SetBounds, which triggers layout on the
24463             parent, then calls SetBoundsCore. (Related to fix for #78835)
24464           - SetBounds: Moved actual location update code into this function
24465             from SetBoundsCore, to match MS. Added call to PerformLayout if
24466             we have a parent (to trigger resizing of anchored parents if the 
24467             child size has changed (see testcase for #78835) 
24468         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
24469           new control code
24470         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
24471
24472 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
24473
24474         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
24475           System.Drawing when a toplevel window gets closed; there might
24476           be other toplevel windows belonging to the same app (Fixes #78052)
24477
24478 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
24479
24480         * FileDialog.cs: After reading FileDialog settings from mwf_config
24481           use Desktop prefix only if a real folder doesn't exist anymore.
24482         * FontDialog.cs: Added char sets.
24483           It is now possible to select the font, size or style with the
24484           textboxes.
24485
24486 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
24487
24488         * PrintPreviewDialog.cs: Use assembly name constants.
24489
24490 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
24491
24492         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
24493           scrollbar from whacking it's buttons)
24494
24495 2006-08-24  Chris Toshok  <toshok@ximian.com>
24496
24497         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
24498         in this patch (aggregating setting Left/Top/Width/Height to
24499         setting Bounds on the scrollbars), but the crux of the fix is in
24500         Recalculate, where we scroll by the remaining scroll_position if
24501         we're hiding a scrollbar.  The 2*$5 reward in the comment is
24502         serious.
24503
24504 2006-08-24  Jackson Harper  <jackson@ximian.com>
24505
24506         * MdiClient.cs:
24507         * MdiWindowManager.cs: If the form is made a non-mdi window we
24508         need to remove the form closed event so that closing forms works
24509         correctly.
24510
24511 2006-08-24  Jackson Harper  <jackson@ximian.com>
24512
24513         * Control.cs: Make IsRecreating internal so that the driver can
24514         check it
24515         - Temporarily remove the Hide when controls are removed, its
24516         making a whole bunch of things not work because visibility isn't
24517         getting reset elsewhere correctly
24518         * Form.cs: Need to do a full handle recreation when the mdi parent
24519         is set.
24520         * XplatUIX11.cs: If we are recreating handles don't dispose the
24521         HWNDs.  What was happening is the handles were being recreated in
24522         SendWMDestroyMessages, but then flow continued on in that method
24523         and destroyed the new handles.
24524
24525 2006-08-23  Jackson Harper  <jackson@ximian.com>
24526
24527         * Form.cs: MdiClient is always at the back of the bus
24528         * Control.cs: When the order of items in the collection is changed
24529         we need to reset the all_controls array
24530         - do the same sorta setup thats done when adding a control when a
24531         control is set on the collection.
24532
24533 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
24534
24535         * TextBoxBase.cs (get_Text): Return an empty array if our document
24536           is empty (fixes #79052)
24537
24538 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
24539
24540         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
24541           on WM_SYSCHAR messages (fixes #79053)
24542
24543 2006-08-23  Chris Toshok  <toshok@ximian.com>
24544
24545         * DataGrid.cs: fix flickering when scrolling vertically.
24546
24547 2006-08-23  Chris Toshok  <toshok@ximian.com>
24548
24549         * DataGrid.cs (EndEdit): only invalidate the row header when we
24550         need to.
24551
24552 2006-08-23  Chris Toshok  <toshok@ximian.com>
24553
24554         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
24555         methods.  fixes the flicker when scrolling around.
24556
24557 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
24558
24559         * FileDialog.cs: Making sure the control is created before we get a 
24560           chance to use it with BeginInvoke (Fixes #79096)
24561
24562 2006-08-23  Chris Toshok  <toshok@ximian.com>
24563
24564         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
24565         width to use when painting the rows.
24566
24567 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
24568
24569         * TextBoxBase.cs:
24570           - Throw ArgumentException if a negative value is passed to SelectionLength
24571           - Update the selection end if start is moved. end needs to be always
24572             after start. (Fixes #79095)
24573           - Track selection length; MS keeps the selection length even if start
24574             is changed; reset on all other operations affection selection
24575
24576 2006-08-22  Jackson Harper  <jackson@ximian.com>
24577
24578         * TreeView.cs: Make sure both scrollbars get displayed and sized
24579         correctly when the other bar is visible.
24580         - Use the original clip rectangle for checking if the area between
24581         the two scrollbars is visible, not the viewport adjusted clipping
24582         rectangle.
24583
24584 2006-08-22  Jackson Harper  <jackson@ximian.com>
24585
24586         * Binding.cs: We don't use IsBinding because it requires the
24587         control to be created, which really shouldn't be necessary just to
24588         set a property on the control.
24589
24590 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24591
24592         * ComboBox.cs: Some CB.ObjectCollection methods must throw
24593         ArgumentNullReferenceException when the argument is null.
24594
24595 2006-08-21  Jackson Harper  <jackson@ximian.com>
24596
24597         * Timer.cs: Track the thread that the timer is started in (NOT
24598         CREATED), this way messages for it will only be triggered on its
24599         queue.
24600         * XEventQueue.cs: Track the timers here, this makes timers per
24601         thread, like MS.
24602         * XplatUIX11.cs: The timers are moved to the XEventQueue.
24603
24604 2006-08-19  Chris Toshok  <toshok@ximian.com>
24605
24606         * XplatUIX11.cs: after further communication with pdb, we get the
24607         best of both worlds.  SetZOrder working for un-Mapped windows, and
24608         no X errors for un-mapped windows.
24609
24610 2006-08-19  Chris Toshok  <toshok@ximian.com>
24611
24612         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
24613         as it was causing pdn toolbars to not have the correct stacking.
24614
24615 2006-08-18  Mike Kestner  <mkestner@novell.com> 
24616
24617         * ListView.cs : guard against negative ClientArea.Width in scrollbar
24618         calculation.  Not sure why control should ever be setting a negative
24619         width though.  Fixes #78931.
24620
24621 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24622
24623         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
24624         null items in ObjectCollection class.
24625         * ListBox.cs.: Likewise.
24626
24627 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
24628
24629         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
24630           as the base method in ThemeWin32Classic should work fine.
24631           Fixed bug #78607.
24632
24633 2006-08-18  Jackson Harper  <jackson@ximian.com>
24634
24635         * Binding.cs: When validating if the value entered doesn't convert
24636         properly reset to the old value.
24637         * RadioButton.cs: Don't fire click when we get focus.
24638
24639 2006-08-18  Jackson Harper  <jackson@ximian.com>
24640
24641         * FileDialog.cs: Paint the selection on the directory combobox the
24642         same way as on MS. 
24643
24644 2006-08-17  Jackson Harper  <jackson@ximian.com>
24645
24646         * ErrorProvider.cs: Don't allow the error control to be selected.
24647         * Control.cs: Don't send the SetFocus messages, the control
24648         activation will do this, and if we do it blindly here validation
24649         does not work.
24650
24651 2006-08-17  Jackson Harper  <jackson@ximian.com>
24652
24653         * Control.cs:
24654         * ContainerControl.cs: Make validation events fire in the correct
24655         order.  TODO: For some reason the first validation event is not
24656         getting fired.
24657
24658 2006-08-17  Mike Kestner  <mkestner@novell.com> 
24659
24660         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
24661
24662 2006-08-17  Mike Kestner  <mkestner@novell.com> 
24663
24664         * ComboBox.cs : implement scroll wheel support for popped-down
24665         state. Fixes #78945. 
24666
24667 2006-08-17  Jackson Harper  <jackson@ximian.com>
24668
24669         * TreeView.cs: Specify treeview actions (old patch that didn't get
24670         committed for some reason).
24671         - Don't let the mouse wheel scroll us too far.  Just want to make
24672         the bottom node visible, not scroll it all the ways to the top.
24673
24674 2006-08-17  Jackson Harper  <jackson@ximian.com>
24675
24676         * XplatUIX11.cs: Mouse wheel events go to the focused window.
24677
24678 2006-08-17  Mike Kestner  <mkestner@novell.com> 
24679
24680         * ComboBox.cs : don't do mouseover selection in simple mode.
24681
24682 2006-08-16  Jackson Harper  <jackson@ximian.com>
24683
24684         * Form.cs: Fire the closing events for all the mdi child windows
24685         when a window is closed.  If the cancel args are set to true, the
24686         main window still gets the event fired, but it doesn't not close.
24687         * MdiWindowManager.cs: Do this closing cleanup in a Closed
24688         handler, instead of when the button is clicked, so cancelling the
24689         close works correctly.
24690         * ComboBox.cs: Send the mouse down to the scrollbar.
24691
24692 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24693
24694         * ListBox.cs: When passing 'null' to SelectedItem,
24695         set SelectedIndex to -1, to unselect items. This is the
24696         observed behaviour in .Net.
24697
24698 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
24699
24700         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
24701           MS flags saying there won't be any. (fixes #78800)
24702         * Control.cs (HandleClick): Made virtual
24703
24704 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
24705
24706         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
24707           cultures. Fixed bug #78399.
24708
24709 2006-08-16  Jackson Harper  <jackson@ximian.com>
24710
24711         * Form.cs: Use the MdiClients MdiChildren property to access
24712         MdiChildren instead of creating the array from the child controls.
24713         * MdiClient.cs: Maintain a separate array of the mdi children, so
24714         that insertion order is maintained when the Z-order is changed.
24715
24716 2006-08-16  Mike Kestner  <mkestner@novell.com> 
24717
24718         * ListView.cs : add an ItemComparer and default to it for sorting.
24719         Fixes #79076, but sorting needs a complete overhaul to be compat with
24720         MS.
24721
24722 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
24723
24724         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
24725
24726 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24727
24728         * Hwnd.cs (Mapped): Properly traverse the tree
24729
24730 2006-08-15  Chris Toshok  <toshok@ximian.com>
24731
24732         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
24733         pass manager.Current.GetType() to ParseData.  It has to be the
24734         property type.  So, hold off doing the ParseData until we're in
24735         SetPropertyValue where we know the type.  This fixes the crash in
24736         #78821 but the textbox is still empty.
24737
24738 2006-08-15  Chris Toshok  <toshok@ximian.com>
24739
24740         * DataGrid.cs:
24741         - when we're scrolling, only call Edit() again if the
24742         current cell is still unobscured. Fixes bug #78927.
24743         - when handling mousedown on a cell, ensure the cell is visible
24744         before calling Edit.
24745         - remove the properties from DataGridRow, and remove the
24746         DataGridParentRow class altogether.
24747         
24748
24749 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24750
24751         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
24752           fire OnTextChanged by ourselves. There's no point calling base,
24753           we don't set the base value anywhere else. Fixes #78773.
24754
24755 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24756
24757         * ListBox.cs: Call CollectionChanged when modifying
24758         an item from Items indexer, to update the actual items
24759         in the list box.
24760
24761 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24762
24763         * PrintDialog.cs: Small fixes for focus and a pair of checks,
24764         to match .Net behaviour.
24765
24766 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24767
24768         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
24769
24770 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
24771
24772         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
24773
24774 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24775
24776         * MessageBox.cs: Prevent potential NRE exception.
24777         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
24778
24779 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
24780
24781         * MessageBox.cs: Calculate the owner of a messagebox, also make
24782           it topmost. Fixes #78753
24783
24784 2006-08-14  Chris Toshok  <toshok@ximian.com>
24785
24786         * XplatUIX11.cs: A couple of fixes so that metacity will let us
24787         programmatically move windows.  first, set the PPosition hint as
24788         well as the USPosition hint.  Second include some code from pdb
24789         that sets the window type to NORMAL when we set the transient for
24790         hint.  This is because, in the absence of a window type, metacity
24791         thinks any window with TransientFor set is a dialog, and refuses
24792         to let us move it programmatically.  fascists.
24793
24794 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
24795
24796         * XplatUIX11.cs: When setting normal hints, take into consideration
24797           an different hints previously set so we don't delete them (fixes #78866)
24798
24799 2006-08-12  Chris Toshok  <toshok@ximian.com>
24800
24801         * ToolBarButton.cs: make Layout return a boolean, if something to
24802         do with the button's layout changed.
24803
24804         * ToolBar.cs:
24805         - add another parameter to Redraw, @force, which all existing
24806           calls set to true.
24807         - make the Layout function return a boolean which is true if the
24808           layout has actually changed.  Redraw now uses this (and @force)
24809           to determine when to invalidate.  At present the only place
24810           where @force can be false is the call from OnResize, when
24811           background_image == null.  So, resizing a toolbar when the
24812           layout doesn't change results in no drawing.
24813
24814 2006-08-12  Chris Toshok  <toshok@ximian.com>
24815
24816         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
24817         the VScrollBar and HScrollbar reversed.  oops.
24818
24819         * DataGrid.cs: fix the logic that assigns sizes to the implicit
24820         scrollbars.  we were assigning them twice (once in
24821         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
24822         therefore causing two scrollbar resizes (and redraws?) to happen
24823         per grid resize.
24824
24825 2006-08-12  Chris Toshok  <toshok@ximian.com>
24826
24827         * ToolBarButton.cs: redraw the entire button if the theme tells us
24828         to.
24829
24830         * Theme.cs: add ToolBarInvalidateEntireButton.
24831
24832         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
24833         buttons, just the border.
24834
24835         * ThemeNice.cs: redraw the entire toolbar button since we need to
24836         draw the highlight image.
24837
24838         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
24839         we need to redraw the entire button (not just the border).
24840
24841 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
24842
24843         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
24844           for vertical bars. Fixes the mismatches shown by #78513
24845
24846 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
24847
24848         * FileDialog.cs: If a saved/remembered path doesn't exist
24849           anymore, fall back to "Desktop".
24850
24851 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
24852
24853         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
24854           parent. It's apparently legal to not have one
24855         * XplatUIX11.cs:
24856           - SetZOrder: Don't try to set Z-Order on an unmapped window
24857           - CreateWindow: 0,0 are legal coordinates for a window. don't move
24858             it unless the coordinates are negative
24859
24860 2006-08-10  Mike Kestner  <mkestner@novell.com>
24861
24862         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
24863         when setting to null per msdn docs.  Fixes #78854.
24864
24865 2006-08-10  Chris Toshok  <toshok@ximian.com>
24866
24867         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
24868         flickering by setting a clip rectangle on the Graphics when we
24869         need to redraw just a particular menuitem.  Also, rename "OnClick"
24870         to "OnMouseDown" to reflect what it actually is.
24871         
24872         * Form.cs: track the OnMouseDown change.
24873
24874 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
24875
24876         * CommonDialog.cs: Properly inherit the CreateParams from the form
24877           and only change what we need. Fixes #78865
24878
24879 2006-08-10  Chris Toshok  <toshok@ximian.com>
24880
24881         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
24882         flickering in flat mode (and most of the flickering in general) by
24883         only invalidating the button border (and not the entire rectangle)
24884         when the state changes.  A couple of cases still flicker:
24885         ToggleButtons, and the dropdown arrow case when the user mouse
24886         ups.
24887
24888 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
24889
24890         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
24891           for german keyboards. Numlock state shouldn't affect the behaviour
24892           of the Del key. Fixes bug #78291.
24893
24894 2006-08-10  Chris Toshok  <toshok@ximian.com>
24895
24896         * ListControl.cs: remove the items.Clear line from BindDataItems,
24897         as this is the first thing done by both subclasses in their
24898         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
24899         passed -1, refresh the list.  This gets databinding working when
24900         the datasource is set on the list before the datasource is
24901         populated (as in wf-apps/ReportBuilder.)
24902
24903         * ComboBox.cs: remove the argument to BindDataItems.  This call
24904         should really go away, and be initiated by the ListControl code.
24905
24906         * ListBox.cs: same.
24907
24908 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24909
24910         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
24911           if no data is in the document when the control is displayed
24912
24913 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
24914
24915         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
24916           yes (fixes #78806)
24917         * TextControl.cs: 
24918           - PositionCaret: Allow positioning of caret but don't call methods 
24919             requiring a handle if the window isn't created yet
24920           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
24921           - owner_HandleCreated: Don't position the caret, just update it's 
24922             location. User might have already set a different position
24923
24924 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24925
24926         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
24927           windows. Screws up the returned coordinates for child windows. 
24928           Fixes #78825. I'm hoping this doesn't break something, since the
24929           code was explicitly put in 8 months ago, but no bug was attached.
24930           Menus still seem to work properly.
24931
24932 2006-08-08  Chris Toshok  <toshok@ximian.com>
24933
24934         * DataGrid.cs: make BeginInit/EndInit actually do what they're
24935         supposed to do - delay data binding until the EndInit call.  Also,
24936         make the table style collection's CollectionChangeAction.Refresh
24937         work properly.
24938
24939         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
24940         (with action = Refresh) when a consituent table's MappingName is
24941         changed.
24942
24943 2006-08-08  Chris Toshok  <toshok@ximian.com>
24944
24945         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
24946         Invalidate, since changing the text can change the size of the all
24947         toolbar buttons.
24948
24949 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24950
24951         * Form.cs (AddOwnedForm): Still need to add the form to our listif
24952           we don't have it yet
24953
24954 2006-08-08  Chris Toshok  <toshok@ximian.com>
24955
24956         * PrintControllerWithStatusDialog.cs: don't .Close() the status
24957         dialog, as this causes X errors later on, since we actually
24958         destroy the window.  Instead, .Hide() it.
24959
24960 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24961
24962         * ComboBox.cs: Added focus reflection for popup window
24963         * XplatUIX11.cs: 
24964           - Removed transient setting for non-app windows for now, not sure it
24965             was needed
24966           - Fixed logic checking if we have captions when deciding 
24967             override_redirect, WS_CAPTION is two bits and a 0 check was not
24968             sufficient
24969           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
24970             complicated
24971         * Form.cs: 
24972           - AddOwnedForm: Don't just add the form to the list, call the property
24973             to ensure the driver is informed about the ownership as well
24974           - CreateHandle: Set the TopMost status in the driver if we have an owner
24975         * XplatUI.cs: Fixed debug statement
24976
24977 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
24978         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24979           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
24980           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
24981           TrackBarRenderer.cs: Make constructor private.
24982         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
24983         * ProfessionalColorTable.cs: Make properties virtual.
24984
24985 2006-08-06  Duncan Mak  <duncan@novell.com>
24986
24987         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
24988         is not changing.
24989
24990 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24991         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24992           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
24993           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
24994           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
24995           Initial import of new 2.0 classes.
24996
24997 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24998         * Application.cs: Add 2.0 VisualStyles properties.
24999
25000 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
25001         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
25002           XplatUIX11.cs: Create property to allow access to existing private
25003           variable "themes_enabled"
25004
25005 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25006
25007         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
25008         file size, as otherwise our class libraries fail using windows. Fixes
25009         bug #78759.
25010
25011 2006-08-04  Jackson Harper  <jackson@ximian.com>
25012
25013         * Form.cs:
25014         * XplatUIX11.cs: Move the toolwindow window manager creation into
25015         the X11 driver, this way on win32 we can let windows create/handle
25016         the toolwindows.
25017
25018 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25019
25020         * PrintDialog.cs: Remove some redundant checks, add some others,
25021         clean some code, and move the focus to the text boxes when the
25022         values are incorrect.
25023
25024 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
25025
25026         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
25027
25028 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
25029
25030         * NumericUpDown.cs: Setting the Minimum and Maximum is now
25031           handled correctly. Fixes bug #79001.
25032
25033 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25034
25035         * PrintDialog.cs: The "Copies" numeric up down must have
25036         set the Minimum property to 1; only if the value is bigger
25037         than 1, activate "Collate" check box. This is the behaviour of .Net.
25038         Also modify the Document elements only if it is not null.
25039
25040 2006-08-03  Jackson Harper  <jackson@ximian.com>
25041
25042         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
25043         length. (We have a larger array then actual node count).
25044                 
25045 2006-08-03  Jackson Harper  <jackson@ximian.com>
25046
25047         * ComboBox.cs: Don't show selection by default.
25048         - The SelectAll isn't needed here, since the focus code should do
25049         that
25050         - DDL style lists to manual selection drawing, so when they
25051         get/lose focus they have to invalidate.
25052
25053 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
25054
25055         * TextBoxBase.cs: Don't always show all selections by default.
25056
25057 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
25058         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
25059           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
25060           Fixed various typos.
25061
25062 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
25063
25064         * Control.cs: Removing the controls in a ControlCollection with
25065           Clear now hides the controls as expected. Fixes bug #78804. 
25066
25067 2006-08-03  Jackson Harper  <jackson@ximian.com>
25068
25069         * Control.cs: Revert previous focus patch, it breaks reflector.
25070
25071 2006-08-03  Jackson Harper  <jackson@ximian.com>
25072
25073         * ComboBox.cs: Cleanup selection and focus with the combobox.
25074         This also eliminates some duplicated keyboard code, since now
25075         everything is handled by the main class.
25076         - Make list selection work on mouse up instead of down, to match
25077         MS.
25078
25079 2006-08-02  Jackson Harper  <jackson@ximian.com>
25080
25081         * Control.cs: Setting focus needs to go through the whole
25082         selection mechanism.
25083
25084 2006-08-02  Chris Toshok  <toshok@ximian.com>
25085
25086         * PrintPreviewDialog.cs: change MinimumSize to use
25087         base.MinimumSize so it works.
25088
25089 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
25090
25091         * TextControl.cs:
25092           - UpdateCaret: Added sanity check in case caret isn't defined yet
25093           - Line.Delete: Now updating selection and caret markers if we're
25094             transfering a node (Properly fixes #78323)
25095           - SetSelectionEnd: Added sanity check
25096         * TextBoxBase.cs: Removed broken attempt to fix #78323
25097
25098 2006-08-01  Chris Toshok  <toshok@ximian.com>
25099
25100         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
25101         Close() call is handled in Form, not here.
25102
25103 2006-08-01  Chris Toshok  <toshok@ximian.com>
25104
25105         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
25106         layout/rendering.
25107
25108         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
25109         for sizes < 100% zoom.  The code now aggressively attempts to keep
25110         from calling document.Print (), and tries not to use the scaling
25111         g.DrawImage whenever possible (it still does if you scale to >
25112         100%, since usually that involves huge images).
25113
25114         * PrintPreviewControl.cs: hook up the close button.
25115
25116 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
25117         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
25118           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
25119           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
25120           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
25121           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
25122           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
25123           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
25124           Removed [Serializable] for 2.0 Event Handlers.
25125
25126 2006-07-31  Jackson Harper  <jackson@ximian.com>
25127
25128         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
25129         * TextControl.cs: Uncomment out the body of this method.
25130
25131 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
25132
25133         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
25134           standard cursors.
25135
25136 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
25137
25138         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
25139           that embed TextBox and need selections visible even if textbox is not
25140           focused to enforce that behaviour.
25141         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
25142           selection drawing
25143
25144 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
25145
25146         * TextControl.cs:
25147           - Added new SetSelectionStart/SetSelectionEnd overloads
25148           - Fixed viewport width assignment to be accurate
25149           - Adjusted alignment line shift calculations to allow cursor on right
25150             aligned lines to be always visible at the right border (like MS)
25151         * TextBoxBase.cs:
25152           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
25153           - TextBoxBase_SizeChanged: recalculating canvas on size changes
25154           - CalculateScrollBars: Use ViewPort size instead of window size, to
25155             properly consider space occupied by the border and scrollbars 
25156             (Fixes #78661)
25157           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
25158             calculations; no longer leaves artifacts
25159           - CaretMoved: Adjusted window scrolling to match MS and fixed several
25160             calculation bugs (Still missing right/center align calculations)
25161
25162 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
25163
25164         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
25165           use of both scroll rect and clip rect, as they do the same.
25166
25167 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
25168
25169         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
25170           in the event handler (fixes #78912)
25171
25172 2006-07-31  Chris Toshok  <toshok@ximian.com>
25173
25174         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
25175         grid.ListManager.Count, since grid.ListManager might be null.
25176         This of course begs the question "why are we drawing rows for a
25177         grid with no list manager (and therefor no rows)?"  Fixes the
25178         crash in bug #78929.
25179
25180 2006-07-31  Chris Toshok  <toshok@ximian.com>
25181
25182         * RelatedPropertyManager.cs: Don't always chain up to the parent
25183         ctor.  instead, call SetDataSource if the parent's position is !=
25184         -1.  Fixes the crash in #78822.
25185
25186 2006-07-31  Chris Toshok  <toshok@ximian.com>
25187
25188         * DataGrid.cs (get_ListManager): use field instead of property
25189         accessors for datasource and datamember.
25190         (RowsCount): make internal again.
25191         (OnMouseDown): end edits before resizing columns/rows.
25192         (OnMouseUp): restart edits after resizing columns/rows.
25193
25194 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
25195
25196         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
25197           This fixes the situation where the last set cursor is displayed
25198           whenever the mouse is over scrollbars.
25199
25200 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25201
25202         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
25203         Document properties, as well as initial values.
25204
25205 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
25206
25207         * XplatUIWin32.cs (SetBorderStyle): Setting both border
25208           and ClientEdge results in a 3-pixel border, which is
25209           wrong.
25210
25211 2006-07-28  Jackson Harper  <jackson@ximian.com>
25212
25213         * TreeNodeCollection.cs: Fix the clear method.
25214         - Fix the Shrink also
25215
25216 2006-07-27  Jackson Harper  <jackson@ximian.com>
25217
25218         * TreeView.cs: Make sure the visible order is computed when we
25219         attempt to size the scrollbars (for trees that mess with the
25220         scrolling when they shouldn't.
25221         - Make sure to give the scrollbars valid values.
25222
25223 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
25224
25225         * XplatUIX11.cs: Move motion compression code to where it
25226           has less performance impact
25227
25228 2006-07-26  Jackson Harper  <jackson@ximian.com>
25229
25230         * UpDownBase.cs: When the control is selected make the child
25231         controls non selectable, so that a click on them won't do a
25232         focus/unfocus cycle.
25233         - Don't give focus to the text box when the spinner is selected.
25234         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
25235
25236 2006-07-26  Chris Toshok  <toshok@ximian.com>
25237
25238         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
25239         satisfied with this solution.  If the bitmaps are small, we should
25240         just cache them in the PrintPreviewDialog and draw them here.
25241         Also, the layout is broken for the 2-up and 3-up cases.
25242
25243         * Theme.cs: add PrintPReviewControlPaint.
25244
25245         * PrintPreviewDialog.cs: first pass implementation.
25246
25247         * PrintPreviewControl.cs: first pass implementation.  No
25248         scrollbars yet.
25249
25250         * PrintDialog.cs: only validate fields if that particular portion
25251         of the UI is enabled.  Also, set the document's controller to a
25252         PrintControllerWithStatusDialog wrapping the document's print
25253         controller.
25254
25255         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
25256         bring up a SaveFileDialog (i hope we don't want to match the
25257         behavior of the crappy windows file entry) and set the
25258         PrinterSettings.PrintFileName accordingly.
25259
25260 2006-07-26  Jackson Harper  <jackson@ximian.com>
25261
25262         * ContainerControl.cs: Add a field that disables auto selecting
25263         the next control in a container when the container is activated.
25264         * UpDownBase.cs: Don't select the text box when the up down is
25265         selected.
25266
25267 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
25268
25269         * XEventQueue.cs: Added methods for peeking (used for compression
25270           of successive events)
25271         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
25272           mouse move events (fixes #78732)
25273
25274 2006-07-25  Jackson Harper  <jackson@ximian.com>
25275
25276         * UpDownBase.cs: Use an internal class for the textbox so that we
25277         can control focus.  the updown control should always have focus,
25278         if either the text area or the buttons are clicked.
25279         - Send the key messages to the textbox, since it never actually
25280         has focus
25281         - Activate and decativate the textbox caret.
25282
25283 2006-07-24  Jackson Harper  <jackson@ximian.com>
25284
25285         * Control.cs: Use the directed select when selecting a control,
25286         this way the container controls override will get called and the
25287         whole ActiveControl chain will get triggered.  TODO: probably need
25288         to make sure this gets done everywhere instead of the old
25289         Select(Control).
25290         * ContainerControl.cs: Implement the directed Select method to
25291         find and activate the correct child control.    
25292         
25293 2006-07-22  Mike Kestner  <mkestner@novell.com>
25294
25295         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
25296         menu handling code so that clicks without a grab work too.
25297         [Fixes #78914]
25298
25299 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
25300
25301         * FileDialog.cs: Enable the BackButton when dirstack has one element.
25302           Added some small optimizations.
25303
25304 2006-07-21  Matt Hargett  <matt@use.net>
25305
25306         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
25307
25308 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
25309
25310         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
25311           tests pass and match MS in some strange border cases.
25312
25313 2006-07-21  Chris Toshok  <toshok@ximian.com>
25314
25315         * ThemeWin32Classic.cs: handle drawing of the relation links and
25316         parent row buttons.
25317
25318         * Theme.cs: change args to DataGridPaintParentRow.
25319
25320         * DataGrid.cs: Don't use controls for the relation links and
25321         parent buttons, so we have to handle all their interactions in
25322         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
25323         when we're navigating through child tables, so we can reinstate
25324         selection, expanded state, current cell, etc.
25325
25326 2006-07-20  Chris Toshok  <toshok@ximian.com>
25327
25328         * ToolBar.cs: When we redraw a button, for whatever reason,
25329         there's no reason to redraw the entire toolbar.  Also, don't call
25330         Control.Refresh from within Redraw, as it's much heavier than
25331         Invalidate (which is really what we want).
25332
25333 2006-07-20  Chris Toshok  <toshok@ximian.com>
25334
25335         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
25336         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
25337         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
25338         traces from within a debug IBindingList datasource
25339         (in mono/winforms/datagrid) for *days*, I've finally gotten things
25340         to work in a similar fashion.
25341
25342 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25343
25344         * ListBox.cs: Don't call Sort () when setting 
25345         the Sorted property to false (avoid an unnecessary sort).
25346
25347 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25348
25349         * ListControl.cs: DataSource should throw an ArgumentException
25350         instead of a normal exception when the argument is not of the 
25351         correct type.
25352
25353 2006-07-20  Mike Kestner  <mkestner@novell.com>
25354
25355         * Control.cs: add InternalPreProcessMessage to allow us to steal
25356         key events before MWF gets its paws on them.  Adapted from a
25357         suggestion by eno.
25358         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
25359         up/down/left/right navigation. Override the new internal control
25360         method to steal the events since they never make it to WndProc.
25361         * ToolBarButton.cs: don't worry about pushed when setting hilight
25362         since the drawing code prefers pushed to hilight. Invalidate on 
25363         Hilight changes. Fixes #78547 and #78525.
25364
25365 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
25366
25367         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
25368           the canvas size. Fixes #78868
25369
25370 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
25371
25372         * Splitter.cs: Track requested split position until first layout
25373           is performed. Fixes #78871
25374
25375 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
25376
25377         * Application.cs: Removed code that forces 1.x for the version
25378           number if the version started with 0. Not sure why that code was
25379           there and I couldn't find any bugs that indicated we needed it.
25380           Fixes #78869
25381
25382 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
25383
25384         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
25385           ResetDefaults(), just write some output to the console until it's
25386           implemented. Fixes bug #78907 for now. Eliminated two warnings.
25387
25388 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
25389
25390         * PropertyGridView.cs: set StartPosition of drop down forms
25391         so they appear in correct initial spot.  Fixes #78190.
25392
25393 2006-07-19  Mike Kestner  <mkestner@novell.com>
25394
25395         * ThemeWin32Classic.cs: use parent background color when drawing
25396         flat toolbars.  Restructure the conditionals to make sure non-flat
25397         non-Divider toolbars are filled too.  Fixes #78837.
25398
25399 2006-07-19  Mike Kestner  <mkestner@novell.com>
25400
25401         * ListBox.cs: Sort on collection changes even if the handle
25402         isn't created yet.  Fixes #78813.
25403
25404 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25405
25406         * ListControl.cs: DisplayMember should never be null,
25407         and now we assign String.Empty when null is passed to it (this
25408         is the .Net way).
25409
25410 2006-07-17  Mike Kestner  <mkestner@novell.com>
25411
25412         * ListViewItem.cs: restructure Font and subitem Font handling 
25413         to hold a specific font and refer back to owner on null.
25414         Fixes #78761.
25415
25416 2006-07-17  Mike Kestner  <mkestner@novell.com>
25417
25418         * ToolBar.cs: bandaid for side-effect of previous patch which was
25419         discarding explicit heights for non-AutoSize toolbars.  Need to
25420         extend my format tester to deal with AutoSize=false. Fixes #78864.
25421
25422 2006-07-15  Jackson Harper  <jackson@ximian.com>
25423
25424         * LabelEditTextBox.cs:
25425         * TreeView.cs: Use a new LabelEdit class for node editing, this
25426         class automatically 'closes' itself when it gets the enter key or
25427         loses focus.
25428         - Use the client rectangle when setting the trees scrollbars, so
25429         border style is taken into account.
25430         
25431 2006-07-14  Jackson Harper  <jackson@ximian.com>
25432
25433         * TreeNode.cs:
25434         * TreeView.cs: Make the editing work similar to MSs, firing the
25435         events correctly and ending edits correctly.
25436
25437 2006-07-14  Mike Kestner  <mkestner@novell.com>
25438
25439         * ToolBarButton.cs:
25440         * ToolBar.cs: layout restructuring and redraw enhancements to support
25441         formatting changes gracefully, like setting TextAlign, ImageList, 
25442         ButtonSize, and Appearance.  Handles explicit button sizing quirks
25443         of the MS controls.  Things like flat toolbars ignoring button size
25444         but becoming constant sized at the largest button's size.  Normal
25445         toolbars with an image set cannot be shrunk smaller than the image,
25446         but text can be clipped/ignored.
25447         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
25448         is zero.  Seems like DrawString should be smart enough to not put
25449         anything on screen though. Also trim labels and ellipsize at the char
25450         boundary, not word.
25451         Fixes #78711 and #78483.
25452
25453 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
25454
25455         * FolderBrowserDialog.cs: Disable "New Folder" button and
25456           "New Folder" contextmenu menuitem if a folder like "My Computer"
25457           is selected.
25458
25459 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
25460
25461         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
25462         * FolderBrowserDialog.cs:
25463           - Use MWFConfig to store and read size and position settings
25464           - Added code to create a new folder (button or context menu).
25465             Use TreeView labeledit to change the name of the new folder.
25466
25467 2006-07-14  Jackson Harper  <jackson@ximian.com>
25468
25469         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
25470         when the tree is scrolled we end editing.
25471
25472 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
25473
25474         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
25475           Down arrows
25476
25477 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
25478
25479         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
25480         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
25481         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
25482         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
25483         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
25484         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
25485         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
25486         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
25487         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
25488         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
25489         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
25490         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
25491         ListViewItemSelectionChangedEventHandler.cs,
25492         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
25493         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
25494         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
25495         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
25496         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
25497         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
25498         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
25499         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
25500         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
25501         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
25502         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
25503         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
25504         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
25505         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
25506         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
25507         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
25508         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
25509         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
25510         WebBrowserNavigatingEventHandler.cs, 
25511         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
25512
25513 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
25514
25515         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
25516         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
25517         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
25518         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
25519         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
25520         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
25521         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
25522         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
25523         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
25524         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
25525         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
25526         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
25527         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
25528         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
25529         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
25530         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
25531         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
25532         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
25533         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
25534         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
25535         ListViewItemStates.cs, MaskFormat.cs: Added
25536
25537 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
25538
25539         * PropertyGridView.cs: Fix keyboard navigation of drop down.
25540         Patch from eno for bug 78558.
25541         
25542 2006-07-13  Jackson Harper  <jackson@ximian.com>
25543
25544         * TreeView.cs: When an edit is finished make sure that the
25545         selected node is visible.
25546         - When setting the top/bottom use the scrollbars is_visible, so
25547         everything will be set correctly even if the tree isn't visible
25548         yet.
25549
25550 2006-07-13  Jackson Harper  <jackson@ximian.com>
25551
25552         * ComboBox.cs: Revert the item->index part of my previous patch.
25553         * TreeView.cs: Use LostFocus instead of Leave for detecting when
25554         the edit box has lost focus (duh).
25555         - Just make the edit box not visible when we get return, that will
25556         take the focus, which will call EndEdit
25557         * TreeNode.cs When we start editing, notify the treeview.
25558
25559 2006-07-12  Jackson Harper  <jackson@ximian.com>
25560
25561         * ComboBox.cs: Clear out old items before setting the item list.
25562         This prevents databound controls from having their items added
25563         twice.
25564         - Switch the combobox to use indices whereever possible instead of
25565         using Item's.  This allows usto navigate through lists that have
25566         more then one item with the same string value (ie a, b, b, a).
25567         - Scroll the listboxes scrollbar when a non visible item is
25568         highlighted
25569         - Allow keypress to cycle through all the possible values. For
25570         example if you have b1, b2, b3 and hold down the B key all the
25571         values will be cycled through.
25572         
25573 2006-07-12  Jackson Harper  <jackson@ximian.com>
25574
25575         * TextBoxBase.cs:
25576         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
25577         this using the internal methods.
25578         * Control.cs: Add OnGotFocusInternal.  A new method that allows
25579         controls to "override" OnGotFocus and change focus behavior if
25580         needed.
25581         - Same thing for LostFocus
25582         * ComboBox.cs: Pass off focus to the text control properly.
25583
25584 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
25585
25586         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
25587         * FolderBrowserDialog.cs: Almost a complete rewrite.
25588           - Better support for Environment.Specialfolders
25589           - Added support for MWFVFS
25590           - Made setting SelectedPath work
25591
25592 2006-07-12  Jackson Harper  <jackson@ximian.com>
25593
25594         * Control.cs: Optimze getting all the controls.
25595
25596 2006-07-11  Jackson Harper  <jackson@ximian.com>
25597
25598         * ContainerControl.cs: Override SETFOCUS in the container control,
25599         so that it is not selected on mouse click.
25600
25601 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
25602
25603         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
25604           Hopefully we will have a better way once all of focus is complete.
25605
25606 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
25607
25608         * ThemeWin32Classic.cs: Commented out some debug code and fixed
25609           a compile error with csc.
25610
25611 2006-07-11  Jackson Harper  <jackson@ximian.com>
25612
25613         * Control.cs: When hiding a control only select the next control
25614         if the current control was focused.
25615         - Don't handle enter/leave when setting/killing focus, this is
25616         done by the container control.
25617         - Remove is_selected, it's not needed anymore.
25618         - Add utility methods for selecting a child control, and for
25619         firing the Enter/Leave events.
25620         * ContainerControl.cs: When a control is activated fire the
25621         enter/leave events.
25622         - Don't wrap when processing the tab key, so that focus can be
25623         moved outside of the container.
25624         - Use the correct active control
25625
25626 2006-07-11  Jackson Harper  <jackson@ximian.com>
25627
25628         * ComboBox.cs: Remove some debug code that was blinding me.
25629         * UpDownBase.cs: These controls actually aren't implicit, they are
25630         visible to the user.
25631
25632 2006-07-10  Chris Toshok  <toshok@ximian.com>
25633
25634         * DataGrid.cs: move back to the is_adding boolean field.  god i
25635         hate this is_editing/is_adding/is_changing stuff.
25636
25637 2006-07-10  Chris Toshok  <toshok@ximian.com>
25638
25639         * DataGridTableStyle.cs: just check if the property type is bool.
25640         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
25641         Don't use CanRenderType.
25642
25643         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
25644         if our text == NullText.  Remove CanRenderType.
25645
25646         * DataGridBoolColumn.cs: nuke CanRenderType.
25647
25648         * DataGrid.cs: reenable some code to end the current edit inside
25649         of set_CurrentCell.  This fixes the other 1.1.16 regression.
25650         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
25651         Also, remove the visible_row_count arg from CalcRowHeaders, since
25652         we don't need to worry about the actual height of the area.
25653
25654 2006-07-10  Chris Toshok  <toshok@ximian.com>
25655
25656         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
25657         mode, just return.
25658
25659         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
25660         the real sense of the IsInEditOrNavigateMode property (true =
25661         navigate, false = edit).  Also, update OnKeyPress to reflect this.
25662
25663         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
25664         column style exists, we still need to set its property descriptor
25665         to match up with our list manager.
25666
25667 2006-07-10  Chris Toshok  <toshok@ximian.com>
25668
25669         * ThemeWin32Classic.cs: implement the new row/header painting
25670         approach.  The parent row painting will likely go away and
25671         replaced with label controls, but the rest seems to work ok (and
25672         efficiently).
25673
25674         * Theme.cs: change the way we draw datagrid rows.  we don't draw
25675         the row headers as a block now.  Instead we draw them in the
25676         normal draw-row loop.  Add some calls for drawing parent rows and
25677         relation rows.
25678
25679         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
25680         a default table style.  Set the defaults from ThemeEngine.Current,
25681         not SystemColors.  Fix lots of misc issues with property setters.
25682
25683         * DataGrid.cs: move loads of style information out of this class
25684         as it's being duplicated with DataGridTableStyle.  keep track of a
25685         special DataGridTableStyle for the properties we used to mirror
25686         here.  Switch all the style properties to access this table style
25687         instead of instance fields of this class.  Also add a internal
25688         class to represent parent rows (more needs to be stored here, like
25689         the selection state from the parent table, as well as the
25690         expansion state.)  Also, for datasources with relations, do the
25691         right thing for collapse/expand, and add support for the
25692         navigation/parent row buttons.
25693
25694         Lastly, fix the crash in the 1.1.16 build.
25695
25696         * GridTableStylesCollection.cs: make the explicit interface
25697         implementations call the class's methods as opposed to duplicating
25698         them.
25699
25700         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
25701         0 so the text doesn't jump around when we move the cursor.
25702
25703 2006-07-10  Jackson Harper  <jackson@ximian.com>
25704
25705         * TextBoxBase.cs:
25706         * ListBox.cs: Match MS's ToString (this makes debugging focus
25707         stuff infinitely easier).
25708
25709 2006-07-10  Jackson Harper  <jackson@ximian.com>
25710
25711         * Control.cs (SelectNextControl): When checking the control's
25712         parent use this instead of ctrl.parent so that null can be passed
25713         to SelectNextControl. (I have unit tests for this).
25714         - Remove unused var.
25715
25716 2006-07-10  Chris Toshok  <toshok@ximian.com>
25717
25718         * CurrencyManager.cs: correct one regression, the removal of the
25719         finalType field.  Also, add a MonoTODO on CanAddRows, implement
25720         Refresh() correctly, and fix some event emission in
25721         ListChangedHandler.
25722
25723 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
25724
25725         * FileDialog.cs: Don't use brackets for new folders if they exist
25726           under *nix. Instead use -(number of existing folders +1).
25727
25728 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
25729
25730         * FileDialog.cs:
25731           - Fixed really nasty bug #78771
25732           - Don't block the whole GUI when reading directories with a lot of
25733             entries. Use an other thread instead and call BeginInvoke to
25734             update the ListView in MWFFileView
25735
25736 2006-07-07  Chris Toshok  <toshok@ximian.com>
25737
25738         * Control.cs (Dispose): release any Capture when disposing.
25739
25740 2006-07-07  Chris Toshok  <toshok@ximian.com>
25741
25742         * LinkLabel.cs (Select): if we chain up to the parent, set
25743         focused_index to -1 so we'll search for the first available link
25744         the next time the user tabs into us.  Also, if the direction is
25745         backward and focused_index == -1, start the search from the last
25746         element.
25747
25748 2006-07-07  Chris Toshok  <toshok@ximian.com>
25749
25750         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
25751         is beyond the end of the text, don't do anything.
25752         (CreateLinkPieces): set our ControlStyles.Selectable based on
25753         whether or not we have any links.
25754         (Link.Invalidate): use a loop instead of foreach.
25755         (Link.set_Start): null out owner.sorted_links so it'll be
25756         recreated by CreateLinkPieces.
25757
25758 2006-07-06  Chris Toshok  <toshok@ximian.com>
25759
25760         * LinkLabel.cs: revert the SetStyle change.
25761
25762 2006-07-06  Chris Toshok  <toshok@ximian.com>
25763
25764         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
25765         (OnEnableChanged): s/Refresh/Invalidate
25766         (OnGotFocus): if we have a focused index already, refocus it (so
25767         if we mouse out/in to the window it'll focus the right link).
25768         (OnKeyDown): move the tab handling out of here.
25769         (OnLostFocus): don't set focused_index to -1, so we can refocus it
25770         when we lose focus.
25771         (OnMouseDown): don't Capture here - Control handles it.  Also,
25772         focus the active link.
25773         (OnMouseUp): don't deal with Capture.
25774         (OnPaintBackgroundInternal): remove.
25775         (OnTextAlignChanged): CreateLinkPieces before calling the
25776         superclass's method.
25777         (OnTextChanged): call CreateLinkPieces before calling superclass's
25778         method.
25779         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
25780         move around.
25781         (Select): implement this, moving the selection between different
25782         links, and call parent.SelectNextControl if we don't have another
25783         link to focus in the given direction.
25784         (CreateLinkPieces): call Invalidate instead of Refresh.
25785         
25786 2006-07-06  Chris Toshok  <toshok@ximian.com>
25787
25788         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
25789         new LinkLabel internals.
25790
25791         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
25792         over pieces looking for active/focused/etc links.  also, deal with
25793         runs of text (and links) with embedded \n's in them, and use
25794         MeasureCharacterRanges instead of MeasureString to figure out the
25795         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
25796         two-step.
25797
25798 2006-07-04  Jackson Harper  <jackson@ximian.com>
25799
25800         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
25801         XKB or key auto repeat, do it manually.  Without key auto repeat,
25802         when a key is held down we get key press, key release, key press,
25803         key release, ... with auto repeat we get key press, key press, key
25804         press ..., and then a release when the key is actually released.
25805
25806 2006-07-03  Jackson Harper  <jackson@ximian.com>
25807
25808         * TabControl.cs:
25809         * ThemeWin32Classic.cs: Tabs do not obey normal background color
25810         rules, they are always control color regardless of the background
25811         color.
25812
25813 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
25814
25815         * FileDialog.cs: Added internal class MWFConfig.
25816           Removed Registry support and replaced it with support for the new
25817           MWFConfig class. See MWFConfig comments for more information.
25818
25819 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
25820
25821         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
25822           rectangle. Added some patches from eno from bug #78490 and fixed
25823           the arrow position for small up and down CPDrawScrollButtons.
25824
25825 2006-06-30  Jackson Harper  <jackson@ximian.com>
25826
25827         * InternalWindowManager.cs: Remove some debug code.
25828         * Form.cs: When an MdiParent is set to null, the window is
25829         "detatched" and becomes a normal window.
25830         * MdiClient.cs: Don't bring the new child form to the front until
25831         it is activated (setting it as active does this), this makes the
25832         previously active forms titlebar get redrawn as inactive.
25833
25834 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
25835
25836         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
25837           with later controls
25838
25839 2006-06-29  Mike Kestner  <mkestner@novell.com>
25840
25841         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
25842         arrow in keynav state.  Fixes #78682.
25843
25844 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
25845
25846         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
25847           order (fixes #78393)
25848
25849 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
25850
25851         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
25852           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
25853           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
25854           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
25855           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
25856           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
25857           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
25858           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
25859           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
25860           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
25861           enumerations (FlagsAttribute, SerializableAttribute, added/removed
25862           values)
25863
25864 2006-06-28  Mike Kestner  <mkestner@novell.com>
25865
25866         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
25867
25868 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
25869
25870         * PropertyGrid.cs,
25871           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
25872           item lines from other area (It also makes BackColor consistent and
25873           compatible with .NET). Fixed bug #78564.
25874
25875 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
25876
25877         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
25878         Patch from Eno for #78555.
25879
25880 2006-06-27  Chris Toshok  <toshok@ximian.com>
25881
25882         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
25883
25884         * DataGridColumnStyle.cs: same.
25885
25886         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
25887         
25888         * DataGridDrawingLogic.cs: nuke.
25889
25890 2006-06-27  Chris Toshok  <toshok@ximian.com>
25891
25892         * DataGridTableStyle.cs: clean up the constructors, and build the
25893         list of child relations for this table.  I have no idea if this is
25894         where we should be doing it (it probably isn't), but since we're
25895         already iterating over the properties..
25896
25897         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
25898         struct and array for keeping track of row information, similar to
25899         what's shown in a hack on
25900         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
25901
25902         * Theme.cs: be consistent about the naming of DataGrid methods,
25903         prefering ColumnWidths and RowHeights over columnsWidths and
25904         RowsHeights.
25905
25906         * ThemeWin32Classic.cs: same, and also add support for variable
25907         sized rows (and the +/- expansion icons for related rows).
25908
25909 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25910
25911         * TextBoxBase.cs: Applied Eno's patch from #78660
25912
25913 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25914
25915         * Form.cs (ScaleCore): We don't want to scale our form if it's
25916           state is minimized or maximized, but we still need to scale our
25917           child windows. Also, added try/finally block to ensure layout
25918           gets reset (Fixes #78697)
25919
25920 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25921
25922         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
25923
25924 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25925
25926         * Form.cs: Fixed c+p error and added check to resize form if minimum
25927           size is bigger than current size (Fixes #78709)
25928
25929 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
25930
25931         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
25932
25933 2006-06-26  Mike Kestner  <mkestner@novell.com>
25934
25935         * ComboBox.cs: only do Keypress handling in the combo when there  
25936         are items in the collection. Fixes #78710.
25937
25938 2006-06-26  Chris Toshok  <toshok@ximian.com>
25939
25940         * Binding.cs: make this work bi-directionally.  also, clear up
25941         other mixups between Push/Pull Data (e.g. we're supposed to pull
25942         data when validating).
25943
25944         * BindingManagerBase.cs: trim some fully qualified collection
25945         types.
25946
25947         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
25948
25949 2006-06-23  Chris Toshok  <toshok@ximian.com>
25950
25951         * PropertyManager.cs: It appears (according to the unit tests)
25952         that PropertyManager doesn't use
25953         PropertyDescriptor.AddValueChanged to track propery value changes
25954         in its datasource, but uses the same scheme as Binding, where it
25955         looks for a <Property>Changed event and binds to it.
25956
25957         Also, according to the docs, IsSuspended always returns false for
25958         a property manager with a non-null datasource.
25959
25960 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
25961
25962         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
25963           need to update the actual DialogResult. (Fixes #78613)
25964
25965 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
25966
25967         * Form.cs (ShowDialog): Release any captures before running the
25968           new message pump (fixes #78680)
25969
25970 2006-06-22  Mike Kestner  <mkestner@novell.com>
25971
25972         * ListView.cs: Layout column widths properly in details mode even 
25973         if HeaderStyle.None is set.  Fixes #78691.
25974
25975 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
25976
25977         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
25978
25979 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
25980
25981         * Control.cs (ContainsFocus): Using new driver method to get focused
25982           window, instead of trying to use internal tracking var, which can
25983           recursion issues (Fixes #78685)
25984         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
25985           XplatUIWin32.cs: Added GetFocus method to return focused window
25986
25987 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25988
25989         * ColorDialog.cs: when the mouse button is pressed inside the color
25990         matrix, don't let the cursor move out of it until the button is
25991         released, which is the behavior on windows. Changed 'colours' by
25992         'colors' to use the same word consistently.
25993
25994 2006-06-21  Chris Toshok  <toshok@ximian.com>
25995
25996         * DataGrid.cs: add in some basic navigation stuff (navigating to a
25997         child relation and back, using a stack).  Also, remove
25998         GetDataSource and the code that calls it - it's not needed.  Also,
25999         track CurrencyManager.ListName's removal.
26000
26001 2006-06-21  Chris Toshok  <toshok@ximian.com>
26002
26003         * CurrencyManager.cs: push some of the original type checking from
26004         BindingContext.CreateBindingManager to here, and remove some of
26005         the finalType stuff.  Need more tests to make sure I've got the
26006         ListName part right, and we might need more in SetDataSource.
26007
26008         * PropertyManager.cs: add a ctor that takes just the datasource,
26009         and no property name.  Make SetDataSource work with a null
26010         property_name, and make Current return the data_source if the
26011         property descriptor is null.  this makes 'string foo = "hi";
26012         BindingContext[foo].Current' return "hi" as it should.
26013
26014         * RelatedCurrencyManager.cs: make this code more generic - there's
26015         no reason the parent manager has to be CurrencyManager, and
26016         there's no reason to pass the DataRelation.  It suffices to use a
26017         BindingManagerBase and PropetyDescriptor.
26018
26019         * RelatedPropertyManager.cs: make a similar change here.
26020         
26021         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
26022         flower I knew it could be.
26023
26024 2006-06-20  Chris Toshok  <toshok@ximian.com>
26025
26026         * PropertyManager.cs: the PropertyChangedHandler is invoked when
26027         data in the source has changed and we need to update the control,
26028         so s/PullData/PushData.
26029
26030         * CurrencyManager.cs: Refresh is meant to update the control from
26031         data in the datasource.  So, s/PullData/PushData.
26032
26033         * BindingContext.cs: add more ugliness (we weren't handling the
26034         case where data_source = DataTable and data_member = column_name).
26035
26036         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
26037         from the perspective of the datasource.  PullData pulls from the
26038         control, PushData pushes to the control.
26039
26040 2006-06-20  Chris Toshok  <toshok@ximian.com>
26041
26042         * BindingContext.cs: rewrite the CreateBindingManager code to
26043         handle navigation paths more or less properly.  This could
26044         definitely stand some more work, in particular to push the
26045         recursion up to the toplevel.  But that relies on fixes in other
26046         places (System.Data comes to mind).
26047
26048         Also, move to a flat hashtable (and encode the twolevel nature of
26049         the dictionary into the hash key).  This lets us implement the
26050         IEnumerable.GetEnumerator method.
26051
26052         * RelatedCurrencyManager.cs: new class.  Update our view based on
26053         our relation and our parent CurrencyManager's position.
26054
26055         * CurrencyManager.cs: split out some logic from the ctor into
26056         SetView, so it can be called from the new RelatedCurrencyManager
26057         subclass.
26058
26059         * RelatedPropertyManager.cs: new class.  Update our datasource
26060         based on the position of our parent CurrencyManager.
26061
26062         * PropertyManager.cs: split out some logic from the ctor into
26063         SetDataSource, so it can be called from the new RelatedDataSource
26064         subclass.  Also, make the Current getter return the value
26065         of the PropertyDescriptor, not the data_source.
26066
26067         * Binding.cs: no need to duplicate the string splitting code here.
26068
26069 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
26070
26071         * Control.cs:
26072           - set_Enabled: OnEnabledChanged is not called if the inherited state 
26073             of the control is not altered, even though  we might be changing the
26074             internal state of the control (#78458)
26075           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
26076             OnEnabledChanged, to allow easy altering of any child window state
26077           - OnEnabledChanged: Added code to enable/disable driver window state
26078           - OnParentEnabledChanged: Instead of firing the event, call 
26079             OnEnabledChanged, which will fire the event and also a) set driver
26080             window state and pass the enabled state to any grandchildren (#78458)
26081
26082 2006-06-19  Jackson Harper  <jackson@ximian.com>
26083
26084         * InternalWindowManager.cs: We don't set the cursor explicitly
26085         thats done via the response to NCHITTESTs.
26086         - Don't need to adjust for titlebar heights anymore, the
26087         coordinates are coming in the correct coordinates now (see peters
26088         last patch).
26089
26090
26091 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
26092
26093         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
26094           being translated relative to whole window, instead of client window.
26095           That caused broken offsets on mouseclick (and caused gas for our
26096           InternalWindowManager)
26097
26098 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
26099
26100         * TextControl.cs:
26101           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
26102           - Undo(): Added replay of cursor move on DeleteChars action; added
26103             calling Undo() again if a recorded cursor move is invalid (to
26104             ensure that some action is performed on Undo)
26105         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
26106
26107 2006-06-16  Jackson Harper  <jackson@ximian.com>
26108
26109         * MdiClient.cs: Instead of just sizing maximized windows when
26110         there is a resize we also have to adjust the Y of minimized
26111         windows, so they stay pinned to the bottom of the mdi container.
26112         - Eliminate separate tracking of the active control, we can just
26113         get this from the controls collection.
26114         - Paint the decorations for the newly activated titlebar so we get
26115         a pretty blue bar.
26116         * InternalWindowManager.cs:
26117         * ThemeWin32Classic.cs: Minimized windows get all three buttons
26118         even if they are a tool window.
26119         
26120 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
26121
26122         * TextControl.cs (Undo): Handle non-existent cursor locations in the
26123           undo buffer, these can happen when text was deleted and the cursor
26124           was recorded first. Since we will also have a recorded cursor
26125           after the delete this is not an issue. (Fixes #78651)
26126
26127 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
26128
26129         * AccessibleObject.cs: Remove dependence on Control.is_selected;
26130           instead properly track control states internally (allows us to
26131           remove is_selected from Control)
26132
26133 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26134
26135         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
26136         whose width is not a multiple of 8.
26137
26138 2006-06-13  Jackson Harper  <jackson@ximian.com>
26139
26140         * MdiClient.cs:  Only maximize the next child if the current one
26141         is maximized.
26142
26143 2006-06-13  Chris Toshok  <toshok@ximian.com>
26144
26145         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
26146         modified.  Also, guard against grid or grid_drawing being null in
26147         Invalidate.
26148
26149         * DataGrid.cs: Reformat tons of getters/setters.  In the
26150         DataMember setter, just call SetNewDataSource instead of
26151         duplicating some of its functionality.  In SetNewDataSource, don't
26152         check ListManager for null, since the property getter creates the
26153         object if needed.
26154
26155         * DataGridTableStyle.cs: don't set TableStyle or call
26156         SetDataGridInternal on the column here, it's done in
26157         GridColumnStylesCollection.Add.
26158
26159         * GridColumnStylesCollection.cs: fix all the explicit interface
26160         implementations to just call our methods.  Nuke AddInternal() and
26161         move the body of it to Add().  Also, add a call to
26162         column.SetDataGridInternal to Add().
26163
26164         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
26165         base()+duplicate code.  Also, use the Format property instead of
26166         format to generate an Invalidate ala MS.  Lastly, create the
26167         textbox here, unconditionally.
26168         (set_Format): call Invalidate.
26169         (get_TextBox): no need to call EnsureTextBox.
26170         (Commit): remove the message box.
26171         (Edit) remove the call to EnsureTextBox.
26172         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
26173         (EnterNullValue): no need to check textbox for null.
26174         (HideEditBox): no need to check textbox for null.
26175         (SetDataGridInColumn): add the textbox to the grid's controls.
26176         (EnsureTextBox): nuke.
26177         
26178 2006-06-13  Jackson Harper  <jackson@ximian.com>
26179
26180         * MdiWindowManager.cs: Hook up to the maximized menus paint event
26181         and redraw the buttons when needed. Unhook when the window is
26182         unmaximized.
26183         * MainMenu.cs: Add an internal Paint event, the mdi window manager
26184         needs this so that it can redraw its buttons when the menu is
26185         repainted.
26186         * InternalWindowManager.cs:
26187         * Form.cs: The method order has changed for DrawMaximizedButtons,
26188         so that it can be a PaintEventHandler.
26189         
26190 2006-06-13  Jackson Harper  <jackson@ximian.com>
26191
26192         * MdiClient.cs: When we close a maximized mdi window, the next mdi
26193         window is activated and maximized, even if it wasn't before.
26194         - When  a new window is activated repaint the decorations of the
26195         old one, so that it no longer has the Active "look" (the blue
26196         titlebar).
26197         * InternalWindowManager.cs: Open up CreateButtons to base classes
26198         so they can recreate the buttons on state changes.
26199         - If a window is maximized give it all three buttons
26200         * MdiWindowManager.cs: Create the titlebar buttons when the state
26201         is changed, this is needed because a toolwindow will not have all
26202         three buttons until it is maximized.
26203
26204 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
26205
26206         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
26207           Fixed bug #78609.
26208
26209 2006-06-12  Jackson Harper  <jackson@ximian.com>
26210
26211         * KeysConverter.cs: Make sure we handle the Ctrl special case
26212         if its the only key.
26213         
26214 2006-06-12  Jackson Harper  <jackson@ximian.com>
26215
26216         * Theme.cs: Add a method to get the size of a managed window
26217         toolbar button.
26218         * InternalWindowManager.cs: Remove the ButtonSize property, this
26219         should be retrieved from the theme.
26220         * MdiWindowManager.cs: Get the button size from the theme
26221         * ThemeWin32Classic.cs: Make the method to get the managed window
26222         titlebar button size public.
26223         - Handle the different button sizes of maximized toolwindows
26224         (should match any maximized window).
26225         - Get the titlebar height from the theme, not the WM (which gets
26226         it from the theme).
26227
26228 2006-06-12  Jackson Harper  <jackson@ximian.com>
26229
26230         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
26231         event down to the mdi window manager.
26232         - Expose some extra stuff to base classes
26233         - Make sure to end the Capture on an NC Mouse up, so that we can
26234         get double clicks properly, and the sizing doens't stick.
26235         - When doing PointToClient contain it in the workable desktop
26236         area, this prevents windows from changing size when the cursor is
26237         pulled outside of the working area while sizing.
26238         * MdiWindowManager.cs: When we get a double click maximize the
26239         window.
26240         - Reset the cursor after handling mode changes.
26241
26242 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
26243
26244         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
26245           current desktop, instead of just assuming a 0, 0 origin. This
26246           is needed for our internal window manager, to know the top
26247           margin of the desktop
26248
26249 2006-06-12  Chris Toshok  <toshok@ximian.com>
26250
26251         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
26252         we need this to get rid of the selected background in the bool
26253         column.
26254         (CancelEditing): move the ConcedeFocus call to above the Abort
26255         call.  Also, set is_changing to false and invalidate the row
26256         header if we were changing before.
26257         (ProcessKeyPreviewInternal): remove, since noone outside this
26258         class calls it anymore.  Roll the code into ProcessKeyPreview.
26259         (EndEdit): remove the internal version.
26260         (InvalidateCurrentRowHeader): make private.
26261
26262         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
26263         Keys.Escape handling (and with it the last call to
26264         DataGrid.EndEdit from outside the class.)
26265
26266
26267 2006-06-12  Chris Toshok  <toshok@ximian.com>
26268
26269         * DataGridTextBox.cs (.ctor): isedit defaults to false.
26270         (OnKeyPress): set isedit to true.
26271         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
26272         already handled by the grid.
26273
26274         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
26275         right.  ugh.
26276         (set_DataSource): SetDataSource always returns true, so stop
26277         putting it in an if statement.
26278         (EndEdit): get rid of some {}'s
26279         (ProcessGridKey): return true in case Keys.Escape.
26280         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
26281         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
26282         PositionChanged, stopped connecting to CurrentChanged.
26283         (GetDataSource): simplify this a bunch.
26284         (SetDataSource): change return type from bool to void.
26285         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
26286         to this, and make sure we don't set ListManager.Position inside
26287         set_CurrentCell.
26288         (OnListManagerItemChanged): if we're passed an actual index,
26289         redraw that row.
26290
26291         * CurrencyManager.cs (set_Position): don't call PullData here.
26292
26293 2006-06-09  Jackson Harper  <jackson@ximian.com>
26294
26295         * TreeNode.cs:  Recalculate the visible order before doing the
26296         Expand/Collapse Below calls, because those calls generate an
26297         expose.
26298         - Reduce calls to the TreeView property, which is mildly expensive
26299         by using a local var.
26300         * Form.cs: Layout the MDI child windows when creating the parent
26301         form.
26302         - Don't use the internal constructor anymore
26303         * MdiClient.cs: use the parent form width/height (if available)
26304         when laying out the child windows, we do this because the
26305         mdiclient isn't docked yet when the initial layout is done.
26306         - Don't need an internal constructor anymore.
26307
26308 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26309
26310         * FileDialog.cs: handle access errors when trying to create a folder
26311         or changing to a directory. No need to initialize out parameters.
26312
26313 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
26314
26315         * FileDialog.cs: Append a number when creating a new folder if the
26316           folder already exists (use parenthesis instead of square brackets)
26317
26318 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
26319
26320         * FileDialog.cs:
26321           - Disabled registry support for windows and added better registry
26322             error checking for other systems (need to investigate why it
26323             works perfectly on my system)
26324           - If a folder already exist show an error MessageBox instead of
26325             trying to create an indexed name.
26326           - Fixed a non intentional typo.
26327
26328 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26329
26330         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
26331
26332 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
26333
26334         * FileDialog.cs: When creating a new folder don't crash if the
26335           folder already exists.
26336
26337 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
26338
26339         * FileDialog.cs: Allmost a complete rewrite.
26340           - added a "virtual" file system that handles the differences
26341             between unix and windows file systems (especially the directory
26342             structure). Moved most of the directory and file handling code
26343             into the vfs.
26344             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
26345             UnixFileSystem and FSEntry.
26346           - Recently used folder/directory, size, location and used file names
26347             (file name ComboBox) are now stored in the registry and get read
26348             before the dialog shows up (fixes part 6 of bug #78446).
26349           - Creation of new folders/directories is now possible (context menu
26350             or ToolBar). Added TextEntryDialog for this that fills in the gap
26351             until ListView.LabelEdit works.
26352           - Fixed cursor handling (bug #78527) and focus handling for
26353             PopupButtonPanel
26354           - Various "Search in" ComboBox enhancements. The content of the
26355             dropdown listbox now almost matches ms.
26356           - Changed the behaviour when the user switches to SpecialFolder
26357             Recent to show the ListView in View.Details.
26358           - Beside using the ToolBar to change the View property of the
26359             file ListView it is now possible to use the context menu too.
26360
26361 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
26362
26363         * ComboBox.cs: Don't create a new ObjectCollection when an item
26364           gets inserted. Just insert the item in the existing object_items
26365           ArrayList.
26366
26367 2006-06-08  Jackson Harper  <jackson@ximian.com>
26368
26369         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
26370         that the treeview and root node checks are done also, this fixes a
26371         regression i caused in the unit tests.
26372
26373 2006-06-07  Wade Berrier <wberrier@novell.com> 
26374
26375         * RichTextBox.cs: More ISO8859-1 -> unicode
26376
26377 2006-06-07  Mike Kestner  <mkestner@novell.com>
26378
26379         * ComboBox.cs : use items to hold highlight/selection so that
26380         collection insertions don't require synchronization.
26381
26382 2006-06-07  Jackson Harper  <jackson@ximian.com>
26383
26384         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
26385         routine.  We now always keep the sized edge at the cursor instead
26386         of computing movement and adjusting rects.  There is one buglet
26387         with this method though when the cursor is moved over area that
26388         the window can not expand too (such as the toolbars on the desktop).
26389
26390 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26391
26392         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
26393         here. Fixes crash on startup in AlbumSurfer.
26394
26395 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
26396
26397         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
26398           values
26399
26400 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26401
26402         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
26403         statement to avoid calling XNextEvent which will block if another thread
26404         took the event that we were expecting. Fixes bug #78605.
26405
26406 2006-06-07  Mike Kestner  <mkestner@novell.com>
26407
26408         * ListView.cs : isolated checkbox clicking from the selection logic.
26409         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
26410
26411 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
26412
26413         * Form.cs: Check that the value passed to Form.DialogResult
26414         is a valid enum value.
26415
26416 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26417
26418         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
26419         Computer'. Clicking it in the network view goes to 'My Computer'.
26420         Added CIFS filesystem type. Display the mount point of filesystems.
26421         Avoid duplicate mount points (happens for me with CIFS);
26422
26423 2006-06-06  Jackson Harper  <jackson@ximian.com>
26424
26425         * InternalWindowManager.cs: Draw the maximized windows buttons
26426         when resizing.
26427
26428 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26429
26430         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
26431         all other dialogs. Fixes bug #78585.
26432
26433 2006-06-06  Mike Kestner  <mkestner@novell.com>
26434
26435         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
26436         Only invalidate checkbox on checkstate changes to avoid flicker.
26437         * ListBox.cs : avoid unselect/select when clicking selected item.
26438         avoid reselection flicker for already multiselected items.
26439         Fixes #78382.
26440
26441 2006-06-06  Jackson Harper  <jackson@ximian.com>
26442
26443         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
26444         the parent form so that the menu is removed if needed.
26445
26446 2006-06-06  Mike Kestner  <mkestner@novell.com>
26447
26448         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
26449         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
26450
26451 2006-06-06  Mike Kestner  <mkestner@novell.com>
26452
26453         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
26454
26455
26456 2006-06-06  Jackson Harper  <jackson@ximian.com>
26457
26458         * Control.cs: Use the property (instead of the field) to get the
26459         default cursor so it is instantiated correctly.
26460         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
26461         resizes so we need to manually repaint the window decorations here.
26462         - Set the titlebar button locations as soon as they are created,
26463         otherwise they are not set correctly on win32.
26464         
26465 2006-06-06  Chris Toshok  <toshok@ximian.com>
26466
26467         * CurrencyManager.cs (set_Position): call PullData before
26468         OnCurrentChanged.
26469         (AddNew): after calling IBindingList.AddNew, update our
26470         listposition, and call OnCurrentChanged/OnPositionChanged (without
26471         calling PullData).
26472         (OnCurrentChanged): remove the call to PullData from here.
26473         (OnItemChanged): remove the call to PushData from here.
26474         (OnPositionChanged): change the test from == null to != null to
26475         match the other methods.
26476         (ListChangedHandler): the grossest part of the patch.  Implement
26477         this such that it passes the unit tests in CurrencyManagerTest and
26478         the output more or less matches that of MS's implementation.
26479  
26480 2006-06-06  Mike Kestner  <mkestner@novell.com>
26481
26482         * ListView.cs : only update check state on single click.
26483         * ThemeWin32Classic.cs : fix focus drawing for details view without
26484         fullrowselect.  Fixes #78454.
26485         * XplatUIX11.cs : fix for double click emission.
26486
26487 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
26488
26489         * PropertyGridView.cs : Applied Atsushi's patch to fix
26490         font dialog bug  (#78197).
26491
26492 2006-06-05  Jackson Harper  <jackson@ximian.com>
26493
26494         * TreeNode.cs: Compute the next node for expanding/collapsing
26495         correctly. We now factor in nodes without a NextNode
26496         correctly. (Fixes somes cases in nunit-gui).
26497         * InternalWindowManager.cs: Set the bounds when updating the
26498         virtual position of a tool window.
26499         
26500 2006-06-05  Chris Toshok  <toshok@ximian.com>
26501
26502         * DataGrid.cs: rename cached_currencymgr to list_manager.
26503         (set_CurrentCell): move SetCurrentCell code here, and clean it up
26504         some.
26505         (CurrentRow, CurrentColumn): single accessors so we can make the
26506         cursor movement code a lot easier to understand.
26507         (CurrentRowIndex): implement this in terms of CurrentRow.
26508         (BeginEdit): clean this up a bit.
26509         (CancelEditing): sort out the is_editing/is_changing/is_adding
26510         stuff a little.
26511         (EndEdit): minor changes.
26512         (OnKeyDown): add a comment about a (most likely) unnecessary
26513         check.
26514         (OnMouseDown): cancel editing when we click on a row header.  And
26515         use the CurrentRow setter, not CurrentCell.
26516         (ProcessDialogKey): directly call ProcessGridKey.
26517         (UpdateSelectionAfterCursorMove): factor out this common block of
26518         code (it's used everywhere that we move the cursor by updating row
26519         or column).
26520         (ProcessGridKey): pretty substantial overhaul.  Use the
26521         CurrentRow/CurrentColumn properties to make the code a lot more
26522         readable.  Only use the CurrentCell property when we have to
26523         modify both row and column at once.  Tab behavior is still broken,
26524         and Delete is untested.
26525         (Select): if we have no selected rows, set selection_start to
26526         @row.
26527         (EditCurrentCell): rename EditCell this.  It was only ever invoked
26528         with CurrentCell as the arg, so drop the arg and rename it.
26529
26530         * DataGridColumnStyle.cs: clean up the constructors a little, and
26531         drop CommonConstructor().
26532
26533         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
26534         actually get notified when the user hits it.
26535         (ProcessKeyMessage): *substantially* simplify this method.
26536         There's no reason (that I can see) for the textbox to be making
26537         calls into the datagrid at all.  Remove all of them but the ones
26538         for Enter handling.  those will take some more work.
26539
26540         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
26541         calling HideEditBox.
26542         (HideEditBox): if we have an active textbox, render it invisible
26543         without causing a re-layout of the datagrid.
26544
26545 2006-06-05  Mike Kestner  <mkestner@novell.com>
26546
26547         * ListView.cs : fix NRE crasher when focuseditem is cleared by
26548         collection changes by resetting it to Items[0].  Fixes #78587.
26549
26550 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26551
26552         * MessageBox.cs: if the height of the text is larger than the icon_size,
26553         use that. Fixes bug #78575.
26554
26555 2006-06-05  Jackson Harper  <jackson@ximian.com>
26556
26557         * TreeView.cs: Fix line drawing when scrolling.  To do this each
26558         node is basically responsible for drawing its entire horizontal
26559         area.  When drawing a node it draws its parent node lines if
26560         needed.
26561         - Adjust the clip area to the viewport rectangle
26562         - Fix Left/Right key handling to match MS. (It expand/collapses
26563         and moves to parents/first child but does not move selection to
26564         sibling nodes).
26565         - Fix SetTop to work with new bound calculation code
26566         - When scrollbars are no longer needed we need to reset scrolling
26567         vars and recalculate the visible order so the redraw is correct
26568         * TreeNode.cs: We can't expand/collapse nodes with no children.
26569
26570 2006-06-03  John Luke  <john.luke@gmail.com> 
26571
26572         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
26573         so the colors work without dev packages
26574         
26575 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
26576
26577         * Control.cs 
26578           - Select: Implemented to just use activate. Seems to match MS 
26579             behaviour closest. Documented to only do actual control walking 
26580             based on it's parameters if in a container control so I moved 
26581             the code there.
26582           - Removed selection check logic from our internal Select() method
26583         * ContainerControl.cs:
26584           - Select: Moved selection logic from Control here, since MS documents
26585             that containers obey the bool arguments. No longer calling base
26586
26587 2006-06-02  Jackson Harper  <jackson@ximian.com>
26588
26589         * TreeView.cs: If the selected node isn't changed when we get
26590         focus update the previously selected node so that we see the
26591         selection box.
26592
26593 2006-06-02  Mike Kestner  <mkestner@novell.com>
26594
26595         * ComboBox.cs: restructure grab and general mouse event handling.
26596         Make the composite control raise mouse events like it was a single
26597         control for leaves/enters/motion/up/down events.  fix dropdown list
26598         coordinate mangling and refactor it into the scrollbar subclass to
26599         reduce code duplication.  Fixes #78282 #78361 and #78457.
26600
26601 2006-06-02  Mike Kestner  <mkestner@novell.com>
26602
26603         * ScrollBar.cs: remove Capture setting/clearing, as it happens
26604         automatically in the Control.WndProc.
26605
26606 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26607
26608         * FileDialog.cs: fix crash when running SharpChess, which sets the
26609         FilterIndex to 2 with only one Filter.
26610
26611 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26612
26613         * ToolBar.cs: add SizeSpecified property.
26614         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
26615         try to figure out our real size, otherwise fallback to what the
26616         container says.
26617
26618 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
26619
26620         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
26621         * Control.cs (WndProc): MS always calls the DefWndProc to pass
26622           up the event
26623
26624 2006-06-01  Mike Kestner  <mkestner@novell.com>
26625
26626         * ListView.cs: revamp the focus management in ListView.  It still
26627         causes churn of LostFocus/GotFocus emissions on clicks, but it's
26628         better than not handling focus at all.  Will revisit when pdb feels
26629         the general focus handling is solid.  Fixes #78526.
26630
26631 2006-06-01  Jackson Harper  <jackson@ximian.com>
26632
26633         * TreeView.cs: Set the default border style in the constructor.
26634         - Move painting to use OnPaintInternal instead of capturing
26635         WM_PAINT, this is the correct way of doing things
26636         - UpdateBelow shouldn't invalidate the scrollbar area
26637         - Cap the top on update below in case the node was above the top
26638         of the viewport rectangle.
26639         - ExpandBelow and Collapse below need to obey Begin/End Update.
26640         * TreeNode.cs: Make is_expanded internal so the treenode
26641         collection can change it without firing the whole event chain.
26642         * TreeNodeCollection.cs: When clearing all the child nodes make
26643         sure to recalc the visible order.
26644         - Improve algo for remove the top node
26645
26646 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
26647
26648         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
26649           SendMessage directly calling window procedures, which in turn might
26650           call SetFocus()
26651
26652 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
26653
26654         * Control.cs: Don't handle WM_SETFOCUS if the same window already
26655           has focus (works around X11 sending a FocusIn after our SetFocus)
26656         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
26657
26658 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
26659
26660         * Mime.cs: Fix for the NET_2_0 build.
26661           NameValueCollection needs StringComparer now.
26662
26663 2006-05-31  Chris Toshok  <toshok@ximian.com>
26664
26665         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
26666         return (via an out parameter) the starting X of the column.
26667         (UpdateVisibleColumn): track change to FromPixelToColumn.
26668         (HitTest): add a ColumnResize case here.
26669         (DrawResizeLine): new function, probably poorly named.
26670
26671         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
26672         only need to keep one reference.
26673         (set_ListManager): same.
26674         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
26675         Also, add support for HitTestType.ColumnResize.
26676         (OnMouseMove): add column resize behavior here, and change the
26677         cursor to the correct one as we move around the datagrid.
26678         (OnMouseUp): terminate the column resize if we're resizing.
26679         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
26680         for the current cell.
26681         (ConnectListManagerEvents): use cached_currencymgr.
26682         (DisconnectListManagerEvents): fill this in, using
26683         cached_currencymgr.
26684         (SetCurrentCell): remove cached_currencymgr_events handling.
26685         (SetDataMember): only call DisconnectListManagerEvents if
26686         cached_currencymgr is != null.
26687         (SetDataSource): same.
26688         (OnListManagerCurrentChanged): cached_currencymgr_events ->
26689         cached_currencymgr.
26690
26691 2006-05-31  Jackson Harper  <jackson@ximian.com>
26692
26693         * BindingManagerBase.cs: Remove somedebug code that creeped into
26694         SVN.
26695         * TreeNode.cs: We get the indent level dynamically right now, so
26696         don't track it as a member.
26697         * TreeNodeCollection.cs: Make sure all nodes added to the list
26698         have parents, treeviews/topnodes setup properly.
26699         - Don't attempt to track indent level.
26700
26701 2006-05-30  Jackson Harper  <jackson@ximian.com>
26702
26703         * BindingContext.cs: Create the currency manager tables here.
26704         This allows us to more easily create null tables (when bad data
26705         members are used), and more easily create related currency
26706         managers.
26707         * CurrencyManager.cs: All the table creation stuff is done by the
26708         binding context now.
26709         - Current should throw an exception if listposition is -1.
26710         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
26711         been bound yet.
26712
26713 2006-05-30  Mike Kestner  <mkestner@novell.com>
26714
26715         * ListView.cs: allow reexpansion of zero-width column headers.
26716         Fixes #78528.
26717
26718 2006-05-28  Chris Toshok  <toshok@ximian.com>
26719
26720         * CurrencyManager.cs (get_Current): after the late binding
26721         listposition = -1 fix, we need to guard against it here and return
26722         null, otherwise we raise an exception (which is swallowed
26723         elsewhere, and breaks datagrid databinding.)
26724
26725 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
26726
26727         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
26728           than WM_SYSKEY, don't throw if get something unexpected (#78507)
26729
26730 2006-05-26  Jackson Harper  <jackson@ximian.com>
26731
26732         * ControlPaint.cs:
26733         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
26734         values, it's faster and it's all we care about (we don't care if
26735         the names aren't equal).
26736         * KeyboardLayouts.cs: Eliminate some dead code.
26737         - Lazy init things
26738         * X11Keyboard.cs: Lazy init keyboard detection.
26739         - Cleanup access modifiers a little.
26740
26741 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
26742
26743         * XplatUIX11.cs: Once again, attempting to get layout just right.
26744
26745 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
26746
26747         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
26748           the sizes of each link section, that will result in sizes that
26749           match DrawString's layout (Fixes #78391)
26750
26751 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
26752
26753         * FileDialog.cs: If AddExtension property is true autocomplete the
26754           extensions in SaveFileDialog correctly. Fixes bug #78453.
26755           Set MyNetwork and MyComputer to "C:\" for windows. This should
26756           fix part 8 of bug #78446 for now.
26757
26758 2006-05-26  Chris Toshok  <toshok@ximian.com>
26759
26760         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
26761         invalidate the current row header if we need to, but presumably
26762         we'll invalidate the row corrsponding to the bounds or
26763         editingControl.
26764         (GridHScrolled): switch back to this method, as it's part of the
26765         public api.  *sigh*.
26766         (GridVScrolled): same.
26767         (OnMouseWheel): hack up something that more or less works.  Call
26768         GridHScrolled/GridVScrolled directly, instead of duplicating much
26769         of their code here.
26770         (EnsureCellVisibility): reinstate a bunch of this code, since we
26771         can't just set the scrollbar Value and expect to do all the work
26772         in the ValueChanged handler.  Also, Call Update() after scrolling
26773         in one direction so the other XplatX11.ScrollWindow call has the
26774         proper stuff in the proper places.
26775         (EditCell): set is_editing to true before calling .Edit.
26776
26777         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
26778         don't bother comparing first.
26779         (OnKeyPress): call grid.ColumnStartedEditing before calling
26780         base.OnKeyPress.  this will set is_changing and invalidate the row
26781         header if necessary.
26782         (ProcessKeyMessage): for WM_CHAR messages, call
26783         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
26784         and WM_KEYDOWN.
26785         
26786         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
26787         it's done in the DataGrid.
26788         (NextState): call grid.ColumnStartedEditing, which takes care of
26789         invalidating the row header (and setting is_changing).
26790
26791         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
26792         here.  it's done in the DataGrid.
26793
26794 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26795
26796         * Control.cs: allow changing the cursor when the mouse position is
26797         out of bounds but Capture is set.
26798         * LinkLabel.cs: handle the case when the mouse button is pressed on the
26799         linklabel but released somewhere else.
26800
26801 2006-05-25  Jackson Harper  <jackson@ximian.com>
26802
26803         * TreeView.cs: When we get focus if there is no selected node make
26804         it the top node
26805         - Remove some uneeded setup code from Draw.
26806         * TreeNodeCollection.cs: If the tree doesn't have a top node when
26807         a new node is inserted make the new node the top.
26808         * XplatUIX11.cs:
26809         * Timer.cs: Use Utc time so that no local time zone stuff needs to
26810         be used (should be faster).
26811         
26812 2006-05-25  Chris Toshok  <toshok@ximian.com>
26813
26814         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
26815         problem with the last commit.
26816
26817 2006-05-25  Chris Toshok  <toshok@ximian.com>
26818
26819         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
26820         need the invalidate call here, while scrolling right-to-left via
26821         the left arrow key (i.e. moving the editing cell while scrolling).
26822
26823         * DataGrid.cs (.ctor): remove the initialization of
26824         ctrl_pressed/shift_pressed.  We no longer track them using key
26825         up/down handlers, but by using Control.ModifierKeys.  Also, switch
26826         to using ValueChanged handlers on the scrollbars instead of
26827         Scrolled event handlers.  This simplifies a bunch of the scrolling
26828         code.
26829         (GridHValueChanged): rename from GridHScrolled, and change it to
26830         work with the new event args.
26831         (GridVValueChanged): same.
26832         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
26833         (OnMouseWheel): actually scroll the datagrid.  Don't change the
26834         selected cell.
26835         (ProcessGridKey): correct all the keyboard navigation stuff I
26836         could find.  Ctrl up/down/left/right/home/end work now.
26837         (EnsureCellVisibility): correct method name spelling.  Also,
26838         simplify this a touch by not explicitly calling the
26839         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
26840         scrollbar value.
26841         (OnKeyUpDG): no need for this method now.
26842         
26843 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26844
26845         * LinkLabel.cs: display the OverrideCursor when hovering the label.
26846         Fixes bug #78392.
26847
26848 2006-05-25  Chris Toshok  <toshok@ximian.com>
26849
26850         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
26851         r61019.
26852
26853 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
26854
26855         * Application.cs: Moved setting of is_modal and closing to before
26856           we create the control, to allow the event handlers called as a
26857           result of creation affect closing. Also removed Gonzalo's previous
26858           change to setting DialogResult, the behaviour has been moved to 
26859           Form.ShowDialog()
26860         * Form.cs: 
26861           - ShowDialog(): Removed explicit creation of the form, let RunLoop
26862             handle it instead
26863           - ShowDialog(): If no dialog result is set, we need to return Cancel
26864           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
26865             the close is cancelled
26866
26867 2006-05-25  Jackson Harper  <jackson@ximian.com>
26868
26869         * StatusBar.cs: We only need to update the sizes of the other
26870         panels when we have auto size contents.  Also we are only updating
26871         the contents of the panel, not the borders, so compensate for the
26872         border width (TODO: get this width from the theme somehow).
26873         * TreeView.cs: Scrollable is true by default
26874         - Use invalidate instead of refresh where needed
26875         - Factor the scrollable value into scrollbar updating
26876         - Update the scrollbars if the Scrollable property is altered
26877         - Update the selected node if its ImageIndex is changed
26878         - Handle null nodes in UpdateNode (mainly so we don't have to
26879         check if selected is null when updating it
26880         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
26881         are factored into the visible count
26882         - Use VisibleCount for clarity in the code
26883         - When the font is changed we need to recurse through all the
26884         nodes and invalidate their sizes
26885         
26886 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26887
26888         * Application.cs: set the DialogResult to fixed when the main form is
26889         hidden or destroyed while being modal.
26890
26891 2006-05-25  Miguel de Icaza  <miguel@novell.com>
26892
26893         * Theme.cs: Use Tangoified messagebox icons. 
26894
26895         (GetSizedResourceImage): Also cope with width = 0 and do not
26896         trigger a warning in that case (0 means "give me your icon from
26897         the resouce, no special size needed).
26898
26899 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
26900
26901         * Application.cs: Leave runloop if the the main modal form is 
26902           hidden (fixes #78484)
26903
26904 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
26905
26906         * BindingContext.cs : reject null datasource in Contains() and
26907           Item[].
26908         * CurrencyManager.cs : check data_member validity when data_source
26909           is dataset. When it is late binding, the initial position is -1.
26910
26911 2006-05-24  Jackson Harper  <jackson@ximian.com>
26912
26913         * TreeNodeCollection.cs: Dont't recalculate the visible order on
26914         inserted nodes that aren't visible.  This changes the
26915         max_visible_order which confuses scrollbar settings.
26916         - Use the enumerator to get the prev node instead of duplicating
26917         code.
26918         * TreeView.cs: Use new method for setting scrollbar values
26919         - Don't set the bounds every time the scrollbar is updated
26920         - When updating below the root node use an invalidate instead of a
26921         refresh to prevent the child controls (scrollbars) from being
26922         refreshed. (UpdateBelow still needs to be reworked anyways).
26923         - Reenable SetBottom now that visible orders are set correctly,
26924         added some debug code incase we ever get bad values there again.
26925         - Set the scrollbar max to 2 less then the max value, this
26926         compensates for the max value being one above the node count, and
26927         for scrollbars adding one extra "notch".
26928         - When drawing image nodes if there is an imagelist we draw the
26929         first image in the list if the supplied image index is out of the
26930         image list's bounds.
26931         
26932 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26933
26934         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
26935           we receive a size change from the WM (Fixes #78503)
26936
26937 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
26938
26939         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
26940           rectangle (Fixes #78501)
26941
26942 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26943
26944         * ButtonBase.cs: 
26945           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
26946             as a bitfield.
26947           - Fixed MouseMove to no longer switch pressed state unless the left
26948             mouse button is pressed. Atsushi provided the original patch (#78485)
26949           
26950 2006-05-24  Jackson Harper  <jackson@ximian.com>
26951
26952         * ScrollBar.cs: New internal methods that allow us to change a
26953         couple values on the scrollbar (the most common case is maximum
26954         and large change) without getting multiple invalidates.
26955
26956 2006-05-24  Chris Toshok  <toshok@ximian.com>
26957
26958         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
26959         (Edit): save off the original state in oldState, and set
26960         grid.is_editing to true.
26961         (OnKeyDown): abort editing if escape is pressed.  also, call
26962         NextState if space is pressed.
26963         (OnMouseDown): call NextState.
26964         (NextState): factor out shared code from OnKeyDown and OnMouseDown
26965         here.  Also, only invalidate the row header once (on the initial
26966         is_changing switch) to save on redraws.
26967
26968 2006-05-24  Chris Toshok  <toshok@ximian.com>
26969
26970         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
26971         if the value in the cell is different than it was before.  This
26972         keeps us from triggering a layout when we move around a datarid
26973         with a highlighted cell.
26974         (Edit): suspend layout when creating/positining the text box, and
26975         resume passing false so we don't ever actually re-layout.
26976         (ReleaseHostedControl): same.
26977         (EnsureTextBox): reformat slightly, and set WordWrap to false.
26978
26979         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
26980         control-key sequences should go to the datagrid - remove that
26981         lock.  Also, modify the conditions under which we move between
26982         cells when moving the cursor within a cell, and remove the "this"
26983         and "base" from field accesses.  We weren't even consistent, given
26984         they all were in the base class.
26985
26986 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
26987
26988         * Binding.cs : (.ctor)
26989           An obvious NRE fix for BindingTest.CtorNullTest().
26990
26991 2006-05-23  Chris Toshok  <toshok@ximian.com>
26992
26993         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
26994         them between lines.  This fixes some quirks editing cells in the
26995         datagrid.
26996
26997 2006-05-23  Jackson Harper  <jackson@ximian.com>
26998
26999         * TreeView.cs: Use begin/end update when doing expand/collapse all
27000         so that we don't get flicker on the scrollbar.
27001
27002 2006-05-23  Jackson Harper  <jackson@ximian.com>
27003
27004         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
27005         treenode calculations to be independant of the painting code. To
27006         do this nodes track a visible order which is calculated by the
27007         treeview.
27008         - Call new methods for expanding/collapsing nodes.  These methods
27009         use scrollwindow so we don't have to update everything below the
27010         node.
27011         * TreeView.cs: Refactored drawing and scrolling code.  We don't
27012         need to update nodes when drawing anymore or calculate scrollbar
27013         stuff.
27014         - Added new methods for expanding/collapsing nodes. These methods
27015         use ScrollWindow so as to not have to redraw all the nodes below.
27016         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
27017         we add/remove nodes or sort.
27018         - Handle removing the selected and the top node properly.
27019
27020 2006-05-23  Chris Toshok  <toshok@ximian.com>
27021
27022         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
27023         maybe this should actually happen in the datagrid code?
27024         (EndEdit): no need to invalidate anything, given that
27025         ReleaseHostedControl causes the datagrid to relayout, which
27026         invalidates everything anyway.
27027
27028         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
27029         in SetCurrentCell).
27030         (set_SelectionBackColor): call InvalidateSelection instead of
27031         Refresh.
27032         (set_SelectionForeColor): same.
27033         (BeginEdit): Flesh this out a bit.
27034         (CancelEditing): only do any of this if we're editing/adding.
27035         (EndEdit): same.
27036         (OnMouseDown): there's no need to cancel editing here, it's done
27037         in SetCurrentCell.
27038         (SetCurrentCell): only invalidate the current row header if it's a
27039         different row than the new one.
27040         (ShiftSelection): fix this to work like MS does.
27041         (ResetSelection): factor out the invalidation of selected_rows to
27042         InvalidateSelection.
27043         (SetDataSource): cancel any editing that's going on.
27044
27045         * DataGridColumnStyle.cs
27046         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
27047         call the non-interface version.
27048
27049         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
27050         header rectangle with the clip rectangle so we don't redraw the
27051         entire header for just a small area.  Gets rid of the last flicker
27052         when horizontally scrolling.
27053         (DataGridPaintRow): same.
27054
27055 2006-05-23  Mike Kestner  <mkestner@novell.com>
27056
27057         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
27058         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
27059         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
27060         Critical bug report.
27061
27062 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
27063
27064         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
27065           and this fixes #78493
27066
27067 2006-05-23  Miguel de Icaza  <miguel@novell.com>
27068
27069         * Theme.cs (GetSizedResourceImage): Scale images if the proper
27070         size is not found.  
27071         
27072         * FileDialog.cs: Do not change the background for the side bar as
27073         it wont work nicely with the theme, and also reduces the artifacts
27074         in rendering the icons (which I want to fix too).
27075
27076         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
27077         resources, not resgen resources. 
27078
27079         (PlatformDefaultHandler): Pull images using the new API.
27080
27081 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
27082
27083         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
27084           a reference to the hwnd and will not remove it unless there are
27085           no pending exposures (fixes #78341)
27086         * XplatUI.cs: Improved debug
27087
27088 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
27089
27090         * MenuAPI.cs : don't handle OnClick event when it was not the left
27091           button. Fixed bug #78487.
27092
27093 2006-05-23  Mike Kestner  <mkestner@novell.com>
27094
27095         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
27096         prefer submenus to the top menu for item lookup, to avoid popping down
27097         top-row items.
27098
27099 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
27100
27101         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
27102           Graphics.FillRectangle as the visual results are really bad (even
27103           on win). We now draw perfect arrows (and perfect shadows when the
27104           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
27105           Pen.DashPattern to draw the dots of each line.
27106
27107 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
27108
27109         * FileDialog.cs: Update the filename combobox when navigating through
27110           the ListView with the cursor keys. Fixes part 7 of bug #78446.
27111
27112 2006-05-22  Mike Kestner  <mkestner@novell.com>
27113
27114         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
27115         Fixes #78463.
27116
27117 2006-05-22  Mike Kestner  <mkestner@novell.com>
27118
27119         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
27120         requests. Fix a misspelled parameter and a copy paste exception error
27121         in Select.
27122
27123 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
27124
27125         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
27126           to get the same width/height (5/13) on X11 as the default font has on
27127           win32. This means that our DefaultFont emSize is smaller than the 
27128           the MS SWF equivalent (even thought the width/height stays the same)
27129
27130 2006-05-20  Jackson Harper  <jackson@ximian.com>
27131
27132         * MdiClient.cs:
27133         * MdiWindowManager.cs:
27134         * InternalWindowManager.cs: Make sure to use the border width from
27135         the theme.
27136
27137 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
27138
27139         * PrintDialog.cs: Implements printer details
27140
27141 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
27142
27143         * FileDialog.cs: Added focus handling for PopupButtonPanel.
27144           Fixes part 1 and 2 of bug #78446
27145
27146 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
27147
27148         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
27149           instead of sticking to the first ever calculated value
27150
27151 2006-05-19  Mike Kestner  <mkestner@novell.com>
27152
27153         * ComboBox.cs: fix mouse motion selection to use MousePosition and
27154         PointToClient, since Capture is set. Fixes #78344.
27155
27156 2006-05-19  Mike Kestner  <mkestner@novell.com>
27157
27158         * ListView.cs: match MS behavior in Details view where items are not
27159         drawn if Columns.Count == 0. 
27160         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
27161         Use a separate pen to draw the check, since changing the width affects
27162         the box as well.  Fixes #78454.
27163
27164 2006-05-18  Miguel de Icaza  <miguel@novell.com>
27165
27166         * ListView.cs: ArgumentOutOfRangeException, single versions of the
27167         exception should throw the name of the invalid argument.
27168
27169         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
27170         there are no files listed. 
27171
27172 2006-05-18  Jackson Harper  <jackson@ximian.com>
27173
27174         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
27175         up.
27176
27177 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
27178
27179         * Control.cs: Brought back our old UpdateZOrder method as a private
27180           function and switched our calls from UpdateZOrder to the new one.
27181           This fixes the Paint.Net canvas disappearing bug.
27182
27183 2006-05-18  Jackson Harper  <jackson@ximian.com>
27184
27185         * Theme.cs:
27186         * ThemeWin32Classic.cs:
27187         * InternalWindowManager.cs: Move the drawing into the theme,
27188         expose everything the theme should need from the window manager.
27189
27190 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
27191
27192         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
27193           from the call to NativeWindow to avoid walking up the parent chain
27194           further than needed (speeds up setting cursors and avoids setting
27195           the wrong cursor if a parent has another cursor defined)
27196         * Cursor.cs: When loading an icon as cursor, MS uses the center of
27197           the icon as hotspot, not what's contained as hotspot in the icon
27198           file. This fixes the perceived drawing offset seen with Paint.Net
27199         
27200 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
27201
27202         * XplatUIX11.cs: 
27203           - Store the calculated rectangle in Hwnd object and use it when 
27204             setting the client size
27205           - Force Toolwindows to always be type Dock, to ensure they're on top
27206
27207 2006-05-18  Mike Kestner  <mkestner@novell.com>
27208
27209         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
27210         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
27211         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
27212         Substantial refactoring to remove confusing nested classes. Coding
27213         standard and Get+Set->property refactorings.  Shift to index based
27214         highlighting in ComboListBox instead of constantly using IndexOf and
27215         Items[]. Add invalidations on resize for DropDownList to fix ugliness
27216         in FileDialog growth.  Draw borders manually since Simple mode needs
27217         to look like two independent controls.  Make listbox border
27218         conditional to DropDownStyle.  Improved OwnerDraw support.
27219
27220 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
27221
27222         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
27223         Don't set the disposed graphics to null, so we can throw the "right"
27224         exception if the graphics is reused later (added a flag to avoid 
27225         double disposing). Some behaviours are different under 2.0 and are
27226         filled under bug #78448.
27227
27228 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
27229
27230         * Control.cs: When double-buffering is enabled, we need to reset
27231           our graphics context between paint calls. Otherwise, any 
27232           transformations and other alterations on the context will 
27233           become cumulative (#77734)
27234
27235 2006-05-18  Mike Kestner  <mkestner@novell.com>
27236
27237         * ListView.cs: do focused item selection like MS on clicks. 
27238         Rework focus handling for ItemControl so LostFocus invalidates as
27239         well.
27240         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
27241         the ListView ItemControl has focus.
27242
27243 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
27244
27245         * XplatUIX11.cs: If client_window ends up being width or height zero
27246           due to border settings, move it off window inside whole_window (#78433)
27247
27248 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
27249
27250         * Mime.cs: Shrink the mime file cache correctly.
27251
27252 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
27253
27254         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
27255
27256 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
27257
27258         * XplatUIX11.cs (AddExpose): More sanity checks
27259
27260 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
27261
27262         * XplatUIX11.cs:
27263           - AddExpose: Don't add expose ranges outside the size of our
27264             window
27265           - Cast opacity values to Int32 to avoid crashes with certain
27266             values
27267           - Added disabled code paths that protect against illegal cross-
27268             thread painting (Developers.exe)
27269
27270 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
27271
27272         * ProgressBar.cs: Invalidate the control when it's resized
27273           since block size is based on control size. (#78388)
27274
27275 2006-05-16  Miguel de Icaza  <miguel@novell.com>
27276
27277         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
27278         of setting the incoming argument to the "reset" value, we set the
27279         this.datamember to string.empty (before we were invalidating the
27280         incoming data).   
27281
27282         Fixes 78420
27283
27284 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
27285
27286         * Form.cs: Only apply transparency settings after the form
27287           is created. (Fixes #77800)
27288
27289 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
27290
27291         * ApplicationContext.cs: Grab the HandleDestroyed event so
27292           we know when to fire OnMainFormClosed 
27293
27294 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
27295
27296         * Application.cs: Introduced sub-class to allow tracking of
27297           threads and centralized triggering of the event mess for
27298           ThreadExit, AppExit, etc..  (#76156)
27299
27300 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
27301
27302         * MimeIcon.cs:
27303           - Do not return a null icon index value for a mime subclass.
27304             Instead try the main mime type class too.
27305           - Seems that some newer distributions don't have a link to some
27306             gnome default icons anymore. So check the default gnome dir too.
27307           
27308
27309 2006-05-16  Jackson Harper  <jackson@ximian.com>
27310
27311         * MdiClient.cs: Don't paint the parent background image if we have
27312         our own background image.
27313
27314 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
27315
27316         * Control.cs:
27317           - PerformLayout: Do not shrink space filled by DockStyle.Fill
27318             controls, all filled controls are supposed to overlap (#78080)
27319           - UpdateZOrder is supposed to update the control's z-order in the
27320             parent's z-order chain. Fixed to behave like that
27321           - BringToFront: Removed obsolete code
27322           - SendToBack: Simplyfied
27323           - SetChildIndex: Trigger layout calculations when Z-order changes
27324             since layout is done by z-order
27325
27326 2006-05-16  Chris Toshok  <toshok@ximian.com>
27327
27328         [ fixes bug #78410 ]
27329         * DataGrid.cs (set_AlternatingBackColor): use
27330         grid_drawing.InvalidateCells instead of Refresh().
27331         (set_BackColor): call grid_drawing.InvalidateCells.
27332         (set_BackgroundColor): use Invalidate instead of Refresh.
27333
27334         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
27335         invalidate the cell area.
27336
27337 2006-05-15  Chris Toshok  <toshok@ximian.com>
27338
27339         [ fixes bug #78011 ]
27340         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
27341         on to DataGridPaintRow.
27342         (DataGridPaintRow): take a clip argument, and only draw the cells
27343         which intersect it.  same with the not_usedarea.
27344
27345         * Theme.cs (DataGridPaintRow) add @clip parameter.
27346
27347         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
27348         XplatUI.ScrollWindow.
27349         (ScrollToRow): same.
27350
27351         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
27352         with last column which was causing a gray swath to appear with the
27353         XplatUI.ScrollWindow code.
27354
27355 2006-05-15  Chris Toshok  <toshok@ximian.com>
27356
27357         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
27358         use XplatUI.ScrollWindow.
27359         (VerticalScrollEvent): use XplatUI.ScrollWindow.
27360
27361 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
27362
27363         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
27364
27365 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
27366
27367         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
27368           file since there are no equivalent X11 cursors
27369
27370 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
27371
27372         * MonthCalendar.cs : DateTimePicker should reflect selected date
27373           on mouse*up*, not mouse*down*. Fixed originally reported part of
27374           bug #76474.
27375
27376 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
27377
27378         * TabControl.cs : When argument index is equal or more than tab
27379           count, just ignore. Fixed bug #78395.
27380
27381 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
27382
27383         * Control.cs: Dispose all child controls when control is diposed (#78394)
27384
27385 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
27386
27387         * ColorDialog.cs: Finally it is possible to select the color with
27388           the text boxes
27389
27390 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
27391
27392         * PrintDialog.cs: Fix typo
27393
27394 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
27395
27396         * PrintDialog.cs: PrintDialog is not resizable
27397         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
27398           color. Made some ToolBar drawing methods protected virtual.
27399
27400 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
27401
27402         * PrintDialog.cs: Implementation of the PrintDialog
27403
27404 2006-05-12  Chris Toshok  <toshok@ximian.com>
27405
27406         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
27407         thumb, instead use MoveThumb.  This has the side effect of making
27408         most of the other thumb moving machinery use MoveThumb as well.
27409         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
27410         need to actually invalidate the rectangle where the new thumb will
27411         go.
27412         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
27413         We force an Update() after, so it's not as fast as it could be,
27414         but at least there's zero flicker and no droppings.
27415         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
27416         (UpdateThumbPos): add another argument (dirty), which says whether
27417         or not to calculate/add dirty regions which we later invalidate.
27418         For cases where we know we're going to use MoveThumb, we pass
27419         false for this.  Otherwise, pass true.
27420
27421 2006-05-12  Jackson Harper  <jackson@ximian.com>
27422
27423         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
27424         the status bar.
27425         
27426 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
27427
27428         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
27429           and GetClipRegion methods and UserClipWontExposeParent property.
27430         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
27431           overriding UserClipWontExposeParent property, setting to false, since
27432           Win32 handles the required expose messages to draw our clipped parent
27433           areas internally
27434         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
27435           PaintEventStart to set the user clip region if set.
27436         * Control.cs: 
27437           - Now internally tracking the Region for the control since we need to
27438             store it if the handle is not yet created and only set it when it
27439             becomes created. Before setting the region forced handle creation
27440           - Added code to draw the parents underneath a user-clipped region
27441         * Hwnd.cs: Added UserClip property
27442
27443 2006-05-12  Chris Toshok  <toshok@ximian.com>
27444
27445         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
27446         (set_Maximum): same.
27447         (set_Minimum): same.
27448         (set_SmallChange): same.
27449         (OnMouseUpSB): remove the call to refresh when releasing the
27450         thumb.  We shouldn't need it.
27451         
27452 2006-05-12  Miguel de Icaza  <miguel@novell.com>
27453
27454         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
27455         AutoSize set to None, we do not need to relayout everything, we
27456         just need to invalidate the current region.
27457
27458         (Draw): Do not draw the entire ClientArea, just redraw the
27459         clip area being passed.
27460
27461         * MdiClient.cs: Make MdiClient constructor with the Form argument
27462         internal. 
27463
27464 2006-05-12  Jackson Harper  <jackson@ximian.com>
27465
27466         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
27467         parents background image,  but strangely not their own.
27468         - (DrawStatusBarPanel): Take into account horizontal alignment
27469         when drawing the strings and icons.
27470
27471 2006-05-12  Mike Kestner  <mkestner@novell.com>
27472
27473         * ListBox.cs: avoid invalidations for focus when the collection is
27474         empty. 
27475
27476 2006-05-12  Chris Toshok  <toshok@ximian.com>
27477
27478         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
27479         invalidate the entire thumb area.  Call InvalidateDirty which
27480         limits the redraw to the thumb itself and surrounding pixels.
27481
27482         * XplatUIX11.cs (ScrollWindow): optimize copying.
27483         
27484 2006-05-12  Chris Toshok  <toshok@ximian.com>
27485
27486         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
27487         Figure out the positioning/layout in a single pass instead of
27488         multiple recursive invocations.  Speeds up the initial display of
27489         the data grid.  Also, make many things private that were
27490         originally public but unused outside this class.
27491
27492 2006-05-11  Jackson Harper  <jackson@ximian.com>
27493
27494         * MdiClient.cs: Improved layout code.
27495
27496 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
27497
27498         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
27499           not SelectedObject.
27500
27501 2006-05-11  Chris Toshok  <toshok@ximian.com>
27502
27503         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
27504         union of that will always be {0,0,width,height}.
27505
27506 2006-05-11  Jackson Harper  <jackson@ximian.com>
27507
27508         * Form.cs: Match MS's DefaultSize for forms (they must have
27509         changed the size in sp2).
27510
27511 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
27512
27513         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
27514
27515 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
27516
27517         * TextControl.cs : Fixed bug #78109. This incorrect position
27518           comparison caused crash on automatic line split.
27519         * TextBoxBase.cs : reduce duplicate code.
27520
27521 2006-05-10  Jackson Harper  <jackson@ximian.com>
27522
27523         * MdiClient.cs: Active form is only sent to the back when using
27524         the Next form functionality, when a form is clicked the current
27525         active shouldn't be sent to the back.
27526         - Layout the mdi windows when the container is first made visible.
27527         * Form.cs: Give the MdiClient a ref to the containing form when we
27528         create it.
27529         
27530 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
27531
27532         * LinkLabel.cs : link_font could be uninitialized, so populate one
27533           before actual use. Fixed bug #78340.
27534
27535 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
27536
27537         * XplatUIX11.cs : clipboard format native value is IntPtr.
27538           Fixed bug #78283.
27539
27540 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
27541
27542         * Control.cs: 
27543           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
27544             which is passed up the parent chain by DefWndProc
27545           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
27546             to DefWndProc (#77956)
27547         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
27548
27549 2006-05-10  Jackson Harper  <jackson@ximian.com>
27550
27551         * MdiClient.cs: We need to remove the controls from the mdi
27552         collection, when we close the window.
27553         * MdiWindowManager.cs: Special handling of closing mdi windows.
27554         * InternalWindowManager.cs: Make the close method virtual so the
27555         mdi window manager can handle it specially.
27556
27557 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
27558
27559         * DataGrid.cs:
27560           - Recalculate grid when the data source has changed
27561           - Matches styles provided by user from all data sources types
27562         * DataGridTableStyle.cs: For columns that provided by the user set the
27563         with the preferred value is there was unassigned.
27564         * CurrencyManager.cs: throw OnItemChanged event
27565
27566 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
27567
27568         * PictureBox.cs: Don't animate until handle is created. Start animation
27569           when handle is created.
27570
27571 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
27572
27573         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
27574           current codebase.
27575         * XEventQueue.cs: We don't need to provide the extra info
27576
27577 2006-05-10  Jackson Harper  <jackson@ximian.com>
27578
27579         * MdiClient.cs: If the mdi clients parent form has a background
27580         image set, we draw that background image for the mdi area's
27581         background.
27582
27583 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
27584
27585         * TextBoxBase.cs: Set IBeam cursor (#78347)
27586
27587 2006-05-10  Mike Kestner  <mkestner@novell.com>
27588
27589         * ToolBar.cs: fix some text padding issues with ButtonSize
27590         calculation. Update the default size to match MS documentation.
27591         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
27592         button size. Fixes #78296.
27593
27594 2006-05-10  Mike Kestner  <mkestner@novell.com>
27595
27596         * ListBox.cs: use is_visible for scrollbar positioning in case the
27597         control isn't on screen yet.  Fix off by one with Right vs Width
27598         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
27599         
27600 2006-05-10  Jackson Harper  <jackson@ximian.com>
27601
27602         * X11Dnd.cs: Drop to a control with another control on top of it.
27603         * ToolBar.cs: Work on a copy of the buttons list, so that it can
27604         be modified in click handlers. TODO: Look for similar problems in
27605         other controls.
27606
27607 2006-05-09  Jackson Harper  <jackson@ximian.com>
27608
27609         * Form.cs: Window managers need the old window state when setting
27610         window state now.
27611         * InternalWindowManager.cs: Allow the base mdi window manager to
27612         handle more of the MDI only stuff (like maximize buttons).
27613         * MdiWindowManager.cs: Fix some snafus in changing the window
27614         state.  Add all the menu functionality, for both popup and
27615         maximized menus.
27616         * MdiClient.cs: When a new form is selected the currently
27617         activated form is sent to the back, this matches MS.
27618         - Implement a new method to activate the next mdi child window.
27619
27620 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
27621
27622         * Control.cs: 
27623           - Added new InternalCapture method to allow controls to prevent
27624             the capture behaviour on the click handlers
27625           - Switched to use InternalCapture
27626         * ComboBox.cs:
27627           - Using InternalCapture to prevent mouse captures from being released
27628             on mouse button release (Fixes #78100)
27629         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
27630           returns Form borders if a caption is present. (Fixes #78310)
27631
27632 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
27633
27634         * TreeNode.cs: Changed serialization .ctor to not require every field
27635           to be present. (#78265)
27636         * OwnerDrawPropertyBag.cs: Added serialization .ctor
27637
27638 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
27639
27640         * MimeIcon.cs: for is faster than foreach for strings.
27641
27642 2006-05-05  Mike Kestner  <mkestner@novell.com>
27643
27644         * CheckedListBox.cs: update check handling code to not use selected.
27645         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
27646         behavior for visual feedback, motion response, shift/ctrl handling,
27647         and properly deal with all 4 selection modes. Updates to bounds
27648         handling logic.  Add scroll wheel support. [Fixes #77842]
27649
27650 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
27651
27652         * ListView.cs:
27653           - Moved adding of Implicit controls into .ctor. That way, subsequent
27654             creation of the controls will not cause them to think they are 
27655             toplevel windows (fixes #78200 header problem)
27656           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
27657           - Switched visibility setting of header control to use internal field
27658             to avoid triggering handle creation
27659           - Now checking if handle is created before causing a refresh when items
27660             are added (This makes us now match handle creation time with MS)
27661         * Splitter.cs: Removed loading of private splitter cursor, switched to
27662           Cursors version now that that is loading the right ones
27663         * Cursors.cs: Load proper splitter cursors from resources
27664         * Cursor.cs: Added second method of loading resource cursors for the 
27665           VS.Net users amongst us
27666
27667 2006-05-05  Mike Kestner  <mkestner@novell.com>
27668
27669         * ListView.cs: give header_control a minimum size based on the
27670         ListView size.
27671
27672 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
27673
27674         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
27675           window seems to do that with metacity, so set that type. (#78120)
27676
27677 2006-05-05  Mike Kestner  <mkestner@novell.com>
27678
27679         * ListViewItem.cs: fix Details mode checkbox layout bug.
27680         * ThemeWin32Classic.cs: draw a ListView column header for unused space
27681         at the end of the header, if it exists. [Fixes for #78200]
27682
27683 2006-05-04  Jackson Harper  <jackson@ximian.com>
27684
27685         * MdiClient.cs: Add a helper property to get the container form.
27686         * MdiWindowManager.cs: We have to make sure to use the menu origin
27687         when drawing the icons and buttons, this fixes maximized window
27688         icons/buttons on win32.
27689         * InternalWindowManager.cs: Reset the restore captions when a
27690         window goes from Maximized to Minimized and vice versa. Move the
27691         DrawMaximizedButtons into the MdiWindowManager source, tool
27692         windows can't be maximized. NOTE: This could use a little
27693         refactoring if time ever permits.
27694         
27695 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
27696
27697         * TextBox.cs: Add MWFCategoryAttributes
27698         * TextBoxBase.cs: Add MWFCategoryAttributes
27699         * Form.cs: Add MWFCategoryAttributes
27700
27701 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
27702
27703         * Control.cs: Add MWFCategoryAttributes
27704         * ScrollableControl.cs: Add MWFCategoryAttributes
27705
27706 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
27707
27708         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
27709           Divider is true. Fix a little glitch in PropertyToolBar
27710           drawing code
27711
27712 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
27713
27714         * Control.cs:
27715           - Dispose: Call base.Dispose, this causes the disposed event
27716             to be fired (and probably other, more important stuff)
27717           - SetVisibleCore: Set is_visible to true after creating the
27718             window so that the window still gets created invisible (if
27719             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
27720             to generate a WM_ACTIVE message
27721         * Form.cs: Call Dispose when we want to destroy the window, instead of
27722           just destroying the handle (Dispose will do that for us)
27723         * XplatUIX11.cs:
27724           - RootWindow also needs a queue, so we can properly process the
27725             property change events from RootWindow (like Activate)
27726           - Generatic synthetic WM_ACTIVE message when the active window is
27727             being destroyed
27728
27729 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
27730
27731         * LinkLabel.cs: Trigger a recalc of our label dimensions when
27732           bounds are changed
27733
27734 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
27735
27736         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
27737           for determining width and height (image might not be assigned if
27738           we're drawing an imagelist)
27739
27740 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
27741
27742         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
27743         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
27744           height from system
27745         * Theme.cs: No longer returns hardcoded menu height, instead calls
27746           new driver method
27747         * Form.cs (OnLoad): Scaling happens before triggering Load events 
27748           on MS (# 78257)
27749
27750 2006-05-01  Mike Kestner  <mkestner@novell.com>
27751
27752         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
27753
27754 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
27755
27756         * TextBoxBase.cs: Removed Fixme
27757         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
27758
27759 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
27760
27761         * XplatUIX11.cs:
27762           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
27763             the rectangle relative to the parent, considering borders. We
27764             don't really want that.
27765           - ScrollWindow: Fixed warning to be more understandable
27766         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
27767           scrollbars and scroll only the visible area
27768         * RichTextBox.cs: Removed debug output
27769
27770 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27771
27772         * NumericUpDown.cs (Text): Just use base
27773         * UpDownBase.cs: Ensure txtView is created before using it
27774
27775 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
27776
27777         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
27778           casting to IntPtr to avoid 64bit overflow errors
27779
27780 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27781
27782         * Control.cs:
27783           - AllowDrop: Don't force handle creation.
27784           - CreateHandle: Added call to tell driver if we're allowed to drop
27785
27786 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27787
27788         * FileDialog.cs: Remember the last directory not only for the
27789           current instance but also for new FileDialog instances.
27790
27791 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
27792         
27793         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
27794           broke sending async messages
27795
27796 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27797
27798         * XplatUIX11.cs:
27799           - ScrollWindow: Fixed method. We finally generate expose events again
27800             for scrolled areas. This was causing 'garbage' when scrolling
27801             textbox and other controls that used ScrollWindow
27802           - Switched from using the regular queue for paint events to the MS 
27803             model of 'generating' paint events when the queue is empty.
27804             We use the new XQueueEvent.Paint subclass to store which windows
27805             need painting.
27806           - AddExpose now takes the x/y/width/height of the exposed area
27807             and inserts the window into the paint queue if not already there
27808           - InvalidateWholeWindow: Switched to use new AddExpose method
27809           - UpdateMessageQueue: Added which queue to monitor for paint events
27810           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
27811             the unlikely case nothing above handles it. We reset the expose
27812             pending states to get them off the queue.
27813           - GetMessage: Now pulls a paint event if no other events are in the
27814             queue
27815           - Invalidate: Switched to new AddExpose method
27816           - PeekMessage: Updated to understand pending paint events
27817           - UpdateWindow: Fixed logic bug. We were only updating if the window
27818             didn't need updating. Also switched to sending WM_PAINT directly,
27819             like MS does.
27820         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
27821           and random access Remove(). The random access is needed to handle
27822           UpdateWindow() where a WM_PAINT is sent directly without accessing
27823           the queue.
27824         * ScrollBar.cs: Added Update() calls to cause immediate updates to
27825           allow for better feedback when scrolling. Scrollbars are small and
27826           the immediate update should make it 'feel' more responsive without
27827           slowing things down. ScrollBar still needs it's invaliate logic
27828           updated to not always invalidate the whole bar on certain changes.
27829
27830 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27831
27832         * Control.cs:
27833         (BackColor): if the control does not support a transparent background,
27834         return the default backcolor when the parent backcolor is transparent.
27835
27836 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
27837
27838         * Application.cs: Updated to new StartLoop/GetMessage API
27839         * RichTextBox.cs: Provide some output on RTF parsing errors
27840         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
27841           new queue_id argument to GetMessage and PeekMessage to allow faster
27842           handling of per-thread queues in drivers.
27843         * Hwnd.cs: Added Queue tracking and property
27844         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
27845         * XEventQueue.cs: Added thread trackingA
27846         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
27847         * XplatUIX11.cs:
27848           - Implemented new per-thread queue
27849           - GetMessage: Fixed return/break behaviour on several cases. We were
27850             returning stale messages in some cases, instead of just processing
27851             the next message
27852
27853 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
27854
27855         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
27856
27857 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
27858
27859         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
27860           fixed off-by-one comparisons between Width/Height and Right/Bottom.
27861
27862 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
27863
27864         * PropertyGridView.cs: Fix drop down width.
27865
27866 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27867
27868         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
27869           a mess in DrawToolBar, so I removed one of them.
27870
27871 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27872
27873         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
27874           needed (clip). Otherwise we get artifacts.
27875
27876 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
27877
27878         * FixedSizeTextBox.cs: Added constructor to allow specifying which
27879           dimension is fixed
27880         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
27881           and switched FixedSizeTextBox to only be fixed vertical (#78116)
27882         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
27883           if it matches the scale base font (avoids unneeded scaling)
27884
27885 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
27886
27887         * X11DesktopColors.cs: One gtk_init_check should be enough
27888
27889 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
27890
27891         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
27892           match MS behaviour
27893
27894 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
27895
27896         * TextBoxBase.cs: 
27897           - Generate OnTextChanged for Backspace even if we're only deleting
27898             the current selection
27899           - When setting the Text property, only select all text if the
27900             control does not have focus when it is being set. Otherwise
27901             just place the cursor at the beginning of the control
27902
27903 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
27904
27905         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
27906           Added a little helper to draw PropertyGrid ToolBar with a different
27907           border and a different BackColor.
27908         * PropertyGrid.cs: Some background parts didn't get painted with the
27909           correct background color. Added a class that helps us to draw the
27910           correct border for PropertyGridView and a class that helps us to
27911           draw ToolBars with a different backcolor
27912         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
27913
27914 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
27915
27916         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
27917         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
27918
27919 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27920
27921         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
27922           into the palette entries. Also, since we're working on a copy
27923           we needed to copy the palette back onto the bitmap.
27924         * Cursor.cs: Same fix as XplatUIWin32.cs.
27925
27926 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
27927
27928         * ImageListStreamer.cs: Need to read the var (or we're off)
27929
27930 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27931
27932         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
27933           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
27934           TextBoxBase.cs: Unused var fixes
27935         * AxHost.cs: Small 2.0 fix
27936         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
27937           as it seems that is what at least Metacity expects. This will make
27938           icons show up on 64bit platforms. We still have some 64bit size
27939           issues, though, since the startup app window size still won't match.
27940
27941 2006-04-25  Mike Kestner  <mkestner@novell.com>
27942
27943         * *.cs: cleanup newly reported exception var unused warnings.
27944
27945 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27946
27947         * ThemeWin32Classic.cs: Button image alignment now matches exactly
27948           ms
27949
27950 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27951
27952         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
27953           image. The image position is always the same, no matter if the
27954           button is pressed or not.
27955
27956 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27957
27958         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
27959           selection and set the correct filename for SaveFileDialog.
27960           Patch by Emery Conrad.
27961
27962 2006-04-24  Mike Kestner  <mkestner@novell.com>
27963
27964         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
27965         check for item.X outside the ClientRect instead of item.Y. Fixes
27966         #78151.
27967
27968 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27969
27970         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
27971         trust that value blindly and do some sanity check. Fixes bug #77814.
27972
27973 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27974
27975         * ImageListStreamer.cs: save the mask as a 1bpp image.
27976
27977 2006-04-21  Mike Kestner  <mkestner@novell.com>
27978
27979         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
27980         pass Checked and Indeterminate to the Theme Engine. Improve
27981         encapsulation with ListBox.
27982         * ListBox.cs: Keep a StringFormat instead of calculating it every item
27983         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
27984         nested types.  Move all CheckState functionality to CheckedListBox.
27985         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
27986         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
27987         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
27988         single base list. Fix scrollbar sizing and placement to mirror MS.
27989         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
27990         used.
27991         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
27992         for CheckedListBox by using new DrawItemState info.  Center the
27993         checkboxes on the items. Use new StringFormat property.
27994
27995 2006-04-18  Jackson Harper  <jackson@ximian.com>
27996
27997         * Form.cs: MdiChildren don't do default locations the same way as
27998         regular forms.  This prevents a crash when trying to position the
27999         mdi windows.
28000
28001 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
28002
28003         * PropertyGridTextBox.cs: Formatting, copyright
28004         * PropertiesTab.cs: Formatting
28005         * PropertyGrid.cs: Formatting
28006         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
28007           click toggling of values
28008           
28009 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
28010
28011         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
28012         * Control.cs (.ctor): verify_thread_handle is static, don't reset
28013           every time a control is created
28014         * Application.cs: Removed obsolete EnableRTLMirroring method
28015
28016 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
28017
28018         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
28019         SelectedIndex to -1. Fixes bug #78121.
28020
28021 2006-04-17  Jackson Harper  <jackson@ximian.com>
28022
28023         * Binding.cs: Handle null values for Current and BindingContext.
28024         This occurs when binding is a little delayed.
28025         * CurrencyManager.cs: return null for Current when there are no
28026         items in the list.
28027         - Hookup to the listchanged event on the DataView and update
28028         bindings when the list is changed.  This fixes late binding of
28029         controls.
28030
28031 2006-04-17  Jackson Harper  <jackson@ximian.com>
28032
28033         * X11Dnd.cs:
28034         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
28035         Ringenbach.
28036
28037 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
28038
28039         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
28040           place
28041         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
28042           with the correct ButtonState
28043
28044 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
28045
28046         * XplatUIX11.cs: Improved distinguishing between window types to
28047           tell the WM a type closer to what the app wants (Fixes #78107)
28048
28049 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
28050
28051         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
28052           GrabHandle
28053
28054 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
28055
28056         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
28057           drawing code to reflect the size grip changes
28058
28059 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28060
28061         * ImageListStreamer.cs: fix handling of the mask that follows the main
28062         bitmap when deserializing and serialize it properly. The generated mask
28063         should better be a 1bpp image, but I'll do that later.
28064
28065 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
28066
28067         * FileDialog.cs: Show something in the DirComboBox on *nix if the
28068           path doesn't fit into some of our Current.Places
28069
28070 2006-04-13  Jackson Harper  <jackson@ximian.com>
28071
28072         * ComboBox.cs: Use borders instead of drawing our own decorations,
28073         try to obey correct rules for heights.
28074         * Theme.cs:
28075         * ThemeNice.cs:
28076         * ThemeClearLooks.cs:
28077         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
28078         this is now handled by borders.
28079         - Remove unused DrawListBoxDecorationSize method.
28080         
28081 2006-04-13  Mike Kestner  <mkestner@novell.com>
28082
28083         * MenuAPI.cs: null guarding for the disbled click check fixes crash
28084         reported by Alex.
28085
28086 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
28087
28088         * ThemeWin32Classic.cs: 
28089           - Fixed CPDrawStringDisabled
28090           - Corrected drawing of disabled menu items
28091           - Fixed drawing of disabled radio buttons (bug #78095)
28092           - Draw check in a disabled CheckBox with color ControlDark 
28093
28094 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
28095
28096         * Form.cs: Use the provided width when calculating the menu size;
28097           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
28098           and ClientSize.Width won't be updated yet
28099         * Application.cs: Use Visible instead of Show() to make form visible,
28100           this way we create the handle later and menusize is considered
28101
28102 2006-04-12  Mike Kestner  <mkestner@novell.com>
28103
28104         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
28105         reporting.
28106
28107 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
28108
28109         * TextBox.cs: Implemented context menu
28110
28111 2006-04-12  Mike Kestner  <mkestner@novell.com>
28112
28113         * ListView.cs: implement box selection. fixes #77838.
28114         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
28115
28116 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
28117
28118         * XplatUIX11.cs: Added setting of window type when transient window
28119           is created (metacity would move it otherwise)
28120         * X11Structs.cs: Added WINDOW_TYPE atoms
28121         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
28122           background (the control is Opaque but still wants transparent
28123           backgrounds)
28124
28125 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
28126
28127         * Control.cs: Added OnPaintBackgroundInternal to allow controls
28128           that set Opaque but don't mean it (like all ButtonBase-derived
28129           controls) to still draw their background
28130         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
28131           the background
28132
28133 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
28134
28135         * Control.cs (PaintControlBackground): Set the graphics object
28136           on our PaintEvent to null to prevent it from being disposed
28137           when the PaintEvent gets disposed
28138
28139 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
28140
28141         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
28142         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
28143
28144 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
28145
28146         * Control.cs: 
28147           - Added transparency check to BackColor property. Transparent
28148             backgrounds are only allowed if the control styles permit it
28149           - Added recursive painting of parent control background and
28150             foreground if a control with a transparent backcolor is drawn
28151             (Thanks to Tim Ringenback for providing his 'hack' as a base
28152              for this patch) Fixes #77985 and #78026.
28153           - Added Opaque style check before calling OnPaintBackground, no
28154             need to draw the background if the control is opaque
28155           - Removed ControlAccessibleObject owner variable (inherited from
28156             base, no need to define again)
28157           - Added some documentation links explaining the drawing events
28158             and styles
28159
28160 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
28161
28162         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
28163           that the affected control is the located at the left border of our
28164           parent (Fixes #77936)
28165
28166 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
28167
28168         * TextBoxBase.cs: When rendering disabled or readonly controls,
28169           draw the background with 'Control' instead of 'Window' color as
28170           long as the user hasn't specifically set a color
28171
28172 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
28173
28174         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
28175           since that won't be updated if the user types text (only if it's
28176           programatically set)
28177
28178 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
28179
28180         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
28181           layout changes do to app-triggered resizes will have the proper
28182           display rectangle for layout
28183
28184 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
28185
28186         * ThemeWin32Classic.cs:
28187           - Make use of the SystemBrushes and SystemPens wherever possible
28188           - Corrected some highlight colors
28189           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
28190             drawing
28191         * Theme.cs: Added Empty field to CPColor struct
28192
28193 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
28194
28195         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
28196           is displayed when calculating the display rectangle. Thanks to Mike
28197           for teaching me the err of my ways.
28198
28199 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
28200
28201         * ScrollableControl.cs:
28202           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
28203             (instead of 0,0) and we now return the real width/height instead of
28204             just the clientrectangle, adjusted for padding. The rectangle is
28205             now cached and created by the new CalculateDisplayRectangle method.
28206           - Created new CalculateDisplayRectange method, which basically does
28207             what get_DisplayRectangle() did originally, but now using the 
28208             right edge instead of DisplayRectangle to determine the size of
28209             our scrollbars
28210           - get_Canvas(): Fixed it to properly calculate canvas for 
28211             right/bottom controls which seem to be placed to the right/bottom
28212             of any controls that have a fixed location
28213           - Removed TODO that's taken care of
28214           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
28215             and SetDisplayRectLocation according to new MSDN2 docs
28216           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
28217             event when that is called, this is added for compatibility
28218           - ScrollControlIntoView(): Implemented.
28219           - Switched scrollbars to be implicit, they shouldn't be selectable
28220         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
28221           call it when the active control is set/changed
28222         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
28223         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
28224           implicit_control variable (used for native Win32 message generation)
28225         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
28226           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
28227         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
28228         * XplatUIStructs.cs: Added ScrollBarCommands enum
28229
28230 2006-04-10  Jackson Harper  <jackson@ximian.com>
28231
28232         * ButtonBase.cs:
28233         * CheckedListBox.cs:
28234         * ComboBox.cs:
28235         * DataGrid.cs:
28236         * DataGridView.cs:
28237         * Form.cs:
28238         * GroupBox.cs:
28239         * ListBox.cs:
28240         * PrintPreviewControl.cs:
28241         * ProgressBar.cs:
28242         * PropertyGrid.cs:
28243         * Splitter.cs:
28244         * StatusBar.cs:
28245         * TrackBar.cs:
28246         * UpDownBase.cs: Fixup base event overrides.
28247         
28248 2006-04-06  Mike Kestner  <mkestner@novell.com>
28249
28250         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
28251         all user-initiated value changes to min <= value <= max-thumbsz+1.
28252         (set_Value): check for vert/horiz when calculating new thumb position.
28253         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
28254         like MS does.
28255         (OnMouseMoveSB): refactor the thumb dragging code and refine
28256         invalidation logic to reduce flicker.
28257         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
28258         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
28259         (UpdateThumbPosition): small code readability cleanup
28260
28261 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
28262
28263         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
28264           different
28265
28266 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
28267
28268         * ThemeNice.cs: Use a better graphics effect when a button is pressed
28269
28270 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
28271
28272         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
28273         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
28274           This dramatically reduces the number of Pen.Dispose calls. 
28275           Where possible call ResPool methods only once instead of calling it
28276           over and over again (for example for the same color).
28277
28278 2006-04-06  Mike Kestner  <mkestner@novell.com>
28279
28280         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
28281         Also remove an unused private field on the collection. Fixes #77972.
28282
28283 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
28284
28285         * ThemeNice.cs: Added ToolBar drawing code
28286
28287 2006-04-06  Mike Kestner  <mkestner@novell.com>
28288
28289         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
28290         I'm assuming that means we need to look up the toplevel for the
28291         provided control. Fixes the crash trace in #77911 but exposes another
28292         crash in some strange reflection usage in NDocGui.
28293
28294 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
28295
28296         * ThemeNice.cs: Gave it a little silver touch and added Images
28297           method
28298         * FontDialog.cs: FontDialog is not resizable
28299         * FileDialg.cs: Added SizeGripStyle.Show
28300
28301 2006-04-05  Jackson Harper  <jackson@ximian.com>
28302
28303         * KeyboardLayouts.cs: Remove warning.
28304
28305 2006-04-05  Jackson Harper  <jackson@ximian.com>
28306
28307         * Control.cs: Enable OnPaintInternal so we can use it for drawing
28308         all of our controls instead of Paint +=.
28309         * ListBox.cs:
28310         * ListView.cs:
28311         * MenuAPI.cs:
28312         * MessageBox.cs:
28313         * NotifyIcon.cs:
28314         * ProgressBar.cs:
28315         * ScrollBar.cs:
28316         * Splitter.cs:
28317         * StatusBar.cs:
28318         * TabControl.cs:
28319         * TextBoxBase.cs:
28320         * ToolBar.cs:
28321         * TrackBar.cs:
28322         * UpDownBase.cs:
28323         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
28324         use OnPaintInternal. Remove Width/Height and Visible checks in
28325         paint handler, this is done at a higher level now.
28326         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
28327         * PaintEventArgs.cs: Add a handled flag so controls that don't
28328         want anymore painting after OnPaintInternal can make sure OnPaint
28329         isn't called.
28330
28331 2006-04-05  Mike Kestner  <mkestner@novell.com>
28332
28333         * Form.cs: fix the menu WndProc hacks to respect the native enabled
28334         state of the form, so that we don't process events when Modal dialogs
28335         are up. Fixes #77922.
28336
28337 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
28338
28339         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
28340           checking is done.
28341
28342 2006-04-05  Mike Kestner  <mkestner@novell.com>
28343
28344         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
28345
28346 2006-04-05  Mike Kestner  <mkestner@novell.com>
28347
28348         * ListView.cs (HeaderMouseMove): null guarding for the over column
28349         when setting up the drag_to_index.  Fixes #78015.
28350
28351 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
28352
28353         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
28354           in the taskbar. Transient windows seem to accomplish that.
28355
28356 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
28357
28358         * Form.cs:
28359           - Re-enabled CreateParams.X/Y code for FormStartPosition
28360           - Added code for manual placement when creating the Control
28361           - Incomplete patch to treat MDI forms differently when
28362             setting the ClientSizeCore. (Still need to figure out handling
28363             x/y coords there)
28364         * XplatUIX11.cs:
28365           - When we're explicitly setting the X/Y position of a non-Child
28366             window, let the WM know. Metacity really wants this.
28367
28368 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
28369
28370         * ThemeNice.cs: Added CPDrawButton
28371
28372 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
28373
28374         * ThemeNice.cs: Changed the color for focused buttons and activated
28375           the arrows for small scroll buttons.
28376
28377 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
28378
28379         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
28380           anymore. Changed some method modifiers to protected (virtual)
28381         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
28382           changes
28383         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
28384           Updated drawing of menus, buttons and progressbars; added
28385           CPDrawBorder3D 
28386
28387 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28388
28389         * ImageListStreamer.cs: implemented serialization/deserialization
28390         of the images.
28391
28392 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
28393
28394         * ThemeWin32Classic.cs:
28395           - Removed all the DrawFrameControl stuff; CPDrawButton,
28396             CPDrawCheckBox and CPDrawRadioButton are now handled directly
28397             inside the methods
28398           - Updated and corrected the drawing code of CPDrawButton,
28399             CPDrawCheckBox and CPDrawRadioButton to better match ms
28400           - Updated theme checkbox and radiobutton code to use the CP*
28401             methods
28402
28403 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
28404
28405         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
28406           bug is fixed
28407
28408 2006-03-31  Jackson Harper  <jackson@ximian.com>
28409
28410         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
28411         sometimes.
28412         * UpDownBase.cs: Don't CreateGraphics manually, use a
28413         Refresh. Ideally we would invalidate the correct areas here.
28414
28415 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
28416
28417         * XplatUIX11.cs: 
28418           - We now track the mapping state of windows. If a window (or 
28419             one of it's parents) is not mapped we no longer permit
28420             WM_PAINT messages to be generated since we'd otherwise get 
28421             lots of BadMatch X errors. Jackson did all the work figuring
28422             out the problem.
28423           - Destroying the caret if the window it's contained in is 
28424             destroyed. Can't use regular DestroyCaret method since it
28425             might fall into a drawing function (trying to remove the
28426             caret) and with that generate new BadMatch errors. Again,
28427             Jackson tracked this down.
28428           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
28429             make sure we send the messages to all windows. (The old code
28430             would send the WM_DESTROY to the window, and then all child
28431             windows would be 'gone' because the WM_DESTROY handle lookup
28432             would no longer find the destroyed window)
28433         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
28434         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
28435
28436 2006-03-31  Jackson Harper  <jackson@ximian.com>
28437
28438         * ScrollableControl.cs: Dont recalc if we are not visible.
28439
28440 2006-03-31  Mike Kestner  <mkestner@novell.com>
28441
28442         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
28443         the visibility branch.
28444
28445 2006-03-31  Jackson Harper  <jackson@ximian.com>
28446
28447         * ScrollBar.cs: Cap values when incrementing/decrementing.
28448
28449 2006-03-31  Mike Kestner  <mkestner@novell.com>
28450
28451         * MenuAPI.cs: setup menu.tracker for popup/context menus.
28452         * ToolTip.cs: guard against timer expirations with no active control.
28453         Not sure why it happened.
28454
28455 2006-03-31  Mike Kestner  <mkestner@novell.com>
28456
28457         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
28458         text.
28459         * ToolTip.cs: Position the tooltip based on where the cursor is at
28460         popup time, not at MouseEnter time.  Add a Down state so that we don't
28461         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
28462         positioning offset. Lookup DisplaySize at positioning time, since it
28463         can theoretically change during invocation.
28464         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
28465         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
28466
28467 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
28468
28469         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
28470           Fixes behaviour when the Text property of the box is String.Empty
28471
28472 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
28473
28474         * XplatUIX11.cs: Only send mouseleave for our client windows, not
28475           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
28476           a window)
28477
28478 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
28479
28480         * FileDialog.cs: Visual enhancement for the popup buttons in 
28481           PopupButtonPanel
28482
28483 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
28484
28485         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
28486           code
28487
28488 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
28489
28490         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
28491           highlighted menu items to match ms
28492
28493 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
28494
28495         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
28496
28497 2006-03-30  Mike Kestner  <mkestner@novell.com>
28498
28499         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
28500         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
28501         go active to account for HotLight to Selected transition.
28502         * MenuItem.cs: add internal Selected prop. Fill out the Status
28503         property by calculating it from item info. Add HotLight,
28504         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
28505
28506 2006-03-30  Mike Kestner  <mkestner@novell.com>
28507
28508         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
28509
28510 2006-03-29  Jackson Harper  <jackson@ximian.com>
28511
28512         * Form.cs: Implement TODO.
28513
28514 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
28515
28516         * PrintPreviewDialog.cs: Implemented missing methods and events; still
28517           missing proper dialog setup in the constructor
28518
28519 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
28520
28521         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
28522         * Control.cs:
28523           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
28524           - Fixed ResetBindings and removed TODO
28525           - Added check for cross-thread calls to get_Handle()
28526           - Added Marshaller attribute for set_Font to satisfy class status
28527         * FontDialog.cs: Removed TODOs that seemed implemented
28528         * UpDownBase.cs: Removed unneeded TODO and Fixme
28529         * MessageBox.cs: Implemented support for Default button and removed TODO
28530         * FileDialog.cs: Removed obsolete TODO
28531         * DomainUpDown.cs: Removed obsolete TODO
28532         * ButtonBase.cs: Removed obsolete TODO
28533         * XplatUIWin32.cs: Removed obsolete TODO
28534         * Form.cs:
28535           - Removed obsolete TODO
28536           - Calling CheckAcceptButton when the acceptbutton is changed to allow
28537             internal status updates
28538           - Making sure the active control is selected when the control is created
28539         * CurrencyManager.cs: Removed obsolete TODO
28540
28541 2006-03-29  Mike Kestner  <mkestner@novell.com>
28542
28543         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
28544         of PrintPreviewDialog and RichTextBox.
28545
28546 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
28547
28548         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
28549           DarkDark, Light and LightLight colors for a specific color
28550         * ThemeWin32Classic.cs:
28551           - Use Button drawing code to draw RadioButtons and CheckBoxes with
28552             Appearance = Button 
28553           - Make use of the new ResPool helper CPColor
28554           - Draw ProgressBar and StatusBar with correct 3D borders
28555
28556 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
28557
28558         * ColorDialog.cs: Return selected color. Fixes bug #77940.
28559
28560 2006-03-28  Mike Kestner  <mkestner@novell.com>
28561
28562         * ListView.cs: fix Icon layout to plan for scrollbar widths when
28563         calculating col/row counts.
28564
28565 2006-03-28  Mike Kestner  <mkestner@novell.com>
28566
28567         * ColumnHeader.cs:
28568         * ListView.cs:
28569         * ListViewItem.cs:
28570         * Menu.cs: 
28571         switch to explicit interface method implementation for some methods
28572         corcompare identifies as inconsistent with MS.
28573
28574 2006-03-28  Mike Kestner  <mkestner@novell.com>
28575
28576         * MainMenu.cs: 
28577         * Menu.cs:
28578         add a few missing methods from the class status output.
28579
28580 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
28581
28582         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
28583           correct.
28584
28585 2006-03-28  Mike Kestner  <mkestner@novell.com>
28586
28587         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
28588
28589 2006-03-27  Mike Kestner  <mkestner@novell.com>
28590
28591         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
28592         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
28593
28594 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
28595
28596         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
28597
28598 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
28599
28600         * ThemeWin32Classic.cs:
28601           - GroupBox: Inserted a little gap between the text and the lines
28602             on the right side
28603           - Made the code in CPDrawBorder3D more readable
28604           - Corrected the drawing location of the up and down arrows in 
28605             CPDrawScrollButton
28606
28607 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
28608
28609         * ControlPaint.cs: Corrected line widths in DrawBorder for
28610           ButtonBorderStyle Inset and Outset
28611
28612 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
28613
28614         * ThemeWin32Classic.cs:
28615           - Rewrote the totally broken CPDrawBorder3D method. That was
28616             one of the main problems for the terrific ThemeWin32Classic
28617             look
28618           - Updated and corrected Button drawing
28619           - Correct the dimensions of the SizeGrip to match ms ones
28620           - Removed a small drawing glitch in DrawComboBoxEditDecorations
28621         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
28622           Border3DStyle.Sunken to match ms.
28623
28624 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
28625
28626         * ThemeWin32Classic.cs: First small part of the "de-uglify
28627           ThemeWin32Classic" effort, SizeGrip
28628
28629 2006-03-24  Jackson Harper  <jackson@ximian.com>
28630
28631         * XplatUIX11.cs: Give a max idle time of one second, this matches
28632         MS and forces an Idle event every second when there are no other
28633         events in the queue.
28634
28635 2006-03-24  Mike Kestner  <mkestner@novell.com>
28636
28637         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
28638         * ListView.Item.cs: fix layout issues with null image lists and images
28639         smaller than checkbox size.
28640         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
28641         mode like MS does.  It's weird, but consistent.  ;-)
28642         Fixes #77890.
28643
28644 2006-03-24  Mike Kestner  <mkestner@novell.com>
28645
28646         * ListView.cs: Scroll wheel support for the item control.  Fixes
28647         #77839.
28648
28649 2006-03-23  Jackson Harper  <jackson@ximian.com>
28650
28651         * ScrollableControl.cs: Special case negative sized areas, not
28652         zero.
28653         * MonthCalendar.cs: Save the rect of the clicked date so we can
28654         use it for invalidation.
28655         - Try to cut down on the number of invalidates
28656         - Invalidate the rect the mouse is over and was over when moving
28657         the mouse, so we get the focus box following the cursor.
28658
28659 2006-03-23  Mike Kestner  <mkestner@novell.com>
28660
28661         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
28662         focus rectangle drawing. Fixes #77835.
28663
28664 2006-03-23  Mike Kestner  <mkestner@novell.com>
28665
28666         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
28667         the if and else if and reverting back to the original == check on the
28668         None conditional.
28669
28670 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
28671
28672         * FontDialog.cs: Update the example panel if the selected index of
28673           the fontListBox changes.
28674
28675 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
28676
28677         * FileDialog.cs: Make FileDialog remember which directory it was in
28678           last in the same execution.
28679
28680 2006-03-22  Mike Kestner  <mkestner@novell.com>
28681
28682         * FileDialog.cs: make the DropDownMenu on the toolbar display
28683         RadioChecks since they are mutually exclusive and that's what MS does.
28684
28685 2006-03-22  Mike Kestner  <mkestner@novell.com>
28686
28687         * Theme.cs: add Color param to CPDrawMenuGlyph.
28688         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
28689         checks and radio marks and arrows are visible on highlighted items.
28690         * ControlPaint.cs: update to use new Theme signature.
28691
28692 2006-03-22  Mike Kestner  <mkestner@novell.com>
28693
28694         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
28695         is active. Fixes #77870.
28696
28697 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
28698
28699         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
28700           to be focused/selected after startup
28701
28702 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
28703
28704         * ColorDialog.cs: 
28705           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
28706             CustomColors and ShowHelp properties
28707           - Some internal rewrites to get better results when using the
28708             ColorMatrix
28709
28710 2006-03-22  Mike Kestner  <mkestner@novell.com>
28711
28712         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
28713         HoverSelection.  Fixes #77836.
28714
28715 2006-03-22  Mike Kestner  <mkestner@novell.com>
28716
28717         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
28718         ToggleButtons.  (De)Sensitize the Back button around a stack count of
28719         1, not 0.  Update ButtonSize based on a pixel count of the win32
28720         control.  Adjust the toolbar size/location for new button size.
28721
28722 2006-03-22  Jackson Harper  <jackson@ximian.com>
28723
28724         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
28725         true.
28726         * ScrollBar.cs: When doing increments and decrements we need to
28727         set the Value property so that ValueChanged gets raised. A
28728         possible optimization here would be to make an internal SetValue
28729         that doesn't invalidate immediately.
28730         * ToolTip.cs: Tooltips get added to their container (when
28731         supplied) so they get disposed when the container is disposed.
28732         - Don't create tooltips for String.Empty. This prevents all these
28733         little 2-3 pixel windows from showing up when running nunit-gui
28734         and driving me mad.
28735         * Form.cs: Don't set topmost when setting the owner if the handles
28736         haven't been created yet.  The topmost set will happen when the
28737         handles are created.
28738
28739 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
28740
28741         * XplatUIX11.cs:
28742           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
28743           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
28744             visible (to allow them to recalculate their sizes)
28745
28746 2006-03-21  Mike Kestner  <mkestner@novell.com>
28747
28748         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
28749         methods. Removed a ton of redundant code.  Still not really happy with
28750         the border rendering, but I think that's mainly because of the
28751         ControlDarkDark being black instead of a dark grey. Depending on how 
28752         close we want to be, we might want to revisit those color choices.
28753         Among the new features added during the refactor were DropDownArrow
28754         pressed rendering, Disabled image rendering.  Proper flat appearance
28755         boundary rendering.  Removed the Divider and Wrapping dividers since I
28756         can't figure out any combination of themes and conditions to make the
28757         MS control draw a horizontal line on a toolbar despite what the
28758         Divider property docs indicate.
28759         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
28760         conditions and incorrect layout.  Updated to coding standard.
28761         * ToolBarButton.cs: refactored layout and positioning code from
28762         ToolBar to here.  Invalidate wherever possible instead of forcing
28763         redraws of the whole toolbar. 
28764         (Known remaining issues: explicit ButtonSize smaller than provided
28765         images.)
28766
28767 2006-03-21  Mike Kestner  <mkestner@novell.com>
28768
28769         * ContextMenu.cs (Show): use the position parameter instead of just
28770         showing at the MousePosition.
28771
28772 2006-03-21  Jackson Harper  <jackson@ximian.com>
28773
28774         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
28775         control handle this.
28776         * TreeNodeCollection.cs: If we are clearing the root node we need
28777         to reset top_node so calcs can still happen.
28778         * ThemeWin32Classic.cs: This is a Flags so we need to check
28779         properly.
28780         
28781 2006-03-21  Jackson Harper  <jackson@ximian.com>
28782
28783         * DataGrid.cs: Create columns when the binding context has been
28784         changed.
28785         * X11Structs.cs: Keysyms are uints.
28786         - Add size to fix build.
28787
28788 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
28789
28790         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
28791           XplatUIOSX.cs: 
28792           - Added ResetMouseHover method to allow controls to retrigger
28793             hovering if they need it more than once
28794           - Implemented MouseHoverTime and MouseHoverSize properties
28795         * Timer.cs: Start() must reset the interval
28796         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
28797           properties
28798
28799 2006-03-21  Jackson Harper  <jackson@ximian.com>
28800
28801         * X11Keyboard.cs: improved layout detection. Move the nonchar
28802         tables into this file.
28803         * KeyboardLayouts.cs: Move the tables into resource files.
28804
28805 2006-03-21  Mike Kestner  <mkestner@novell.com>
28806
28807         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
28808
28809 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
28810
28811         * Mime.cs: Various speed optimizations. Looking up mime types
28812           is now 2 times faster than before
28813
28814 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
28815
28816         * CreateParams.cs: Added internal menu field
28817         * Control.cs: 
28818           - Switched call order for UpdateBounds; now we always call
28819             the one that also takes ClientSize, and we're calculating the 
28820             client size via driver method in the others. The previous
28821             method of tracking client size by difference wasn't working
28822             for forms where even the starting client size wouldn't match
28823             the overall form size (due to borders) (Part of fix for #77729)
28824           - CreateParams(): Do not use parent.Handle unless the handle is
28825             already created. Causes havoc with Nexxia and throws off our
28826             creation of controls
28827         * XplatUIX11.cs:
28828           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
28829           - Switched handling of ConfigureNotify over to new PerformNCCalc 
28830             method (consolidates code)
28831           - Changed RequestNCRecalc to use new PerformNCCalc method
28832           - Added calls to RequestNCRecalc when menus and borders are changed
28833             to allow app to set NC size. (Part of fix for #77729) This matches
28834             when MS send a WM_NCRECALC on Win32 windows.
28835           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
28836             (Part of fix for #77729). This matches what MS does, they also
28837             send that message when the form is made visible.
28838           - XException.GetMessage: Improved usability of X errors by including
28839             a translation of the window into Hwnd and Control class
28840           - Improved debug info for window creation, reparenting and destruction
28841           - Created helper method WindowIsMapped() [Currently not used]
28842         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
28843         * Form.cs:
28844           - CreateParams: Now setting our menu on the new internal menu field
28845           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
28846             avoid calculating the same property twice
28847         * Hwnd.cs:
28848           - Improved usability of ToString() for debugging purposes
28849           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
28850             determine the height of the menu, instead of just the font. This
28851             required to also create a graphics context and to keep a bmp 
28852             around (for performance reasons)
28853
28854 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
28855
28856         * MenuAPI.cs: Added OnMouseUp method
28857         * Form.cs:
28858           - Now remembering the requested client size, avoids size errors
28859           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
28860             instead of base if the menu is active. This is required due to
28861             control now capturing and releasing on down/up and it would
28862             prematurely release our menu capture
28863
28864 2006-03-17  Jackson Harper  <jackson@ximian.com>
28865
28866         * KeyboardLayouts.cs: Add the czech layouts.
28867
28868 2006-03-16  Jackson Harper  <jackson@ximian.com>
28869
28870         * Control.cs: Use the viewport space when sizing not the controls
28871         client size, so things like ScrollableControl that effect the
28872         viewport size (when scrollbars are added) are computed correctly.
28873         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
28874         of ManagerEntrys.
28875         - Handle creating BindingManagers for null data sources.
28876         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
28877         source, otherwise when rows are added they are added to the 'fake'
28878         datasource and we will crash when trying to set the position in
28879         those rows.
28880         - Use Implicit scrollbars on the datagrid so they arent
28881         selectable.
28882         
28883 2006-03-16  Jackson Harper  <jackson@ximian.com>
28884
28885         * Binding.cs:
28886         * InternalWindowManager.cs:
28887         * MdiWindowManager.cs:
28888         * X11Keyboard.cs: I really want Mike to love me again (fix
28889         compiler warnings).
28890
28891 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
28892
28893         * DataGrid.cs:
28894           - OnMouseDown: Switch to editing mode when clicking on the cell
28895                          even if we're clicking on the cell that's currently 
28896                          selected
28897           - ProcessGridKey: Left/Right now wrap like MS.Net does
28898           - ProcessGridKey: Tab now knows to add a new row when tab is
28899                             pressed in the cell of the last column of the 
28900                             last row
28901           - ProcessGridKey: Enter now adds another row  if pressed in the last
28902                             row and selectes the new row, same column cell
28903           - ProcessGridKey: Home/End navigate columns, not rows, like 
28904                             originally implemented
28905           - Broke ProcessKeyPreview code out into an extra Internal method
28906             so it can be called from the edit code
28907         * DataGridTextBox.cs (ProcessKeyMessage):
28908           - Switched to accept Tab keypresses
28909           - Added F2 handling to allow jumping to the end of the edited cell
28910           - Added logic to allow moving caret left/right inside edited cell
28911             and making the edited cell jump when the caret hits cell borders
28912           - Tab and Enter are now passed to the datagrid after being handled
28913         * TextBoxBase.cs:
28914           - Removed capture code now that Control handles it
28915           - set_SelectionStart now ensures caret is visible
28916
28917 2006-03-16  Jackson Harper  <jackson@ximian.com>
28918
28919         * TrackBar.cs: Debackwards the increment/decrement for handling
28920         mouse clicks on the bar with vertical trackbars.
28921         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
28922         bottom to match MS.
28923
28924 2006-03-16  Mike Kestner  <mkestner@novell.com>
28925
28926         * ListView.cs: make shift/ctrl keyboard and mouse selection 
28927         consistent with the MS control. Fix a bug in
28928         SelectedListViewItemCollection.Clear that was pissing me off for the
28929         better part of a day because the collection was being altered
28930         underneath us as we walked the list.
28931
28932 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
28933
28934         * Control.cs: Not sure how we could miss this so long, but it seems
28935           that MS.Net has Capture set all the way from before calling 
28936           OnMouseDown through sending the mouse events until after
28937           OnMouseUp. This will fix DataGrid's selection being set to end
28938           at the location of the MouseUp.
28939
28940 2006-03-15  Jackson Harper  <jackson@ximian.com>
28941
28942         * BindingContext.cs: Check the binding after its added so that it
28943           can initialize the binding managers and hookup to events.
28944         * Binding.cs: Data members seem to sometimes include rows/cols in
28945           the format Row.Column we now take this into account.
28946           - Hookup to the position changed event so we can update the
28947           control when the position has changed in the data set.
28948         * CurrencyManager.cs: Take into account the row/col naming
28949           convention when creating dataset tables.
28950         * BindingContext.cs: Using a newer better way of storing
28951           datasource/datamember pairs.  Hopefully this better matches MS for
28952           looking up binding managers.
28953
28954
28955 2006-03-15  Jackson Harper  <jackson@ximian.com>
28956
28957         * BindingContext.cs: The currency manager needs the data member
28958         name, if the member is a data set we use the name to find the
28959         correct table.
28960         * CurrencyManager.cs: When creating the list prefer an IList over
28961         an IListSource.
28962         - Attempt to create a DataTable from a DataSet (TODO: might need
28963         some better error checking here, although MS doesn't seem to have much)
28964         - If we have a DataTable create a view and use it as our list.
28965
28966 2006-03-15  Mike Kestner  <mkestner@novell.com>
28967
28968         * ListView.cs: keep a matrix of the icon mode layout to facilitate
28969         keyboard navigation. Support Up/Down/Left/Right selection correctly
28970         for all 4 View modes.
28971         * ListViewItem.cs: add internal row/col fields for icon layouts.
28972
28973 2006-03-15  Jackson Harper  <jackson@ximian.com>
28974
28975         * TabControl.cs: Redraw the tabs when we resize so their newly
28976         calculated sizes are drawn on screen.
28977         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
28978         composite characters.
28979         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
28980         - filter events so that composite characters can be created
28981         patches by peter
28982         * X11Structs.cs: Add XIMProperties enum.
28983
28984 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28985
28986         * Control.cs (BringToFront, SendToBack): Don't use window or handle
28987           unless it's created
28988
28989 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28990
28991         * Control.cs (PerformLayout): We don't need to consider visiblity
28992           for anchoring, only for docking. This fixes 'whacky' alignment
28993           in listbox and other controls that use implicit scrollbars after
28994           the previous PerformLayout patch
28995         * ListBox.cs: Switched to use implicit scrollbars
28996           
28997 2006-03-14  Mike Kestner  <mkestner@novell.com>
28998
28999         * ToolBar.cs: 
29000         * VScrollBar.cs:
29001         - chain up the "new event" overrides to base and use
29002         OnEvent to raise them.  Part of fix for bug #76509.
29003
29004 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
29005
29006         * FileDialog.cs: Do not select an item in the parent directory
29007           on backspace
29008
29009 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
29010
29011         * Control.cs (PerformLayout): It would seem that we considered
29012           invisible windows for our layout. Not quite the right thing
29013           to do. Now we don't any longer, thereby fixing bug #76889.
29014
29015 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
29016
29017         * Control.cs (CanFocus): I goofed. A control can have focus 
29018           even though it's not selectable. Made it match MS docs.
29019
29020 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
29021
29022         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
29023           center by default (fixes #76895)
29024         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
29025           all uses of Border3DSides.All with the explicit ORd together
29026           Left|Right|Top|Bottom because I assume that nobody was aware 
29027           that All also implies a center fill. Most places I checked had
29028           a fill right above.
29029         * ProgressBarStyle.cs: Added
29030
29031 2006-03-13  Mike Kestner  <mkestner@novell.com>
29032
29033         * ListView.cs: fix breakage in drag shadow header positioning 
29034         from Peter's csc compilation fix.
29035
29036 2006-03-13  Mike Kestner  <mkestner@novell.com>
29037
29038         * ListView.cs: fix NRE produced by backspacing twice in a focused
29039         FileDialog.
29040
29041 2006-03-13  Mike Kestner  <mkestner@novell.com>
29042
29043         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
29044
29045 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
29046
29047         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
29048           be changed
29049         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
29050           the allowed size before making programmatic size changes
29051
29052 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
29053
29054         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
29055           set, metacity is broken and will still use the emty sizes in 
29056           the struct. (Fix for #77089)
29057
29058 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
29059
29060         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
29061           WindowExStyles and marked both enums as Flags
29062         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
29063           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
29064           to match WindowStyles split
29065         * XplatUIX11.cs:
29066           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
29067           - Updated to match WindowStyles split
29068         * XplatUIWin32.cs:
29069           - Fixed FosterParent creation, was using ExStyle on the Style field
29070             (This should help with Popup focus issues)
29071           - Updated to match WindowStyles split
29072
29073 2006-03-13  Jackson Harper  <jackson@ximian.com>
29074
29075         * MdiWindowManager.cs: Use the system menu height. Fixes some
29076         strange sizing issues.
29077
29078 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
29079
29080         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
29081         * TextBoxBase.cs:
29082           - Scroll to caret after inserting text (#77672)
29083           - Make scroll range one pixel higher, fixes off-by-one error (and
29084             makes underlines visible on the last line)
29085
29086 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
29087
29088         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
29089           the keyboard state from being stuck with keys in 'pressed' state when
29090           focus is switched away via keyboard
29091         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
29092           reset the keyboard if no X11 KeyUp events are expected to come
29093         * X11Structs.cs: Switched type of Visible to bool to match driver
29094
29095 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
29096
29097         * TextControl.cs:
29098           - Switched caret to be just 1 pixel wide, matches MS and looks less
29099             clunky
29100           - Moved caret display 1 pixel down from the top of the control
29101             to improve view
29102           - InsertCharAtCharet: Update the selection start if moving the caret
29103             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
29104           - No longer always creating the caret when the caret methods are
29105             called. Only the actual ShowCaret/HideCaret will do that now
29106           - Only setting caret visible if the owner control has focus
29107           - UpdateView: Added invalidation-shortcut logic for center and right 
29108             aligned text. Previously we'd update all according to the left
29109             logic which caused drawing errors. Also fixed height of invalidated
29110             areas, now properly invalidating the whole area (was off-by-one)
29111           - owner_HandleCreated: Always generate the document when the
29112             handle is created; this ensures that 
29113         * TextBoxBase.cs:
29114           - Fixed situation where caret would disappear under the right
29115             window border, also improved scrolling behaviour on left-
29116             aligned textboxes
29117           - Fixed right-aligned textboxes to have a border to the
29118             right instead of the caret being under the right border
29119         * XplatUIX11.cs:
29120           - Switched from 'nested' to simple visible/not visible tracking 
29121             for caret (part of fix for #77671)
29122           - No longer passing through translated FocusIn/FocusOut messages
29123             since we were notifying too often and the wrong windows. Instead
29124             we just notify our focussed window of receiving or loosing focus
29125         * XplatUIWin32.cs: Switched from 'nested' show/hide 
29126           counting for caret to simple visible yes/no behaviour (part of 
29127           fix for #77671)
29128
29129 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
29130
29131         * Mime.cs: Remove debug code...
29132
29133 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
29134
29135         * MimeGenerated.cs: Removed
29136         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
29137           and subclasses) from /usr/(local/)share/mime and
29138           $HOME/.local/share/mime.
29139
29140 2006-03-10  Jackson Harper  <jackson@ximian.com>
29141
29142         * MdiWindowManager.cs: Recalc the NC area when a window is
29143         maximized/restored so that the menu area is drawn on forms that
29144         don't have a menu.
29145
29146 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
29147
29148         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
29149           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
29150           us to force a WM_NCCALCRESIZE message being sent. This is needed
29151           for MDI maximizing.
29152
29153 2006-03-10  Jackson Harper  <jackson@ximian.com>
29154
29155         * Form.cs: We need to use the ActiveMenu when calculating menu
29156         height.
29157         - Fix nullref when the window manager hasn't been created yet.
29158         * Control.cs: Fix nullref when we try to bring a control to the
29159         front that has no parent.
29160         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
29161         height.
29162         - Add a dummy item to the maximized menu so it always has the
29163         correct height. Otherwise when there are no menus we don't get our
29164         icon and buttons.
29165         
29166
29167 2006-03-10  Jackson Harper  <jackson@ximian.com>
29168
29169         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
29170         stuff.
29171         * Form.cs: Make the window_state internal so the window managers
29172         can track it.
29173         - When an MDI child is maximized let its window manager create the
29174         main menu (so it can add its icon).
29175         - Notify the window managers of state changes
29176         - Let the window manager paint its buttons and handle button
29177         clicks on the menu when it is maximized.
29178         * InternalWindowManager.cs: Move the prev_bounds into the mdi
29179         window manager, since tool windows don't use it, only mdi windows.
29180         - Tell the main form that we don't want it to handle NCPAINT
29181         itself to avoid extra painting.
29182         - Handle clicks on a maximized windows menu.
29183         - Handle window state changes
29184         - Handle minimize/maximize clicks correctly by setting the window state.
29185         * MdiWindowManager.cs: Add an icon menu that (the menu you get
29186         when clicking on the forms icon).
29187         - New method to create a forms maximized menu. This is its normal
29188         menu + an icon.
29189         - Handle window state changes.
29190         - Handle sizing of maximized windows.  Maximized windows are just
29191         drawn bigger then the parent visible area. All controls are still
29192         there, they are just outside the visible area (this matches windows).
29193         * MdiClient.cs: No scrollbars when a child window is maximized.
29194         - Let the children windows figure out how big they should be when
29195         sizing maximized windows.
29196         - Implement a version of ArrangeIconicWindows somewhat similar to
29197         Windows version.  There are some little differences, but I don't
29198         think any app will rely on the layout of minimized mdi windows.
29199
29200 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
29201
29202         * Padding.cs: Several fixes to allow compiling with csc 2.0
29203
29204 2006-03-09  Jackson Harper  <jackson@ximian.com>
29205
29206         * Menu.cs:
29207         * MenuItem.cs: Cheap hack so we can add items to the list without
29208         the events being raised.  This allows adding mdi items during
29209         drawing. TODO: Should probably find a better time to add the items.
29210
29211 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
29212
29213         * ThemeWin32Classic.cs:
29214           - CheckBox_DrawText: Added logic to not wrap if not enough space
29215             is available (Fix for bug #77727)
29216           - RadioButton_DrawText: Added logic not to wrap if not enough
29217             space is available (Fix for bug #77727). Also removed some
29218             duplicate code, DrawString always drawing the regular text
29219             before hitting the if statement.
29220
29221 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
29222
29223         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
29224
29225 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
29226
29227         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
29228         * ContainerControl.cs: Partial implementation of some 2.0 scaling
29229           methods. Moved the new 2.0 properties into alphabetical order with
29230           other properties and added MonoTODO tags
29231
29232 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
29233
29234         * AutoScaleMode.cs: Added. Fix build.
29235
29236 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
29237
29238         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
29239           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
29240           and was requiring premature handle creation for calls from above
29241         * Form.cs, Control.cs: Removed handle arguments from calls to
29242           CalculateClientRect()
29243
29244 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
29245
29246         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
29247           drag_column.column_rect is MarshalByRef and can't be used that way
29248
29249 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
29250
29251         * AxHost.cs: Added deserialization constructor for 
29252           AxHost+State (fixes 77743)
29253
29254 2006-03-09  Mike Kestner  <mkestner@novell.com>
29255
29256         * ListView.cs: 
29257         - Added column drag reordering for details view.
29258         - fixed behavior when mouse is dragged off column and
29259         AllowColumnReorder is false.
29260         * ColumnHeader.cs: clone the format too in Clone.
29261         * Theme.cs: add DrawListViewHeaderDragDetails method.
29262         * ThemeWin32Classic.cs:
29263         - impl new method for drawing drag column shadows and targets.
29264         - support column offset for details mode in DrawListViewItem.
29265
29266 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
29267
29268         * TextControl.cs: Reset the char_count when the document is cleared
29269           (Fixes bug reported on mono-winforms mailing list)
29270
29271 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
29272
29273         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
29274           of calling base we simply process the key ourselves, since both
29275           DefWindowProc and the handled method would set m.Result. 
29276           (Fixes #77732)
29277
29278 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
29279
29280         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
29281           method also moves the window; instead implemented a copy of
29282           Control.ScaleCore (Part of fix for #77456)
29283         * TextBoxBase.cs: 
29284           - Created new CreateGraphicsInternal method to allow providing
29285             a graphics context when no handle is created without triggering
29286             handle creation. (Part of fix for #77456)
29287           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
29288         * TextControl.cs: 
29289           - Switched Constructor to require TextBoxBase instead of Control (to
29290             allow uncast access to CreateGraphicsInternal)
29291           - Safeguarded use of owner.Handle property. No longer accessing it
29292             unless the handle is already created.
29293           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
29294           - Now triggering a recalc when owning control becomes visible
29295         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
29296           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
29297           premature handle creation (Part of fix for #77456)
29298         * Control.cs:
29299           - We now only destroy our double-buffering buffers when the
29300             control is resized or disposed, but not when visibility
29301             changes. (The code even re-created them twice every time)
29302           - Now requiring a redraw of the buffer on visibility changes
29303             (fixes bug 77654 part 2)
29304           - Not passing OnParentVisibleChanged up unless the control
29305             is visible
29306           - CanFocus: Fixed to match MS documentation
29307           - Focus: Fixed to return actual focus state and to check if
29308             setting focus is legal before setting it
29309
29310 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
29311
29312         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
29313           when to draw focus rectangle by looking at parent focus and
29314           selected state instead. This fixes TabPages on Linux sometimes
29315           having none or multiple focus rectangles.
29316         * XplatUIX11.cs (SetFocus): 
29317           - Don't set the focus if the same window already has focus
29318           - Use SendMessage instead of PostMessage (like it's Win32
29319             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
29320             to match MS behaviour
29321         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
29322           are not selectable.
29323
29324 2006-03-07  Jackson Harper  <jackson@ximian.com>
29325
29326         * PictureBox.cs: Revert line I accidently committed last week.
29327
29328 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
29329
29330         * Control.cs: 
29331           - Added new IsRecreating and ParentIsRecreating properties to
29332             allow testing if RecreateHandle has been called on ourselves
29333             or one of our parents
29334           - WndProc(WM_DESTROY): If our control handle is being recreated
29335             we immediately need to create the handle when receiving the
29336             destroy, that way our child windows find a valid parent handle
29337             when they themselves are being recreated upon WM_DESTROY receipt
29338             (fix for bug #77654 part 1)
29339         * XplatUIX11.cs:
29340           - DestroyWindow: WM_DESTROY must be sent to our own window before
29341             notifying any child windows. MS documents that child windows
29342             are still valid when WM_DESTROY is received. (Control now relies on
29343             this behaviour)
29344           - Added some fine-grain debug options
29345
29346 2006-03-06  Jackson Harper  <jackson@ximian.com>
29347
29348         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
29349         box and base calculations off this.
29350         * MdiChildContext.cs:
29351         * MdiWindowManager.cs: Don't need to ensure scrollbars here
29352         anymore.
29353         
29354 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
29355
29356         * Splitter.cs: In situations where the affected control is added
29357           to the parent's control list after the splitter, we would not
29358           populate affected. Now we try populating it on mousedown, if
29359           it's not already set, and force it to be re-set whenever our
29360           parent changes.
29361
29362 2006-03-03  Matt Hargett  <matt@use.net>
29363
29364         * Control.cs: implement Control.Padding
29365         * Padding.cs: -Padding.All returns -1 when constructing with the
29366         implicit default ctor
29367         -Padding.ToString() matches MS.NET
29368         * ContainerControl.cs: implement
29369         ContainerControl.AutoScaleDimensions
29370         * ListControl.cs: implement ListControl.FormattingEnabled
29371         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
29372         * ButtonBase.cs:
29373         * TabPage.cs: Implement UseVisualStyleBackColor.
29374         * PictureBox.cs: Implement PictureBox.InitialImage.
29375
29376 2006-03-03  Mike Kestner  <mkestner@novell.com>
29377
29378         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
29379         event declarations to proxy to base event.
29380         * ListViewItem.cs: update to use ItemControl.
29381         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
29382         * ThemeWin32Classic.cs: update to new ListView theme API and fix
29383         column header label rendering for 0 width columns.
29384
29385 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
29386
29387         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
29388           that causes the control to be created. Fixes #77476.
29389
29390 2006-03-02  Jackson Harper  <jackson@ximian.com>
29391
29392         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
29393         expose_pending.
29394
29395 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
29396
29397         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
29398           passed in for the EventArgs (fixes #77690)
29399
29400 2006-03-01  Jackson Harper  <jackson@ximian.com>
29401
29402         * ScrollBar.cs: Refresh afterbeing resized.
29403
29404 2006-02-28  Mike Kestner  <mkestner@novell.com>
29405
29406         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
29407         Clean up a tracker compile warning.
29408         * MenuItem.cs: add internal PerformPopup method.
29409         [Fixes #77457]
29410
29411 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
29412
29413         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
29414           implicit expose) when the text is set to null
29415
29416 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
29417
29418         * RichTextBox.cs (FlushText): When newline is true, we always
29419           need to split the line, even if no text is on it and we may
29420           never eat newlines. (Fixes #77669)
29421
29422 2006-02-28  Mike Kestner  <mkestner@novell.com>
29423
29424         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
29425         and set Selected instead.
29426         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
29427         collections.
29428
29429 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
29430
29431         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
29432
29433 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
29434
29435         * FontDialog.cs:
29436           - Got rid of the panel. All controls are now directly added to
29437             the dialog form
29438           - It is now possible to set a font with the Font property
29439           - MinSize and MaxSize property do now what they should
29440           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
29441           - Searching and selecting a font with the font textbox works now,
29442             the same applies to the style and size textbox
29443           - Draw the correct 3D border in the example panel
29444           - Fixed a little mem leak (unused fonts didn't get disposed)
29445           - Many other internal updates/rewrites...
29446           - Fix typo
29447
29448 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
29449
29450         * TextControl.cs: 
29451           - InsertRTFFromStream: Added 'number of characters inserted' argument
29452           - set_SelectedRTF: Now using the number of characters to calculate
29453             the new location for the selection and cursor (x/y cannot be used
29454             due to potentially already wrapped text)
29455
29456 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
29457
29458         * TextControl.cs: Added property and implemented means to allow 
29459           disabling recalculation of a document (can be used to speed up
29460           multiple inserts and is needed to make RTF inserts predictable, see
29461           bug #77659)
29462         * RichTextBox.cs: Using the new NoRecalc property of Document to
29463           keep x/y insert locations predictable. Also makes it faster inserting
29464           large chunks of RTF
29465
29466 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
29467
29468         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
29469           it's easier for a child control to handle the other messages without
29470           having to duplicate the special functionality
29471         * TextBoxBase.cs
29472           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
29473             code to handle processing the key ourselves, in order to get 
29474             access to the result of KeyEventArgs.Handled. We now only call 
29475             ProcessKey if they key hasn't been handled already. Fixes #77526.
29476           - set_Text: If null or empty string is given, just clear the 
29477             document. Fixes part of #77526
29478
29479 2006-02-27  Jackson Harper  <jackson@ximian.com>
29480
29481         * SizeGrip.cs: Paint the background color before painting the grip
29482         so things look right.
29483         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
29484
29485 2006-02-27  Mike Kestner  <mkestner@novell.com>
29486
29487         * ListView.cs:
29488           - Restructure layout and invalidation model to remove a ton of
29489           flicker from the control and speed up performance in general.
29490           - Add manual column resize, flickers like crazy, but I already have
29491           some ideas on how I'll fix that. (#76822)
29492           - Merge the three Icon-based views into a single layout method.
29493           - Move item selection interaction logic from the item since 
29494           interaction with the collections is more appropriate to the view.
29495           - Deselection on non-item clicks.
29496         * ListViewItem.cs:
29497           - Encapsulate most of the layout. Add some internal props to trigger
29498           layout.  Move to a model where Items invalidate themselves instead
29499           of just invalidating the whole control every time something changes.
29500           - Invalidate on Text/Caption changes.
29501           - switch to an offset based layout model to avoid having to absolute
29502           position every element on item moves.
29503           - correct checkbox layout to conform to MS layout.
29504         * ThemeWin32Classic.cs:
29505           - refactor some column header drawing code.
29506           - fix string justification for column headers (#76821)
29507           - make SmallIcon labels top justified for compat with MS impl.
29508         * ThemeClearlooks.cs:
29509           - adjust to new ListViewItem internal checkbox bounds api.
29510
29511 2006-02-27  Jackson Harper  <jackson@ximian.com>
29512
29513         * Control.cs:  Change where implicit controls fall in the zorder.
29514         They are now on top of all children.
29515         - Synced AddImplicit code with Add
29516         - Removed unused enumerator.
29517         * SizeGrip.cs: Remove the TODO as its been TODONE.
29518
29519 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
29520
29521         * TextControl.cs(Insert): Combine the last lines unless the insertion
29522           string ends with \n\n, otherwise we leave one line too many (Fixes
29523           something I noticed with the testapp for #77526; the bug itself was
29524           already fixed in the previous checkin)
29525
29526 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
29527
29528         * RichTextBox.cs:
29529           - SelectionColor and SelectionFont methods no longer set absolute
29530             styles. Instead, the keep font or color respectively (This 
29531             resolves a long-standing FIXME in the code)
29532           - When flushing RTF text, the insert code now considers text trailing
29533             behind the insertion point (Fixes the bug where when replacing
29534             the selected text via SelectedRTF the remainder of the line behind 
29535             the selection would stay on the first insertion line)
29536         * TextBoxBase.cs:
29537           - AppendText now updates the selection points after inserting text
29538           - AppendText now ensures that the last tag (sometimes 0-length) of
29539             the document is used for the style information (Fixes part of 
29540             bug #77220)
29541         * TextControl.cs:
29542           - Created new FontDefiniton class to allow describing partial style
29543             changes
29544           - StreamLine() now takes a lines argument, to allow it to decide
29545             whether an encountered zero-length tag is the last in the document
29546             (which must be kept to not loose the font/color contained in it,
29547             for later appends)
29548           - Created Combine() and Split() methods for Marker structs, to 
29549             support marker updates due to reformatted documents (soft line
29550             wraps)
29551           - Implemented Document.CaretTag setter
29552           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
29553             of the last line (Not the cause, but also exposed by bug #77220)
29554           - Added LineTag argument to InsertString method, to allow callers
29555             to force a certain tag to be used (required to force use of the
29556             trailing zero-length tag of a document)
29557           - Now updating markers in Combine(), to avoid stale tag markers
29558           - Added some method descriptions to aid maintenance
29559           - Implemented new FormatText concept, allowing additive/subtractive
29560             formatting by only specifying the components that are to be 
29561             changed. This was needed for resolving the RTB.SelectedColor/
29562             RTB.SelectedFont fixmes
29563           - Added Break() support method to allow breaking up linetags (used
29564             for partial formatting)
29565           - Added GenerateTextFormat() method. It is used for partial 
29566             formatting and allows to generate a full font/color from given
29567             attributes and an existing tag.
29568
29569 2006-02-26  Jackson Harper  <jackson@ximian.com>
29570
29571         * XplatUIX11.cs:  Use the correct caption height.
29572         - Translate hittest coordinates to screen coords to match MS.
29573         * XplatUIWin32.cs: When we create MDI windows we need to reset
29574         some of the style flags, so we get a nice blank window, and can
29575         draw all the decorations ourselves.
29576         - Set a clipping rectangle on the non client paint event, the
29577         window manager drawing code needs one.
29578         * Form.cs: The window manager needs to know when the window state
29579         has been updated.
29580         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
29581         don't need to factor in border and title sizes in these
29582         methods. TODO: Remove the args and fix the call points.
29583         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
29584         properly.
29585         - Let the driver set the cursors.
29586         - Improve active window handling
29587         - Correct sizes for title bars and buttons.
29588         - Match MS drawing better
29589         * MdiWindowManager.cs: We don't need to handle border style
29590         updates specially anymore.
29591         - Check for scrollbars when windows are done moving
29592         - Handle Active properly.
29593         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
29594         correctly. I am spewing the exception though, so we don't hide the
29595         bugs.
29596         
29597 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
29598
29599         * DataGridViewRowPostPaintEventArgs.cs,
29600           DataGridViewCellPaintingEventArgs.cs,
29601           DataGridViewRowCollection.cs,
29602           DataGridViewRowPrePaintEventArgs.cs,
29603           DataGridViewCell.cs: Clear a few warnings and implement a few
29604           exceptions that should be thrown.
29605
29606 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
29607
29608         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
29609           'inheriting' our parent's (non-default) cursor. (Part of
29610            the fix for #77479)
29611
29612 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
29613
29614         * XplatUIX11.cs: Fixed cast to make csc happy
29615
29616 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
29617
29618         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
29619           it's for the client area (part of fix for #77479 and needed
29620           for MDI window cursor handling)
29621         * XplatUIX11.cs
29622           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
29623             the appropriate default cursors and also passing the message
29624             up the parent chain 
29625           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
29626             for non-client areas
29627
29628 2006-02-15  Jackson Harper  <jackson@ximian.com>
29629
29630         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
29631         is a real MDI window
29632
29633 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
29634
29635         * X11DesktopColors.cs: Instead of checking the desktop session
29636           string for "KDE" check if it starts with "KDE"
29637
29638 2006-02-10  Jackson Harper  <jackson@ximian.com>
29639
29640         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
29641         systems).
29642
29643 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
29644
29645         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
29646           errors
29647         * ColorDialog.cs:
29648           - Got rid of the panel. All controls are now directly added to
29649             the dialog form
29650           - Changed to mono coding style
29651
29652 2006-02-10  Jackson Harper  <jackson@ximian.com>
29653
29654         * InternalWindowManager.cs: We don't need the set visibility to
29655         false hack anymore now that peter has written beautiful shutdown
29656         code.
29657
29658 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
29659
29660         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
29661           where already explicitly destroyed
29662
29663 2006-02-10  Jackson Harper  <jackson@ximian.com>
29664
29665         * MdiClient.cs: Handle the case where windows are too high or to
29666         the left and we need scrollbars.
29667
29668 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
29669
29670         * MimeIcon.cs: Added some icons
29671         * FileDialog.cs:
29672           - Fixed bug #77477
29673           - Got rid of the panel. All controls are now directly added to
29674             the dialog form
29675           - Changed to mono coding style
29676           - On Linux "My Computer" and "My Network" will now show some
29677             more usefull information. A new class, MasterMount, gathers
29678             this information from /proc/mount. Updated MWFFileView to make
29679             use of this information
29680           - Fixed a bug that caused FileDialog to crash when
29681             ".recently_used" file had a zero size
29682           - FilterIndex does now what it should
29683           - Some Refactoring
29684         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
29685             FileDialog changes
29686
29687 2006-02-09  Jackson Harper  <jackson@ximian.com>
29688
29689         * ComboBox.cs: Don't touch if null.
29690
29691 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
29692
29693         * Cursor.cs: 64bit safeness fix
29694         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
29695
29696 2006-02-09  Jackson Harper  <jackson@ximian.com>
29697
29698         * Form.cs: If a form is made into an MDI form update the styles so
29699         all the props can get set correctly.
29700         - Kill the mdi_container when we dont need it anymore.
29701         * InternalWindowManager.cs: Add missing NOT
29702
29703 2006-02-08  Jackson Harper  <jackson@ximian.com>
29704
29705         * InternalWindowManager.cs: Respek clipping when drawing MDi
29706         decorations.
29707
29708 2006-02-08  Jackson Harper  <jackson@ximian.com>
29709
29710         * Hwnd.cs: Add bits to track non client expose events.
29711         * XplatUIX11.cs: Track non client expose events on the hwnd. This
29712         gives us a proper invalid rect and will allow for some nice
29713         optimizations with NC client drawing
29714         - MDI windows are children windows, so move their style handling
29715         into the child window block.
29716         * InternalWindowManager.cs: Remove a state reset that was
29717         getting invoked at the wrong time. Fixes managed windows getting
29718         into a 'stuck' captured state.
29719
29720 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
29721
29722         * TextControl.cs (Document.ctor): Now initializing 
29723           selection_anchor. Fixes #77493
29724
29725 2006-02-07  Jackson Harper  <jackson@ximian.com>
29726
29727         * TrackBar.cs: The increment/decrements were backwards.
29728
29729 2006-02-07  Mike Kestner  <mkestner@novell.com>
29730
29731         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
29732         to the instance itself.
29733
29734 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
29735
29736         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
29737           on ulongs and pointers, the size differs between 32bit and 64bit
29738           systems. 
29739
29740 2006-02-07  Mike Kestner  <mkestner@novell.com>
29741
29742         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
29743         for 64 bit platforms to work around a metacity bug. 
29744
29745 2006-02-07  Jackson Harper  <jackson@ximian.com>
29746
29747         * TrackBar.cs: Process the input keys we need, and hookup to
29748         KeyDown instead of using WndProc, so we get key messages.
29749
29750 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
29751
29752         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
29753           machine we're on. 
29754         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
29755           we need to translate the XdndVersion atoms array before sending it
29756
29757 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
29758
29759         * XplatUIX11.cs: 
29760           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
29761             number of bits for the property, not the number of bytes. The
29762             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
29763             but would not crash since it specified 8 bits instead of 4 bits)
29764           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
29765             defined as XID -> long in the C headers)
29766           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
29767             references since those are now IntPtr to begin with
29768           - Switched all Atom.XXX 'int' casts to IntPtr casts
29769           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
29770           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
29771           - Added XChangeActivePointerGrab DllImport (for X11DnD)
29772         * X11Structs.cs:
29773           - Changed 'int' type for Atoms in XEvent structures to IntPtr
29774           - Changed atom in HoverStruct to be IntPtr
29775         * X11DnD.cs:
29776           - Removed local DllImports, switched code to use those from XplatUIX11
29777           - Removed/fixed casts related to the switch of Atom to be a IntPtr
29778
29779 2006-02-06  Mike Kestner  <mkestner@novell.com>
29780
29781         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
29782         method signatures in the import region.  There may still be some
29783         lingering struct marshaling issues, as I didn't drill down into those.
29784         Yet.
29785
29786 2006-02-06  Jackson Harper  <jackson@ximian.com>
29787
29788         * ComboBox.cs: Dont manually set the top_item, this is computed
29789         when the scrollbar position is set.
29790
29791 2006-02-06  Mike Kestner  <mkestner@novell.com>
29792
29793         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
29794         startup crashes on amd64.  There's other fixes needed.  All pinvoke
29795         usage of Atom needs to be mapped to IntPtr for example.  And there are
29796         likely other int/long issues to be addressed.
29797
29798 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
29799
29800         * FileDialog.cs: One more...
29801
29802 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29803
29804         * FileDialog.cs: Next try
29805
29806 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29807
29808         * FileDialog.cs: First part of fix for #77464
29809
29810 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29811
29812         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
29813           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
29814           AcceptButton border drawing.
29815
29816 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
29817
29818         * Form.cs: Moved positioning of form after auto scaling is applied,
29819           otherwise it would possibly use wrong form size.
29820
29821 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
29822
29823         * Control.cs (RecreateHandle): No need to re-create any child
29824           controls, the child windows will get destroyed automatically by
29825           the windowing system or driver, and re-created when the handle
29826           is being accessed the first time. Fixes #77456
29827         * Form.cs: No longer setting the form to closing if the handle is 
29828           being recreated. This seems like the right thing to do, don't
29829           have a bug or testcase for this, though.
29830
29831 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
29832
29833         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
29834           controls to avoid unwanted side effects
29835
29836 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
29837
29838         * Control.cs: 
29839           - ScaleCore needs to scale the bounds, not the ClientSize of the 
29840             control. Fixes #77416.
29841           - DefaultSize is 0,0 for control
29842         * TextBoxBase.cs: 
29843           - DefaultSize is 100, 20
29844           - SetBoundsCore: Now enforcing the height, no matter if the provided
29845             height is more or less than the preferred one, as long as AutoSize
29846             is on
29847         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
29848
29849 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
29850
29851         * Control.cs:
29852           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
29853             call unless both performLayout is true *and* we have a pending
29854             layout change
29855           - ResumeLayout: MS does not completely nest Suspend and Resume,
29856             they bottom out at 0, fixed our code to match that.
29857           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
29858             SetBoundsCore, we were updating even when we shouldn't. This fixes
29859             swf-anchors mis-anchoring when resizing the app fast and lots.
29860           - UpdateDistances: Now only setting the left and top distance if 
29861             we have a parent and are not suspended, this is based on
29862             a suggestion by Don Edvaldson in bug #77355.
29863           - OnVisibleChanged: Fixed logic when to create the control. We may
29864             not create the control if we have no parent or if it's not visible;
29865             switched to using Visible property instead of is_visible field 
29866             since the property also considers parent states. This fixes a bug
29867             when starting Paint.Net
29868
29869 2006-02-02  Jackson Harper  <jackson@ximian.com>
29870
29871         * Form.cs: If the forms handle hasn't been created yet don't call
29872         into xplatui to make it top most, just set the topmost flag on the
29873         form in CreateParams
29874         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
29875
29876 2006-02-01  Jackson Harper  <jackson@ximian.com>
29877
29878         * ScrollableControl.cs: Refactored the Recalculate method a
29879         little, this wasn't handling all the variants of bottom and right
29880         bars needed to be added and added/removed based on their
29881         counterparts being added/removed (which changes the drawable
29882         size). Also we special case client widths and heights of 0 and
29883         don't add the scrollbar for those.
29884
29885 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
29886
29887         * XplatUIX11.cs: 
29888           - Added method to get AbsoluteGeometry(); currently unused, but might
29889             be used in the future, if we try again to figure out toplevel
29890             coordinates with some more crappy window managers
29891           - Added FrameExtents() method to retrieve the WM set decoration size
29892           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
29893             to deal with at least KDE, FVWM and metacity (Fixes #77092)
29894         * Hwnd.cs: 
29895           - Added whacky_wm tracking var for metacity
29896           - Added logic to have default menu height if the actual menu height
29897             has not yet been calculated (part of fix for #77426)
29898         * Form.cs: Keep track whether client size has been set and re-set 
29899           it if a menu is added/removed afterwards (Fixes #77426)
29900
29901 2006-01-31  Jackson Harper  <jackson@ximian.com>
29902
29903         * Control.cs: When a new Site is set on the component attempt to
29904         pull the AmbientProperties from it.
29905
29906 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
29907
29908         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
29909           in the background of the owning form. Fixes #77332
29910
29911 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
29912
29913         * MimeIcon.cs: Fix for #77409
29914
29915 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
29916
29917         * XplatUIX11GTK.cs: Initial import
29918
29919 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
29920
29921         * FixedSizeTextBox: fixes class signature
29922
29923 2006-01-30  Jackson Harper  <jackson@ximian.com>
29924
29925         * FixedSizeTextBox.cs: New internal class that represents a
29926         textBox that will not be scaled.
29927         * TreeView.cs:
29928         * ComboBox.cs:
29929         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
29930         standard TextBox.
29931                 
29932 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
29933
29934         * XplatUIX11.cs: Retrieve default screen number instead of
29935           assuming 0. Attempted fix for #77318
29936
29937 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
29938
29939         * XplatUIWin32.cs: 
29940           - GetWindowPos: When a window is parented by FosterParent, use 
29941             the desktop instead of FosterParent as the base to get coordinates
29942           - CreateWindow: Don't make FosterParent the parent window for Popups
29943             if we don't want a taskbar entry, Popups automatically don't get one
29944         * Hwnd.cs: Need to call remove to actually remove the key from the
29945           hash table
29946
29947 2006-01-30  Mike Kestner  <mkestner@novell.com>
29948
29949         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
29950
29951 2006-01-30  Jackson Harper  <jackson@ximian.com>
29952
29953         * TreeView.cs:
29954         * TreeNode.cs: Raise events no matter how the treenode is
29955         checked. Patch by Don Edvalson.
29956
29957 2006-01-30  Jackson Harper  <jackson@ximian.com>
29958
29959         * TreeNode.cs: Signature fix.
29960
29961 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
29962
29963         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
29964
29965 2006-01-20  Mike Kestner  <mkestner@novell.com>
29966
29967         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
29968         event forwarding when menus are active.
29969         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
29970         Most of the patch is pdb's with a little rework.
29971
29972 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29973
29974         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
29975           Removed GetMenuDC and ReleaseMenuDC methods; replaced
29976           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
29977         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
29978         * InternalWindowManager.cs: Added use of PaintEventStart/End to
29979           handling of WM_NCPAINT message, now passing the PaintEventArgs to
29980           the PaintWindowDecorations method
29981         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
29982         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
29983         * MenuAPI.cs: Made tracker window invisible
29984         * XplatUIWin32.cs:
29985           - Removed GetMenuDC and ReleaseMenuDC methods
29986           - Implemented the client=false path for PaintEventStart and
29987             PaintEventEnd
29988
29989 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29990
29991         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
29992         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
29993           styles
29994         * Form.cs: 
29995           - MaximizeBox, MinimizeBox: Recreate the handle when setting
29996             the style
29997           - CreateParams: Reworked the styles to match MS look'n'feel,
29998             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
29999             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
30000
30001 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
30002
30003         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
30004           window is not mapped, since otherwise every form that's being 
30005           created is considered minimized, which is wrong.
30006         * Form.cs: Catching the exception and returning our internal value
30007           instead
30008
30009 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
30010
30011         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
30012           SetWindowMinMax() to have means to tell the driver about the minimum,
30013           maximum and maximized state window sizes. (Part of the fix for #76485)
30014         * Form.cs:
30015           - Implemented tracking of minimum and maximum window size, now calling
30016             new SetWindowMinMax() driver method to tell the driver (Part of the
30017             fix for #76485)
30018           - Finished handling of WM_GETMINMAXINFO method, now setting all values
30019             (Completes fix for #76485)
30020           - Calling new SetWindowMinMax driver method when the handle for a 
30021             form is created, to make sure the driver knows about it even if
30022             the values have been set before the window was created
30023           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
30024             to avoid messing up our anchoring calculations (partial fix
30025             for #77355)
30026         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
30027         * XplatUIX11.cs:
30028           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
30029           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
30030             (and presumably other freedesktop.org compliant WMs). Left the
30031             assumption unmapped=minimized, needed for SetVisible to work.
30032           - Now setting the window state when creating windows
30033           - Fixed SetVisible to consider/set the window state when mapping
30034             a Form. We cannot set the state before it's mapped, and we cannot
30035             use Form.WindowState once it's mapped (since it would ask the
30036             driver and get 'normal'. Therefore, we grab the state before
30037             mapping, map, and then set state.
30038           - Implmemented SetWindowMinMax method; Metacity does not seem to
30039             honor the ZoomHints, though.
30040         * XplatUIWin32.cs:
30041           - Removed MINMAXINFO (moved to XplatUIStructs)
30042           - Added SetWindowMinMax stub (on Win32 the only way to set that
30043             information is in response to the WM_GETMINMAXINFO message, which
30044             is handled in Form.cs)
30045           - Added logic to SetVisible to set the proper window state when a 
30046             form is made visible (fixes #75720)
30047
30048 2006-01-26  Jackson Harper  <jackson@ximian.com>
30049
30050         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
30051         same way we handle them with Invoke.
30052
30053 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
30054
30055         * Form.cs:
30056           - Added tracking of window state so CreateParams can return
30057             the appropriate style
30058           - Moved setting of WS_CAPTION style in CreateParams to allow
30059             styles without caption
30060         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
30061           control if the TextBox property is accessed. Fixes #77345
30062         * Control.cs:
30063           - get_Created: now uses is_disposed and is_created to determine
30064             return value (suggested by Jackson)
30065           - CreateHandle: No longer exits if the handle is being recreated
30066           - RecreateHandle: If the handle is not yet created call the 
30067             appropriate method to create either control or handle. If the
30068             control is already created CreateHandle will simply exit instead
30069             of just creating the handle
30070         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
30071           now SendMessage WM_DESTROY directly to the control when DestroyWindow
30072           is called.
30073         * XplatUIX11.cs: 
30074           - When DestroyWindow is called, instead of waiting for the 
30075             DestroyNotification from X11, we directly post it to the WndProc
30076             and immediately dispose the hwnd object.
30077             Same applies to DestroyChildWindows, and this obsoletes the
30078             expose_pending tracking. Contrary to Win32 behaviour we destroy our
30079             child windows before our own, to avoid X11 errors.
30080           - Removed the direct sending of WM_PAINT on UpdateWindow
30081         * XplatUIWin32.cs:
30082           - Reworked DoEvents and GetMessage to allow access to internal queue
30083             even when trying non-blocking access to the queue.  Fixes #77335. 
30084             Based on a patch suggestion by Don Edvalson. The new private
30085             GetMessage can now also be used as a backend for a PeekMessage
30086             frontend version.
30087         * XplatUI.cs: Improved debug output for CreateWindow
30088
30089 2006-01-25  Jackson Harper  <jackson@ximian.com>
30090
30091         * Help.cs: Allow param to be null. Patch by Don Edvalson.
30092
30093 2006-01-24  Jackson Harper  <jackson@ximian.com>
30094
30095         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
30096         when we have a MaxDropItems lower then the selected index.
30097
30098 2006-01-24  Jackson Harper  <jackson@ximian.com>
30099
30100         * Control.cs: Don't allow selection of non visible controls, allow
30101         selection of controls without parents.
30102
30103 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
30104
30105         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
30106         * DataGridDrawingLogic.cs: Add editing row only when is necessary
30107
30108 2006-01-23  Jackson Harper  <jackson@ximian.com>
30109
30110         * UpDownBase.cs: Make the textbox handle all the selection and
30111         tabbing. This fixes tabing to updown controls.
30112
30113 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
30114
30115         * TextBoxBase.cs: fixes exception thown the object was null
30116
30117 2006-01-23  Jackson Harper  <jackson@ximian.com>
30118
30119         * ButtonBase.cs: Just use the base CreateParams. They set
30120         visibility and enabled correctly.
30121         * ComboBox.cs:
30122         * TrackBar.cs:
30123         * MonthCalendar.cs: Lets let the base set as much of the
30124         createparams as possible so we don't have duplicate code all over
30125         the place.
30126
30127 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
30128
30129         * ThemeGtk.cs: Added TrackBar and some experimental code to
30130           get double buffering back
30131
30132 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
30133
30134         * DataGrid.cs: Allows row number set internally higher than the last
30135         when creating a new row. Restores the editing functionality.
30136
30137 2006-01-20  Mike Kestner  <mkestner@novell.com>
30138
30139         * MimeIcon.cs: delay Image creation until the icons are accessed
30140         instead of creating 190 scaled images on GnomeHandler startup.
30141
30142 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
30143
30144         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
30145           first call base before processing the event. Fixes #77279
30146
30147 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
30148
30149         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
30150           that the stride for the GDI bitmap would match the stride of
30151           a DIB or a Cursor.
30152
30153 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
30154
30155         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
30156
30157 2006-01-19  Jackson Harper  <jackson@ximian.com>
30158
30159         * ComboBox.cs: Hookup the text controls keydown event so we get
30160         those when the text control has the focus.
30161
30162 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
30163
30164         * Label.cs: Now using the base events instead of defining new ones;
30165           this allows us to just call the base properties without having to
30166           duplicate all base property logic 
30167
30168 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
30169
30170         * Label.cs: A label by default is not a tabstop (Fixes one of our
30171           failing nunit tests)
30172
30173 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
30174
30175         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
30176         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
30177
30178 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
30179
30180         * Cursor.cs: Reimplemented creating cursor bitmaps without using
30181           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
30182           This fixes #77218
30183         * XplatUIWin32.cs: 
30184           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
30185             constructor creates images that can't be saved. Part of the fix
30186             for #76103
30187           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
30188           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
30189             bug fix for handling window state in forms properly)
30190
30191 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
30192
30193         * ThemeGtk.cs: Simplify ScrollBar drawing
30194
30195 2006-01-18  Jackson Harper  <jackson@ximian.com>
30196
30197         * Splitter.cs: Set the default dock style for the splitter control
30198         in the constructor.
30199
30200 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
30201
30202         * ThemeGtk.cs: Corrected StateType and ShadowType for
30203           gtk_paint_box
30204
30205 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
30206
30207         * Control.cs: Make use of Theme.DoubleBufferingSupported
30208         * ThemeGtk.cs:
30209           - Added drawing for flat style buttons
30210           - Added ScrollBar drawing
30211
30212 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
30213
30214         * ThemeClearlooks.cs: Removed some unneeded code.
30215         * ThemeGtk.cs: First part of ThemeGtk enhancements.
30216
30217 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
30218
30219         * LinkLabel.cs: We need to update the hover drawing when
30220           leaving the control as well.
30221
30222 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
30223
30224         * DataGrid.cs: Clicking on non empty areas in the columns
30225            area was giving an exception
30226
30227 2006-01-17  Jackson Harper  <jackson@ximian.com>
30228
30229         * ThemeWin32Classic.cs:
30230         * ListView.cs: Do not draw/clip the headers when the header style
30231         is None.
30232
30233 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
30234
30235         * DataGrid.cs: Fixes 77260
30236         
30237 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
30238
30239         * DataGrid.cs: Clicking on a column on a empty grid was giving
30240           an exception
30241
30242 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
30243
30244         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
30245           or any keypress will crash the grid.
30246
30247 2006-01-17  Mike Kestner  <mkestner@novell.com>
30248
30249         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
30250         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
30251         invisible/previously-visible items.
30252         [Fixes #76909]
30253
30254 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
30255
30256         * ThemeClearlooks.cs:
30257         - Added CL_Draw_Button method; now other theme controls that are 
30258           not derived from button or do not have a button can draw buttons
30259           too
30260         - Updated ComboBox drawing
30261         - Beautified RadioButton drawing
30262         - Corrected drawing of bottom and left tabs
30263         - Beautified DateTimePicker and MonthCalendar
30264         - Added CPDrawButton and CPDrawRadioButton
30265
30266 2006-01-16  Jackson Harper  <jackson@ximian.com>
30267
30268         * ComboBox.cs: Set the initial value of the scrollbar to the
30269         current index. Reduce the numbers of refreshs and IndexOfs called.
30270
30271 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
30272
30273         * FileDialog.cs: When the file listview is focused hitting the
30274           backspace key moves the fileview to the parent directory
30275
30276 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
30277
30278         * Form.cs: 
30279           - Added RecreateHandle call when changing taskbar visibility to 
30280             trigger reparenting in Win32 driver (Fixes #75719)
30281           - If a window has minimize or maximize buttons, it cannot have
30282             a help button
30283         * XplatUIWin32.cs:
30284           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
30285             the toplevel form with FosterParent (A toolwindow not on the
30286             taskbar) (Fixes #75719)
30287           - Made FosterParent a toolwindow
30288
30289 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
30290
30291         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
30292
30293 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
30294
30295         * ToolTip.cs: If SetToolTip is called from a control and the mouse
30296           is currently over that control, make sure that tooltip_window.Text
30297           gets updated
30298
30299 2006-01-13  Mike Kestner  <mkestner@novell.com>
30300
30301         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
30302
30303 2006-01-13  Jackson Harper  <jackson@ximian.com>
30304
30305         * TreeView.cs: On MS GetNodeAt never actually factors in the X
30306         value passed.  Also redraw the selected node when we recieve
30307         focus, so tabbing between trees works correctly.
30308
30309 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
30310
30311         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
30312           ~/.gconf/%gconf-tree.xml, so use
30313           .gconf/desktop/gnome/interface/%gconf.xml
30314
30315 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
30316
30317         * TextControl.cs: Draw text in gray if control is disabled
30318
30319 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
30320
30321         * TreeView.cs: Draw the focus rectangle outside the highlight, to
30322           make sure it's always visible. Fixes #76680.
30323
30324 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
30325
30326         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
30327
30328 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
30329
30330         * PageSetupDialog.cs: Added.
30331         * PrintDialog.cs: Attributes.
30332         * PrintPreviewControl.cs: Updates.
30333         * PrintPreviewDialog.cs: Updates.
30334         
30335 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
30336
30337         * Control.cs: Undid my selection check fix, since it's not needed
30338         * TextBoxBase.cs:
30339           - Now considering the presence of hscroll/vscroll when sizing
30340             vscroll/hscroll respectively. Fixed bug #77077
30341           - Added Left/Up/Down/Right to IsInputKey list to prevent
30342             ContainerControl from stealing them. This fixes what I broke
30343             with my last checkin.
30344
30345 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
30346
30347         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
30348           I finally understand how the property can be set without a setter :-)
30349
30350 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
30351
30352         * Application.cs:
30353           - Switched RunLoop to use static Message.Create to create a 
30354             Message object
30355           - Added PreProcessMessage call in runloop for keyboard events; this
30356             is part of the fix for #77219, I overlooked this originally in the
30357             MSDN doc for PreProcessMessage
30358         * Control.cs:
30359           - Removed call to PreProcessMessage from handling of keyboard 
30360             messages; it's supposed to be done in the message pump
30361           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
30362             per MSDN documentation.
30363           - IsInputChar: All chars are input chars by default; removed the 
30364             parent calling chain, MS does not document that
30365           - PreProcessMessage: If IsInputChar is true, we want to return false
30366             to allow dispatching of the message
30367           - When selecting the next control, now also check that we're not
30368             selecting ourselves again and therefore return a false positive.
30369         * TextBoxBase.cs:
30370           - Tried to match return values for IsInputKey and ProcessDialogKey
30371             to what MS returns; moved processing of our special keys outside
30372             ProcessDialogKey since MS does not seem to return true on those.
30373           - Moved code that previously was in ProcessDialogKey into new private
30374             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
30375           - Reworked handling of WM_CHAR to not have to duplicate code from
30376             Control.cs anymore, instead we simply call down to base.
30377            
30378 2006-01-12  Jackson Harper  <jackson@ximian.com>
30379
30380         * ComboBox.cs: We always need to refresh the text area when
30381         EndUpdate is called. Fixes the combobox in the file dialog.
30382         * Control.cs: Don't create the creator_thread until the controls
30383         handle is created.  Also in InvokeRequired we check if the
30384         creator_thread is null. This gives the effect of InvokeRequired
30385         returning true if the controls handle is not created yet, and
30386         matches MS.
30387
30388 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
30389
30390         * XplatUI.cs:
30391           - Added StartLoop() driver method. This is used to allow drivers to
30392             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
30393             loop for a particular thread
30394           - Added EndLoop() driver method. This is called once the message
30395             pump for the thread is shut down
30396           - Added SupportsTransparency method to allow the driver to indicate
30397             opacity support for windows
30398         * Form.cs:
30399           - Removed TODO attribute, completed AllowTransparency property
30400           - Added documented logic to Opacity
30401         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
30402           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
30403           versions of CompatibleTextRendering
30404         * X11Structs.cs: Added opacity atom to our atom enumeration
30405         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
30406           of a form might be set before it's reparented by the WM, and we need
30407           the opacity value without calling up to Form)
30408         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
30409           SupportsTransparency() driver methods
30410         * Application.cs: Now calling StartLoop and EndLoop driver methods
30411         * XplatUIX11.cs:
30412           - Added opacity atom registration
30413           - Added StartLoop()/EndLoop() methods. They're empty right now but
30414             will need to get implemented when we switch to a per-thread queue
30415           - Implemented SupportsTransparency() method
30416           - Implemented SetWindowTransparency() method
30417           - Added support for setting the opacity value when a window is
30418             reparented (since the opacity needs to be set on the WM frame)
30419         * XplatUIOSX.cs, XplatUIWin32.cs:
30420           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
30421
30422 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
30423
30424         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
30425
30426 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
30427
30428         * FileDialog.cs: Added ToolTip for MWFFileView
30429         * MimeIcon.cs: Rewrote GnomeHandler.
30430           - Get currently used gnome icon theme from
30431             ($HOME)/.gconf/%gconf-tree.xml
30432           - Make use of inherited icon themes
30433           - Support SVG icon themes like Tango via librsvg
30434
30435 2006-01-12  Miguel de Icaza  <miguel@novell.com>
30436
30437         Revert's Jackson's revert which broke 2.0 builds.   Fix both
30438         builds. 
30439         
30440         * Application.cs: Move the use_compatible_text_rendering outside
30441         the NET_2_0 define.  If we ever need to use the
30442         use_compatible_text_rendering on the individual controls they will
30443         access the variable from the common shared code paths.
30444
30445 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
30446
30447         * XplatUI.cs:
30448           - Added more granular debug options
30449           - Added method to print both window text and id
30450           - Switched debug output to use new Window() debug method
30451           - Added IsEnabled() driver method
30452           - Added EnableWindow() driver method
30453         * Form.cs:
30454           - Removed end_modal; no longer needed, new loop handles termination
30455             via 'closing' variable
30456           - If form is modal, setting DialogResult will now initiate loop
30457             termination via 'closing' variable
30458           - Added support for is_enabled/WS_DISABLED to CreateParams
30459           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
30460             does all the work
30461           - Removed code that's now in RunLoop from ShowDialog()
30462           - Added various documented sanity checks to ShowDialog()
30463           - Added handling of WM_DESTROY message; we set 'closing' on getting
30464             the message to indicate the message pump to terminate
30465           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
30466             send by the Application.ExitThread method. (We send the message
30467             to destroy the window after all other events have been
30468             processed through the queue, instead of destroying the handle 
30469             directly)
30470           - Moved code from Close() method to WM_CLOSE handler; added logic
30471             to only send close-related events if the form is not displayed
30472             modal
30473         * Splitter.cs (..ctor): Fixed typo in resource name
30474         * Control.cs:
30475           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
30476             brush now
30477           - set_Cursor: Now only setting calling into XplatUI if the handle for
30478             the control is already created; this avoids implict handle creation
30479             or crashes if it's not created
30480           - set_Enabled: Now setting the enabled state via the new driver method
30481             instead of just tracking it
30482           - CreateParams: Added logic to set WS_DISABLED based on enabled state
30483           - CreateControl: Reordered event firing and method calls to more
30484             closely fire events in the order MS does. Now setting the
30485             enabled state in the driver when creating the control.
30486           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
30487             match MS order
30488         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
30489           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
30490         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
30491         * Hwnd.cs:
30492           - Added tracking of window enabled state (get_Enabled/set_Enabled)
30493           - Added EnabledHwnd property to easily allow a driver to find the
30494             handle of the first enabled window in the parent chain (this is
30495             used by drivers to pass up input events of disabled windows)
30496         * XplatUIDriver.cs: Added IsEnabled() method
30497         * Application.cs:
30498           - Removed crude and obsolete exiting tracking variable
30499           - Removed internal ModalRun(); replaced by RunLoop()
30500           - Implemented private CloseForms() method to allow closing all 
30501             windows owned by a particular (or all) threads
30502           - Exit() now properly closes all windows without forcing the message
30503             pump to quit
30504           - Removed obsolete InternalExit() method
30505           - Changed Run() methods to use new RunLoop() message pump
30506           - Implemented new RunLoop() method for both modal and non-modal forms
30507         * CommonDialog.cs:
30508           - get_CreateParams: Added setting of WS_DISABLED
30509           - Simplified ShowDialog(); now all the work is done in RunLoop(),
30510             invoked via Form.ShowDialog()
30511         * NativeWindow.cs: We don't remove the window from the collection when
30512           the handle is destroyed; there might still be messages for it in the
30513           queue (mainly the resulting WM_DESTROY); instead it will be removed
30514           when Control calls InvalidateHandle in the WM_DESTROY handler
30515         * XplatUIX11.cs:
30516           - CreateWindow: Added logic to handle the WS_DISABLED window style
30517           - EnableWindow: Implemented based on Hwnd.Enabled
30518           - GetMessage: Reset PostQuitState so the method can be called again
30519           - Implemented support for disabled windows (passing messages to the
30520             first enabled parent) in handling all input messages
30521           - Added optimizations for handling Expose events
30522           - Implemeted new driver method IsEnabled()
30523           - Now always resetting paint pending tracking vars when we start paint
30524           - Re-implemented UpdateWindow via just sending a WM_PAINT message
30525         * XplatUIOSX.cs: Added IsEnabled method stub
30526         * XplatUIWin32.cs: Implemented new IsEnabled() method
30527
30528 2006-01-11  Jackson Harper  <jackson@ximian.com>
30529
30530         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
30531         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
30532         variables a little.
30533         * ColorDialog.cs: Clear out the old form before adding the new
30534         panel.  
30535
30536 2006-01-11  Jackson Harper  <jackson@ximian.com>
30537
30538         * X11Dnd.cs: Make sure to add all the text formats when adding
30539         strings to the data object.
30540         * TreeNodeCollection.cs: When adding to a sorted tree we need to
30541         do some redrawing too.  Also change the UpdateNode to an
30542         UpdateBelow so the newly added node gets painted.
30543         
30544 2006-01-11  Miguel de Icaza  <miguel@novell.com>
30545
30546         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
30547         LinkLabel.cs, PropertyGrid.cs: Implement the
30548         UseCompatibleTextRendering property for 2.x
30549
30550         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
30551
30552 2006-01-11  Jackson Harper  <jackson@ximian.com>
30553
30554         * TreeView.cs: Use the property for setting the selected node so
30555         the correct events get raised.
30556         * TreeNode.cs: Update the tree when the fore/back colours of a
30557         node are set.
30558
30559 2006-01-10  Jackson Harper  <jackson@ximian.com>
30560
30561         * TreeView.cs: Allow setting SelectedNode to null.
30562
30563 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
30564
30565         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
30566
30567 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
30568
30569         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
30570
30571 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
30572
30573         * PrintDialog.cs: Added attributes and set default property values.
30574
30575 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
30576
30577         * PrintControllerWithStatusDialog.cs: 
30578         Added PrintControllerWithStatusDialog.
30579
30580 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
30581
30582         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
30583         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
30584
30585 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
30586
30587         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
30588
30589 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
30590
30591         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
30592         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
30593
30594 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
30595
30596         * MimeIcon.cs: Added internal class SVGUtil.
30597
30598 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
30599
30600         * FileDialog.cs: Don't crash if there are two files with the
30601           same name but different locations.
30602
30603 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
30604
30605         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
30606         dates across multiple month grids. Used to not highlight entire 
30607         month, but does now.
30608         
30609 2006-01-06  Jackson Harper  <jackson@ximian.com>
30610
30611         * MonthCalendar.cs: Removed DoEvents call to prevent a running
30612         message loop. Change timer intervals to numbers that seem more
30613         natural.
30614
30615 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
30616
30617         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
30618           object for location info since screen object is now implemented.
30619
30620 2006-01-05  Jackson Harper  <jackson@ximian.com>
30621
30622         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
30623         * AsyncMethodResult.cs: We no longer use a WeakReference for the
30624         AsyncMethodResult, this is because we ALWAYS want the
30625         ManualResetEvent to get set.
30626         * Control.cs: When disposing use an async invoke to call shutdown
30627         code, so that thigns don't block on the finalizer thread.  Also
30628         check if we even have a message loop before trying to send
30629         messages, if we don't then don't bother sending messages.
30630         - No more weak references for async methods
30631         * XplatUIDriver.cs: No more weak references for async methods.
30632
30633 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
30634
30635         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
30636           returns two FontFamily with the same name
30637
30638 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
30639
30640         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
30641           drawing disabled text. Instead using the ColorGrayText color
30642
30643 2006-01-04  Jackson Harper  <jackson@ximian.com>
30644
30645         * TreeNode.cs: redraw the node when its image index is changed.
30646
30647 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
30648
30649         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
30650           time I checked there are no others like it.
30651
30652 2006-01-04  Jackson Harper  <jackson@ximian.com>
30653
30654         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
30655         this gives the behavoir I was looking for.
30656         * Control.cs: Special case Invoking EventHandlers, this matches MS
30657         and fixes part of bug #76326.
30658
30659 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
30660
30661         * ThemeClearlooks.cs, FileDialog.cs:
30662           - Reflect the latest Theme class changes
30663           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
30664             with DateTime
30665             
30666 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
30667
30668         * Theme.cs: Cache UI resource images and resize them if needed
30669
30670 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
30671
30672         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
30673           is called. This fixes the crash in Nexxia when setting the font
30674           attributes in the chat. [However, RTF needs a look-over to make sure
30675           that all SelectionXXX methods handle the special case that selection
30676           is empty and therefore the change must be applied to all text starting
30677           at the cursor/selection start]
30678
30679 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
30680
30681         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30682           XplatUIOSX.cs: Added SendMessage and PostMessage methods
30683         * X11Keyboard.cs: Switched to new way of calling PostMessage
30684
30685 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
30686
30687         * Theme.cs: Added theme interface for images to allow the theme to
30688           control what images are used for things like FileDialog, MessageBox
30689           icons, etc.
30690         * MessageBox.cs: Now uses the new Theme icon/image interfaces
30691
30692 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
30693
30694         * FileDialog.cs:
30695           - Removed some dead code
30696           - Opening a recently used file does work now
30697           - Small UI enhancements
30698           - Refactoring
30699
30700 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
30701
30702         * FileDialog.cs: Forgot too add __MonoCS__
30703
30704 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
30705
30706         * FileDialog.cs: We are able to read recently used files now let's
30707           go on and write them.
30708
30709 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
30710
30711         * FileDialog.cs: Breathe some life into "last open"/"recently used"
30712           button
30713         * MimeIcon.cs: Do a check for the top level media type also
30714
30715 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
30716
30717         * ThemeClearlooks.cs:
30718           - Added CPDrawStringDisabled
30719           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
30720             some chars if the text doesn't fit into text_rect
30721           - DrawListViewItem: If View = View.LargeIcon center the image;
30722             rewrote the drawing of ListViewItem.Text if View = 
30723             View.LargeIcon
30724
30725 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
30726
30727         * MimeIcon.cs: Use default KDE icon theme if there is no
30728           "48x48" directory for the current icon theme, fixes #77114
30729         * Mime.cs: Disable not working and actually not used code. 
30730         * ThemeWin32Classic.cs:
30731           - Replace "new SolidBrush" in GetControlBackBrush and
30732             GetControlForeBrush with ResPool.GetSolidBrush
30733           - Changed DrawListViewItem from private to protected virtual
30734         * FileDialog.cs:
30735           - Added form.MaximizeBox = true
30736           - Don't throw an exception if there is a broken symbolic link
30737
30738 2005-12-23  Jackson Harper  <jackson@ximian.com>
30739
30740         * TabControl.cs: Give the panels focus, keyboard navigation is
30741         fixed so this works correctly now.
30742         - We need these key events also.
30743         * ToolBar.cs: Remove some of the poor mans double buffering.
30744         
30745 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
30746
30747         * ComboBox.cs: The internal TextBox now returns the focus.
30748
30749 2005-12-23  Jackson Harper  <jackson@ximian.com>
30750
30751         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
30752
30753 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
30754
30755         * Control.cs: Removed debug code
30756         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
30757           implicit children
30758
30759 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
30760
30761         * Control.cs: When creating the control, update the Z-order after
30762           all it's children are created, too. (Fixes nexxia not showing
30763           picturebox bug)
30764
30765 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
30766
30767         * Control.cs: Do not update the anchoring distances if layout is
30768           suspended, instead do it once layout is resumed
30769
30770 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
30771
30772         * Control.cs: 
30773           - After many hours of debugging, for both Jackson and
30774             myself, it turns out that it helps to set the parent of a control
30775             if you want to actually see it onscreen. In the spirit of that
30776             discovery, we're now setting the parent of the control and
30777             it's children when the control's handle is created. This fix
30778             will make Lutz Roeder's Reflector run happily. 
30779           - now just creating the handle instead of the whole control when
30780             getting a graphics context for the control.
30781
30782 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
30783
30784         * ScrollableControl.cs: When calculating the canvas, don't consider
30785           the scrollbar widths. Instead, predict if horizontal scrollbar
30786           will affect canvas when deciding on vertical display and vice versa.
30787
30788 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
30789
30790         * RichTextBox.cs: Set default RTF font for documents that don't
30791           have a font table (Fixes #77076)
30792
30793 2005-12-22  Jackson Harper  <jackson@ximian.com>
30794
30795         * TextBoxBase.cs: It's difficult to do, but you can have an empty
30796         clipboard. This prevents a NullRef in that case.
30797         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
30798         clipboard. PRIMARY is for the currently selected text only. (We
30799         should implement PRIMARY at some point.
30800
30801 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30802
30803         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
30804           a Unicode function with a structure that was defined in Ansi way.
30805           This fixes #76942.
30806
30807 2005-12-21  Jackson Harper  <jackson@ximian.com>
30808
30809         * StatusBar.cs: Statusbar handles its fore/back colours on it's
30810         on. Because thats how it rolls. (and this avoids it using ambient
30811         colours).
30812         * ThemeWin32Classic.cs: Use the proper back color for filling.
30813         * Menu.cs: Use the system menu bar color for drawing menu
30814         bars. Using the window back color will bring ambient colours into
30815         the picture.
30816
30817 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
30818
30819         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
30820           Bitmaps were created and not disposed.
30821
30822 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30823
30824         * Control.cs (CreateControl): Don't do anything if the control is
30825           already created, otherwise we'd fire the OnCreated event more than
30826           once
30827
30828 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
30829
30830         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
30831           will always match. Instead return -1. Fixes #76464.
30832
30833 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30834
30835         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
30836           neither the beginning nor the end of the line (Fixes bug #76479)
30837
30838 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
30839
30840         * Control.cs:
30841           - ControlNativeWindow.ControlFromHandle(): Now handling situation
30842             where handle is invalid
30843           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
30844             instead of slower linear search
30845         * NativeWindow.cs: Don't remove the window from the hashtable until
30846           after the driver has destroyed it (since the driver might use
30847           Control.FromHandle to lookup the control object
30848         * Hwnd.cs: Added DestroyPending property to track if a window is 
30849           already destroyed as far as the driver is concerned and only hasn't
30850           yet notified the control
30851         * XplatUIX11.cs:
30852           - Activate(): Check if the window is still valid before using the 
30853             handle
30854           - Implemented DestroyChildWindow() method to mark child windows as
30855             destroyed when a window is destroyed. This prevents situations 
30856             where we might call an X method based on queued events for a
30857             window that already has been destroyed but we haven't yet pulled
30858             the destroy method from the queue.
30859           - Added a call to the new DestroyChildWindow() method to the drivers
30860             DestroyWindow code. Also now marking the destroyed window itself
30861             as pending
30862
30863 2005-12-20  Jackson Harper  <jackson@ximian.com>
30864
30865         * StatusBar.cs:
30866         * StatusBarPanel.cs: Don't calculate panel sizes on draw
30867         anymore. Just do them when needed, also track the rects of panels
30868         so that we can optimize refreshing more in the future.
30869
30870 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
30871
30872         * ColorDialog.cs: Fixed focus drawing in small color controls
30873
30874 2005-12-19  Jackson Harper  <jackson@ximian.com>
30875
30876         * InternalWindowManager.cs:
30877         * MdiWindowManager.cs: Cleanup some coordinate system changes so
30878         moving windows works properly.
30879
30880 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
30881
30882         * Control.cs: 
30883           - Removed call to InitLayout() from SetBoundsCore(); doc says
30884             it's only called when a control is added to a container
30885           - Split InitLayout logic, moved to separate UpdateDistances() method
30886             since we need to perform those calculations more often than just
30887             when adding the control to a container. (Needed to fix #77022)
30888           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
30889           - Reduced the OnBindingContextChanged events count, don't send them
30890             unless the control is created, we still aren't totally matching
30891             MS, but I can't quite figure out some of their rules
30892
30893 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30894
30895         * ThemeClearlooks.cs: Corrected distance between ProgressBar
30896           stripes
30897
30898 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30899
30900         * ThemeClearlooks.cs:
30901           - Updated ProgressBar drawing
30902           - Corrected drawing of ScrollBars and scroll buttons
30903           - Some temporary fixes for minor pixel artefacts
30904
30905 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
30906
30907         * Control.cs:
30908           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
30909             cause events to be sent in the same order as MS does.
30910           - Added ChangeParent() method to trigger various OnXXXChanged events
30911             that need to be fired when a parent changes (This is a reworking
30912             of the patch from r54254, with the X11 errors fixed)
30913           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
30914             since on MS we get OnLayoutChanged events when calling Clear()
30915           - Changed Enabled property to consider parent state as well, if a
30916             parent is not enabled, the control will not be either
30917           - Changed Parent property to simply call Controls.Add() since that
30918             now does all the work required, this way we avoid code duplication
30919           - Threw in a few OnBindingsContextChanged calls to try and match
30920             when MS sends them. We seem to send a few too many, though.
30921           - Added call to CreateControl when adding the control to a parent.
30922             We were never calling CreateControl. Still needs some work, in
30923             some places we treat HandleCreated and ControlCreated as equal, 
30924             which is wrong
30925           - Removed obsolete commented out code from UpdateZOrder()
30926
30927 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30928
30929         * ThemeClearlooks.cs: Updated TrackBar drawing.
30930
30931 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30932
30933         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
30934
30935 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30936
30937         * FileDialog.cs: Add the Help button and the open readonly
30938           checkbox only if needed
30939
30940 2005-12-16  Jackson Harper  <jackson@ximian.com>
30941
30942         * Control.cs: Make sure we have an active menu before trying to
30943         process commands on it. Prevents menu-less forms from crashing
30944         when Alt is pressed.
30945         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
30946         Dieter Bremes.
30947         * RichTextBox.cs: Expand statement to help out gmcs and fix the
30948         2.0 build.
30949
30950 2005-12-16  Jackson Harper  <jackson@ximian.com>
30951
30952         * InternalWindowManager.cs: Don't translate tool windows screen
30953         coordinates. This fixes windows 'bouncing' around when being moved.
30954
30955 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30956
30957         * TextBoxBase.cs:
30958           - MaxLength now treats 2^31-1 equal to unlimited length (this is
30959             not quite MS compatible, MS uses that number only for single line
30960             and 2^32-1 for multi-line, but I figure it won't hurt keeping
30961             the limit at 2GB)
30962           - Now enforcing the MaxLength limit when entering characters
30963           - Added argument to internal Paste() method to track if it's called
30964             from programatically or via keyboard, since keyboard driven pastes
30965             need to enforce max-length
30966           - Added logic to Paste to only paste as many chars as MaxLength 
30967             allows
30968         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
30969         * TextControl.cs:
30970           - Added Length property to return number of characters in document
30971           - Added private CharCount property which only tracks actual chars
30972             in the document (no linefeeds) and fires event when CharCount
30973             changes
30974           - Added tracking of character count to all methods that alter it
30975           - Added LengthChanged event to allow applications to subscribe
30976             to any changes to the document
30977
30978 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30979
30980         * TextBox.cs: 
30981           - Removed local password_char field (moved to TextBoxBase)
30982           - Now setting the document's password var when password is
30983             set
30984         * TextBoxBase.cs:
30985           - Added password_char field (needed here so MultiLine can
30986             access it)
30987           - Added logic to MultiLine property setter to set the document's
30988             variable when password display is allowed
30989           - Removed debug code and made some debug code conditional
30990         * TextControl.cs:
30991           - Added RecalculatePasswordLine() method to handle special password
30992             char only lines
30993           - Added PasswordChar property, also added related tracking vars
30994           - Draw() method now uses local text var for grabbing text to draw,
30995             this var is set to line.text unless we're doing password display,
30996             then it is set to the pre-generated all-password-chars line
30997           - Added calling RecalculatePasswordLine() method for password lines
30998
30999 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
31000
31001         * Hwnd.cs: 
31002           - Added Reparented property to allow tracking of Window Manager
31003             reparenting actions (which affect X/Y calculations of toplevel 
31004             windows)
31005           - Made ToString() print window handles in hex
31006         * XplatUIX11.cs:
31007           - AddConfigureNotify(): Now uses reparented state off Hwnd to
31008             determine if X/Y needs offsetting
31009           - AddConfigureNotify(): Fixed offset calculations
31010           - Now adds ReparentNotify messages into the queue
31011           - Now processes ReparentNotify messages and causes a 
31012             WM_WINDOWPOSCHANGED message to be sent upstream if a window
31013             is reparented (as most likely it's X/Y coordinates are changed
31014             due to that)
31015
31016 2005-12-14  Jackson Harper  <jackson@ximian.com>
31017
31018         * XplatUIX11.cs: Tool windows still need to respek focus.
31019
31020 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
31021
31022         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
31023           have a working release
31024
31025 2005-12-13  Jackson Harper  <jackson@ximian.com>
31026
31027         * Form.cs: Update styles after setting the border style regardless
31028         of whether or not the window is using a window manager.
31029
31030 2005-12-13  Jackson Harper  <jackson@ximian.com>
31031
31032         * Form.cs: We now hook into an internal window manager instead of just an
31033         MDI subsystem, this is so we can have properly behaving tool windows.
31034         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
31035         * InternalWindowManager.cs: New internal class that acts as a
31036         window manager for tool windows and as a base for mdi windows.
31037         * MdiWindowManager.cs: New class that acts as a window manager for
31038         mdi windows.
31039
31040 2005-12-12  Jackson Harper  <jackson@ximian.com>
31041
31042         * Control.cs: Updates so we match behavoir for for implicit
31043         controls. Fixes explosions in MDI.
31044
31045 2005-12-12  Jackson Harper  <jackson@ximian.com>
31046
31047         * Control.cs: Implement Invalidate (Region).
31048
31049 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
31050
31051         * Control.cs: 
31052           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
31053             the same events as MS does. MS fires events for each property 
31054             except, for unknown reasons, Cursor, when the control is reparented. 
31055             I can't seem to totally match add/remove since MS also fires some 
31056             VisibleChanged events, which makes no sense. Consolidated the
31057             parenting code into a separate method so it can be called from
31058             both Add and Remove. set_Parent no longer needs any special logic
31059             as it calls the parent's add method which implicitly fires
31060             all events
31061           - Removed some obsolete code and debug output
31062           - Enabled state is inherited from parents, if this is enabled
31063
31064 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
31065
31066         * Form.cs: Removed commented out code
31067
31068 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
31069
31070         * Control.cs:
31071           - Added internal version of Invoke, with additional argument 
31072             indicating if we're calling it from a Dispose() handler. That
31073             way we can avoid BeginInvoke throwing an exception if we're
31074             calling for an already destroyed window.
31075           - Added a dispose argument to BeginInvokeInternal, and made the
31076             check if a valid window handle chain exists conditional on
31077             it not being a dispose call
31078           - Removed code in DestroyHandle to destroy our children. Since we
31079             now handle the WM_DESTROY message we will catch all our children
31080             being destroyed.
31081           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
31082         * Form.cs:
31083           - Added a field to track the application context of the form.
31084           - No need to set closing variable as response to WM_CLOSE, instead
31085             we destroy the window. We also call PostQuitMessage if the form
31086             has an application context (which makes it the main app form,
31087             which, when closed terminates the app)
31088         * XplatUI.cs:
31089           - Dropped Exit() method, it's naming was confusing
31090           - Added PostQuitMessage() which causes GetMessage to return false
31091             once the message queue is empty
31092         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
31093           PostQuitMessage()
31094         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
31095           no longer a valid XplatUI method, but left it in since it's used
31096           internally. Added empty PostQuitMessage() method.
31097         * MenuAPI.cs: Replaced call to Exit() with call to
31098           PostQuitMessage, even though this is probably no longer needed.
31099         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
31100         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
31101         * Application.cs:
31102           - Replaced call to XplatUI.Exit() with PostQuitMessage()
31103           - Removed old debug code that would call XplatUI for exception
31104             display, enabled standard exception handling (Still not enabled
31105             though, until NativeWindow's ExternalExceptionHandler define
31106             is removed
31107         * NativeWindow.cs:
31108           - Added internal method to allow control to update NativeWindow
31109             after a window has been destroyed
31110           - Added handling of already destroyed windows when calling i
31111             DestroyWindow
31112           - Added removal of handle from list on ReleaseHandle
31113         * XplatUIX11.cs:
31114           - Dropped GetMessageResult var and related code
31115           - Added PostQuitState to field to track if PostQuitMessage has been
31116             called
31117           - Dropped Exit() method
31118           - Added PostQuitMessage() method
31119           - GetMessage now will return false if PostQuitState is set and no
31120             more messages are in the queue.
31121           - Expose handler will no longer generate WM_PAINT messages if we are
31122             in PostQuitState since it's very likely any windows have already
31123             been destroyed, and since Hwnd won't get updated until we have
31124             processed the DestroyNotify we'd be causing X errors.
31125         
31126 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
31127
31128         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
31129           Thanks to Mike for pointing out the err of my ways.
31130
31131 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
31132
31133         * Control.cs(PreProcessMessage): Moved menu handling back, but
31134           after all other key handling, to match MS (who handles Menu in
31135           DefWndProc)
31136         * Menu.cs (WndProc): Removed my brainfart
31137
31138 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
31139
31140         * Control.cs(PreProcessMessage): Removed special menu handling 
31141         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
31142
31143 2005-12-07  Mike Kestner  <mkestner@novell.com>
31144
31145         * Control.cs : special case SYSKEYUP so that we can adjust keynav
31146         state according in tracker.
31147         * Menu.cs : promote tracker field to base class and provide a tracker
31148         lookup capability.  Add/Remove shortcuts dynamically if the top menu
31149         has a tracker. Unparent items that are removed from the collection.
31150         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
31151         * Theme*.cs: add always_show_hotkeys field to support configurability
31152         of mnemonic display.  win32 doesn't show mnemonics until Alt is
31153         pressed.
31154
31155 2005-12-07  Jackson Harper  <jackson@ximian.com>
31156
31157         * MdiChildContext.cs: Use Control.ResetCursor.
31158         * Control.cs: ResetCursor needs to set the property so that the
31159         correct XplatUI call gets made.
31160
31161 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
31162
31163         * Control.cs: More fixes to make our key events match MS. We
31164           were not setting the modifier state on KeyData, and we were
31165           not generating any events when Alt was pressed with a key
31166           since handling of WM_SYSxxx was missing for the OnKey methods.
31167
31168 2005-12-07  Jackson Harper  <jackson@ximian.com>
31169
31170         * MdiChildContext.cs: reenable the sizing code.
31171         - When the mouse leaves a window reset its cursor.
31172
31173 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
31174
31175         * ThemeClearlooks.cs: Reflect latest Hwnd changes
31176
31177 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
31178
31179         * Hwnd.cs: Now using the theme 3d bordersize to calculate
31180           widths of Fixed3D borders
31181
31182 2005-12-07  Jackson Harper  <jackson@ximian.com>
31183
31184         * MdiClient.cs: Fix warnings. Earn Mike's love.
31185
31186 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
31187
31188         * ThemeClearlooks.cs:
31189           - Adjusted mouse over button color
31190           - Added first parts of CheckBox drawing
31191           - Added correct color for selected text background
31192           - Fixed ComboBox drawing
31193           - Added CPDrawBorder3D and CPDrawBorder
31194
31195 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
31196
31197         * XplatUIX11.cs: Added call to XBell for AudibleAlert
31198
31199 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
31200
31201         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
31202           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
31203           alert users via sound. We could add an enum arg with different
31204           types of alerts in the future
31205
31206 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
31207
31208         * Control.cs: Fix behaviour problems pointed out by Mike
31209
31210 2005-12-05  Mike Kestner  <mkestner@novell.com>
31211
31212         * StatusBarPanel.cs: add Invalidate method and hook it into all the
31213         prop setters.  Calls parent.Refresh for now, but could be maybe be
31214         optimized with an internal method on StatusBar at some point.
31215         [Fixes #76513]
31216
31217 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
31218
31219         * RichTextBox.cs: Implemented get_SelectionColor
31220
31221 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
31222
31223         * ThemeClearlooks.cs:
31224           - Removed dead code
31225           - Draw black button border only if button is Form.AcceptButton
31226           - Draw correct button color for pressed RadioButton if the mouse 
31227             has entered the button
31228           - Updated ProgressBar drawing!
31229           - Updated CPDrawSizeGrip drawing
31230           - Updated StatusBarPanel drawing
31231
31232 2005-12-05  Mike Kestner  <mkestner@novell.com>
31233
31234         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
31235         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
31236
31237 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
31238
31239         * ThemeClearlooks.cs: Initial check-in, activate with
31240           export MONO_THEME=clearlooks
31241         * ThemeEngine.cs: Added ThemeClearlooks
31242
31243 2005-12-03  Mike Kestner  <mkestner@novell.com>
31244
31245         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
31246         [Fixes #76897]
31247
31248 2005-12-02  Jackson Harper  <jackson@ximian.com>
31249
31250         * Form.cs: If the child form has no menu the default main menu is
31251         used as the active menu.
31252
31253 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
31254
31255         * ListBox.cs: Check if any items exist before trying to resolve 
31256           coordinates into items
31257
31258 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
31259
31260         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
31261           as the second color for the background hatch
31262
31263 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
31264
31265         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
31266         * RichTextBox.cs: FormatText position arguments are 1-based, now making
31267           sure that what we pass to FormatText is always 1-based. Fixes #76885
31268
31269 2005-11-29  Miguel de Icaza  <miguel@novell.com>
31270
31271         * NumericUpDown.cs (EndInit): When we are done initializing,
31272         reflect any updates on the UI.
31273
31274 2005-12-02  Jackson Harper  <jackson@ximian.com>
31275
31276         * ImplicitHScrollBar.cs:
31277         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
31278         their container controls.
31279         * TreeView.cs: Use the new implicit scrollbars.
31280
31281 2005-12-02  Jackson Harper  <jackson@ximian.com>
31282
31283         * TreeView.cs: Make top_node internal so the TreeNodeCollections
31284         can play with it.
31285         * TreeNodeCollection.cs: If we remove the topnode we need to
31286         update topnode to the next node in line.
31287         - When clearing nodes go through the same process as removing
31288         them, so they get depareneted and checked if they are top node.
31289
31290 2005-12-01  Jackson Harper  <jackson@ximian.com>
31291
31292         * TreeView.cs: When imagelists are used the image area is
31293         selectable as well as the text.
31294         - If there are no selected nodes select the first one.
31295         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
31296         so don't do it more then we need to.
31297
31298 2005-12-01  Jackson Harper  <jackson@ximian.com>
31299
31300         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
31301         that arrows can be scaled.
31302
31303 2005-12-01  Jackson Harper  <jackson@ximian.com>
31304
31305         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
31306         fail. Patch by Dieter Bremes
31307
31308 2005-11-30  Jackson Harper  <jackson@ximian.com>
31309
31310         * Form.cs: Property is 2.0 only
31311         * PrintDialog.cs: Signature fix.
31312
31313 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
31314
31315         * TextControl.cs: 
31316           - No longer artificially moves text 2 pixels down (now that we have
31317             borders this is no longer needed)
31318           - Added calcs for left, hanging and right indent
31319
31320 2005-11-23  Mike Kestner  <mkestner@novell.com>
31321
31322         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
31323
31324 2005-11-30  Jackson Harper  <jackson@ximian.com>
31325
31326         * MdiChildContext.cs: Set the cloned menus forms, as these don't
31327         get cloned as part of CloneMenu ().
31328         * Menu.cs: Make sure the parent of the items get set correctly
31329         when they are added.  And the owners are notified of the changes.
31330         * Form.cs: Create an ActiveMenu property, so that when MDI is used
31331         we can change the menu being displayed/handled by the form without
31332         changing the menu assosciated with the form.
31333         - Don't let Mdi children draw/handle menus.
31334         
31335 2005-11-30  Jackson Harper  <jackson@ximian.com>
31336
31337         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
31338         a MenuChanged event. Just to make the API a little more
31339         consistent.
31340         * MainMenu.cs:
31341         * MenuItem.cs: Use the new OnMenuChanged
31342         * MdiChildContext.cs: Handle menu merging.
31343         * Form.cs: Implement MergedMenu.
31344         
31345 2005-11-30  Jackson Harper  <jackson@ximian.com>
31346
31347         * Menu.cs: We were misusing Add. Add goes behind the specified
31348         index according to the docs, and does not replace the specified
31349         index. So I added an Insert method.
31350
31351 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
31352
31353         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
31354           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
31355           is for Jackson
31356         * RichTextBox.cs: Added calls to base for DnD events
31357
31358 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
31359
31360         * TextControl.cs:
31361           - Fixed drag-selection related crash; style fixes
31362           - Implemented undo class
31363             o Implemented method to capture document state for specified
31364               range in document tree
31365             o Implemented method to restore captured document state
31366             o Implemented cursor tracking
31367             o Implemented basic undo stack
31368           - Added undo cursor tracking to methods altering cursor location
31369           - Added undo tracking to selection deletion (still missing
31370             other text-altering hookups)
31371         * RichTextBox.cs:
31372           - Added SelectionLength property
31373           - Implemented CanPaste()
31374           - Implemented Paste()
31375           - Added missing protected methods
31376           - Fixed RTF->Document conversion; now uses font index 0 and color 
31377             index 0 as the default font for the parsed text
31378           - Fixed RTF<->Document font size translation
31379           - Fixed RTF generation, now properly handles cross-tag boundaries
31380             for single line selection
31381           - No longer always appends blank line to generated RTF
31382           - Removed TODOs
31383           - Added missing attributes
31384           - Hooked up undo-related methods
31385         * TextBoxBase.cs:
31386           - Implemented Copy()
31387           - Implemented Paste()
31388           - Implemented Cut()
31389           - Fixed caret mis-behaviour on backspace across line-boundaries
31390
31391 2005-11-29  Jackson Harper  <jackson@ximian.com>
31392
31393         * MdiClient.cs: Add a method for activating mdi children. Very
31394         basic right now. I imagine someday it might need more girth.
31395         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
31396         children windows names are added to the menu item.
31397         * ThemeWin32Classic.cs: Draw the arrow if the item is an
31398         mdilist. This happens regardless of whether or not there are any
31399         mdi windows to see in the list, and according to my tests happens
31400         before the items are even added. Also happens if there isn't even
31401         an mdi client to get windows from.
31402
31403 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
31404
31405         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
31406         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
31407
31408 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
31409
31410         * DataGridTableStyle.cs:
31411           - Create always the styles for the missing columns even if they are
31412             provided by the user (not default table style)
31413         * DataGrid.cs:
31414           - Fixes bug 76770
31415           - Fixes SetDataBinding (always re-attach source)
31416           - Fixes SetNewDataSource (only clear styles if they are not for 
31417             this source)
31418          -  Expands OnTableStylesCollectionChanged to handle style refresh 
31419             and remove properly
31420
31421 2005-11-29  Jackson Harper  <jackson@ximian.com>
31422
31423         * FileDialog.cs: Implement missing bits, remove some dead
31424         code.
31425         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
31426         creation of the panel so that the options set on the dialog are
31427         seen when the panel is created.
31428         * TreeView.cs: raise a click when items are clicked.
31429         
31430 2005-11-29  Jackson Harper  <jackson@ximian.com>
31431
31432         * MdiClient.cs: Pass some signature methods through to base.
31433
31434 2005-11-28  Jackson Harper  <jackson@ximian.com>
31435
31436         * ListView.cs: Raise the click event when items are clicked.
31437
31438 2005-11-28  Jackson Harper  <jackson@ximian.com>
31439
31440         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
31441         a nullref.
31442
31443 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
31444
31445         * ThemeNice.cs: - Removed 1 pixel bitmaps
31446           - Use SmoothingMode.AntiAlias where it makes sense
31447             (ScrollButton arrow for example)
31448           - Enhanced Button focus drawing
31449           - Fixed ComboBox drawing (no artefacts anymore, focus
31450             rectangle is back again, reduced size of ComboButton, etc.)
31451           - Fixed RadioButton focus drawing for Appearence.Button
31452           - Slight ScrollButton redesign
31453           - Some LinearGradientBrush size fixes
31454           - GroupBoxes have now rounded edges
31455           - Fixed StatusBar drawing
31456
31457 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
31458
31459         * ThemeNice.cs: - Remove dead code
31460           - use correct background colors for menus, etc.
31461           - Fake pixel drawing with 1 pixel bitmaps
31462
31463 2005-11-24  Jackson Harper  <jackson@ximian.com>
31464
31465         * MdiClient.cs: Size the scrollbars when resizing the window.
31466         - Resize the maximized windows when the client is resized
31467         * Form.cs: Make the child context available
31468         
31469 2005-11-23  Jackson Harper  <jackson@ximian.com>
31470
31471         * MdiChildContext.cs: Don't size windows if they are maximized.
31472
31473 2005-11-23  Mike Kestner  <mkestner@novell.com>
31474
31475         * ContextMenu.cs: use MenuTracker.
31476         * Control.cs: remove menu handle usage.
31477         * Form.cs: remove menu handle usage.
31478         * Hwnd.cs: remove menu handle usage.
31479         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
31480         motion and clicks to the new Tracker handlers.
31481         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
31482         and handle usage.
31483         * MenuAPI.cs: refactored to combine popup and menubar event handling.
31484         Killed the MENU and MENUITEM data types and associated collections
31485         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
31486         MenuTracker class that exposes the leftovers from the old MenuAPI
31487         static methods. Restructured Capture handling so that only one grab is
31488         done for the entire menu hierarchy instead of handing off grabs to
31489         submenus. Tracker now has an invisible control to Capture when active.
31490         * MenuItem.cs: add sizing accessors, kill Create
31491         and handle usage.
31492         * Theme.cs: remove menu handle and MENU(ITEM) usage.
31493         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
31494         MENU(ITEM). remove menu handle usage, use Menu directly.
31495         * XplatUIDriver.cs: remove menu handle usage.
31496         * XplatUIOSX.cs: remove menu handle usage.
31497         * XplatUIWin32.cs: remove menu handle usage.
31498         * XplatUIX11.cs: remove menu handle usage.
31499
31500 2005-11-22  Jackson Harper  <jackson@ximian.com>
31501
31502         * Hwnd.cs: Don't compute the menu size for
31503         DefaultClientRectangle.
31504         - Reenable menu sizes being computed for GetClienRectangle.
31505         * Form.cs: Remove comment of trechery
31506         
31507 2005-11-22  Jackson Harper  <jackson@ximian.com>
31508
31509         * Hwnd.cs: The adjustments for the menu bar are made when it is
31510         attached to the form.
31511
31512 2005-11-19  Jackson Harper  <jackson@ximian.com>
31513
31514         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
31515         (just like on windows).
31516
31517 2005-11-19  Jackson Harper  <jackson@ximian.com>
31518
31519         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
31520         use real buttons anymore because they are in non client area. The
31521         one TODO here is that I need to somehow invalidate a section of
31522         the non client area.
31523
31524 2005-11-18  Jackson Harper  <jackson@ximian.com>
31525
31526         * Control.cs: Put the enum check back in now that MDI doesnt have
31527         to use this to set border styles.
31528         * Form.cs: Only set mdi child windows borders if the handle has
31529         been created.
31530         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
31531         this directly on to the driver.
31532         - Get the move start position before adjusting for the titlebar
31533         height, this fixes the windows "skipping" when they are first
31534         moved.
31535
31536 2005-11-18  Jackson Harper  <jackson@ximian.com>
31537
31538         * XplatUIX11.cs: Just compute the mdi borders separately as they
31539         don't totally match up with normal form borders.
31540
31541 2005-11-18  Jackson Harper  <jackson@ximian.com>
31542
31543         * Control.cs: Set WS_ styles for borders, so that the driver does
31544         not have to retrieve the control instance to figure out what kind
31545         of borders it should have.
31546         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
31547         driver can know its an mdi child easily.
31548         * XplatUIX11.cs: Get the border styles and whether the window is
31549         MDI from the Styles and ExStyles params instead of having to get a
31550         control. This prevents a chicken and egg problem.       
31551
31552 2005-11-18  Jackson Harper  <jackson@ximian.com>
31553
31554         * MdiClient.cs: Fix typo so scrollbars show up correctly.
31555
31556 2005-11-18  Jackson Harper  <jackson@ximian.com>
31557
31558         * MdiClient.cs: Calculate when to add and remove scrollbars
31559         correctly.
31560         * MdiChildContext.cs: Adjust the y position to take the titlebar
31561         into account.
31562         - No height for FormBorderStyle.None
31563
31564 2005-11-18  Jackson Harper  <jackson@ximian.com>
31565
31566         * Control.cs: Allow non enum values to be used for
31567         InternalBorderStyle.  MDI does this to set a special border style.
31568         - New utility methods for converting points to/from client coords
31569         - Add the newly created control to the Controls collection before
31570         updating its style. This way UpdateStyle can walk the control
31571         heirarchy to find the control if needed.
31572         so I don't need to create a new Point object all the time.
31573         * Form.cs: Let MDI windows handle their border styles.
31574         - Set styles on MDI windows so the correct title style is derived.
31575         * MdiChildContext.cs: Move all the painting and window handling
31576         into the non client area.
31577         - Use correct sizing and put correct buttons on frames based on
31578         the FormBorderStyle.
31579         - Notify the mdi client about scrolling
31580         - Need to handle the buttons ourselves now, because they are all
31581         in non client areas and we can't add controls there.
31582         * MdiClient.cs: Halfway to scrolling, this implementation is
31583         somewhat broken though, we need to check to make sure other
31584         windows aren't causing scrolling before removing the bars. Also
31585         the bars need to be drawn on top, maybe I can switch implicit
31586         controls to be on top.
31587         * Hwnd.cs: caption_height and tool_caption_height are now
31588         properties of an hwnd, this way they can be set by the driver
31589         based on the type of window they are.  In X11 the window manager
31590         handles the decorations so caption_height is zero unless its an
31591         MDI window.
31592         - Add 3 pixel borders for MDI windows (0xFFFF).
31593         - Get rid of some code duplication, have DefaultClientRectanle
31594         just call GetClientRectangle.
31595         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
31596         Hwnd now.
31597         - Set border styles differently for mdi windows.
31598         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
31599         Hwnd now.
31600         
31601 2005-11-15  Mike Kestner  <mkestner@novell.com>
31602
31603         * Menu.cs: when adding an item to the collection, if item is already 
31604         parented, remove it from the parent.
31605
31606 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
31607
31608         * X11DesktopColors.cs: Added KDE support
31609
31610 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
31611
31612         * XplatUIWin32.cs: 
31613           - Clipboard methods now can translate Rtf format
31614           - No longer removes clipboard contents whenever a new format is added
31615             to allow placing multiple formats on the clipboard
31616         * Clipboard.cs: Clipboard now supports getting a IDataObject and
31617           will place all formats contained in it onto the clipboard. Also
31618           now cleans the clipboard before placing a new object onto it
31619         * RichTextBox.cs:
31620           - Implemented set_Rtf
31621           - Implemented set_SelectedRtf
31622           - Created InsertRTFFromStream() method to allow single code base
31623             for all properties and methods that insert RTF into document
31624           - Removed debug output
31625         * TextControl.cs:
31626           - Fixed Delete(int) to fix up line numbers
31627           - Fixed ReplaceSelection to combine start and end line
31628           - Fixed serious DeleteChars bug that would leave the document tree
31629             broken
31630           - Improved DumpTree with several logic checks to detect broken
31631             document trees
31632           - Removed debug lines
31633           - Fixed Caret.WordForward/WordBack moving code, now always also 
31634             updates caret.tag (fixes crash when word-selecting across tag
31635             boundaries via keyboard)
31636           - Added Insert() method for inserting multiline text into documents
31637           - Fixed DeleteChars() calculation errors that would cause a broken
31638             tag chain with multiple tag lines
31639           - DeleteChars() no longer crashes on multi-tag lines if not all tags
31640           - Split() no longer moves caret if split is at caret location
31641           - ReplaceSelection() now updates the cursor and re-displays it
31642           - ReplaceSelection() now uses new Insert() method to avoid code
31643             duplication
31644           - FormatText() can now handle formatting partial lines
31645         * TextBoxBase.cs:
31646           - Append now uses new TextControl.Insert() method (this avoids 
31647             duplicate code)
31648           - Implemented Ctrl-X (Cut) (
31649           - Implemented Ctrl-C (Copy)
31650           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
31651             regeneration when pasting text; roundtripping Copy&Paste within
31652             edit control still fails due to some calculation bugs in GenerateRTF)
31653           - The Delete key will now remove the current selection if it is visible
31654         * TextBox.cs: Removed debug lines
31655         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
31656           driver to be initialized and can't therefore be done via a static ctor)
31657
31658 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
31659
31660         * TextControl.cs: Added backend code for finding char arrays and strings
31661         * TextBoxBase.cs:
31662           - Added mouse wheel scroll support
31663           - Added support for VScroll and HScroll events
31664         * RichTextBox.cs:
31665           - Implemented all seven Find() variants
31666           - Implemented GetCharFromPosition()
31667           - Implemented GetCharIndexFromPosition()
31668           - Implemented GetLineFromIndex()
31669           - Implemented GetPositionFromCharIndex();
31670           - Implemented SaveFile for PlainText and UnicodeText
31671           - Fixed set_Font, now setting a new font applies that font to
31672             the whole document
31673           - Implemented generic Document to RTF converter
31674           - Implemented SaveFile for RichText format (still missing unicode
31675             conversion for non-ansi chars)
31676           - Implemented get_Rtf
31677           - Implemented get_SelectedRtf
31678
31679 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
31680
31681         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
31682           to allow any captures to be released before triggering OnClick. This
31683           way a click handler may capture the mouse without interference.
31684         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
31685           This way we send them even though X may not allow a grab (if the window
31686           isn't visible, for example)
31687
31688 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
31689
31690         * DataGridViewRowEventArgs.cs: DataGridView implementation
31691         * DataGridViewElement.cs: DataGridView implementation
31692         * DataGridViewComboBoxCell.cs: DataGridView implementation
31693         * DataGridViewDataErrorContexts.cs: DataGridView implementation
31694         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
31695         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
31696         * ImageLayout.cs: DataGridView implementation
31697         * DataGridViewComboBoxColumn.cs: DataGridView implementation
31698         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
31699         * DataGridViewSelectionMode.cs: DataGridView implementation
31700         * IDataGridViewEditingControl.cs: DataGridView implementation
31701         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
31702         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
31703         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
31704         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
31705         * DataGridViewColumnSortMode.cs: DataGridView implementation
31706         * DataGridView.cs: DataGridView implementation
31707         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
31708         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
31709         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
31710         * Padding.cs: DataGridView implementation
31711         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
31712         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
31713         * DataGridViewRowEventHandler.cs: DataGridView implementation
31714         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
31715         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
31716         * DataGridViewButtonCell.cs: DataGridView implementation
31717         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
31718         * DataGridViewEditMode.cs: DataGridView implementation
31719         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
31720         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
31721         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
31722         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
31723         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
31724         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
31725         * DataGridViewCellEventHandler.cs: DataGridView implementation
31726         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
31727         * DataGridViewCellStyleConverter.cs: DataGridView implementation
31728         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
31729         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
31730         * DataGridViewColumnEventArgs.cs: DataGridView implementation
31731         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
31732         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
31733         * QuestionEventArgs.cs: DataGridView implementation
31734         * IDataGridViewEditingCell.cs: DataGridView implementation
31735         * DataGridViewTriState.cs: DataGridView implementation
31736         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
31737         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
31738         * DataGridViewColumnCollection.cs: DataGridView implementation
31739         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
31740         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
31741         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
31742         * DataGridViewColumn.cs: DataGridView implementation
31743         * DataGridViewCellBorderStyle.cs: DataGridView implementation
31744         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
31745         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
31746         * DataGridViewRow.cs: DataGridView implementation
31747         * DataGridViewImageCellLayout.cs: DataGridView implementation
31748         * DataGridViewImageCell.cs: DataGridView implementation
31749         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
31750         * DataGridViewCheckBoxCell.cs: DataGridView implementation
31751         * DataGridViewHeaderCell.cs: DataGridView implementation
31752         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
31753         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
31754         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
31755         * DataGridViewTextBoxColumn.cs: DataGridView implementation
31756         * QuestionEventHandler.cs: DataGridView implementation
31757         * DataGridViewCellStyleScopes.cs: DataGridView implementation
31758         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
31759         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
31760         * DataGridViewCell.cs: DataGridView implementation
31761         * DataGridViewCellEventArgs.cs: DataGridView implementation
31762         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
31763         * DataGridViewCellStyle.cs: DataGridView implementation
31764         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
31765         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
31766         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
31767         * TextFormatFlags.cs: DataGridView implementation
31768         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
31769         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
31770         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
31771         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
31772         * DataGridViewButtonColumn.cs: DataGridView implementation
31773         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
31774         * HandledMouseEventArgs.cs: DataGridView implementation
31775         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
31776         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
31777         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
31778         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
31779         * DataGridViewRowCollection.cs: DataGridView implementation
31780         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
31781         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
31782         * DataGridViewHitTestType.cs: DataGridView implementation
31783         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
31784         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
31785         * DataGridViewColumnEventHandler.cs: DataGridView implementation
31786         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
31787         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
31788         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
31789         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
31790         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
31791         * DataGridViewContentAlignment.cs: DataGridView implementation
31792         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
31793         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
31794         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
31795         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
31796         * DataGridViewPaintParts.cs: DataGridView implementation
31797         * DataGridViewCellCollection.cs: DataGridView implementation
31798         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
31799         * DataGridViewImageColumn.cs: DataGridView implementation
31800         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
31801         * DataGridViewElementStates.cs: DataGridView implementation
31802         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
31803         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
31804         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
31805         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
31806         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
31807         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
31808         * DataGridViewRowHeaderCell.cs: DataGridView implementation
31809         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
31810         * DataGridViewTextBoxCell.cs: DataGridView implementation
31811         * DataGridViewBand.cs: DataGridView implementation
31812         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
31813         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
31814         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
31815         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
31816         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
31817         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
31818         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
31819         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
31820         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
31821         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
31822         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
31823
31824 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
31825
31826         * ThemeWin32Classic.cs: 
31827           - Draw the outside focus rectangle around buttons
31828           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
31829             doesn't use end caps for every dash of a line anymore. This
31830             workaround ignores the forecolor.
31831
31832 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
31833
31834         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
31835           endian safe.
31836
31837 2005-11-07  Jackson Harper  <jackson@ximian.com>
31838
31839         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
31840
31841 2005-11-07  Jackson Harper  <jackson@ximian.com>
31842
31843         * ScrollableControl.cs: Calculate the maximum and change vars
31844         (more) correctly so that scrollbars appear as a sensible size.
31845
31846 2005-11-04  Jackson Harper  <jackson@ximian.com>
31847
31848         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
31849         collection.
31850         * TreeView.cs: When the tree is sorted null out the top_node so
31851         that it is recalculated.
31852         - Use dotted lines instead of dashed lines to match MS better.
31853
31854 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
31855
31856         * ListView.cs: 
31857           - Implements key search for items. Useful when browsing files with FileDialog
31858           - When changing view mode or when clear the items reset scrollbar positions
31859
31860 2005-11-04  Jackson Harper  <jackson@ximian.com>
31861
31862         * CurrencyManager.cs: Implement the MetaDataChanged event, the
31863         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
31864         as to what the method may do as there is no real way of creating a
31865         derived CurrencyManager and calling the method. 
31866
31867 2005-11-03  Jackson Harper  <jackson@ximian.com>
31868
31869         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
31870         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
31871         method which seems to just be used internally to refresh the tabs.
31872
31873 2005-11-03  Jackson Harper  <jackson@ximian.com>
31874
31875         * TabControl.cs: Implement the remove method. Fix some broken
31876         comments.
31877
31878 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31879
31880         * DateTimePicker.cs:
31881           - Added missing DateTimePickerAccessibleObject class
31882           - Added missing events
31883           - Added OnFontChanged method
31884         * Form.cs: Added missing attributes
31885         * TreeView.cs: Added missing attributes
31886
31887 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
31888
31889         * GridItemCollection.cs: Fix signatures
31890
31891 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31892
31893         * XplatUI.cs: Updated build rev/date
31894         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
31895           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
31896         * Application.cs: Trigger context-specific ExitThread events
31897
31898 2005-11-03  Jackson Harper  <jackson@ximian.com>
31899
31900         * Menu.cs:
31901         * MainMenu.cs:
31902         * GridTableStylesCollection.cs:
31903         * Timer.cs:
31904         * TabPage.cs:
31905         * HelpProvider.cs:
31906         * StatusBar.cs:
31907         * MonthCalendar.cs: Signature fixes
31908
31909 2005-11-03  Jackson Harper  <jackson@ximian.com>
31910
31911         * TreeNodeCollection.cs: Remove should not be virtual.
31912         * TreeView.cs: Implement the last of the missing methods.
31913
31914 2005-11-03  Jackson Harper  <jackson@ximian.com>
31915
31916         * TreeNodeConverter.cs: Implement to get off my class-status back.
31917
31918 2005-11-03  Jackson Harper  <jackson@ximian.com>
31919
31920         * TreeView.cs: Hookup the bits for drag and drop.
31921         * TreeNode.cs: Don't cache the tree_view or index anymore, now
31922         that nodes can be moved from tree to tree easily this just causes
31923         all sorts of problems.
31924         * TreeNodeCollection: Don't need to give treenodes an index and
31925         treeview anymore when they are added, these are computed on the
31926         fly. Also make sure to remove a node before its added.
31927
31928 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31929
31930         * TextControl.cs:
31931           - Added CaretSelection enum
31932           - Added comparison methods to Marker struct, makes selection code
31933             more readable
31934           - Added SelectionStart and SelectionEnd as 'moveable' location for
31935             the CaretDirection enum and handler
31936           - Added selection_prev variable to track optimized invalidation for
31937             word and line selection
31938           - Added SelectionVisible property (returns true if there is a valid 
31939             selection)
31940           - Switched CaretHasFocus to only display the caret if there is no
31941             visible selection
31942           - Avoiding StringBuilder.ToString to retrieve a single char, instead
31943             using the direct character index; should be much faster
31944           - Added various conditional debug statements
31945           - Fixed invalidation calculation for selection ranges
31946           - Added ExpandSelection() method to support word and line selection
31947           - Switched SetSelectionToCaret to use new Marker compare overloads
31948           - Added central IsWordSeparator() method to determine word 
31949             separators/whitespace and FindWordSeparator() to streamline common
31950             usage of IsWordSeparator()
31951         * TextBoxBase.cs:
31952           - Removed unneeded grabbed variable, it was just mirroring
31953             Control.Capture
31954           - No longer firing OnTextChanged event when Text setter is called,
31955             since the base will fire the event for us
31956           - Added handling of Ctrl-Up/Down selection
31957           - Added handling of Shift-Cursorkey selection
31958           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
31959             words
31960           - Added handling of Shift and Ctrl-Shift-Home/End selection
31961           - Removed some debug output
31962           - Added handling for single/double/tripple-click to place caret/
31963             select word/select line respectively (Fixes bug #76031)
31964           - Added support for drag expansion of word/line selection
31965         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
31966           current selection
31967
31968 2005-11-02  Jackson Harper  <jackson@ximian.com>
31969
31970         * X11Dnd.cs: If the drag is going to and from a MWF window just
31971         copy the data instead of sending it out through the X Selection
31972         mechanism.
31973
31974 2005-11-02  Jackson Harper  <jackson@ximian.com>
31975
31976         * X11Dnd.cs:
31977         * XplatUIX11.cs: When in a drag we don't want motion notify
31978         messages to get passed on to the other controls. This prevents
31979         mouse move messages from showing up in the drag source.
31980
31981 2005-11-02  Jackson Harper  <jackson@ximian.com>
31982
31983         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
31984         the correct button is release to end a drag.
31985         * XplatUIX11.cs: Make the button state internal so the drag system
31986         can access it.  Dragging needs to know about all button releases,
31987         not just left button.
31988
31989 2005-11-02  Miguel de Icaza  <miguel@novell.com>
31990
31991         * Form.cs (Icon): If the icon is null, reset the icon to the
31992         default value. 
31993
31994         * Cursor.cs: When writing the AND-mask bitmap do not include the
31995         number of colors, but hardcode those to two (black and white),
31996         fixes the loading of color cursors (Paint Dot Net).
31997
31998         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
31999         turn off autoscaling.
32000
32001         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
32002
32003 2005-11-02  Jackson Harper  <jackson@ximian.com>
32004
32005         * X11Dnd.cs: Make sure to send a status message if the pointer
32006         enters a control that can not accept a drop, otherwise the cursor
32007         isn't updated correctly. Also tried to compress the lines of code
32008         a bit.
32009
32010 2005-11-02  Jackson Harper  <jackson@ximian.com>
32011
32012         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
32013         set actions correctly.  This isn't perfect as XDND and win32 have
32014         some differences on how you allow actions. I'll clear this up by
32015         adding a path for drag from MWF to MWF windows.
32016         * XplatUIX11.cs: Hook into the dnd system.
32017
32018 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
32019
32020         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
32021         previously shown but they are no longer need it. Very obvious when 
32022         browsing files with FileDialog.
32023
32024 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
32025
32026         * Control.cs: We always need to call OnPaintBackground. We pretty much
32027           ignore AllPaintingInWmPaint and always do the painting there, whether 
32028           it's set or not, since we always ignore the WM_ERASEBKGND message 
32029           (which we don't generate on X11). This fixes #76616.
32030         * Panel.cs: Removed unneeded background painting. This happens properly
32031           in Control.cs already
32032
32033 2005-10-31  Mike Kestner  <mkestner@novell.com>
32034
32035         * Menu.cs: Add items to collection before setting their index.
32036         * MenuItem.cs : add range checking with ArgumentException like MS.
32037         [Fixes #76510]
32038
32039 2005-10-31  Jackson Harper  <jackson@ximian.com>
32040
32041         * ListBox.cs: Invalidate if the area is visible at all not just
32042         contained in the visible rect. Fixes unselection of semi visible
32043         items.
32044
32045 2005-10-31  Jackson Harper  <jackson@ximian.com>
32046
32047         * Control.cs: Consistently name the dnd methods. Make them
32048         internal so we can override them to match some MS behavoir
32049         internally.
32050         * Win32DnD.cs: Use the new consistent names.
32051
32052 2005-10-31  Jackson Harper  <jackson@ximian.com>
32053
32054         * TreeView.cs: Don't draw the selected node when we lose focus.
32055
32056 2005-10-31  Jackson Harper  <jackson@ximian.com>
32057
32058         * X11Dnd.cs: We still need to reset the state even though a full
32059         reset isn't being done, otherwise status's still get sent all over
32060         the place.
32061
32062 2005-10-31  Jackson Harper  <jackson@ximian.com>
32063
32064         * Control.cs: Make the dnd_aware flag internal so the dnd
32065         subsystem can check it. Catch exceptions thrown in dnd handlers to
32066         match MS behavoir.
32067         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
32068         * X11Dnd.cs: Handle null data in the converters. Set the XDND
32069         version when sending a XdndEnter. Use the control/hwnd dnd_aware
32070         flags to reduce the number of dnd enters/status's sent.
32071
32072 2005-10-31  Jackson Harper  <jackson@ximian.com>
32073
32074         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
32075
32076 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
32077
32078         * PictureBox.cs: Fixes 76512
32079
32080 2005-10-28  Jackson Harper  <jackson@ximian.com>
32081
32082         * X11Dnd.cs: Early implementation to support winforms being a drag
32083         source for data on X11. Also restructured the converters so they
32084         can go both ways now.
32085         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
32086         
32087 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
32088
32089         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
32090           clipboard requests
32091
32092 2005-10-27  Jackson Harper  <jackson@ximian.com>
32093
32094         * TreeNode.cs: Implement serialization so my DnD examples will work.
32095
32096 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
32097
32098         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
32099           TreeView.cs: Don't dispose objects that are not owned.
32100           
32101 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
32102
32103         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
32104           should retrieve the current cursor and report that, but XplatUI
32105           doesn't (yet) have an interface for that (and I'm not sure I even
32106           can, on X11)
32107         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
32108           until any message loop processing is done (and the WM_SETCURSOR
32109           replaces the cursor to the proper one)
32110         * XplatUIX11.cs: 
32111           - Fixed override behaviour, we can't set the cursor globally on X11, 
32112             just for our windows.
32113           - Invalidating the System.Drawing X11 display handle when we are
32114             shutting down
32115         * Control.cs: Fix to make csc happy
32116
32117 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
32118
32119         * TextBoxBase.cs: 
32120           - get_Text: Add last line (without trailing newline) to returned
32121             value (Fixes 76212)
32122           - get_TextLength: Count last line in returned length
32123           - ToString: Call Text property instead of duplicating code
32124
32125 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
32126
32127         * ImageList.cs: Dispose ImageAttributes objects.
32128
32129 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
32130
32131         * ImageList.cs: Use attribute constructors with less arguments where
32132           possible.
32133
32134 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
32135
32136         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
32137           Use typeof instead of strings when assembly is referenced. Added
32138           some more comments.
32139
32140 2005-10-21  Jackson Harper  <jackson@ximian.com>
32141
32142         * ListView.cs: Raise a double click event. Also tried to somewhat
32143         fix when the selectedindexchanged event is raised. Its still
32144         broken though.
32145
32146 2005-10-21  Jackson Harper  <jackson@ximian.com>
32147
32148         * TreeView.cs: New method to invalidate the plus minus area of a
32149         node without invalidating the whole node (maybe this can be used
32150         in some more places).
32151         * TreeNodeCollection.cs: When adding to an empty node we need to
32152         invalidate its plus minus area so the little block shows up.
32153         
32154 2005-10-21  Jackson Harper  <jackson@ximian.com>
32155
32156         * TreeView.cs: Make sure that when we invalidate a node the bounds
32157         are big enough to cover the selected box and the focus
32158         rectangle. Use a different colour for the lines connecting nodes
32159         so they show up with all themes.
32160
32161 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
32162
32163         * NativeWindow.cs: Don't call anything that could call into the driver,
32164           we might be on a different thread.
32165
32166 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
32167
32168         * Control.cs(Dispose): Since Dispose might run on a different thread,
32169           make sure that we call methods that could call into the driver via
32170           invoke, to avoid thread issues
32171
32172 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
32173
32174         * XplatUI.cs: Removed finalizer
32175         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
32176           not allowing to be called on the finalizer thread.
32177
32178 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
32179
32180         * ImageList.cs:
32181           - Reverted r51889 and r51891.
32182           - Added ImageListItem class that stores unmodified image items and image
32183             properties required to create list images until handle is created.
32184           - Added AddItem and moved image creation logic to AddItemInternal.
32185           - Added CreateHandle method that creates images based on unmodified items.
32186           - Added DestroyHandle that changes state to store unmodified items.
32187           - Add and AddStrip methods no more create handle.
32188           - ReduceColorDepth has no return value.
32189           - Dispose destroys handle.
32190           - Modified other methods to reflect the above changes.
32191           - Implemented key support.
32192           - Added profile 2.0 members and attributes.
32193           - Added private Reset and ShouldSerialize methods that provide the same
32194             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
32195             them as they are private.
32196           - Added some more comments about implementation details.
32197
32198 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
32199
32200         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
32201
32202 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
32203
32204         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
32205
32206 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
32207
32208         * DataGridDrawingLogic.cs: Fixes column hit calcultation
32209         * DataGridColumnStyle.cs: Remove debug message
32210
32211 2005-10-20  Jackson Harper  <jackson@ximian.com>
32212
32213         * TreeView.cs: We can always get input keys regardless of whether
32214         or not editing is enabled. They are used for navigation.
32215
32216 2005-10-20  Jackson Harper  <jackson@ximian.com>
32217
32218         * TreeNode.cs: Use the viewport rect for determining if a node
32219         needs to be moved for visibility. Don't use Begin/End edit. This
32220         calls a full refresh when its done.
32221         * TreeView.cs: New SetBottom works correctly.  Make the viewport
32222         rect property internal so the treenodes can see it. When clicking
32223         on a node we need to ensure that its visible because it might just
32224         be partly visible when clicked.
32225
32226 2005-10-20  Jackson Harper  <jackson@ximian.com>
32227
32228         * TreeNodeCollection.cs: Remove debug code.
32229
32230 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
32231
32232         * Datagrid.cs: Implements column sorting in Datagrid
32233         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
32234
32235 2005-10-20  Jackson Harper  <jackson@ximian.com>
32236
32237         * TreeNodeCollection.cs: Remove items properly. Update the correct
32238         area after removing them.
32239
32240 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
32241
32242         * Datagrid.cs: Should not call base.OnPaintBackground
32243
32244 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
32245
32246         * XplatUIX11.cs (GetMessage):
32247           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
32248             window instead of client window
32249           - Now properly calculates NC_xBUTTONUP message coordinates
32250           - ScreenToMenu now properly calculates it's coordinates of whole 
32251             window, since menus are in the whole window, not in the client
32252             window
32253           - Added WholeToScreen coordinate translation method
32254
32255 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
32256
32257         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
32258           want to return a message, loop back to the beginning of the function
32259           and grab the next real message to process instead.
32260
32261 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
32262
32263         * Splitter.cs: Properly set limits if no filler control is used
32264
32265 2005-10-19  Jackson Harper  <jackson@ximian.com>
32266
32267         * ColorDialog.cs: Don't show the help button if it is not enabled
32268         instead of disabling it (this is what MS does). Don't create the
32269         panel until the dialog is run, otherwise the vars (such as
32270         ShowHelp) are not set yet.
32271
32272 2005-10-19  Jackson Harper  <jackson@ximian.com>
32273
32274         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
32275         are reduced when adding nodes.
32276         * TreeNode.cs:
32277         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
32278         tree.
32279         
32280 2005-10-19  Jackson Harper  <jackson@ximian.com>
32281
32282         * FolderBrowserDialog.cs: End editing our treeview so the window
32283         actually gets refreshed.
32284
32285 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
32286
32287         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
32288           Obsoleted handling of WM_ERASEBKGND, now always draws our background
32289           inside of WM_PAINT
32290
32291 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
32292
32293         * MenuAPI.cs: Returns after Hidding window
32294         * XplatUIX11.cs: Added TODO found while debugging menu issues
32295
32296 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
32297
32298         * XplatUIX11.cs: Do not re-map the whole window when it's size
32299           becomes non-zero unless it's supposed to be actually visible
32300
32301 2005-10-18  Jackson Harper  <jackson@ximian.com>
32302
32303         * TreeView.cs: We don't need to keep a count anymore.
32304         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
32305         use the Grow method.
32306
32307 2005-10-18  Jackson Harper  <jackson@ximian.com>
32308
32309         * TreeNodeCollection.cs: Insert is not supported on arrays, so
32310         implement it manually here.
32311
32312 2005-10-18  Jackson Harper  <jackson@ximian.com>
32313
32314         * ImageList.cs: Dont kill the list when the colour depth is
32315         changed, just change the colour depth of all the images.
32316         - Same goes for setting the image size. Just resize them all
32317         instead of killing the list softly.
32318
32319 2005-10-18  Jackson Harper  <jackson@ximian.com>
32320
32321         * Control.cs: Don't invalidate empty rectangles.
32322
32323 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
32324
32325         * ListViewItem.cs:
32326           - Adds checked item to the Checked/Item lists (where empty before)
32327           - Do not add items to the Selected lists if they are already present
32328         * ListView.cs:
32329           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
32330           - When deleting items make sure that we delete them for the Selected
32331           and Checked list also.
32332
32333 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
32334
32335         * Label.cs: Dispose objects no longer used
32336         * ThemeWin32Classic.cs: Dispose objects no longer used
32337
32338 2005-10-18  Jackson Harper  <jackson@ximian.com>
32339
32340         * TabControl.cs: Don't refresh the whole control when the tabs are
32341         scrolled, we just need to refresh the tab area.
32342
32343 2005-10-17  Jackson Harper  <jackson@ximian.com>
32344
32345         * XplatUIX11.cs: Compress code a little bit. Only calculate the
32346         after handle when we need it.
32347
32348 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
32349
32350         * Control.cs: When the parent size changes, recalculate anchor 
32351           positions. Partial fix for #76462
32352
32353 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
32354
32355         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
32356           drawn. Fixes #76462
32357
32358 2005-10-17  Jackson Harper  <jackson@ximian.com>
32359
32360         * MonthCalendar.cs: Don't create the numeric up down until our
32361         handle is created. Otherwise our handle is created in the
32362         constructor and we don't know if we are a WS_CHILD or WS_POPUP
32363         yet.
32364
32365 2005-10-17  Jackson Harper  <jackson@ximian.com>
32366
32367         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
32368         correctly.
32369
32370 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32371         * TreeNode.cs : small logical fix (was using local var instead of field)
32372         
32373 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
32374
32375         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
32376
32377 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
32378
32379         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
32380
32381 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
32382
32383         * Control.cs: 
32384           - Re-implemented anchoring code. My first version was really broken.
32385             This fixes bug #76033. Unlike the previous implementation we will
32386             no longer have round errors since all numbers are calculated from
32387             scratch every time. Removed various anchor-related obsolete vars.
32388           - InitLayout no longer causes layout event firing and layout to be 
32389             performed
32390
32391 2005-10-16  Jackson Harper  <jackson@ximian.com>
32392
32393         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
32394         which was broken).
32395
32396 2005-10-16  Jackson Harper  <jackson@ximian.com>
32397
32398         * TabControl.cs: Remove debug code.
32399
32400 2005-10-16  Jackson Harper  <jackson@ximian.com>
32401
32402         * XEventQueue.cs: Increase the default queue size (very simple
32403         apps needed to grow the queue).
32404         * Hwnd.cs: No finalizer so we don't need to suppress
32405         finalization. Compute the invalid area manually so a new rectangle
32406         does not newto be created.
32407         * ScrollableControl.cs: Don't set any params (otherwise visibility
32408         isn't set correctly).
32409         * MdiChildContext.cs: New constructor takes the mdi parent so it
32410         doesn't have to be computed and avoids a crash on windows. Draw
32411         the window icon properly, and allow the text to be seen.
32412         * Form.cs: Use new MdiChildContext constructor. Make sure the
32413         child context isn't null in wndproc.
32414         * TabControl.cs: Don't set focus, this is muddling keyboard
32415         behavoir. Expand the tab rows when a window size increase will
32416         allow extra tabs to be seen. Don't allow tabs smaller than the
32417         width of a window to be scrolled out of view.
32418         * TreeNode.cs:
32419         * TreeView.cs: Use measure string to calculate a nodes width, the
32420         width is cached and only updated when the text or the font is
32421         changed. Don't check for expand/collapse clicks on the first level
32422         nodes if root lines are disabled.
32423         
32424 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
32425
32426         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
32427
32428 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
32429
32430         * DataGridBoolColumn.cs: fixes warning
32431
32432 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
32433
32434         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
32435         to match more to match more precisely the MS Net behavior
32436
32437 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
32438
32439         * Hwnd.cs: Added field to track if window is mapped
32440         * XplatUIX11.cs: 
32441           - Unmap windows if they become 0-size, re-map when 
32442             they are >0 again; fixes #76035
32443           - Re-set our error handler after initializing X11Desktop
32444             to override any error handlers Gtk or whatever was called
32445             may have set.
32446
32447 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
32448
32449         * CheckedListBox.cs: Removed unused vars
32450         * ListView.cs: Fixed signatures
32451         * RichTextBox.cs: Removed unused vars
32452         * TextBoxBase.cs: Removed unused vars
32453         * XplatUIWin32.cs: Removed unused vars
32454         * XplatUIX11.cs: Removed unused vars
32455         * XplatUI.cs: Updated version and date to latest published
32456
32457 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
32458
32459         * Cursor.cs: Added private .ctor to work around a bug in
32460           resourceset (Thanks to Geoff Norton for the help on this)
32461         * SplitterEventArgs.cs: Made fields accessible so we don't
32462           waste boatloads of objects and can reuse the same one
32463           in Splitter
32464         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
32465           any captions and borders when generating screen coordinates
32466         * Splitter.cs: Reimplemented control, now fully complete, uses
32467           rubberband drawing, supports and obeys all properties, has
32468           proper cursors
32469
32470 2005-10-13  Miguel de Icaza  <miguel@novell.com>
32471
32472         * Form.cs (Form): Setup default values for autoscale and
32473         autoscale_base_size;  Make these instance variables, not static
32474         variables. 
32475
32476         (OnLoad): on the first load, adjust the size of the form.
32477
32478 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
32479
32480         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
32481           width argument to DrawReversibleRectangle()
32482         * XplatUIWin32.cs, XplatUIX11.cs: 
32483           - Implemented width for DrawReversibleRectangle()
32484           - Added logic to DrawReversibleRectangle that recognizes a zero
32485             width or height and only draws a line in that situation
32486         
32487 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
32488
32489         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
32490         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
32491         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
32492           method (it uses our FosterParent window to get a graphics context)
32493
32494 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
32495
32496         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
32497           and SetWindowBackground methods
32498         * Control.cs:
32499           - Setting proper ControlStyles
32500           - We no longer call XplatUI.SetWindowBackground and XplatUI.
32501             EraseWindowBackground, instead we draw the window background
32502             ourselves in PaintControlBackground. This behaviour is
32503             required to match MS, where, when OnPaintBackground is not
32504             called, the background is not drawn.
32505           - Removed unneeded Refresh() in set_Text
32506         * Hwnd.cs: Dropped the ErasePending support. No longer needed
32507         * XplatUIX11.cs:
32508           - Created DeriveStyles method to translate from CreateParams to
32509             FormBorderStyle and TitleStyle, also handles BorderStyle (which
32510             matches FormBorderStyle enum values)
32511           - Consolidated SetHwndStyles and CalculateWindowRect border/title
32512             style calculations into single DeriveStyles method
32513           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
32514             from redrawing the whole window on any resize or expose.
32515           - Fixed CreateWindow usage of SetWindowValuemask. Before not
32516             all styles were applied to our whole/client window appropriately
32517           - Removed EraseWindowBackground() and SetWindowBackground() methods
32518           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
32519             no longer clear/redraw the background through X
32520           - Removed handling of erase_pending bit, we have no use for it (or
32521             so it seems)
32522         * XplatUIOSX.cs:
32523           - Removed generation and handling of WM_ERASEBKGND message
32524           - Removed EraseWindowBackground() and SetWindowBackground() methods
32525           - Removed handling of hwnd.ErasePending flag
32526         * XplatUIWin32.cs:
32527           - Removed EraseWindowBackground() and SetWindowBackground() methods
32528           - We no longer call EraseWindowBackground on PaintEventStart, we 
32529             ignore the fErase flag, erasing is handled in Control in the
32530             background handler
32531         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
32532           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
32533           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
32534           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
32535           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
32536           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
32537           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
32538
32539 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
32540
32541         * PropertyGrids.cs: Get sub properties
32542         * PropertyGridView.cs: Fix drawing code
32543
32544 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
32545
32546         * ListBox.cs: Fixes 76383
32547
32548 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
32549
32550         * DataGridTextBoxColumn.cs: Sets location and size before attachment
32551         * ThemeWin32Classic.cs: Fixes border drawing and calculations
32552         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
32553
32554
32555 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
32556
32557         * ComboBox.cs: Fixes border drawing
32558
32559 2005-10-10  Miguel de Icaza  <miguel@novell.com>
32560
32561         * MimeIcon.cs: Ignore errors if the file can not be read.
32562
32563 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
32564
32565         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
32566          - Fixed border calculations
32567          - Fixed horizontal scrolling in single column listboxes
32568          - Fixed drawing issues
32569
32570 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
32571
32572         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
32573           FormBorderStyle enum
32574         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
32575           code to determine FormBorderStyles from CreateParams
32576         * Form.cs:
32577           - Fixed bug where we'd set the wrong window styles if we were
32578             not creating an MDI window
32579           - Added call to XplatUI.SetBorderStyle when form borders are set
32580         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
32581         * Hwnd.cs:
32582           - Removed obsolete edge style
32583           - Switched from BorderStyle to FormBorderStyle
32584         
32585 2005-10-10  Jackson Harper  <jackson@ximian.com>
32586
32587         * Form.cs: Use the property to get the window handle instead of
32588         accessing it directly. Prevents a null reference exception.
32589
32590 2005-10-10  Jackson Harper  <jackson@ximian.com>
32591
32592         * TreeView.cs: Don't adjust the rect given to DrawString now that
32593         our libgdiplus draws correctly.
32594
32595 2005-10-08  Jackson Harper  <jackson@ximian.com>
32596
32597         * TreeView.cs: Don't try to find the clicked on node if there are
32598         no nodes in the tree.
32599
32600 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
32601
32602         * RichTextBox.cs:
32603
32604           restore
32605
32606 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
32607
32608         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
32609           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
32610           ErrorProvider.cs:
32611           Use ResPool for brushes and dispose System.Drawing objects that
32612           are not used anymore.
32613
32614 2005-10-07  Jackson Harper  <jackson@ximian.com>
32615
32616         * MdiChildContext.cs: Use the new borders instead of drawing them
32617         ourselves.
32618
32619 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
32620
32621         * Calling UpdateBounds after changing the window's BorderStyle 
32622         since the style can change the ClientSize
32623
32624 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32625
32626         * Control.cs: Made PaintControlBackground virtual
32627         * Panel.cs: Overriding PaintControlBackground instead of using paint
32628           event; paint event method was interfering with 'real' users of the
32629           event.
32630
32631 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
32632
32633         * ThemeWin32Classic.cs: remove border drawing since it is handled
32634         by the base control class now and was causing double border drawing.
32635
32636 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32637
32638         * Panel.cs: Redraw our background on paint. Not a pretty solution,
32639           but it does seem to match MS behaviour. This fixes bug #75324
32640
32641 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32642
32643         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
32644           somewhat hackish looking
32645
32646 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
32647
32648         * TextBoxBase.cs:
32649           - We now accept Enter even if AcceptEnter is false, if the containing
32650             form does not have an AcceptButton configured (fixes bug #76355)
32651           - Calculations are now fixed to no longer use Width/Height, but
32652             ClientSize.Width/Height, since we now support borders (this was
32653             a result of fixing borders and therefore bug #76166)
32654           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
32655             true (fixes bug #76354)
32656         
32657 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32658
32659         * Control.cs: 
32660           - Defaulting BorderStyle and setting it in XplatUI when our window 
32661             is created
32662           - Added enum check to InternalBorderStyle setter
32663         * XplatUIX11.cs: 
32664           - Added drawing of window borders
32665           - Now properly calculates WM decorations offset for toplevel 
32666             windows (fixes bug #74763)
32667         * XplatUIWin32.cs: 
32668           - Implemented BorderStyles for windows (we're letting win32 draw 
32669             the border for us)
32670           - Fixed the signature for SetWindowLong
32671         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
32672           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
32673           setting borders
32674         * UpDownBase.cs: Remove drawing of borders, this is handled by
32675           the driver, outside the client area
32676         * ListView.cs: Removed bogus border calculations. The control should
32677           be oblivious to borders, since those are not part of the client
32678           area. 
32679         * X11DesktopColors.cs: Commented out (currently) unneeded variables
32680         * ThemeWin32Classic.cs: Removed border calculations from ListView 
32681           drawing code
32682
32683 2005-10-06  Jackson Harper  <jackson@ximian.com>
32684
32685         * MdiChildContext.cs: Clear out the old virtual position remove
32686         all the unneeded calls to CreateGraphics.
32687
32688 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
32689
32690         * TextControl.cs: Use proper color for highlighted text; fixes #76350
32691
32692 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
32693
32694         * Form.cs: 
32695           - Added loading and setting of our new default icon
32696           - Only set icon if window is already created
32697
32698 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32699
32700         * Label.cs:
32701           - Do not explicitly set the foreground and background colors, to
32702             allow inheriting from parents (fixes #76302)
32703           - Use Control's InternalBorderStyle property to deal with borders
32704
32705 2005-10-06  Jackson Harper  <jackson@ximian.com>
32706
32707         * MdiChildContext.cs: Use the new xplatui function to draw a
32708         reversible rect.
32709
32710 2005-10-06  Jackson Harper  <jackson@ximian.com>
32711
32712         * Form.cs: Add the parent before creating the child context cause
32713         we need the parent when setting up the child.
32714
32715 2005-10-06  Jackson Harper  <jackson@ximian.com>
32716
32717         * FolderBrowserDialog.cs: redo the tree population code so a
32718         second thread isn't used. Should be a lot faster and more stable
32719         now.
32720
32721 2005-10-05  Jackson Harper  <jackson@ximian.com>
32722
32723         * TreeView.cs: There are no expand/collapse boxes if the node has
32724         no children.
32725
32726 2005-10-05  Jackson Harper  <jackson@ximian.com>
32727
32728         * X11DesktopColors.cs: Get menu colours for the gtk theme.
32729
32730 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
32731
32732         * FileDialog.cs: Fix InitialDirectory
32733
32734 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
32735
32736         * ComboBox.cs:
32737                 - Fixes changing between styles
32738                 - Fixes simple mode
32739                 - Fixes last item crashing when navigating with keyboard
32740
32741 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
32742
32743         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
32744
32745 2005-10-05  Jackson Harper  <jackson@ximian.com>
32746
32747         * TreeView.cs: If updating the root node do a full refresh.
32748         * TreeNode.cs: The root node should be expanded by default. Also
32749         added a utility prop to tell if we are the root node.
32750         * TreeNodeCollection.cs: Only refresh if the node we are being
32751         added to is expanded. Also added a comment on a potential
32752         optimization.
32753         
32754 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
32755
32756         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
32757           in dispose method. Fixes #76330
32758
32759 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
32760
32761         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
32762
32763                 - Implements vertical and horizontal scrolling using XplatUI
32764                 - Fixes keyboard navagation
32765                 - Fixes EnsureVisible
32766                 - Drawing fixes
32767                 - Handles and draws focus properly
32768
32769
32770 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
32771
32772         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
32773           Create handle. NET_2_0: Destroy handle when value is null.
32774
32775 2005-10-03  Jackson Harper  <jackson@ximian.com>
32776
32777         * ScrollBar.cs: My last scrollbar patch was broken. This is a
32778         revert and a new patch to prevent the thumb from refreshing so
32779         much.
32780
32781 2005-10-02  Jackson Harper  <jackson@ximian.com>
32782
32783         * ScrollBar.cs: Don't update position if it hasn't actually
32784         changed. This occurs when you hold down the increment/decrement
32785         buttons and the thumb gets to the max/min.
32786
32787 2005-10-01  Jackson Harper  <jackson@ximian.com>
32788
32789         * Form.cs:
32790         * MdiChildContext.cs:
32791         * MdiClient.cs: Implement ActiveMdiChild in Form.
32792
32793 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
32794
32795         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
32796
32797 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
32798
32799         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
32800           be found
32801
32802 2005-09-30  Jackson Harper  <jackson@ximian.com>
32803
32804         * ListBox.cs: Don't do a full refresh unless some data has
32805         actually changed.
32806
32807 2005-09-30  Jackson Harper  <jackson@ximian.com>
32808
32809         * TreeView.cs: Make sure that the checkboxes size is factored in
32810         even when not visible.
32811
32812 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
32813
32814         * FileDialog.cs: Fix Jordi's build break
32815
32816 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
32817
32818         * FileDialog.cs: 
32819                 - Use standard the Windows colours for the combobox as espected
32820                 - Dispose objects that use resouces when no longer need them
32821
32822 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
32823
32824         * X11DesktopColors.cs: Initial incomplete implementation
32825         * XplatUIX11.cs: Added call to initialize X11DesktopColors
32826
32827 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
32828
32829         * Theme.cs: 
32830           - Switched Theme color names to match the names defined in 
32831             System.Drawing.KnownColors. Life's hard enough, no need to make 
32832             it harder.
32833           - Added setters to all theme color properties so themes can set
32834             their color schemes. The setters also propagate the color changes
32835             to System.Drawing.KnownColors via reflection
32836         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
32837           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
32838           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
32839           use the new, more logical theme color names
32840         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
32841           post-NT colors
32842         * ThemeWin32Classic.cs:
32843           - Removed code to set the old classic Windows colors. Instead it
32844             now relies on the colors returned by System.Drawing.KnownColors
32845             which will be either modern static colors (Unix) or colors
32846             read from the user's configuration (Win32)
32847           - Updated to use the new, more logical theme color names
32848           - Switched DataGrid drawing code to use only Theme colors instead of
32849             a mix of System.Drawing.KnownColors and Theme colors
32850           - DrawFrameControl(): Removed code that fills the button area, the
32851             fill would overwrite any previous fill done by a control. This
32852             fixes bug #75338 
32853           - Added DrawReversibleRectangle() stub
32854         * ScrollableControl.cs: Set visible state to false when scrollbars
32855           are removed (pdn fix)
32856         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
32857           DrawReversibleRectangle() method to allow drawing primitive 
32858           'rubber bands'
32859         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
32860
32861 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32862
32863         * ImageList.cs: Add(Icon): Create handle.
32864
32865 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
32866
32867         * ListView.cs:
32868         * ThemeWin32Classic.cs:
32869                 - Fixes detail mode
32870                 - Sets clippings
32871                 - Issues with drawing
32872
32873 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32874
32875         * ImageList.cs: Moved RecreateHandle back to ImageList as event
32876           source has to be the ImageList.
32877
32878 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32879
32880         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
32881
32882 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32883
32884         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
32885
32886 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32887
32888         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
32889
32890 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
32891         * GridItem.cs: Fixed TODOs
32892         * GridItemCollection.cs: Added ICollection interface
32893
32894 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32895
32896         * ImageList.cs: Resize icons when needed.
32897
32898 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
32899
32900         * ListViewItem.cs
32901                 - Fixes GetBounds and returns on screen rects
32902         * ListView.cs:
32903                 - Fixes vertical and horzintal scrolling of items
32904         * ThemeWin32Classic.cs:
32905                 - Fixes drawing
32906                 
32907 2005-09-29  Raja R Harinath  <harinath@gmail.com>
32908
32909         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
32910
32911 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
32912
32913         * ImageList.cs: Added comments about handle creation. Moved Handle,
32914           HandleCreated and OnRecreateHandle implementations to ImageCollection.
32915           Handle is created in Add methods.
32916
32917 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32918          
32919         * DataGridDrawingLogic.cs: 
32920                 - Takes rows into account on Colum calculations
32921                 - Returns the column when clickig
32922         * DataGrid.cs:
32923                 - Fixes default HitTestInfo values
32924                 - Fixes HitTestInfo.ToString
32925                 - Fixes ResetBackColor          
32926         
32927 2005-09-28  Jackson Harper  <jackson@ximian.com>
32928
32929         * MdiChildContext.cs: Obey rules for fixed sized windows (no
32930         sizing or cursor changes). Also added some temp code to draw the
32931         titlebars text (Makes dev a little easier).
32932
32933 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32934
32935         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
32936
32937 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32938          
32939         * ListBox.cs: Fixes bug 76253
32940
32941 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32942
32943         * ImageList.cs: Added comments about the current implementation. Added
32944           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
32945           Format32bppArgb to preserve transparency and can use Graphics.FromImage
32946           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
32947           with Bitmap.LockBits for better performance. Revised the whole file to
32948           match MS.NET behaviour and provide better performance. Non-public
32949           interface members are calling public members even when they throw
32950           NotSupportedException for better maintainability. Moved ColorDepth,
32951           ImageSize, ImageStream and TransparentColor implementations to
32952           ImageCollection for better performance as these properties are not used
32953           by ImageList.
32954         * ImageListStreamer.cs: Added a new internal constructor that takes an
32955           ImageList.ImageCollection and serializes Images based on
32956           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
32957           match ImageList property name.
32958
32959 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
32960
32961         * ListBox.cs: Fixes IndexFromPoint for last item
32962
32963 2005-09-27  Jackson Harper  <jackson@ximian.com>
32964
32965         * Form.cs: Set the position of new mdi children correctly.
32966
32967 2005-09-27  Jackson Harper  <jackson@ximian.com>
32968
32969         * MdiClient.cs: New mdi children need to be added to the back of
32970         the controls collection so the zorder is set correctly. Also add a
32971         count of all the child windows that have been created.
32972
32973 2005-09-27  Jackson Harper  <jackson@ximian.com>
32974
32975         * Form.cs (CreateParams): Setup MDI forms correctly.
32976
32977 2005-09-27  Jackson Harper  <jackson@ximian.com>
32978
32979         * MdiChildContext.cs:
32980         * MonthCalendar.cs:
32981         * UpDownBase.cs:
32982         * ListBox.cs:
32983         * ListView.cs:
32984         * TextBoxBase.cs:
32985         * TreeView.cs:
32986         * ScrollableControl.cs:
32987         * ComboBox.cs: Add implicit controls using the new implict control
32988         functionality in ControlCollection. Also try to block multiple
32989         control add in a suspend/resume layout to save some cycles.
32990         
32991 2005-09-27  Jackson Harper  <jackson@ximian.com>
32992
32993         * Control.cs: Add functionality to the controls collection to add
32994         'implicit controls' these are controls that are created by the
32995         containing control but should not be exposed to the user. Such as
32996         scrollbars in the treeview.
32997         * Form.cs: The list var of the ControlsCollection is no longer
32998         available because of the potential of implicit controls getting
32999         ignored by someone accessing the list directly.
33000
33001 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
33002
33003         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
33004           loose it's parent. (Fixed bug introduced in r49103 when we added
33005           setting the child parent to null on Remove)
33006
33007 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
33008
33009         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
33010         * Splitter.cs: Added missing attributes for BorderStyle property.
33011         * TextBoxBase.cs: Marked Calculate* methods internal.
33012         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
33013         MS.NET.
33014
33015 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
33016          
33017         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
33018
33019 2005-09-25  Jackson Harper  <jackson@ximian.com>
33020
33021         * TreeView.cs: Update the node bounds correctly regardless of
33022         whether the node is visible.
33023
33024 2005-09-25  Jackson Harper  <jackson@ximian.com>
33025
33026         * ImageList.cs: Don't dispose the image after it is added to the
33027         image list. Only reformat images that need to be resized.
33028
33029 2005-09-25  Jackson Harper  <jackson@ximian.com>
33030
33031         * ImageList.cs: Don't set the format when changing the image.
33032
33033 2005-09-25  Jackson Harper  <jackson@ximian.com>
33034
33035         * TreeView.cs: We can't just assume the node has a font. Use the
33036         treeviews font if no node font is available.
33037
33038 2005-09-25  Jackson Harper  <jackson@ximian.com>
33039
33040         * TreeView.cs: Allow the scrollbars to be reset with negative
33041         values.
33042         - Don't add scrollbars to negative sized windows.
33043
33044 2005-09-23  Jackson Harper  <jackson@ximian.com>
33045
33046         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
33047         old Mono.Posix. Also remove some stray code that shouldn't have
33048         been committed.
33049
33050 2005-09-23  Jackson Harper  <jackson@ximian.com>
33051
33052         * TreeView.cs: Attempt at proper sizing of the horizontal
33053         scrollbar. Also don't resize the scrollbars unless they are
33054         visible.
33055
33056 2005-09-23  Jackson Harper  <jackson@ximian.com>
33057
33058         * TreeView.cs: We don't need to expand the invalid area when the
33059         selection changes, as this is all drawn in the node's bounding
33060         box. The area needs to be expanded (previous typo was contracting
33061         it) when the focus rect moves.
33062
33063 2005-09-23  Jackson Harper  <jackson@ximian.com>
33064
33065         * TreeView.cs: Display the selection box under the correct
33066         circumstances. We were rendering white text with no selection box
33067         before.
33068
33069 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
33070
33071         * TextControl.cs(Split): Now updates selection start/end if it points 
33072           into a line that's being split. Fixes a FIXME and bug #75258
33073
33074 2005-09-23  Jackson Harper  <jackson@ximian.com>
33075
33076         * Binding.cs:
33077         * ListControl.cs: Don't use the path when retrieving binding
33078         managers from the binding context. My bat sense tells me that the
33079         path is only used on insertion.
33080
33081 2005-09-22  Jackson Harper  <jackson@ximian.com>
33082
33083         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
33084
33085 2005-09-22  Jackson Harper  <jackson@ximian.com>
33086
33087         * Splitter.cs: There are special cursors used for splitting.
33088         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
33089
33090 2005-09-22  Jackson Harper  <jackson@ximian.com>
33091
33092         * Splitter.cs: Change the cursor appropriately when the splitter
33093         is moused over, so the user actually knows there is a splitter
33094         there.
33095
33096 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
33097
33098        * Label.cs : Fix ToString method to give same output as MS.NET
33099
33100 2005-09-22  Jackson Harper  <jackson@ximian.com>
33101
33102         * TreeView.cs: Create the scrollbars when the handle is created
33103         and add them right away, just make them invisble. Also account for
33104         the window being shrunk vertically to the point that the vert
33105         scrollbar needs to be added.
33106         - Remove some 0.5 adjustments to get around anti aliasing issues.
33107         
33108 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
33109          
33110         * MainMenu.cs: Fixes default value
33111         * MenuItem.cs: Fixes default value
33112
33113 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
33114
33115         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
33116
33117 2005-09-21  Jackson Harper  <jackson@ximian.com>
33118
33119         * Control.cs: Don't try to set the border style on the window if
33120         it hasn't been created. When the window is created the border
33121         style will be used.
33122
33123 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
33124
33125         * Control.cs (Update): Don't call XplatUI if we don't have a
33126           window handle yet
33127
33128 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
33129
33130         * ContainerControl.cs: Instead of throwing an exception, print
33131           a one-time warning about Validate not being implemented
33132         * XplatUIWin32.cs: Removed debug output
33133
33134 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
33135
33136         * Control.cs: Only set XplatUI background if we expect the windowing
33137           system to handle the background. This stops controls that draw their
33138           own background from flickering
33139
33140         * XplatUIX11.cs: Support custom visuals and colormaps for window 
33141           creation. This allows, amongst other things, using MWF X11 windows 
33142           with OpenGL.
33143
33144 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
33145
33146         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
33147           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
33148           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
33149           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
33150           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
33151           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
33152           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
33153           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
33154           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
33155           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
33156           GridColumnStylesCollection.cs, 
33157           IDataGridColumnStyleEditingNotificationService.cs,
33158           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
33159           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
33160           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
33161           TreeNodeCollection.cs, AmbientProperties.cs, 
33162           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33163           DataObject.cs, ErrorProvider.cs, Splitter.cs,
33164           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
33165           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
33166           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
33167           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
33168           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
33169           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
33170           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
33171           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
33172           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
33173           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
33174           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
33175           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
33176           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
33177           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
33178           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
33179           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
33180           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
33181           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
33182           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
33183           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
33184           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
33185           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
33186           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
33187           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
33188           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
33189           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
33190           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
33191           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
33192           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
33193           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
33194           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
33195           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
33196           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
33197           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
33198           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
33199
33200 2005-09-21  Jackson Harper  <jackson@ximian.com>
33201
33202         * TreeNode.cs: Call Before/After Expand not Collapse when
33203         expanding.
33204
33205 2005-09-20  Jackson Harper  <jackson@ximian.com>
33206         
33207         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
33208
33209 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
33210          
33211         * ListViewItem.cs:
33212                 - Fixes bug 76120
33213                 - Fixes proper storing of subitems
33214                 - Fixes not updated items
33215
33216 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
33217
33218         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
33219           things if our window handle isn't created yet. Also disabled 
33220           debug for TextBoxBase
33221
33222 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
33223
33224         * MenuAPI.cs: Remove filtering of events to allow menu usage
33225
33226 2005-09-20  Miguel de Icaza  <miguel@novell.com>
33227
33228         * Cursor.cs: Allow null to be passed to Cursor.Current.
33229
33230 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
33231
33232         * ThemeWin32Classic.cs:
33233           - Change some private methods/fields to protected virtual so that 
33234             they can be accessed and overriden in derived classes
33235           - First refactoring of some methods. Derived themes now don't 
33236             need to duplicate the complete code from ThemeWin32Classic
33237         * ThemeNice.cs:
33238           - Added nice StatusBar
33239           - Derive from ThemeWin32Classic and not Theme
33240           - Removed duplicate ThemeWin32Classic code
33241
33242 2005-09-20  Miguel de Icaza  <miguel@novell.com>
33243
33244         * Control.cs (ControlCollection.Add): If the value null is passed
33245         the control is ignored. 
33246
33247         Optimize this loop.
33248
33249 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
33250
33251         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
33252           PostQuitMessage state.
33253         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
33254
33255 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
33256
33257         * Application.cs: Our constructor will never get called, move 
33258           initialization to fields; fixes bug #75933
33259
33260 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
33261
33262         * FileDialog.cs :
33263                 - Allow files to be selected properly using file name
33264                 combo box.
33265                 - Add ability to change diretory (absolute / relative)
33266                 using file name combo box.
33267
33268 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
33269          
33270         * ListBox.cs: 
33271                 - Fixes Multicolumn listboxes item wrong calculations
33272                 - Allows to click when only one item is in the listbox
33273                 - Fixes crash when no items using keyboard navigation
33274
33275 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
33276
33277         * ComboBox.cs: Reverted almost everything from the latest patch which
33278           broke ComboBox
33279
33280 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
33281         
33282         * ToolTip.cs:
33283                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
33284         * ComboBox.cs:
33285                 - When DropDownStyle is Simple, it does not show scrollbar 
33286                 to the last item of the list.
33287                 - When DropDownStyle is Simple, it crashed when the list was 
33288                 scrolled down with the down cursor key.
33289                 - Fixed a bug that when DropDownStyle is DropDownList, the 
33290                 selected item was not shown.
33291                 - The position of the selected item was not preserved when 
33292                 the next dropdown happened.
33293         * ThemeWin32Classic.cs:
33294                 - Items were wrapped at the right end.
33295         * CheckedListBox.cs:
33296                 - Fixed Add method
33297         * ListBox.cs:
33298                 - Items should be fully shown.
33299                 - When resizing and vertical scrollbar disappeared, the item 
33300                 of index 0 should be on the top of the list.
33301                 - GetItemRectangle should consider the size of ver. scrollbar
33302         * StatusBar.cs:
33303                 - SizingGrip area should not be allocated when it is not 
33304                 displayed.
33305                 - Now it reflects MinWidth of the containing panel and 
33306                 fixed a crash that happens when its width becomes so small.
33307
33308 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
33309
33310         * CheckedListBox.cs: Fixes bug 76028
33311         * ListBox.cs: Fixes bug 76028
33312
33313 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
33314
33315         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
33316         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
33317
33318 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
33319
33320         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
33321
33322 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
33323
33324         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
33325
33326 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
33327
33328         * IRootGridEntry.cs: Added
33329         * PropertyGridCommands.cs: Added
33330         * PropertiesTab.cs: Added missing methods and property
33331         * PropertyGridView.cs: Made class internal
33332         * PropertyGridTextBox.cs: Made class internal
33333
33334 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
33335
33336         * MimeIcon.cs: Try to check some other environment variables
33337           if "DESKTOP_SESSION" returns "default"
33338
33339 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
33340
33341         * ThemeNice.cs: Corrected background colors (e.g. menus)
33342         * ColorDialog.cs: Use correct background colors for controls
33343
33344 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
33345
33346         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
33347
33348 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
33349
33350         * RichTextBox.cs: Added initial implementation
33351         * lang.cs: Removed. Was accidentally checked in long time ago
33352         * TODO: Removed. Contents were obsolete
33353
33354 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
33355                                                                                 
33356         * PropertiesTab.cs : Added
33357
33358 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
33359                                                                                 
33360         * PropertyGrid.cs : Update
33361         * PropertyGridView.cs : Update
33362         * System.Windows.Forms.resx : Added images and strings
33363
33364 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
33365
33366         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
33367  
33368 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
33369
33370         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
33371           a busy loop right after the Ungrab the X11 display is otherwise 
33372           blocked
33373
33374 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
33375
33376         * ThemeWin32Classic.cs: Optimise the use of clipping
33377
33378 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
33379
33380         * DataGrid.cs: fixes recursion bug
33381
33382 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
33383
33384         * ThemeNice.cs: 
33385           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
33386           - Cleanup
33387
33388 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
33389
33390         * ThemeNice.cs: Draw nice ProgressBars
33391
33392 2005-09-01  Miguel de Icaza  <miguel@novell.com>
33393
33394         * VScrollBar.cs: Another buglet found by Aaron's tool. 
33395
33396         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
33397         bug finder.
33398
33399 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
33400
33401         * ThemeNice.cs:
33402           - Added nicer menu drawing
33403           - Updated DrawTab
33404           - some refactoring
33405
33406 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
33407
33408         * CreateParams.cs (ToString): Made output match MS
33409         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
33410             handle is already created (to avoid forcing window creation)
33411         * XplatUIX11.cs: Set window text to caption after creating window,
33412           in case Text was set before window was created
33413         * Form.cs: Use this.Text instead of a static string as caption
33414
33415 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
33416
33417         * NotifyIcon.cs: Don't set the window to visible; this screws
33418           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
33419           OnPaint without a bitmap)
33420         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
33421           happen very often anyway; we could add the check to the WM_PAINT 
33422           event generation code
33423
33424 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
33425
33426         * NotifyIcon.cs: Fill the icon area with a background color, to 
33427           avoid 'residue' when transparent icons are drawn
33428         * XplatUIX11.cs:
33429           - Handle whole_window == client_window when destroying windows
33430           - SystrayAdd(): Set client_window to whole_window value to
33431             get mouse and other events passed to NotifyIcon
33432
33433 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
33434
33435         * Form.cs: Set proper default for Opacity property
33436         * NotifyIcon.cs:
33437           - ShowSystray(): Don't bother creating telling the OS
33438             about the systray item if no icon is provided
33439           - Now handles WM_NCPAINT message to deal with whole/client window
33440             split
33441           - Create window as visible to not get caught by Expose optimization
33442         * Hwnd.cs: Removed debug message
33443         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
33444           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
33445             PaintEventStart/End to use new client argument
33446         * TextBoxBase.cs:
33447           - Commented out debug messages
33448           - Switched PaintEventStart/End to use new client argument
33449         * XplatUI.cs: Added client window bool to PaintEventStart()/
33450           PaintEventEnd() calls, to support drawing in non-client areas
33451         * XplatUIDriver.cs: 
33452           - Added client window bool to PaintEventStart()/PaintEventEnd() 
33453             calls, to support drawing in non-client areas
33454           - Added conditional compile to allow using MWF BeginInvoke 
33455             on MS runtime
33456         * XplatUIX11.cs:
33457           - Added some conditional debug output
33458           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
33459             whole/client window split
33460           - Implemented handling of client argument to PaintEventStart()/End()
33461         * Control.cs:
33462           - Throw exception if BeginInvoke() is called and the window handle
33463             or one of the window's parent handles is not created
33464           - Added conditional compile to allow using MWF BeginInvoke on
33465             MS runtime
33466           - get_Parent(): Only sets parent if handle is created. This avoids
33467             forcing window handle creation when parent is set.
33468           - Now fires Layout and Parent changed events in proper order
33469           - Switched to use Handle instead of window.Handle for Z-Order setting,
33470             the get_Parent() patch above causes us to possibly get null for 'window'
33471           - Implemented handling of client argument to PaintEventStart()/End()
33472           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
33473             default handling)
33474           - Now sends a Refresh() to all child windows when Refresh() is called
33475
33476 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
33477
33478         * Form.cs: Added (non-functional) Opacity property
33479         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
33480
33481 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
33482         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
33483           use export MONO_THEME=nice to activate it.
33484           Currently supported controls:
33485           - Button
33486           - ComboBox
33487           - ScrollBar
33488           - TabControl (TabAlignment.Top only, other will follow)
33489         * ThemeEngine.cs: Add theme nice
33490         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
33491           if enabled
33492
33493 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
33494
33495         * Splitter.cs: Resize docked control and its neighbor.
33496
33497 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
33498         -- Making Windows with Menus layout correctly --
33499         * Form.cs : The first leg of the fix
33500                 Menu setter - adjust Client Size as needed to make space for the menu
33501                 SetClientSizeCore - doesn't call base version to be able to pass the 
33502                         menu handle to XplatUI.CalculateWindowRect
33503         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
33504         * XplatUIX11.cs: The critical second leg of the fix
33505                 GetWindowPos needs to use a recalculated client_rect
33506                 so that resizing the window doesn't break layout of child controls. 
33507                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
33508                 Lots of \t\n killed
33509
33510 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
33511
33512         * Label.cs: Now properly recalculates width and height on Font and Text
33513           changes if AutoSize is set
33514
33515 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
33516         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
33517
33518 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
33519
33520         * ImageList.cs: Makes ToString method compatible with MS
33521
33522 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
33523
33524         * MenuAPI.cs: fixes bug 75716
33525
33526 2005-08-11 Umadevi S <sumadevi@novell.com>
33527         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
33528
33529 2005-08-11 Umadevi S <sumadevi@novell.com>
33530         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
33531
33532 2005-08-10  Umadevi S <sumadevi@novell.com>
33533         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
33534
33535 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
33536
33537         * Menu.cs: fixes bug 75700
33538         * MenuAPI.cs: fixes navigation issues
33539
33540 2005-08-09  Umadevi S <sumadevi@novell.com>
33541         * CheckedListBox.cs - simple fix for GetItemChecked.
33542
33543 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
33544
33545         * ComboBox.cs: Serveral fixes
33546         * ListBox.cs: Serveral fixes
33547
33548 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
33549
33550         * ComboBox.cs: Fixes FindString methods and GetItemHeight
33551         * ListBox.cs: Fixes FindString methods
33552
33553 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
33554
33555         * DataGrid.cs: fixes bugs exposed by new tests
33556
33557 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
33558
33559         * Mime.cs: Compile Mono assembly references only if compiling
33560           with Mono (Allows to build with VS.Net again)
33561
33562 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
33563
33564         * Control.cs (PaintControlBackground): Draw background image
33565         corrrectly.
33566         (CheckForIllegalCrossThreadCalls): Stubbed.
33567         
33568         * Form.cs (OnCreateControl): Center when should be centered.
33569         
33570         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
33571
33572 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
33573
33574         * Binding.cs: Binding to properties should be case unsensitive
33575
33576 2005-07-18 vlindos@nucleusys.com
33577
33578         * DataGrid.cs: fixes setmember order
33579
33580 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
33581
33582         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
33583         * FileDialog.cs: FileDialog is now resizable and uses the new
33584           MimeIconEngine
33585
33586 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
33587
33588         * DataGridTextBoxColumn.cs: default value
33589         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
33590         * GridTableStylesCollection.cs: fixes checking MappingName
33591         * DataGridDrawingLogic.cs: fixes drawing logic issues
33592         * DataSourceHelper.cs: rewritten to make compatible with more data sources
33593         * DataGrid.cs: fixes    
33594
33595 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
33596
33597         * MimeGenerated.cs: Use case sensitive comparer for
33598           NameValueCollections
33599
33600 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
33601
33602         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
33603         * ThemeWin32Classic.cs: bug fixes, code refactoring
33604         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
33605         * DataGrid.cs: bug fixes, code refactoring
33606         * DataGridTextBox.cs: bug fixes, code refactoring
33607         * DataGridColumnStyle.cs:  bug fixes, code refactoring
33608         * Theme.cs:  bug fixes, code refactoring
33609
33610 2005-07-01  Peter Bartok  <pbartok@novell.com> 
33611
33612         * TextControl.cs: Quick fix for the reported crash on ColorDialog
33613           and other text box usage
33614
33615 2005-07-01  Jackson Harper  <jackson@ximian.com>
33616
33617         * TabControl.cs: Make sure the bottom of the tab covers the pages
33618         border.
33619
33620 2005-06-30  Peter Bartok  <pbartok@novell.com> 
33621
33622         * Form.cs (ShowDialog): Assign owner of the dialog
33623         * TextBoxBase.cs: Always refresh caret size when deleting, caret
33624           might have been moved to a tag with different height
33625
33626 2005-06-30  Jackson Harper  <jackson@ximian.com>
33627
33628         * Form.cs: Don't create an infinite loop when setting focus
33629         * MenuItem.cs: Don't dirty the parents if we don't have any
33630
33631 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
33632
33633         * LibSupport.cs: Rename
33634
33635 2005-06-29  Peter Bartok  <pbartok@novell.com>
33636
33637         * TextBoxBase.cs: Re-align caret after deleting a character
33638         * TextControl.cs:
33639           - DeleteChars(): Ensure that tag covers the provided position
33640           - StreamLine(): Drop reference for dropped tag
33641
33642 2005-06-29  Peter Bartok  <pbartok@novell.com> 
33643
33644         * TextControl.cs: 
33645           - Selections now work properly, anchoring at the initial location
33646             and properly extending in either direction (SetSelectionToCaret(),
33647             SetSelectionStart() and SetSelectionEnd())
33648           - No longer redraws the whole control on selection change, now
33649             calculates delta between previous and new selection and only
33650             invalidates/redraws that area
33651           - Fixed FindPos() math off-by-one errors
33652           - Changed DeleteChars() to verify the provided tag covers the
33653             provided position, selections may have a tag that doesn't cover
33654             the position if the selection is at a tag border
33655           - Fixed off-by-one errors in DeleteChars()
33656           - Added missing streamlining check in DeleteChars() to remove
33657             zero-length tags
33658           - Implemented Invalidate() method, now properly calculates exposures
33659             between two given lines/positions
33660           - Implemented SetSelection()
33661           - Obsoleted and removed FixupSelection()
33662           - Improved RecalculateDocument() logic, removing code duplication
33663
33664 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33665
33666         * LibSupport.cs: changes to match different input/output arguments.
33667
33668 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33669
33670         * LibSupport.cs: added libsupport.so init routine.
33671
33672 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
33673         
33674         * ControlBindingsCollection.cs
33675                 - Throws an exception on null datasource when adding
33676                 - Checks for duplicated bindings when adding
33677
33678 2005-06-28  Jackson Harper  <jackson@ximian.com>
33679
33680         * TreeView.cs (OnKeyDown): Support left and right properly
33681         (navigates as well as expanding and collapsing.
33682         - Add support for Multiply, this expands all the selected nodes
33683         children.
33684         - Fix some tabbing.
33685
33686 2005-06-28  Jackson Harper  <jackson@ximian.com>
33687
33688         * TreeView.cs: Implement keyboard navigation, currently supports,
33689         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
33690         support for toggling checkboxes with the space bar.
33691
33692 2005-06-28  Jackson Harper  <jackson@ximian.com>
33693
33694         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
33695         tree.
33696
33697 2005-06-28  Jackson Harper  <jackson@ximian.com>
33698
33699         * TreeView.cs: Add missing event.
33700
33701 2005-06-27  Peter Bartok  <pbartok@novell.com> 
33702
33703         * TextControl.cs:
33704           - Made line ending size configurable (now allows for counting 
33705             lineendings as \n or \r\n)
33706           - Added margin to viewport to keep caret visible on right side
33707           - Fixed translation routines for line/pos to documentpos to consider
33708             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
33709           - Fixed some line-endings to be unix style
33710           - Fixed Document.FormatText to perform it's calculations 1-based
33711           - Added descriptions for a few methods that might otherwise get 
33712             used wrong
33713           - Added NOTE section with some basic conventions to remember at 
33714             the top of the file
33715           - Major fixup for RichTextBox selection drawing:
33716             * Fixed crashes when multiple tags on a single line were selected
33717             * fixed selection box drawing not overlaying text
33718             * fixed bogus offset calculation for tags not starting at index 1
33719             * Switched behaviour from using multiple Substrings of a 
33720               StringBuilder.ToString() to using multiple 
33721               StringBuilder.ToString(start, length) statements, hoping this is
33722               faster (kept original version commented out in the code, in case
33723               original version was faster)
33724         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
33725           alignment != Left
33726         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
33727           call it as well
33728
33729 2005-06-27  Jackson Harper  <jackson@ximian.com>
33730
33731         * TabControl.cs: Move to the left and right with the arrow
33732         keys. These keys don't cycle beyond first and last like
33733         tab. Refresh all the tabs when scrolling them to the left or
33734         right.
33735
33736 2005-06-27  Jackson Harper  <jackson@ximian.com>
33737
33738         * TabControl.cs:
33739           - ToString: Added method
33740           - CreateParams: Remove TODO and comment
33741           - OnKeyDown: Cycle through bounds properly.
33742           - SelectedIndex: Scroll to the right or left if we need to
33743           display the newly selected tab.
33744
33745 2005-06-23  Jackson Harper  <jackson@ximian.com>
33746
33747         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
33748         set.
33749
33750 2005-06-23  Jackson Harper  <jackson@ximian.com>
33751
33752         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
33753         CTRL-SHIFT-TAB, and HOME, END are there any others?
33754
33755 2005-06-23  Jackson Harper  <jackson@ximian.com>
33756
33757         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
33758
33759 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
33760         
33761         * DataGridTextBoxColumn.cs: fixes and enhancements
33762         * ThemeWin32Classic.cs: fixes and enhancements
33763         * DataGridBoolColumn.cs:  fixes and enhancements
33764         * DataGridDrawingLogic.cs:  fixes and enhancements
33765         * CurrencyManager.cs: fixes and enhancements
33766         * DataGrid.cs: fixes and enhancements
33767         * DataGridColumnStyle.cs:  fixes and enhancements
33768
33769 2005-06-22  Jackson Harper  <jackson@ximian.com>
33770
33771         * TabControl.cs: Add some missing methods that just call into the
33772         base. Make the TabPageCollection's IList interface behave in the
33773         same manner as the MS implementation.
33774
33775 2005-06-22  Peter Bartok  <pbartok@novell.com> 
33776
33777         * TextControl.cs: Added sanity check
33778         * TextBoxBase.cs: 
33779           - Fixed wrapping behaviour, don't set wrap on single line controls
33780             (this fixes the breakage of colordialog introduced in an earlier
33781              checkin)
33782           - Added rudimentary support for autoscrolling right-aligned controls
33783             (still needs fixing, also, center alignment scroll is missing)
33784
33785 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
33786         
33787         * ScrollBar.cs: Fixes thumbpos on Maximum values
33788
33789 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
33790         
33791         * PropertyGridView.cs: Pass context information to UITypeEditors 
33792
33793 2005-06-21  Peter Bartok  <pbartok@novell.com> 
33794
33795         * TextBoxBase.cs:
33796           - Now calling PositionCaret with absolute space coordinates
33797           - Enabled vertical scrolling
33798           - Better tracking of scrollbar changes, tied into WidthChange
33799             event
33800           - Improved cursor tracking
33801           - Removed debug output
33802         * TextControl.cs:
33803           - PositionCaret coordinates are now works in absolute space, not 
33804             the canvas
33805           - Improved tracking of document size
33806           - Added events for width and height changes
33807
33808 2005-06-21  Peter Bartok  <pbartok@novell.com>
33809
33810         * Form.cs: Set focus to active control when form is activated
33811         * TextControl.cs: 
33812           - Added word-wrap functionality to RecalculateLine() 
33813           - Added some short function descriptions for VS.Net to aid in
33814             writing dependent controls
33815           - Added Caret property, returning the current coords of the caret
33816           - Added ViewPortWidth and ViewPortHeight properties
33817           - Added Wrap property
33818           - Added CaretMoved event
33819           - Removed some old debug code
33820           - Split() can now create soft splits
33821           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
33822           - Added method to format existing text
33823           - Fixed size/alignment calculations to use viewport
33824           - RecalculateDocument now can handle changing line-numbers while
33825             calculating lines
33826
33827         * TextBox.cs:
33828           - Added some wrap logic, we don't wrap if alignment is not left
33829           - Added casts for scrollbar var, base class switched types to
33830             also support RichTextBoxA
33831           - Implemented handling of scrollbar visibility flags
33832
33833         * TextBoxBase.cs:
33834           - Switched scrollbars type to RichTextBoxScrollBars to support
33835             RichTextBox
33836           - Added tracking of canvas width/height
33837           - Switched scrollbars to be not selectable (to keep focus on text)
33838           - Added central CalculateDocument() method to handle all redraw
33839             requirements
33840           - Added ReadOnly support
33841           - Added WordWrap support
33842           - Fixed handling of Enter key (we now treat it as a DialogKey)
33843           - Fixed caret positioning when h or v scroll is not zero
33844           - Fixed placing/generation of vertical scrollbar
33845           - Added CalculateScrollBars() method to allow updating scrollbar
33846             limits and visibility
33847           - Fixed handling of horizontal scroll
33848           - Added handling of vertical scroll
33849           - Implemented auto-'jump' when caret moves to close to a left or
33850             right border and there is text to be scrolled into view (currently
33851             there's the potential for a stack overflow, until a bug in
33852             scrollbar is fixed)
33853
33854 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
33855         
33856         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
33857
33858 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
33859
33860         * Mime.cs:
33861         - added inodes.
33862         - return application/x-zerosize for files with size zero
33863           (if no extension pattern matches).
33864         - check matches collection for strings too.
33865         - return only the first mime type if the name value
33866           collection has more than one mime type.
33867
33868 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
33869         
33870         * PropertyGrid.cs: Cleaned up some TODOs
33871         * PropertyGridView.cs: Added support for UITypeEditors
33872
33873 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
33874         
33875         * DataGrid.cs: clears cached value
33876
33877 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
33878
33879         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
33880         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
33881         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
33882         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
33883         
33884 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
33885
33886         * ThemeWin32Classic.cs: fixes colour
33887
33888 2005-06-15  Peter Bartok  <pbartok@novell.com>
33889
33890         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
33891         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
33892         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
33893         * Control.cs: Added some MWFCategory and MWFDescription attributes
33894         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
33895
33896 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
33897
33898         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
33899         usage
33900
33901 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
33902
33903         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
33904         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
33905         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
33906         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
33907         * DataGrid.cs: default datagrid settings for Default Styles, fixes
33908         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
33909
33910 2005-06-13  Jackson Harper  <jackson@ximian.com>
33911
33912         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
33913         isn't printed when the user enables dropping. (X11 does accept
33914         drops).
33915         
33916 2005-06-13  Jackson Harper  <jackson@ximian.com>
33917
33918         * TreeView.cs: Remove some TODOS.
33919
33920 2005-06-13  Jackson Harper  <jackson@ximian.com>
33921
33922         * Form.cs: Hook into the mdi framework.
33923         * MdiClient.cs: Use the base control collections add method so
33924         parents get setup correctly. Set the default back colour and dock
33925         style.
33926         * MdiChildContext.cs: New class, this bad actor handles an
33927         instance of an MDI window. Right now there is only basic
33928         support. You can drag, close, and resize windows. Minimize and
33929         Maximize are partially implemented.
33930
33931 2005-06-13  Jackson Harper  <jackson@ximian.com>
33932
33933         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
33934         freaky when both vals are negative. NOTE: There are probably other
33935         places in XplatUIX11 that this needs to be done.
33936
33937 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
33938
33939         * DataGrid.cs: implement missing methods, move KeyboardNavigation
33940         * DataGridColumnStyle.cs: fixes signature
33941
33942 2005-06-12  Jackson Harper  <jackson@ximian.com>
33943
33944         * XplatUIX11.cs: Use sizing cursors similar to the ones on
33945         windows.
33946
33947 2005-06-11  Jackson Harper  <jackson@ximian.com>
33948
33949         * StatusBarPanel.cs: Signature cleanups. Implement
33950         BeginInit/EndInit.
33951
33952 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
33953
33954         * DataGridTextBoxColumn.cs: Honors aligment
33955         * GridColumnStylesCollection.cs: Contains is case unsensitive
33956         * GridTableStylesCollection.cs: several fixes
33957         * DataGridTableStyle.cs: default column creation
33958         * DataGridDrawingLogic.cs: fixes
33959         * CurrencyManager.cs: ListName property
33960         * DataGrid.cs: multiple styles support
33961         * DataGridColumnStyle.cs: fixes
33962         
33963
33964 2005-06-10  Peter Bartok  <pbartok@novell.com>
33965
33966         * Control.cs(Select): Moved SetFocus call to avoid potential
33967           loops if controls change the active control when getting focus
33968         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
33969           the up/down buttons
33970
33971 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
33972
33973         * ImageListConverter.cs: Implemented
33974
33975 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33976
33977         * MonthCalendar.cs: Wired in NumericUpDown control for year
33978
33979 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33980
33981         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
33982           DoubleClick events, since they are not meant to be fired.
33983
33984 2005-06-09  Peter Bartok  <pbartok@novell.com>
33985
33986         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
33987           Jonathan's standalone controls into MWF, implemented missing
33988           events, attributes and methods; added xxxAccessible classes
33989         * AccessibleObject.cs: Made fields internal so other classes
33990           can change them if needed
33991
33992 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
33993
33994         * UpDownBase.cs: Complete implementation
33995         * NumericUpDown.cs: Complete implementation
33996         * DomainUpDown.cs: Complete implementation
33997
33998 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
33999
34000         * DataGridTextBoxColumn.cs: drawing fixes
34001         * DataGridCell.cs: fixes ToString method to match MSNet
34002         * DataGridTableStyle.cs: fixes
34003         * DataGridBoolColumn.cs: fixes, drawing
34004         * DataGridDrawingLogic.cs: fixes, new methods
34005         * DataGridTextBox.cs: Keyboard and fixes
34006         * DataGrid.cs:
34007                 - Keyboard navigation
34008                 - Scrolling fixes
34009                 - Row selection (single, multiple, deletion, etc)
34010                 - Lots of fixes
34011         
34012 2005-06-07  Jackson Harper  <jackson@ximian.com>
34013
34014         * ThemeWin32Classic.cs: Clear the background area when drawing
34015         buttons.
34016
34017 2005-06-06  Peter Bartok  <pbartok@novell.com>
34018
34019         * ImageListStreamer.cs: Fixed signature for GetData
34020         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
34021         * ComboBox.cs:
34022           - Added missing ChildAccessibleObject class
34023           - Added missing OnXXXFocus overrides, switched to using those
34024             instead of the event handler
34025         * Control.cs:
34026           - Added Parent property for ControlAccessibleObject
34027           - Fixed signatures
34028           - Fixed attributes
34029           - Added ResetBindings()
34030         * ListBindingConverter.cs: Implemented some methods
34031         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
34032         * ImageList.cs: Implemented basic handle scheme, removed TODOs
34033         * ContainerControl.cs: Fixed signature, now subscribing to the
34034           ControlRemoved event instead of overriding the handler, LAMESPEC
34035         * CurrencyManager.cs: Added missing attribute
34036         * MonthCalendar.cs: Added missing properties
34037
34038 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
34039
34040         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
34041         
34042 2005-06-06  Gaurav Vaish and Ankit Jain
34043
34044         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
34045         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
34046         
34047 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
34048
34049         * Control.cs: fixes CreateParams Width / Height.
34050
34051 2005-06-05  Peter Bartok  <pbartok@novell.com>
34052
34053         * Win32DnD.cs: Removed compilation warnings
34054
34055 2005-06-05  Peter Bartok  <pbartok@novell.com>
34056
34057         * Control.cs (CreateParams): Since we don't know if one of the
34058           properties we use is overridden, lets make sure if we fail accessing
34059           we continue with a backup plan
34060
34061 2005-06-05  Peter Bartok  <pbartok@novell.com>
34062
34063         * Win32DnD.cs:
34064           - Removed debug output
34065           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
34066             struct
34067           - Plugged resource leak
34068         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
34069           MS size
34070
34071 2005-06-05  Peter Bartok  <pbartok@novell.com>
34072
34073         * XplatUIWin32.cs: Removed DnD code
34074         * Win32DnD.cs: Implemented drop source and drop target functionality
34075
34076 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
34077
34078         * UpDownBase.cs: remove duplicate addition of event, enable some code
34079         that was commented out.
34080         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
34081         Validate input when a key is pressed. It works fine now for every
34082         combination of Hexadecimal. Only missing some drawing love when sharing
34083         space with other controls.
34084
34085 2005-06-04  Peter Bartok  <pbartok@novell.com>
34086
34087         * Control.cs:
34088           - We need to pass a window for DragDrop, so enable callback events
34089           - Added DnD callback events when being a DragSource
34090         * XplatUI.cs (StartDrag): Added window handle argument
34091         * XplatUIDriver.cs (StartDrag): Added window handle argument
34092         * QueryContinueDragEventArgs: Made fields internally accessible so
34093           drivers can set them
34094         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
34095           can set them
34096
34097 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
34098
34099         * DataGridTextBoxColumn.cs: column text editing
34100         * DataGridTableStyle.cs: Respect columns styles created by the user
34101         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
34102         * DataGridBoolColumn.cs: bool column editing
34103         * DataGrid.cs: fixes to scrolling, properties, etc
34104         * DataGridTextBox.cs: handle keyboard
34105         * DataGridColumnStyle.cs: fixes
34106
34107 2005-06-02  Jackson Harper  <jackson@ximian.com>
34108
34109         * ImageListStreamer.cs: Somewhat broken implementation of
34110         GetObjectData. The RLE needs some work to match MS properly.
34111
34112 2005-06-02  Jackson Harper  <jackson@ximian.com>
34113
34114         * X11Dnd.cs: Attempting to keep at least one file in MWF
34115         monostyled.
34116
34117 2005-06-02  Peter Bartok  <pbartok@novell.com>
34118
34119         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
34120           that way
34121
34122 2005-06-02  Peter Bartok  <pbartok@novell.com>
34123
34124         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
34125         * XplatUI.cs: Added DoDragDrop() method
34126         * XplatUIDriver.cs: Added DoDragDrop() method
34127
34128 2005-06-02  Jackson Harper  <jackson@ximian.com>
34129
34130         * Splitter.cs: Implement BorderStyle.
34131
34132 2005-06-02  Jackson Harper  <jackson@ximian.com>
34133
34134         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
34135         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
34136         X11 using XDND.
34137
34138 2005-06-02  Peter Bartok  <pbartok@novell.com>
34139
34140         * DataObject.cs:
34141           - Added Data setter
34142           - Fixed broken insertion code for SetData, now also
34143             overwrites any existing entry of the same format name
34144         * Hwnd.cs: Added list of pointers that automatically gets
34145           freed when the window is disposed
34146         * XplatUI.cs: Call driver initialization method when loading
34147           a driver
34148         * Control.cs:
34149           - OnDragLeave takes EventArgs, not DragEventArgs
34150           - Added setting of WS_EX_ACCEPTFILES style when dropping is
34151             supported
34152           - Forces style update when drop state changes
34153         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
34154           not perfect since we cannot (yet) call the IDataObject.GetData()
34155           method, we keep getting 0x80004005 error, dunno why)
34156
34157 2005-06-02  Peter Bartok  <pbartok@novell.com>
34158
34159         * DragEventArgs.cs: Make fields internal so we can cache the
34160           object and re-set the fields from XplatUI
34161
34162 2005-06-02  Jackson Harper  <jackson@ximian.com>
34163
34164         * Control.cs: Add some internal methods so the DnD subsystem can
34165         raise DnD events. Also call into the driver when AllowDrop is set.
34166         * XplatUI.cs:
34167         * XplatUIDriver.cs: New method for setting whether or not a window
34168         is allowed to accept drag and drop messages.
34169                 
34170 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
34171         
34172         * ScrollBar.cs: Make sure that values sent in Scroll events
34173         are always between Maximum and Minimum.
34174
34175 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
34176
34177         * Menu.cs: Call MenuChanged when menuitem visibility has been
34178         changed.
34179         * MenuItem.cs: Rebuild menu when item is (not) visible.
34180         * MainMenu.cs: MainMenu has special MenuChanged.
34181         * Theme.cs: Caption and FrameBorderSize are not fixed.
34182         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
34183         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
34184         * XplatUIX11.cs,
34185         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
34186         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
34187
34188 2005-05-30  Jackson Harper  <jackson@ximian.com>
34189
34190         * DataFormat.cs: We can't statically initialize this stuff because
34191         it calls into the xplatui and could create a loop. So we lazy init
34192         it.
34193
34194 2005-05-28  Jackson Harper  <jackson@ximian.com>
34195
34196         * Control.cs: Proper implementation of Product(Name/Version).
34197
34198 2005-05-27  Jackson Harper  <jackson@ximian.com>
34199
34200         * DataObject.cs: Dont crash if no data is found.
34201
34202 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
34203         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
34204                 as per status page, guessing it should be set to true
34205
34206 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
34207
34208         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
34209         * DataGridTableStyle.cs: set proper formatting text, def header text
34210         * ThemeWin32Classic.cs: new themable paramaters
34211         * DataGridBoolColumn.cs: paint check box, get data, fixes
34212         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
34213         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
34214         * DataGridColumnStyle.cs: fixes
34215         * Theme.cs: new themable paramaters
34216                 
34217 2005-05-26  Peter Bartok  <pbartok@novell.com>
34218
34219         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
34220
34221 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
34222         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
34223
34224 2005-05-24  Peter Bartok  <pbartok@novell.com>
34225
34226         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
34227           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
34228           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
34229           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
34230           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
34231           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
34232           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
34233           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
34234           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
34235           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
34236           missing attributes, etc
34237         * DataGridPreferredColumnWidthTypeConverter.cs: Added
34238
34239 2005-05-24  Peter Bartok  <pbartok@novell.com>
34240
34241         * Help.cs: Added, implemented trivial functions, throws up MessageBox
34242           when user tries to get help
34243         * DataObject.cs, DataFormats.cs, LinkArea.cs,
34244           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
34245           to suppress warnings
34246         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
34247           avoid unreachable code warning
34248
34249 2005-05-20  Peter Bartok  <pbartok@novell.com>
34250
34251         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
34252
34253 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
34254
34255         * DataGridTextBoxColumn.cs: Basic painting methods
34256         * DataGridTableStyle.cs: Set table style in the column
34257         * ThemeWin32Classic.cs: Use Theme for colors
34258         * DataGridDrawingLogic.cs: Implement more drawing
34259         * DataGrid.cs: drawing, theming, enhacements, fixes
34260         * DataGridColumnStyle.cs: fixes, drawing
34261         * Theme.cs: theming for Datagrid
34262
34263 2005-05-20  Peter Bartok  <pbartok@novell.com>
34264
34265         * Cursor.cs: Implemented GetObjectData() method
34266
34267 2005-05-20  Peter Bartok  <pbartok@novell.com>
34268
34269         * Cursors.cs: Added setting of cursor name
34270         * Cursor.cs:
34271           - Implemented constructors
34272           - Implemented Draw and DrawStretched
34273           - Implemented Current property
34274           - Implemented == and != operators
34275           - Implemented Dispose()
34276           - Implemented ToString
34277           - Added missing attributes
34278         * XplatUIX11.cs:
34279           - Added missing reset for OverrideCursor when DoEvents is called
34280           - Fixed creation of cursor, logic was wrong
34281         * XplatUIWin32.cs:
34282           - Added missing reset for OverrideCursor when DoEvents is called
34283           - Fixed creation of cursor, bit arrays were swapped
34284         * Clipboard.cs: Removed obsolete MonoTODO attribute
34285
34286 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
34287
34288         * ComboBox.cs: fixes OnSelectedItemChanged
34289         * ControlBindingsCollection.cs: fixes item range check
34290
34291 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
34292
34293         * UpDownBase.cs:
34294                 - Calc preferred height properly
34295                 - Implement missing properties
34296                 
34297         * NumericUpDown.cs: Implement missing events
34298
34299 2005-05-19  Jackson Harper  <jackson@ximian.com>
34300
34301         * TabControl.cs: New method that resizes the tab pages before
34302         redrawing them. This as needed as the control is double buffered
34303         and sizing will not be recalculated unless ResizeTabPages is
34304         called.
34305         * TabPage.cs: Set base.Text instead of Text in the constructor so
34306         that UpdateOwner does not get called. Use the new Redraw method of
34307         TabControl instead of Refresh so the sizing is recalculated.
34308         * ThemeWin32Classic.cs: Draw the text for button tabs.
34309
34310 2005-05-19  Jackson Harper  <jackson@ximian.com>
34311
34312         * Control.cs: Paint control background images. Fix typo where
34313         PaintControlBackground was not getting called correctly.
34314
34315 2005-05-19  Peter Bartok  <pbartok@novell.com>
34316
34317         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
34318           I can investigate, apparently I broke FileDialog
34319
34320 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
34321
34322         * AxHost.cs: Some simple properties.
34323         * Control.cs: window must be accessible after ctor.
34324         * Form.cs: Added TransparencyKey property.
34325         * TextBoxBase.cs: Implemented Clear. Text property can be null.
34326         * XplatUIWin32.cs: SetBorderStyle implemented.
34327
34328 2005-05-18  Peter Bartok  <pbartok@novell.com>
34329
34330         * DataObject.cs: Entries are not global but particular to the
34331           DataObject, now it behaves that way
34332         * XplatUIWin32.cs: Implemented Clipboard methods
34333         * Clipboard.cs: Implemented
34334         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
34335         * XplatUIOSX.cs: Updated to final clipboard prototypes
34336         * XplatUIX11.cs: Implemented Clipboard methods
34337         * XplatUIDriver.cs: Updated to final clipboard prototypes
34338         * XplatUIStructs.cs:
34339           - Added BITMAPINFOHEADER struct
34340           - Added ClipboardFormats enum
34341         * X11Structs.cs:
34342           - Added ClipboardStruct
34343           - Added Atom enum items for clipboard types
34344           - Fixed atom types for Selection event structures
34345         * DataFormats.cs:
34346           - Added internal properties and methods for drivers to enumerate
34347             all known formats
34348           - Switched initialization method to allow drivers to assign their
34349             own IDs even for the MS predefined clipboard IDs
34350         * XplatUI.cs: Updated to final clipboard interface
34351
34352 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
34353         * PropertyGridView.cs: Fixed compiler warnings.
34354
34355 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
34356         * PropertyGrid.cs: Added some event calls
34357         * PropertyGridView.cs: Change drawing code to use double buffering
34358         * PropertyGridTextBox.cs: Changed Text property name
34359         * GridItem.cs: Added Bounds property.
34360         * GridEntry.cs: Added Bounds property.
34361
34362 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
34363
34364         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
34365         since GetType() may not return the correct type if the object is
34366         a remoting proxy.
34367
34368 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
34369
34370         * TreeNodeCollection.cs: fixes get/set item ranges
34371         
34372 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
34373
34374         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
34375                 
34376 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
34377
34378         * ComboBox.cs: Fix item range comparation
34379         * ListView.cs: Fix item range comparation
34380
34381 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
34382
34383         * FontDialog.cs:
34384           - Clear example panel when OnPaint is called
34385           - Better solution for displaying the example panel text
34386           - Select default indexes in the ListBoxes
34387
34388 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
34389
34390         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
34391
34392 2005-05-11  Peter Bartok  <pbartok@novell.com>
34393
34394         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
34395         * SelectionRangeConverter.cs: Implemented
34396         * PropertyGrid.cs: Fixed attribute value
34397         * Control.cs:
34398           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
34399           - Added Sebastien Pouliot's CAS Stack Propagation fixes
34400         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
34401           that's common to all drivers. First methods to go there are
34402           Sebastien Pouliot's CAS Stack Propagation helper methods
34403         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
34404           Sebastien Pouliot for CAS Stack Propagation
34405
34406 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
34407
34408         * OSXStructs.cs:
34409           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
34410
34411 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
34412
34413         * DataGridTextBoxColumn.cs: fixed some members
34414         * GridColumnStylesCollection.cs: indexed column is case insensitive
34415         * DataGridTableStyle.cs: fixes
34416         * ThemeWin32Classic.cs: add new theme parameter
34417         * Theme.cs: add new theme parameter
34418         * DataGridDrawingLogic.cs: Datagrid's drawing logic
34419         * DataGrid.cs: fixes, new internal properties, etc.
34420         * DataGridColumnStyle.cs: allows to set grid value
34421         *
34422
34423 2005-05-10  Peter Bartok  <pbartok@novell.com>
34424
34425         * AccessibleObject.cs:
34426           - Removed MonoTODO attribute on help, method is correct
34427           - Fixed Bounds property
34428         * AxHost.cs: Moved MonoTODO
34429         * ButtonBase.cs: Now setting AccessibleObject properties
34430         * RadioButton.cs: Setting proper AccessibleObject role
34431         * CheckBox.cs: Setting proper AccessibleObject role
34432         * ControlBindingsCollection.cs: Added properties, methods and attributes
34433         * DataFormats.cs: Fixed awkward internal API, and changed to enable
34434           userdefined DataFormats.Format items as well
34435         * ListControl.cs: Removed data_member from the public eye
34436         * OpenFileDialog.cs:
34437           - Made class sealed
34438           - Added missing attributes
34439         * SaveFileDialog.cs: Added missing attributes
34440         * ImageListStreamer.cs: Fixed code that caused warnings
34441         * LinkLabel.cs: Removed unreachable code
34442         * TreeView.cs: Fixed code that caused warnings
34443         * PropertyGridView.cs: Fixed code that caused warnings
34444         * GridColumnStylesCollection.cs: Added missing attributes
34445         * GridTableStylesCollection: Added missing attribute
34446         * PropertyManager: Added .ctor
34447         * SecurityIDType: Added
34448         * DataObject.cs: Implemented class
34449         * LinkArea.cs: Added missing attribute
34450
34451 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
34452
34453         * RadioButton.cs: call base method to allow to fire OnClick event
34454         * UpDownBase.cs: OnMouseUp call base method
34455         * CheckedListBox.cs: call base method before returning
34456         * TrackBar.cs: call base method before returning
34457         
34458
34459 2005-05-10  Peter Bartok  <pbartok@novell.com>
34460
34461         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
34462           for messages
34463
34464 2005-05-10  Peter Bartok  <pbartok@novell.com>
34465
34466         * DataFormats.cs: Implemented
34467         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
34468           XplatUIX11.cs: Added Clipboard APIs
34469         * XplatUIWin32.cs: Implemented Clipboard APIs
34470         * FolderBrowserDialog.cs: Added missing event, attributes
34471
34472 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
34473
34474         * CheckBox.cs: call base method to allow to fire OnClick event
34475
34476 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
34477
34478         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
34479
34480 2005-05-06  Peter Bartok  <pbartok@novell.com>
34481
34482         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
34483         * Screen.cs: Implemented
34484         * HelpNavigator.cs: Added
34485         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
34486           property
34487         * HelpProvider.cs: Implemented all we can do until we have a CHM
34488           help library (which means that "What's This" does work now)
34489
34490 2005-05-06  Jackson Harper  <jackson@ximian.com>
34491
34492         * XplatUIX11.cs: Fix waking up the main loop.
34493                 
34494 2005-05-05  Peter Bartok  <pbartok@novell.com>
34495
34496         * XplatUI.cs: Updated revision
34497         * Form.cs: Removed enless loop
34498         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
34499         * Label.cs (OnPaint): Added call to base.OnPaint()
34500         * ToolTip.cs: Made ToolTipWindow reusable for other controls
34501         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
34502         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
34503         * AxHost.cs: Added
34504         * ButtonBase.cs: Moved base.OnPaint() call to end of method
34505         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
34506           to ToolTip.ToolTipWindow for drawing and size methods; this allows
34507           reuse of ToolTipWindow by other controls
34508         * SizeGrip.cs: Moved base.OnPaint() call to end of method
34509         * XplatUIX11.cs: Now clipping drawing area (experimental)
34510         * PictureBox.cs: Moved base.OnPaint() call to end of method
34511         * Theme.cs: Fixed ToolTip abstracts to match new format
34512         * ErrorProvider.cs: Implemented
34513
34514 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
34515
34516         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
34517         * LinkLabel.cs:
34518                 - Adds cursors
34519                 - Handles focus
34520                 - Implements LinkBehavior
34521                 - Fixes many issues
34522
34523 2005-05-03  Jackson Harper  <jackson@ximian.com>
34524
34525         * ListView.cs: Calculate the scrollbar positioning on resize and
34526         paint, so they get put in the correct place.
34527
34528 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
34529
34530         * ColorDialogs.cs: The small color panels are now handled by
34531           SmallColorControl. This fixes drawing of the focus rectangle
34532           and adds a 3D border.
34533
34534 2005-05-03  Peter Bartok  <pbartok@novell.com>
34535
34536         * Control.cs: Modified version of Jonathan Chamber's fix for
34537           double-buffering
34538
34539 2005-05-03  Jackson Harper  <jackson@ximian.com>
34540
34541         * ListView.cs: Remove redraw variable. Control now handles whether
34542         or not a redraw needs to be done, and will only raise the paint
34543         event if redrawing is needed.
34544
34545 2005-05-03  Jackson Harper  <jackson@ximian.com>
34546
34547         * Splitter.cs: No decorations for the splitter form. Cache the
34548         hatch brush.
34549
34550 2005-05-03  Jackson Harper  <jackson@ximian.com>
34551
34552         * TreeView.cs: Use dashed lines to connect nodes. Use the
34553         ControlPaint method for drawing the focus rect instead of doing
34554         that in treeview.
34555
34556 2005-05-02  Peter Bartok  <pbartok@novell.com>
34557
34558         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
34559
34560 2005-04-29  Jackson Harper  <jackson@ximian.com>
34561
34562         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
34563         entire image buffer. Just clear the clipping rectangle.
34564
34565 2005-04-29  Jackson Harper  <jackson@ximian.com>
34566
34567         * ThemeWin32Classic.cs: Don't draw list view items that are
34568         outside the clipping rectangle.
34569
34570 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
34571
34572         * ListBox.cs: added horizontal item scroll
34573
34574 2005-04-29  Jackson Harper  <jackson@ximian.com>
34575
34576         * ThemeWin32Classic.cs: Remove some old debug code that was
34577         causing flicker with the new double buffering code.
34578
34579 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
34580
34581         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
34582         behave like combobox and comboboxlist (still not sure if this is
34583         correct though).
34584
34585 2005-04-28  Jackson Harper  <jackson@ximian.com>
34586
34587         * ThemeWin32Classic.cs: Don't fill the middle of progress
34588         bars. This fills areas outside of the clip bounds that don't need
34589         to be filled.
34590
34591 2005-04-28  Jackson Harper  <jackson@ximian.com>
34592
34593         * Control.cs: Don't expose functionality to touch the image buffers.
34594         * ProgressBar.cs:
34595         * ListView.cs: We do not need to (and no longer can) manipulate
34596         the image buffers directly. All of this is handled by Control.
34597
34598 2005-04-28  Peter Bartok  <pbartok@novell.com>
34599
34600         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
34601           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
34602           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
34603
34604 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
34605
34606         * Combobox:
34607                 - Adjust control's height for non-simple comboboxes (bug fix)
34608                 - Remove dead code
34609         * MenuAPI.cs: remove unused var
34610         * ScrollBar.cs: remove unsed var
34611                  
34612         * ListBox.cs: unselect items when clearing
34613
34614 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
34615
34616         * ListControl.cs: honors OnPositionChanged and default Selected Item
34617         * ListBox.cs: unselect items when clearing
34618
34619 2005-04-27  Jackson Harper  <jackson@ximian.com>
34620
34621         * X11Keyboard.cs: Initialize a default keyboard and give a warning
34622         if a "correct" keyboard is not found. This will make us not crash,
34623         but might give some users bad keyboard layouts...seems to be the
34624         same thing rewind does.
34625
34626 2005-04-27  Jackson Harper  <jackson@ximian.com>
34627
34628         * BindingManagerBase.cs: Attach the current/position changed
34629         handlers to their respective events.
34630
34631 2005-04-27  Jackson Harper  <jackson@ximian.com>
34632
34633         * Control.cs: Make sure that the first WM_PAINT does a full draw,
34634         not just a blit.
34635         * ThemeWin32Classic.cs: Don't fill the background for picture
34636         boxes. This could overright user drawing.
34637         * ComboBox.cs: Just fill the clipping rect not the entire client
34638         rect when drawing the background. This prevents pieces of the
34639         image buffer from getting overwritten and is theoretically faster.
34640
34641 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
34642
34643         * ComboBox.cs: Databinding support fixes, fire missing events
34644         * ListControl.cs: implement missing methods and properties, fixes
34645         * ThemeWin32Classic.cs: Databiding support on Drawing
34646         * CheckedListBox.cs: Databinding support fixes, fire missing events
34647         * ListBox.cs: Databinding support fixes, fire missing events
34648         
34649 2005-04-25  Peter Bartok  <pbartok@novell.com>
34650
34651         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
34652
34653 2005-04-25  Jackson Harper  <jackson@ximian.com>
34654
34655         * TreeView.cs: Use the horizontal scrollbars height not width when
34656         determining how much of the client area is available.
34657
34658 2005-04-25  Jackson Harper  <jackson@ximian.com>
34659
34660         * Control.cs: Double buffering is handled differently now. As per
34661         the spec, the extra buffer is created in the WM_PAINT message and
34662         passed down to the control's drawing code.
34663         * GroupBox.cs:
34664         * Label.cs:
34665         * CheckBox.cs:
34666         * ProgressBar.cs:
34667         * RadioButton.cs:
34668         * ColorDialog.cs:
34669         * ComboBox.cs:
34670         * PropertyGridView.cs:
34671         * UpDownBase.cs:
34672         * MessageBox.cs:
34673         * MenuAPI.cs:
34674         * ListView.cs:
34675         * ButtonBase.cs:
34676         * SizeGrip.cs:
34677         * ScrollBar.cs:
34678         * ListBox.cs:
34679         * TrackBar.cs:
34680         * ToolBar.cs:
34681         * PictureBox.cs:
34682         * DateTimePicker.cs:
34683         * StatusBar.cs:
34684         * TreeView.cs: Update to new double buffering system.
34685         * MonthCalendar.cs: Uncomment block, as Capture is now
34686         working. Update to new double buffering
34687         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
34688         * PaintEventArgs.cs: New internal method allows us to set the
34689         graphics object. This is used for double buffering.
34690         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
34691         rectangle. The internal paint_area var has been removed from
34692         StatusBar. The clipping rect should be used instead.
34693         * Theme.cs: Give the PictureBox drawing method a clipping rect.
34694         * TabPage.cs: The RefreshTabs method was removed, so just call the
34695         tab controls Refresh method now.
34696         * TabControl.cs: Update to new double buffering. Make sure the
34697         handle is created before sizing the tab pages, otherwise we will
34698         get stuck in a loop.
34699
34700 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
34701
34702         * LinkLabel.cs: Fix typo, bug #74719; patch
34703           from Borja Sanchez Zamorano
34704
34705 2005-04-22  Jackson Harper  <jackson@ximian.com>
34706
34707         * TreeNode.cs: Implement Handle stuff.
34708         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
34709
34710 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
34711
34712         * DataGridTextBoxColumn.cs: call base constructors, fixes
34713         * GridColumnStylesCollection.cs: missing events, methods, and functionality
34714         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
34715         * DataGridTableStyle.cs: implements create default column styles
34716         * DataGridBoolColumn.cs: which types can handle
34717         * DataGrid.cs: missing methods, fixes, new functionality
34718         * DataGridColumnStyle.cs: fixes
34719
34720 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
34721         * FolderBrowserDialog.cs:
34722         - Use a thread to fill the TreeView
34723         - Adjusted some sizes
34724
34725 2005-04-19  Peter Bartok  <pbartok@novell.com>
34726
34727         * LinkLabel.cs: (Re-)create the pieces when setting the Text
34728           property. Fixes #74360.
34729
34730 2005-04-19  Jackson Harper  <jackson@ximian.com>
34731
34732         * XEventQueue.cs: Lock when getting the lockqueue size.
34733         * PictureBox.cs: Call base OnPaint
34734         
34735 2005-04-19  Peter Bartok  <pbartok@novell.com>
34736
34737         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
34738           messages were no longer being processed (this broke BeginInvoke)
34739
34740           
34741 2005-04-18  Jackson Harper  <jackson@ximian.com>
34742
34743         * TreeView.cs: buglet that caused node images to get drawn
34744         regardless of whether or not they were in the clipping rectangle.
34745
34746 2005-04-18  Jackson Harper  <jackson@ximian.com>
34747
34748         * CurrencyManager.cs: There are four rules for GetItemProperties:
34749         - If the type is an array use the element type of the array
34750         - If the type is a typed list, use the type
34751         - If the list contains an Item property that is not an object, use
34752         that property
34753         - use the first element of the list if there are any elements in
34754         the list.
34755         
34756 2005-04-17  Jackson Harper  <jackson@ximian.oom>
34757
34758         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
34759         click. This handles offsets for scrolling properly and reduces
34760         memory. Also fixed GetNode to not offset now that TopNode works
34761         properly.
34762         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
34763         
34764 2005-04-17  Jackson Harper  <jackson@ximian.com>
34765
34766         * CursorConverter.cs: Initial implementation.
34767
34768 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
34769
34770         * ListControl.cs: work towards complex data binding support on ListControl
34771         * CurrencyManager.cs: work towards complex data binding support on ListControl
34772         * ListBox.cs: work towards complex data binding support on ListControl
34773
34774
34775 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
34776
34777         * GridTableStylesCollection.cs: fixes name and constructor
34778         * DataGridTableStyle.cs: fixes
34779         * DataGridBoolColumn.cs: fixes names and constructors
34780         * DataGrid.cs: define methods and properties. Some init implementations
34781         * DataGridCell.cs: define methods and properties. Some init implementations
34782         * GridTablesFactory.cs: Define methods and properties
34783
34784 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
34785
34786         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
34787         graphics port changes.  We still want the coordinates in global screen
34788         coordinates.
34789
34790 2005-04-14  Jackson Harper  <jackson@ximian.com>
34791
34792         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
34793         check plus minus or checkbox clicks unless those features are enabled.
34794
34795 2005-04-14  Jackson Harper  <jackson@ximian.com>
34796
34797         * TreeView.cs: Add methods for setting the top and bottom visible
34798         nodes. TreeNode::EnsureVisible uses these methods.
34799         * TreeNode.cs: Implement EnsureVisible
34800
34801 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
34802
34803         * Form.cs: Pospone menu assignation if the window has not been created yet
34804         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
34805         size and position
34806
34807 2005-04-12  Jackson Harper  <jackson@ximian.com>
34808
34809         * TreeView.cs: Set the TopNode properly when scrolling
34810         occurs. This has the added benifit of reducing the amount of
34811         walking that needs to be done when drawing. Also removed an old
34812         misleading TODO.
34813         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
34814         
34815 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
34816
34817         * Timer.cs: fixes interval setting when the timer is already enabled
34818         
34819 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
34820
34821         * FolderBrowserDialog.cs: First approach
34822
34823 2005-04-09  Peter Bartok  <pbartok@novell.com>
34824
34825         * FolderBrowserDialog: Added
34826
34827 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
34828
34829         * LinkLabel.cs: move drawing code into the theme
34830         * ThemeWin32Classic.cs: drawing code and painting background bugfix
34831         * Theme.cs: define DrawLinkLabel method
34832
34833 2005-04-05  Jackson Harper  <jackson@ximian.com>
34834
34835         * BindingContext.cs: Use weak references so these bad actors don't
34836         stay alive longer then they need to.
34837
34838 2005-04-05  Jackson Harper  <jackson@ximian.com>
34839
34840         * ListControl.cs: Basic implementation of complex databinding.
34841         * ComboBox.cs:
34842         * ListBox.cs: Add calls to ListControl databinding methods.
34843
34844 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
34845
34846         * FileDialog.cs:
34847           - Don't change PopupButtonState to Normal when the
34848             PopupButton gets pressed several times.
34849           - Renamed ButtonPanel to PopupButtonPanel
34850
34851 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
34852
34853         * ColorDialog.cs: Use cached objects instead of creating them
34854         * LinkLabel.cs: Use cached objects instead of creating them
34855         * Splitter.cs: Use cached objects instead of creating them
34856         * FontDialog.cs: Use cached objects instead of creating them
34857         * PropertyGridView.cs: Use cached objects instead of creating them
34858         * MessageBox.cs: Use cached objects instead of creating them
34859         * FileDialog.cs: Use cached objects instead of creating them
34860         * ThemeWin32Classic.cs: Use cached objects instead of creating them
34861         * TreeView.cs: Use cached objects instead of creating them
34862         
34863 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
34864
34865         * Control.cs: use Equals to compare the font since no == op
34866         * ScrollBar.cs: use Equals to compare the font since no == op
34867
34868 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
34869
34870         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
34871
34872 2005-04-01  Jackson Harper  <jackson@ximian.com>
34873
34874         * Binding.cs: Implement IsBinding.
34875         * BindingManagerBase.cs:
34876         * PropertyManager.cs:
34877         * CurrencyManager.cs: Add IsSuspended property.
34878
34879 2005-04-01  Jackson Harper  <jackson@ximian.com>
34880
34881         * Binding.cs: Had some IsAssignableFrom calls backwards.
34882
34883 2005-04-01  Jackson Harper  <jackson@ximian.com>
34884
34885         * Binding.cs: Handle null data members when pulling data.
34886         * PropertyManager.cs: Handle the data member being a property that
34887         does not exist.
34888
34889 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
34890
34891         * DataGridTextBoxColumn.cs: fixes signature
34892         * DataGrid.cs: calls right constructor
34893
34894 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
34895
34896         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
34897         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
34898         * GridTableStylesCollection.cs: implements GridTableStylesCollection
34899         * DataGridTableStyle.cs: implements DataGridTableStyle
34900         * DataGridBoolColumn.cs: implements DataGridBoolColumn
34901         * DataGridTextBox.cs: implements DataGridTextBox
34902         * DataGridColumnStyle.cs: implements DataGridColumnStyle
34903
34904 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
34905
34906         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
34907
34908 2005-03-29  Peter Bartok  <pbartok@novell.com>
34909
34910         * Application.cs:
34911           - Properly implemented CompanyName property
34912           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
34913             returns a path that includes CompanyName, ProductName and
34914             Version (fixes bug #70330)
34915
34916 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
34917
34918         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
34919           fixes bug #72588.
34920
34921 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34922
34923         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
34924         
34925           - Added ReadOnly CheckBox
34926           - Further refactoring: moved some code from Open-/SaveFileDialog
34927             to FileDialog
34928
34929 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34930
34931         * OpenFileDialog.cs: Fixed CheckFileExists
34932         * FileDialog.cs:
34933           Moved FileView and DirComboBox outside FileDialog class.
34934           They can now be used outside FileDialog
34935
34936 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34937
34938         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
34939         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
34940
34941 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34942
34943         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34944           - Added missing CreatePrompt property in SaveDialog
34945           - Overall SaveDialog handling should be better now
34946           - Added non standard ShowHiddenFiles property
34947           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
34948           - Added InitialDirectory and RestoreDirectory support
34949
34950 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
34951
34952         * FileDialog.cs: Made dirComboBox usable
34953
34954 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
34955
34956         * FileDialog.cs: Added Filter support (case sensitiv)
34957
34958 2005-03-24  Jackson Harper  <jackson@ximian.com>
34959
34960         * TabControl.cs: Need a couple more pixels for the lines.
34961
34962 2005-03-23  Jackson Harper  <jackson@ximian.com>
34963
34964         * TabControl.cs: Give the tab page focus when it is selected.
34965
34966 2005-03-23  Jackson Harper  <jackson@ximian.com>
34967
34968         * TabControl.cs: Account for the drawing of tabs borders when
34969         invalidating. If the slider was clicked dont do click detection on
34970         the tabs.
34971
34972 2005-03-23  Jackson Harper  <jackson@ximian.com>
34973
34974         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
34975
34976 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
34977
34978         * CategoryGridEntry.cs: Added
34979         * GridItem.cs: Added helper properties
34980         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
34981         * GridEntry.cs: Updated code for collection
34982         * PropertyGrid.cs: Cleaned up some formatting
34983         * PropertyGridView.cs: Added drop down functionality for enums.
34984         * GridItemCollection.cs: Added enumerator logic
34985         * PropertyGridEntry.cs: Added
34986
34987 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34988
34989         * FileDialog.cs:
34990           - Removed unnecessary commented code
34991           - Fixed handling for entering the filename manually in the combobox
34992
34993 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34994
34995         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
34996
34997 2005-03-18  Peter Bartok  <pbartok@novell.com>
34998
34999         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
35000           them being touching the border
35001
35002 2005-03-18  Peter Bartok  <pbartok@novell.com>
35003
35004         * TextControl.cs: Quick hack to center text better
35005
35006 2005-03-18  Peter Bartok  <pbartok@novell.com>
35007
35008         * ControlPaint.cs:
35009           - Don't throw NotImplemented exceptions, just print a notice once
35010             instead (requested by Miguel). This makes running existing SWF
35011             apps a bit easier
35012         * Control.cs:
35013           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
35014           - Added context menu trigger on right click
35015         * Panel.cs: Trigger invalidate on resize
35016         * StatusBar.cs:
35017           - Removed old double-buffer drawing
35018           - Added ResizeRedraw style to force proper update of statusbar
35019         * ListView.cs:
35020           - Removed debug output
35021         * ThemeWin32Classic.cs:
35022           - Fixed drawing of status bar, now draws Text property if there
35023             are no defined panels
35024
35025 2005-03-18  Jackson Harper  <jackson@ximian.com>
35026
35027         * ImageList.cs: When the image stream is set pull all the images
35028         from it.
35029         * ImageListStreamer.cs: Implement reading image list streams.
35030
35031 2005-03-18  Peter Bartok  <pbartok@novell.com>
35032
35033         * ThemeWin32Classic.cs (DrawPictureBox):
35034           - Fixed calculations for centered drawing
35035           - Fixed drawing for normal mode, not scaling the image on normal
35036
35037 2005-03-18  Peter Bartok  <pbartok@novell.com>
35038
35039         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
35040           textbox
35041         * FileDialog.cs:
35042           - Made Open/Save button the accept button for FileDialog
35043           - Tied the cancel button to the IButtonControl cancel button
35044           - Save/Open now properly builds the pathname
35045           - Now handles user-entered text
35046           - Preventing crash on right-click if no item is selected
35047           - Fixed Text property, now uses contents of textbox
35048           - Fixed SelectedText property, now just returns the text part that
35049             is selected in the text box
35050
35051 2005-03-18  Jackson Harper  <jackson@ximian.com>
35052
35053         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
35054         rect, make sure to de-adjust the interior rect after drawing the
35055         tab text.
35056
35057 2005-03-18  Peter Bartok  <pbartok@novell.com>
35058
35059         * MenuAPI.cs: Remove menu *before* executing selected action to
35060           prevent the menu from 'hanging around'
35061           
35062 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
35063
35064         * XplatUIOSX.cs: Implemented WorkingArea property
35065
35066 2005-03-17  Peter Bartok  <pbartok@novell.com>
35067
35068         * XplatUIX11.cs: Fixed menu coord calculations
35069         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
35070           for calculating offsets
35071
35072 2005-03-17  Peter Bartok  <pbartok@novell.com>
35073
35074         * Hwnd.cs: Do not consider menu presence for default client
35075           rectangle location/size
35076         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
35077           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
35078           translation functions
35079         * FileDialog.cs: Fixed (what I presume is a) typo
35080
35081 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
35082
35083         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
35084           X access (avoids X-Async errors)
35085
35086 2005-03-16  Jackson Harper  <jackson@ximian.com>
35087
35088         * TabControl.cs: Raise the SelectedIndexChanged event.
35089
35090 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
35091
35092         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
35093           - Removed vertical ToolBar and replaced it with a custom panel
35094             (desktop and home button already work)
35095           - Added Help button (some controls get resized or relocated then)
35096           - Draw correct text depending on Open or Save.
35097           - Fixed some typos...
35098
35099 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
35100
35101         * ScrollBar.cs:
35102           - Only change Maximum and Minimum when need it (bug fix)
35103
35104 2005-03-15  Peter Bartok  <pbartok@novell.com>
35105
35106         * Form.cs: Use Handle for icon, to trigger creation if
35107           the window does not yet exist
35108         * Control.cs:
35109           - CanSelect: Slight performance improvement
35110           - Focus(): Preventing possible recursion
35111           - Invalidate(): Removed ControlStyle based clear flag setting
35112           - WM_PAINT: fixed logic for calling OnPaintBackground
35113           - WM_ERASEBKGND: Fixed logic, added call to new driver method
35114             EraseWindowBackground if the control doesn't paint background
35115         * XplatUIWin32.cs:
35116           - Moved EraseWindowBackground() method to internal methods
35117           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
35118             is sent via SendMessage on BeginPaint call on Win32
35119         * XplatUIX11.cs:
35120           - Added EraseWindowBackground() method
35121           - No longer sends WM_ERASEBKGND on .Expose, but on call to
35122             PaintEventStart, which more closely matches Win32 behaviour
35123           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
35124           - Fixed SetFocus() to properly deal with client and whole windows
35125         * Hwnd.cs: Added ErasePending property
35126         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
35127         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
35128
35129 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
35130
35131         * XplatUIOSX.cs:
35132           - Fix hard loop when timers exist.
35133           - Fix bugs with middle and right click for 3 button mice.
35134
35135 2005-03-11  Peter Bartok  <pbartok@novell.com>
35136
35137         * XplatUIX11.cs:
35138           - get_WorkingArea: Need to call X directly, GetWindowPos only
35139             returns cached data now
35140           - Added sanity check to GetWindowPos hwnd usage
35141
35142 2005-03-11  Jackson Harper  <jackson@ximian.com>
35143
35144         * BindingManagerBase.cs: This method isn't used anymore as
35145         PullData now updates the data in the control.
35146
35147 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
35148
35149         * Form.cs: fixes menu drawing on X11
35150         * MenuAPI.cs:  fixes menu drawing on X11
35151
35152 2005-03-11  Peter Bartok  <pbartok@novell.com>
35153
35154         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
35155           from Jonathan Gilbert; should fix bug #73606
35156         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
35157           in Screen coordinates. Thanks, Jordi.
35158         * Form.cs: Added missing attribute
35159
35160 2005-03-11  Peter Bartok  <pbartok@novell.com>
35161
35162         * Form.cs:
35163           - Rudimentary Mdi support
35164           - Removed outdated FormParent code
35165           - Implemented lots of missing properties and methods, still missing
35166             transparency support
35167           - Added missing attributes
35168           - Implemented support for MaximumBounds
35169           - Added firing of various events
35170         * XplatUI.cs: Added SetIcon() method
35171         * XplatUIDriver.cs: Added SetIcon() abstract
35172         * XplatUIOSX.cs: Stubbed out SetIcon() method
35173         * XplatUIX11.cs:
35174           - Implemented SetIcon() support
35175           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
35176           - Switched to unix line endings
35177         * XplatUIWin32.cs:
35178           - Made POINT internal so for can access it as part of MINMAX
35179           - Implemented SetIcon() support
35180           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
35181             native Mdi support again, might have to go managed)
35182         * Control.cs: Now fires the StyleChanged event
35183         * MdiClient.cs: Added; still mostly empty
35184
35185 2005-03-10  Peter Bartok  <pbartok@novell.com>
35186
35187         * SaveFileDialog.cs: Added emtpy file
35188
35189 2005-03-08  Peter Bartok  <pbartok@novell.com>
35190
35191         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
35192           in turn triggers OnCreateContro) when creating a handle for the
35193           first time.
35194         * TextControl.cs: Fixed endless loop in certain cases when
35195           replacing the current selection
35196
35197 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
35198
35199         * ScrollBar.cs:
35200           - Honors NewValue changes in Scroll events allowing apps to change it
35201           - Adds First and Last Scroll events
35202           - Fixes Thumb events
35203
35204 2005-03-07  Peter Bartok  <pbartok@novell.com>
35205
35206         * Hwnd.cs: Added DefaultClientRectangle property
35207         * XplatUI.cs: Now using the X11 driver Where() method, which provides
35208           more detailed debug information
35209         * XplatUIX11.cs:
35210           - Fixed size-change feedback loop, where we would pull an old size
35211             off the queue and mistakenly change our window's size to an
35212             earlier value
35213           - Now compressing ConfigureNotify events, to reduce looping and
35214             redraw issues
35215         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
35216           is called
35217
35218 2005-03-07  Jackson Harper  <jackson@ximian.com>
35219
35220         * Binding.cs: Push data pushes from data -> property. Check if the
35221         property is readonly when attempting to set it.
35222
35223 2005-03-07  Jackson Harper  <jackson@ximian.com>
35224
35225         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
35226         instead of IsSubclassOf. Pulling data now sets the value on the
35227         control.
35228         * PropertyManager.cs:
35229         * CurrencyManager.cs: Just need to pull data when updating now,
35230         because PullData will set the value on the control.
35231
35232 2005-03-04  Jackson Harper  <jackson@ximian.com>
35233
35234         * Binding.cs: Implement data type parsing and converting on pulled
35235         data. TODO: Are there more ways the data can be converted?
35236
35237 2005-03-04  Jackson Harper  <jackson@ximian.com>
35238
35239         * Binding.cs: Support <Property>IsNull checks. Also bind to the
35240         controls Validating method so we can repull the data when the
35241         control loses focus.
35242
35243 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
35244
35245         * ColumnHeader.cs:
35246           - Fixes null string format
35247           
35248         * ListView.cs:
35249           - Adds enum type checks
35250           - Fixes redrawing and recalc need after changing some properties
35251           - Fixes on focus_item set after the event
35252           - Fixes adding columns after the control has been created
35253           
35254         * ThemeWin32Classic.cs:
35255           - Fixes CheckBox focus rectangle
35256           - Fixes ColumnHeader drawing
35257
35258
35259 2005-03-03  Jackson Harper  <jackson@ximian.com>
35260
35261         * Binding.cs: Bind to <Property>Changed events so we can detect
35262         when properties are changed and update the data.
35263
35264 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
35265
35266         * ImageList.cs:
35267           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
35268           - Fixes ImageList constructor with ImageList container
35269           - Fixes image scaling (wrong parameters at DrawImage)
35270
35271 2005-02-02  Jackson Harper  <jackson@ximian.com>
35272
35273         * Binding.cs: Make property searches case-insensitive. Eliminate
35274         some duplicated code.
35275
35276 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
35277
35278         * ComboBox.cs:
35279                 - Handle focus event
35280                 - Fix scrollbar events
35281                 - Discard highlighted item if remove it
35282                 - Fixes SelectedItem with strings
35283
35284 2005-03-01  Peter Bartok  <pbartok@novell.com>
35285
35286         * Control.cs:
35287           - Fixed Visible property, now follows (once again) parent chain
35288             to return false if any control in the chain is visible=false
35289           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
35290           - Fixed several places where is_visible instead of Visible was used
35291           - Implemented FIXME related to focus selection when setting focused
35292             control to be invisible
35293
35294         * XplatUIWin32.cs: Now using proper method to find out if window is
35295           visible. Thanks to Jordi for pointing it out
35296
35297 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
35298
35299         * ComboBox.cs: show/hide scrollbar instead of creating it
35300
35301 2005-02-27  Jackson Harper  <jackson@ximian.com>
35302
35303         * CurrencyManager.cs: Add PositionChanged stuff.
35304
35305 2005-02-27  Peter Bartok  <pbartok@novell.com>
35306
35307         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
35308         * XplatUIOSX.cs: Added GetMenuOrigin() stub
35309         * XplatUIWin32.cs: Implemented GetMenuOrigin()
35310         * XplatUIX11.cs:
35311           - Implemented GetMenuDC()
35312           - Implemented GetMenuOrigin()
35313           - Implemented ReleaseMenuDC()
35314           - Implemented generation of WM_NCPAINT message
35315           - Implemented generation and handling of WM_NCCALCSIZE message
35316         * Form.cs: Added debug helper message for Jordi's menu work
35317         * Hwnd.cs:
35318           - Modified ClientRect property; added setter, fixed getter to handle
35319             setting of ClientRect
35320           - Added MenuOrigin property
35321
35322 2005-02-26  Peter Bartok  <pbartok@novell.com>
35323
35324         * XplatUIX11.cs:
35325           - Destroys the caret if a window that's being destroyed contains it
35326           - Ignores expose events coming from the X11 queue for windows that
35327             already are destroyed
35328           - Now uses the proper variable for handling DestroyNotify, before we
35329             marked the wrong window as destroyed
35330           - Improved/added some debug output
35331
35332 2005-02-26  Peter Bartok  <pbartok@novell.com>
35333
35334         * X11Keyboard.cs: Fixes to work on 64bit systems
35335
35336 2005-02-26  Peter Bartok  <pbartok@novell.com>
35337
35338         * Control.cs:
35339           - Now calling OnHandleDestroyed from DestroyHandle()
35340             instead of Dispose()
35341           - Removed bogus call to controls.Remove() from DestroyHandle()
35342
35343 2005-02-26  Peter Bartok  <pbartok@novell.com>
35344
35345         * Control.cs: Properly destroy child windows when our handle is
35346           destroyed
35347
35348 2005-02-25  Peter Bartok  <pbartok@novell.com>
35349
35350         * XplatUI.cs:
35351           - Added 'DriverDebug' define to allow tracing XplatUI API calls
35352           - Alphabetized Static Methods and Subclasses
35353
35354         * XplatUIX11.cs:
35355           - Added XException class to allow custom handling of X11 exceptions
35356           - Created custom X11 error handler, tied into XException class
35357           - Added support for MONO_XEXCEPTIONS env var to allow the user
35358             to either throw an exception on X errors or continue running
35359             after displaying the error
35360           - Added handling of DestroyNotify message
35361           - Added handler for CreateNotify message (still disabled)
35362           - Improved (tried to at least) Where method to provide file and lineno
35363         * X11Structs.cs:
35364           - Added XErrorHandler delegate
35365           - Added XRequest enumeration (to suppor translation of errors)
35366
35367 2005-02-25  Jackson Harper  <jackson@ximian.com>
35368
35369         * PropertyManager.cs: Implement editing features
35370         * CurrencyManager.cs:
35371         * Binding.cs: First attempt at UpdateIsBinding
35372         * BindingManagerBase.cs: Call UpdateIsBinding before
35373         pushing/pulling data.
35374
35375 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
35376
35377         * MenuAPI.cs: Respect disabled items
35378         * ThemeWin32Classic.cs
35379                 - Caches ImageAttributes creation for DrawImageDisabled
35380                 - Fixes vertical menu line drawing
35381                 - Draws disabled arrows in disable menu items
35382
35383 2005-02-24  Peter Bartok  <pbartok@novell.com>
35384
35385         * Hwnd.cs:
35386           - Added UserData property to allow associating arbitrary objects
35387             with the handle
35388           - Fixed leak; now removing Hwnd references from static windows array
35389         * XplatUIWin32.cs:
35390           - Fixed Graphics leak in PaintEventEnd
35391           - Removed usage of HandleData, switched over to Hwnd class
35392         * HandleData.cs: Removed, obsoleted by Hwnd.cs
35393
35394 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
35395
35396         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
35397         * ScrollBar.cs: Fixes bug
35398         * TrackBar.cs: removes death code, clipping, mimize refreshes,
35399          keyboard navigation enhancements
35400
35401 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
35402
35403         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
35404         * GroupBox.cs: Add control styles
35405         * Label.cs: Add control styles
35406         * UpDownBase.cs: Add control styles
35407         * ListBox.cs: Add control styles
35408         * XplatUIWin32.cs: Fixes wrong parameter order
35409
35410
35411 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
35412
35413         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
35414
35415 2005-02-23  Jackson Harper  <jackson@ximian.com>
35416
35417         * PropertyManager.cs: Implement property binding. This doesn't
35418         seem to work yet though as (I think) there are some bugs in
35419         System.ComponentModel.PropertyDescriptor.
35420         * BindingContext.cs: Use new PropertyManager constructor.
35421
35422 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
35423
35424         * ProgressBar.cs: use clip region in ProgressBar
35425         * ThemeWin32Classic.cs: use clip region in ProgressBar
35426
35427 2004-02-22  Jackson Harper  <jackson@ximian.com>
35428
35429         * BindingsCollection.cs: Remove some debug code.
35430
35431 2005-02-22  Jackson Harper  <jackson@ximian.com>
35432
35433         * BindingContext.cs:
35434         * ControlBindingsCollection.cs:
35435         * CurrencyManager.cs:
35436         * Binding.cs:
35437         * BindingManagerBase.cs: Initial implementation
35438         * BindingsCollection.cs: Add an internal contains method that the
35439         BindingManagerBase uses to ensure bindings aren't added twice to
35440         the collection.
35441         * PropertyManager.cs: Stubbed out.
35442         * Control.cs:
35443         * ContainerControl.cs: Hook up databinding
35444         
35445 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
35446
35447         * XplatUIOSX.cs:
35448           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
35449           Fixed Invalidate/Update chain.
35450           Fixed tons of other minor bugs (this is almost a complete rewrite).
35451
35452 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
35453
35454         * ComboBox.cs: do subcontrol creation when the control is created
35455
35456 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
35457
35458         * Label.cs: fixes image drawing (image and imagelist)
35459         * ThemeWin32Classic.cs: cache brushes
35460         
35461 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
35462
35463         * Form.cs: Move menu drawing code to Theme class
35464         * ComboBox.cs: Move ComboBox drawing code to Theme class
35465         * MenuItem.cs: Move menu drawing code to Theme class
35466         * MenuAPI.cs: Move menu drawing code to Theme class
35467         * ThemeWin32Classic.cs: New methods
35468         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
35469         * ListBox.cs: Move Listbox drawing code to Theme class
35470         * Theme.cs: New methods
35471
35472 2005-02-20  Peter Bartok  <pbartok@novell.com>
35473
35474         * Control.cs:
35475           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
35476             only process mnemonics on those)
35477           - Fixed event sequence for key handling; first calling
35478             ProcessKeyEventArgs now
35479         * TextBoxBase.cs:
35480           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
35481             for processing non-character keys
35482           - Fixed WM_CHAR to generate proper event sequence before processing
35483         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
35484           generation
35485
35486 2005-02-19  Peter Bartok  <pbartok@novell.com>
35487
35488         * UserControl.cs: Added TextChanged event; added attributes
35489         * SizeGrip.cs: Implemented resizing and optional display of grip
35490         * Form.cs: Fixed attribute
35491         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
35492           Changed meaning of ScrollWindow bool argument; instead of the
35493           clear attribute (which will be true usually anyway), it gives the
35494           option of moving child controls as well.
35495         * XplatUIX11.cs:
35496           - Changed to match new ScrollWindow argument
35497           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
35498             now handles the implicit parent window a WM puts around us
35499         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
35500           to work)
35501         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
35502         * TreeView.cs: Adjusted to new ScrollWindow arguments
35503
35504 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
35505
35506         * Form.cs: Menu integration with non-client area
35507         * MenuItem.cs: Menu integration with non-client area
35508         * MenuAPI.cs: Menu integration with non-client area
35509
35510 2005-02-18  Peter Bartok  <pbartok@novell.com>
35511
35512         * MethodInvoker.cs: Added
35513         * MdiLayout.cs: Added
35514         * SendKeys.cs: Started implementation
35515         * ErrorIconAlignment.cs: Added
35516
35517 2005-02-18  Peter Bartok  <pbartok@novell.com>
35518
35519         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
35520         * Form.cs: Added handling for Menu-related Non-client messages
35521
35522 2005-02-17  Peter Bartok  <pbartok@novell.com>
35523
35524         * UpDownBase.cs: Fixed typo, compilation errors
35525         * DomainUpDown.cs: Fixed attribute value
35526
35527 2005-02-16  Miguel de Icaza  <miguel@novell.com>
35528
35529         * UpDownBase.cs: Attach entry events.
35530         Propagate events.
35531         Add ForeColor property, Focused, InterceptArrowKeys (interception
35532         does not work yet).
35533
35534 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
35535
35536         * Form.cs:
35537                 - Redraw non client are on Setmenu
35538                 - Calc proper menu starting point
35539
35540 2005-02-17  Peter Bartok  <pbartok@novell.com>
35541
35542         * Application.cs: Fixed message_filter check
35543
35544 2005-02-17  Peter Bartok  <pbartok@novell.com>
35545
35546         * Application.cs: Now calls registered message filters
35547         * DockStyle.cs: Fixed attribute
35548         * Form.cs: Fixed attribute
35549         * Menu.cs: Fixed attribute
35550         * ToolTip.cs: Fixed attribute
35551         * TreeNode.cs: Added missing attributes and arranged in regions
35552         * PropertyGrid.cs: Fixed signatures
35553         * TreeNodeCollection.cs: Added attributes
35554         * Splitter.cs: Added missing attributes; arranged into regions
35555         * TabPage.cs: Added missing attributes; arranged into regions
35556         * TextBoxBase.cs: Added missing attributes
35557         * TextBox.cs: Added missing attributes
35558         * ArrangeDirection.cs: Added missing attributes
35559         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
35560         * ToolBarButton.cs: Fixed attributes
35561         * AnchorStyles.cs: Fixed attribute
35562         * TrackBar.cs: Fixed attributes
35563         * TabControl.cs: Added missing attributes and arranged into regions
35564         * ToolBar.cs: Fixed attribute
35565         * StatusBar.cs: Fixed signature, organized into regions and added
35566           attributes
35567         * StatusBarPanel.cs: Fixed attributes
35568         * ContentsResizedEventArgs.cs: Implemented
35569         * ContentsResizedEventHandler.cs: Implemented
35570         * DateBoldEventArgs.cs: Implemented
35571         * DateBoldEventHandler.cs: Implemented
35572         * UpDownEventArgs.cs: Implemented
35573         * UpDownEventHandler.cs: Implemented
35574         
35575 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
35576
35577         * Form.cs: first Menu NC refactoring
35578         * MenuAPI.cs: first Menu NC refactoring
35579         
35580 2005-02-16  Peter Bartok  <pbartok@novell.com>
35581
35582         * ImeMode.cs: Added missing attributes
35583         * Menu.cs: Fixed attribute
35584         * GroupBox.cs: Fixed attribute
35585         * Label.cs: Fixed attribute
35586         * ColorDialog.cs (RunDialog): Removed TODO attribute
35587         * ComboBox.cs: Fixed attributes
35588         * ListControl.cs: Added missing attributes
35589         * PropertyGrid.cs: Fixed attributes
35590         * Control.cs: Fixed attributes
35591         * ListViewItem.cs: Added TypeConverter attribute
35592         * NotifyIcon.cs: Fixed attributes
35593         * ListView.cs: Fixed attributes
35594         * ButtonBase.cs: Fixed attribute
35595         * ImageList.cs: Added missing attributes
35596         * ContainerControl.cs: Fixed signature
35597         * CheckedListBox.cs: Fixed attribute; added missing attributes
35598         * Panel.cs: Fixed attributes
35599         * PropertyTabChangedEventArgs.cs: Added missing attribute
35600         * PropertyValueChangedEventArgs.cs: Added missing attribute
35601         * Binding.cs: Fixed attribute
35602         * ListViewItemConverter: Implemented ListViewSubItemConverter class
35603         * ListBox.cs: Fixed attribute; added missing attributes;
35604         * ScrollableControl.cs: Added missing attributes
35605         * PictureBox.cs: Added missing attributes; implemented missing property
35606         * DateTimePicker.cs: Added missing attributes
35607         * Theme.cs (ToolWindowCaptionHeight): Fixed type
35608         * MonthCalendar.cs: Fixed attributes
35609         * StatusBarPanel.cs: Added missing attributes
35610         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
35611
35612 2005-02-16  Peter Bartok  <pbartok@novell.com>
35613
35614         * TextBoxBase.cs: The previous method to enforce height yet remember
35615           the requested high was less than ideal, this is an attempt to do
35616           it better.
35617         * Control.cs: Added comment about possible problem
35618         * Copyright: Updated format
35619         * GridItemType.cs: Fixed swapped values
35620
35621 2005-02-15  Jackson Harper  <jackson@ximian.com>
35622
35623         * BaseCollection.cs: Use property so we never access an
35624         uninitialized list. Also initialize the list in the property.
35625
35626 2005-02-15  Peter Bartok  <pbartok@novell.com>
35627
35628         * GroupBox.cs (ProcessMnemonic): Implemented
35629         * Label.cs (ProcessMnemonic): Implemented
35630         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
35631           hotkeys
35632
35633 2005-02-15  Peter Bartok  <pbartok@novell.com>
35634
35635         * RadioButton.cs (ProcessMnemonic): Implemented
35636         * CheckBox.cs (ProcessMnemonic): Implemented
35637         * Control.cs:
35638           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
35639             handling
35640           - Added internal method to allow calling ProcessMnemonic from other
35641             controls
35642         * ContainerControl.cs:
35643           - Started support for handling validation chain handling
35644           - Implemented ProcessMnemonic support
35645           - Added Select() call to Active, to make sure the active control
35646             receives focus
35647         * Form.cs: Setting toplevel flag for Forms (this was lost in the
35648           FormParent rewrite)
35649         * ThemeWin32Classic.cs:
35650           - DrawCheckBox(): Fixed stringformat to show hotkeys
35651           - DrawRadioButton(): Fixed stringformat to show hotkeys
35652         * CommonDialog.cs: Removed WndProc override, not needed
35653
35654 2005-02-14  Peter Bartok  <pbartok@novell.com>
35655
35656         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
35657           missed those in the rewrite
35658
35659 2005-02-14  Miguel de Icaza  <miguel@novell.com>
35660
35661         * NumericUpDown.cs (Increment, ToString): Add.
35662         (DecimalPlaces): implement.
35663         
35664         Add attributes.
35665         
35666         * UpDownBase.cs: Add the designer attributes.
35667
35668 2005-02-13  Peter Bartok  <pbartok@novell.com>
35669
35670         * Panel.cs: Removed border_style, now in Control
35671         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
35672           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
35673
35674 2005-02-13  Peter Bartok  <pbartok@novell.com>
35675
35676         * MouseButtons.cs: Added missing attributes
35677         * XplatUIStructs.cs: Added enumeration for title styles
35678         * LeftRightAlignment.cs: Added missing attributes
35679         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
35680           it compatible with Graphics.FromHwnd()
35681         * SelectedGridItemChangedEventArgs.cs: Fixed property type
35682         * Keys.cs: Added missing attributes
35683         * SelectionRange.cs: Added missing attributes
35684         * SelectionRangeConverter.cs: Added
35685         * XplatUI.cs:
35686           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
35687             ReleaseMenuDC methods
35688           - Renamed ReleaseWindow to UngrabWindow
35689           - Added proper startup notice to allow version identification
35690         * Form.cs:
35691           - Added missing attributes
35692           - Removed FormParent concept
35693         * Label.cs: Removed border_style field, now in Control
35694         * RadioButton.cs: Now properly selects RadioButton when focus is
35695           received
35696         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
35697         * Control.cs:
35698           - Added missing attributes
35699           - Added borderstyle handling
35700           - Removed FormParent concept support
35701           - Fixed calls to XplatUI to match changed APIs
35702           - Fixed bug that would case us to use disposed Graphics objects
35703           - Removed unneeded internal methods
35704           - PerformLayout(): Fixed to handle DockStyle.Fill properly
35705           - SelectNextControl(): Fixed to properly check common parents
35706         * TextBoxBase.cs: Removed border_style field (now in Control)
35707         * MessageBox.cs:
35708           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
35709             fixed calculations for form size
35710           - Added support for localized strings and icons
35711           - Improved form size calculations, added border
35712         * ListView.cs: Removed border_style field (now in Control)
35713         * X11Structs.cs: Moved several structs from X11 driver here
35714         * X11Keyboard.cs: Changed debug message
35715         * Application.cs: Removed FormParent concept support
35716         * CommonDialog.cs:
35717           - Resetting end_modal flag
35718           - Removed FormParent concept support
35719         * NativeWindow.cs: Removed FormParent concept support
35720         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
35721           Client area and Non-Client whole window to allow support for WM_NC
35722           messages
35723         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
35724           prevent using it until it supports Hwnd as per Geoff Norton's request
35725         * ToolBar.cs: Fixed drawing, was not doing proper drawing
35726         * PictureBox.cs: Removed border_style field, now in Control
35727         * XplatUIWin32.cs: Added new driver methods
35728
35729 2005-02-12  Peter Bartok  <pbartok@novell.com>
35730
35731         * OpacityConverter.cs: Implemented
35732         * Hwnd.cs: Internal class to support drivers that need to emulate
35733           client area/non-client area window behaviour
35734
35735 2005-02-11  Peter Bartok  <pbartok@novell.com>
35736
35737         * KeysConverter.cs: Implemented
35738
35739 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
35740
35741         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
35742         * LinkLabel: Added missing attributes
35743         * MainMenu.cs: fixes ToString
35744         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
35745         * ListBox.cs: fixes event position
35746         * TrackBar.cs: adds missing attributes and events
35747         
35748 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
35749
35750         * MenuItem.cs: Use SystemInformation and bug fixes
35751         * MenuAPI.cs: Use SystemInformation and bug fixes
35752
35753 2005-02-09  Jackson Harper  <jackson@ximian.com>
35754
35755         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
35756         their keystate otherwise things like VK_MENU get stuck "on".
35757
35758 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
35759
35760         * ListBox.cs: Fixes AddRange bug
35761         
35762 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
35763
35764         * ProgressBar.cs
35765                 - Add missing attributes
35766                 - Add missing method
35767                 
35768         * CheckedListBox.cs: Added missing attributes
35769                 - Add missing attributes
35770                 - Remove extra method
35771         
35772         * ComboBox.cs: Added missing attributes
35773         * VScrollBar.cs: Added missing attributes
35774         * ScrollBar.cs:  Added missing attributes
35775         * ListBox.cs: Fixes signature, add missing consts
35776         * LinkArea.cs:   Added missing attributes
35777         
35778
35779 2005-02-08  Peter Bartok  <pbartok@novell.com>
35780
35781         * Menu.cs: Added missing attributes
35782         * MainMenu.cs: Added missing attributes
35783         * GroupBox.cs: Added missing attributes
35784         * Label.cs: Added missing attributes
35785         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
35786         * ColorDialog.cs:
35787           - Added Instance and Options properties
35788           - Added missing attributes
35789         * Cursor.cs: Made Serializable
35790         * NotifyIcon: Added missing attributes
35791         * MenuItem.cs: Added missing attributes
35792         * TextBoxBase.cs: Implemented AppendText() and Select() methods
35793         * Panel.cs: Added Missing attributes
35794         * MonthCalendar.cs: Fixed CreateParams
35795
35796 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
35797         
35798         * LinkLabel.cs:
35799                 - Fixes signature
35800                 - Fixes issues with links
35801                 - Adds the class attributes
35802
35803 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
35804         
35805         * ComboBox.cs:
35806                 - Fixes button when no items available in dropdown
35807                 - Fixes repainting problems
35808                 - Adds the class attributes
35809                 
35810 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35811
35812         * XplatUIOSX.cs: Detect the menu bar and title bar height from
35813         the current theme.  Cache these on startup.
35814
35815 2005-02-07  Jackson Harper  <jackson@ximian.com>
35816
35817         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
35818         the scrollbar buttons when they are depressed.
35819
35820 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35821
35822         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
35823         Get the display size from the main displayid.  We currently dont
35824         support multiple display configurations.
35825
35826 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35827
35828         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
35829
35830 2005-02-07  Miguel de Icaza  <miguel@novell.com>
35831
35832         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
35833
35834 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
35835
35836         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
35837
35838 2005-02-04  Jackson Harper  <jackson@ximian.com>
35839
35840         * ThemeWin32Classic.cs: Respect the clipping rect when
35841         drawing. Only fill the intersection of clips and rects so there
35842         isn't a lot of large fills.
35843         * ScrollBar.cs: Pass the correct clipping rect to the theme
35844         engine. Remove some debug code.
35845
35846 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
35847         
35848         * DateTimePicker.cs:
35849                 - Fixed crash on DateTime.Parse, use Constructor instead
35850
35851 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
35852         
35853         * MenuItem.cs:
35854         * MenuAPI.cs:
35855                 - Owner draw support (MeasureItem and DrawItem)
35856
35857 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
35858         
35859         *  Menu.cs:
35860                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
35861                 - Fixes MenuItems.Add range
35862         * MenuItem.cs:
35863                 - MergeMenu and Clone and CloneMenu functions
35864
35865 2005-02-03  Jackson Harper  <jackson@ximian.com>
35866
35867         * ScrollBar.cs: Make abstract
35868         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
35869         is abstract.
35870
35871 2005-02-03  Jackson Harper  <jackson@ximian.com>
35872
35873         * ScrollBar.cs: First part of my scrollbar fixups. This removes
35874         all the unneeded refreshes and uses invalidates with properly
35875         computed rects.
35876
35877 2005-02-03  Peter Bartok  <pbartok@novell.com>
35878
35879         * ComponentModel.cs: Added
35880         * IDataGridEditingService.cs: Added
35881         * Timer.cs: Added missing attributes
35882         * ToolTip.cs: Added missing attributes
35883
35884 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
35885
35886         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
35887
35888 2005-02-03  Peter Bartok  <pbartok@novell.com>
35889
35890         * ListBox.cs: Added missing attributes
35891
35892 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
35893         
35894         * ListBox.cs:
35895                 - Fixes font height after font change
35896                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
35897                 
35898 2005-02-02  Peter Bartok  <pbartok@novell.com>
35899
35900         * HandleData.cs: Introduced static methods to allow class
35901           to be more self-contained and track it's own HandleData objects
35902         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
35903           HandleData to use new static methods
35904
35905 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
35906
35907         * Combobox.cs:
35908                 - Fixes default size and PreferredHeight
35909                 - Missing events
35910                 - ObjectCollection.Insert implementation
35911                 
35912         * ListControl.cs
35913                 - Fixes signature
35914         * ListBox.cs:
35915                 - Several fixes
35916                 - ObjectCollection.Insert implementation
35917                 - No selection after clean
35918                 - Small fixes
35919
35920 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35921
35922         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
35923
35924 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
35925
35926         * Combobox.cs:
35927                 - Caches ItemHeight calculation for OwnerDrawVariable
35928                 - Handles dropdown properly
35929                 - Fixes several minor bugs
35930
35931 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35932
35933         * ListBox.cs:
35934                 - Fixes 71946 and 71950
35935                 - Fixes changing Multicolumn on the fly
35936                 - Fixes keyboard navigation on Multicolumn listboxes
35937
35938 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35939         
35940         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
35941         crash reporter log.
35942
35943 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35944
35945         * XplatUIOSX.cs: Allow applications to actually exit.
35946
35947 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35948
35949         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
35950         their parent at creation time rather than lazily later.  Fixes a major
35951         regression we were experiencing.
35952
35953 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35954
35955         * ThemeWin32Classic.cs: more date time picker painting fixes
35956         * DateTimePicker.cs: more monthcalendar drop down fixes
35957         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
35958
35959 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35960
35961         * ScrollBar.cs:
35962                 - When moving the thumb going outside the control should stop the moving
35963                 - Adds the firing of missing events
35964                 - Fixes no button show if Size is not specified
35965                 - End / Home keys for keyboard navigation
35966
35967 2005-01-30  Peter Bartok  <pbartok@novell.com>
35968
35969         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
35970           sanity check to prevent theoretical loop
35971         * XplatUIWin32.cs (SetVisible): Removed debug output
35972         * XplatUIX11.cs (SystrayChange): Added sanity check
35973         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
35974         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
35975           behaviour, valid until the X11 client window rewrite is done
35976         * TextBox.cs (ctor): Setting proper default foreground and background
35977           colors
35978
35979 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
35980
35981         * Theme: Added DrawDateTimePicker to interface
35982         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
35983         * DateTimePicker.cs: Created (still needs keys and painting code)
35984         * DateTimePickerFormat.cs: added
35985         * MonthCalendar.cs: fixed CreateParams for popup window mode
35986           
35987 2005-01-29  Peter Bartok  <pbartok@novell.com>
35988
35989         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
35990           this should also the calculations for ligher/darker
35991         * Theme.cs: Fixed defaults for ScrollBar widths/heights
35992
35993 2005-01-29  Peter Bartok  <pbartok@novell.com>
35994
35995         * ArrangeDirection.cs: Added
35996         * ArrangeStartingPositon.cs: Added
35997         * SystemInformation.cs: Implemented
35998         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35999           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
36000           used by SystemInformation class
36001         * X11Strucs.cs: Added XSizeHints structure
36002         * MenuAPI.cs:
36003           - Fixed CreateParams to make sure the menu window is always visible
36004           - TrackPopupMenu: Added check to make sure we don't draw the
36005             menu offscreen
36006
36007 2005-01-29  Peter Bartok  <pbartok@novell.com>
36008
36009         * HandleData.cs: Added method for altering invalid area
36010         * TextBoxBase.cs: Implemented TextLength
36011
36012 2005-01-28  Peter Bartok  <pbartok@novell.com>
36013
36014         * XplatUIX11.cs: Improvement over last patch, not sending
36015           the WM_PAINT directly anymore, instead we scroll any pending
36016           exposed areas and let the system pick out the WM_PAINT later
36017
36018 2005-01-28  Peter Bartok  <pbartok@novell.com>
36019
36020         * SWF.csproj: Deleted, no longer used. Instead,
36021           Managed.Windows.Forms/SWF.csproj should be used
36022         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
36023           directly, to avoid a potential race condition with the next
36024           scroll
36025
36026 2005-01-28  Peter Bartok  <pbartok@novell.com>
36027
36028         * XplatUI.cs: Made class internal
36029
36030 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
36031
36032         * CheckedListBox.cs:
36033                 - Draw focus
36034                 - Fixed Drawing
36035                 - Missing methods and events
36036
36037 2005-01-27  Peter Bartok  <pbartok@novell.com>
36038
36039         * Application.cs (Run): Don't use form if we don't have one
36040
36041 2005-01-27  Peter Bartok  <pbartok@novell.com>
36042
36043         * TextBoxBase.cs (get_Lines): Fixed index off by one error
36044
36045 2005-01-27  Peter Bartok  <pbartok@novell.com>
36046
36047         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
36048         * GridItem.cs: Added; Patch by Jonathan S. Chambers
36049         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
36050         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
36051         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
36052         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
36053         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
36054         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
36055         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
36056         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
36057         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
36058         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
36059
36060 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
36061
36062         * Combobox.cs:
36063                 - Draw focus on Simple Combobox
36064                 - Fixes drawing issues
36065                 - fixes 71834
36066
36067 2005-01-27  Peter Bartok  <pbartok@novell.com>
36068
36069         * Form.cs:
36070           - Place window in default location, instead of hardcoded 0/0
36071           - Send initial LocationChanged event
36072         * Control.cs:
36073           - UpdateBounds after creation to find out where the WM placed us
36074           - Make sure that if the ParentForm changes location the Form
36075             is notified
36076         * XplatUIX11.cs: XGetGeometry will not return the coords relative
36077             to the root, but to whatever the WM placed around us.
36078             Translate to root coordinates before returning toplevel
36079             coordinates
36080         * XplatUIWin32.cs: Removed debug output
36081         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
36082           flag to GetWindowPos, to allow translation of coordinates on X11
36083
36084 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
36085
36086         * ListBox.cs: connect LostFocus Event
36087
36088 2005-01-27  Peter Bartok  <pbartok@novell.com>
36089
36090         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
36091           XplatUIX11.cs: Extended the Systray API
36092         * Form.cs: Removed debug output
36093         * Application.cs: Fixed focus assignment, always need to call
36094           XplatUI.Activate() since Form.Activate() has rules that may
36095           prevent activation
36096         * NotifyIcon.cs: Should be complete now
36097         * ToolTip.cs: Worked around possible timer bug
36098
36099 2005-01-27  Jackson Harper  <jackson@ximian.com>
36100
36101         * TabControl.cs:
36102         - Only invalidate the effected tabs when the
36103         selected index changes. This reduces drawing and gets rid of some
36104         flicker.
36105         - Only refresh if the tabs need to be shifted, otherwise only
36106         invalidate the slider button.
36107         - On windows the tabs are not filled to right if the slider is
36108         visible.
36109         
36110 2005-01-27  Jackson Harper  <jackson@ximian.com>
36111
36112         * TabControl.cs: Only refresh on mouseup if we are showing the
36113         slider. Also only invalidate the button whose state has changed.
36114
36115 2005-01-26  Peter Bartok  <pbartok@novell.com>
36116
36117         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
36118         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
36119           and SystrayRemove() methods
36120         * XplatUIOSX.cs: Stubbed Systray methods
36121         * XplatUIX11.cs:
36122           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
36123             methods
36124           - Fixed broken XChangeProperty calls (marshalling messed up things)
36125         * X11Structs.cs: Added enums and structs required for Size hinting
36126         * NotifyIcon.cs: Added & implemented
36127
36128 2005-01-26  Jackson Harper  <jackson@ximian.com>
36129
36130         * TabControl.cs: Space vertically layed out tabs properly.
36131
36132 2005-01-26  Peter Bartok  <pbartok@novell.com>
36133
36134         * Form.cs (CreateClientParams): Always set the location to 0,0
36135           since we're a child window.
36136
36137         * Control.cs (SetVisibleCore): Always explicitly setting the location
36138           of a toplevel window, apparently X11 doesn't like to move windows
36139           while they're not mapped.
36140
36141 2005-01-26  Jackson Harper  <jackson@ximian.com>
36142
36143         * TabControl.cs: Implement FillToRight size mode with vertically
36144         rendered tabs.
36145
36146 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
36147
36148         * ControlPaint.cs, ThemeWin32Classic.cs
36149                 - Fixes DrawFocusRectangle
36150
36151 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
36152
36153         * MenuAPI.cs:
36154                 - MenuBar tracking only starts when item is first clicked
36155                 - Fixes menu hidding for multiple subitems
36156                 - Unselect item in MenuBar when item Executed
36157                 - Fixes bug 71495
36158
36159 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
36160
36161         * ListControl.cs:
36162                 - IsInputKey for ListBox
36163         * ListBox.cs:
36164                 - Focus item
36165                 - Shift and Control item selection
36166                 - Implement SelectionMode.MultiExtended
36167                 - Fixes RightToLeft
36168         * ComboBox.cs:
36169                 - IsInputKey implemented
36170                 - Do not generate OnTextChangedEdit on internal txt changes
36171                 
36172 2005-01-23  Peter Bartok  <pbartok@novell.com>
36173
36174         * AccessibleObject.cs: Partially implemented Select()
36175         * MonthCalendar.cs: Added missing attributes and events
36176         * Form.cs: Fixed CreateParams behaviour, now controls derived from
36177           form can properly override CreateParams.
36178         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
36179           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
36180           Control performs Invalidate & Update
36181         * NativeWindow (CreateHandle): Added special handling for Form
36182           and Form.FormParent classes to allow overriding of From.CreateParams
36183         * Control.cs:
36184           - ControlNativeWindow: Renamed 'control' variable to more intuitive
36185             name 'owner'
36186           - ControlNativeWindow: Added Owner property
36187           - Removed usage of Refresh() on property changes, changed into
36188             Invalidate(), we need to wait until the queue is processed for
36189             updates, direct calls might cause problems if not all vars for
36190             Paint are initialized
36191           - Added call to UpdateStyles() when creating the window, to set any
36192             styles that CreateWindow might have ignored.
36193           - Added support for Form CreateParent overrides to UpdateStyles()
36194         * MessageBox.cs: Removed no longer needed FormParent override stuff,
36195           CreateParams are now properly overridable
36196         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
36197           CreateParams are now properly overridable
36198
36199 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
36200
36201         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
36202         OnTextBoxChanged.
36203
36204         Capture LostFocus and OnTextBoxChanged.  The later introduces a
36205         recursive invocation that I have not figured out yet.
36206
36207         Reset the timer when not using (it was accumulating).
36208
36209
36210         (OnTextBoxChanged): Set UserEdit to true here to track whether the
36211         user has made changes that require validation.
36212
36213         Reset changing to avoid loops.
36214
36215 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
36216
36217         * NumericUpDown.cs: Display value at startup.
36218
36219         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
36220         ValidateEditText.
36221
36222         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
36223         filled in.  Added some basic parsing of text.
36224
36225         Still missing the OnXXX method overrides, and figuring out the
36226         events that must be emitted.
36227
36228         * UpDownBase.cs: Handle UserEdit on the Text property.
36229         
36230 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
36231
36232         * ComboBox.cs:
36233           - Fixes IntegralHeight
36234           - ToString method
36235
36236 2005-01-21  Jackson Harper  <jackson@ximian.com>
36237
36238         * TabControl.cs: Set the SelectedIndex property when SelectedTab
36239         is set so that the page visibility is updated and the tabs are
36240         sized correctly.
36241
36242 2005-01-21  Jackson Harper  <jackson@ximian.com>
36243
36244         * TabControl.cs: Use cliping rectangle for blitting. Give the
36245         theme the clipping rect so we can do clipping while
36246         drawing. Remove some debug code.
36247
36248 2005-01-21  Jackson Harper  <jackson@ximian.com>
36249
36250         * TabPage.cs: Add a new method so tab pages can force the tab
36251         control to recalculate the tab page sizes.
36252         * TabControl.cs: UpdateOwner needs to make the tab control recalc
36253         sizes.
36254
36255 2005-01-20  Jackson Harper  <jackson@ximian.com>
36256
36257         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
36258
36259 2005-01-20  Jackson Harper  <jackson@ximian.com>
36260
36261         * TreeView.cs: Set the bounds for nodes properly. They were
36262         getting screwed up when checkboxes were not enabled, but images
36263         were.
36264
36265 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
36266
36267         * ListBox.cs:
36268                 - Owner draw support
36269                 - Fixes
36270                 
36271 2005-01-20  Jackson Harper  <jackson@ximian.com>
36272
36273         * XplatUIStructs.cs: More misc keys
36274         * X11Keyboard.cs: Ignore some control keys.
36275
36276 2005-01-20  Jackson Harper  <jackson@ximian.com>
36277
36278         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
36279         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
36280
36281 2005-01-19  Peter Bartok  <pbartok@novell.com>
36282
36283         * Control.cs: Un-selecting the control when it is loosing focus
36284
36285 2005-01-19  Jackson Harper  <jackson@ximian.com>
36286
36287         * TreeView.cs: Hook up to the text controls leave event so we can
36288         end editing when the users clicks outside the text box.
36289         
36290 2005-01-19  Jackson Harper  <jackson@ximian.com>
36291
36292         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
36293         get set in the conversion array.
36294
36295 2005-01-19  Peter Bartok  <pbartok@novell.com>
36296
36297         * Application.cs (ModalRun): Added a call to CreateControl to ensure
36298           focus is properly set
36299         * Button.cs:
36300           - Added missing attributes
36301           - removed styles, those are already set in the base class
36302         * ButtonBase.cs:
36303           - Added missing attributes
36304           - Added clip window styles
36305         * CheckBox.cs: Added missing attributes
36306         * CommonDialog.cs:
36307           - FormParentWindow.CreateParams: Added required clip styles
36308         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
36309           also filters modifier keys
36310         * MessageBox.cs:
36311           - Added assignment of Accept and Cancel button to enable Enter
36312             and Esc keys in MessageBox dialogs
36313           - FormParentWindow.CreateParams: Added required clip styles
36314         * RadioButton.cs: Added missing attributes
36315         * TextControl.cs: No longer draws selection if control does not
36316           have focus
36317         * TextBoxBase.cs:
36318           - Now draws simple rectangle around test area to make it obvious
36319             there's a control. This is a hack until we properly support borders
36320           - A few simple fixes to support selections better, now erases selected
36321             text when typing, and resets selection when using movement keys
36322
36323 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
36324
36325         * UpDownBase.cs: Added some new properties.
36326
36327         * DomainUpDown.cs: Implement a lot to get my test working.
36328
36329 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
36330
36331         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
36332
36333 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
36334
36335         * OSXStructs (WindowAttributes): Fixed csc complaints
36336
36337 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
36338
36339         * XplayUIOSX.cs:
36340           OSXStructs.cs: Initial refactor to move enums and consts into
36341           OSXStructs and use them in the driver for greater readability.
36342
36343 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
36344
36345         * XplatUIOSX.cs: Initial support for Standard Cursors.
36346         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
36347
36348 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
36349
36350         * ComboBox.cs: ability to change style when the ctrl is already
36351         created, missing methods and events, bug fixes, signature fixes
36352
36353 2005-01-19  Peter Bartok  <pbartok@novell.com>
36354
36355         * Cursors.cs (ctor): Added ctor to fix signature
36356
36357 2005-01-18  Peter Bartok  <pbartok@novell.com>
36358
36359         * Button.cs: Implemented DoubleClick event
36360         * ButtonBase.cs:
36361           - Fixed keyboard handling to behave like MS, where the press of
36362             Spacebar is equivalent to a mousedown, and the key release is
36363             equivalent to mouseup. Now a spacebar push will give the same
36364             visual feedback like a mouse click.
36365           - Added missing attributes
36366           - Added ImeModeChanged event
36367           - Added support for generating DoubleClick event for derived classes
36368         * CheckBox.cs:
36369           - Implemented DoubleClick event
36370           - Added missing attributes
36371         * CommonDialog.cs: Added missing attribute
36372         * ContextMenu.cs: Added missing attributes
36373         * RadioButton.cs:
36374           - AutoChecked buttons do not allow to be unselected when clicked
36375             (otherwise we might end up with no selected buttons in a group)
36376           - Added missing attributes
36377           - Implemented DoubleClickEvent
36378         * ThreadExceptionDialog.cs: Enabled TextBox code
36379
36380 2005-01-18  Peter Bartok  <pbartok@novell.com>
36381
36382         * Form.cs: Removed debug output
36383         * Button.cs: Added support for DoubleClick method
36384
36385 2005-01-18  Peter Bartok  <pbartok@novell.com>
36386
36387         * Form.cs:
36388           - Added method to parent window that allows triggering size
36389             calculations when a menu is added/removed
36390           - set_Menu: Cleaned up mess from early days of Form and Control,
36391             now properly triggers a recalc when a menu is added/removed
36392           - Added case to select form itself as focused form if no child
36393             controls exist
36394           - Added PerformLayout call when showing dialog, to ensure properly
36395             placed controls
36396         * Control.cs:
36397           - Select(): Made internal so Form can access it
36398           - Focus(): Only call Xplat layer if required (avoids loop), and sets
36399             status
36400         * Application.cs (Run): Removed hack and calls PerformLayout instead
36401           to trigger calculation when Form becomes visible
36402
36403 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
36404
36405         * ComboBox.cs: fixes for ownerdraw
36406
36407 2005-01-18  Peter Bartok  <pbartok@novell.com>
36408
36409         * TextControl.cs:
36410           - Sentinel is no longer static, each Document gets it's own, this
36411             avoids locking or alternatively overwrite problems when more
36412             than one text control is used simultaneously.
36413           - Switched to use Hilight and HilightText brushes for text selection
36414
36415         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
36416
36417 2005-01-18  Peter Bartok  <pbartok@novell.com>
36418
36419         * Control.cs:
36420           - Hooked up the following events:
36421                 o ControlAdded
36422                 o ControlRemoved
36423                 o HandleDestroyed
36424                 o ImeModeChanged
36425                 o ParentChanged
36426                 o TabStopChanged
36427                 o Invalidated
36428                 o SystemColorsChanged
36429                 o ParentFontChanged
36430                 o Move
36431           - Removed debug output
36432           - Added a call to the current theme's ResetDefaults when a color change
36433             is detected
36434         * Form.cs: Now setting the proper ImeMode
36435         * Theme.cs: Defined a method to force recreation of cached resources
36436           and rereading of system defaults (ResetDefaults())
36437         * ThemeWin32Classic.cs: Added ResetDefaults() stub
36438
36439 2005-01-17  Peter Bartok  <pbartok@novell.com>
36440
36441         * Control.cs: Added missing attributes
36442
36443 2005-01-17  Jackson Harper  <jackson@ximian.com>
36444
36445         * TreeNode.cs: Implement editing. Add missing properties selected
36446         and visible.
36447         * TreeView.cs: Implement node editing. Also some fixes to use
36448         Invalidate (invalid area) instead of Refresh when selecting.
36449
36450 2005-01-17  Peter Bartok  <pbartok@novell.com>
36451
36452         * Control.cs:
36453           - Implemented InvokeGotFocus() method
36454           - Implemented InvokeLostFocus() method
36455           - Implemented InvokePaint() method
36456           - Implemented InvokePaintBackground() method
36457           - Implemented InvokeClick() method
36458           - Implemented FindForm() method
36459           - Implemented RectangleToClient() method
36460           - Implemented ClientToRectangle() method
36461           - Implemented ResetBackColor() method
36462           - Implemented ResetCursor() method
36463           - Implemented ResetFont() method
36464           - Implemented ResteForeColor() method
36465           - Implemented ResetImeMode() method
36466           - Implemented ResetLeftToRight() method
36467           - Implemented ResetText() method
36468           - Implemented Scale() methods
36469           - Implemented ScaleCore() method
36470           - Implemented Update() method
36471           - Removed unused variables
36472           - Stubbed AccessibilityNotifyClients and
36473             ControlAccessibleObject.NotifyClients() methods (dunno what to do
36474             with those yet)
36475           - Now setting proper default for RightToLeft property
36476           - Fixed bug in SetClientSizeCore that would cause windows to get
36477             really big
36478           - Now sending Click/DoubleClick events
36479           - Now selecting controls when left mouse button is clicked on
36480             selectable control
36481         * AccessibleEvents.cs: Added
36482         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
36483         * XplatUIOSX.cs: Stubbed UpdateWindow() method
36484         * XplatUIWin32.cs: Implemented UpdateWindow() method
36485         * XplatUIX11.cs: Implemented UpdateWindow() method
36486         * Form.cs: Removed stray semicolon causing CS0162 warning
36487         * ThemeWin32Classic.cs: Fixed unused variable warnings
36488         * ScrollableControl.cs: Now calls base method for ScaleCore
36489         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
36490           style to avoid interference with internal click handler (which is
36491           different than standard Control click handling)
36492         * RadioButton.cs:
36493           - Now unchecks all sibling radio buttons when control is
36494             selected (Fixes #68756)
36495           - Removed internal tabstop variable, using the one inherited from
36496             Control
36497
36498 2005-01-17  Jackson Harper  <jackson@ximian.com>
36499
36500         * NavigateEventArgs.cs: Fix base type.
36501         * LinkLabel.cs: Sig fix
36502         
36503 2005-01-17  Jackson Harper  <jackson@ximian.com>
36504
36505         * TreeView.cs: Only invalidate the effected nodes bounds when
36506         selecting nodes.
36507
36508 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
36509
36510         * XplatUIWin32.cs: fixes Win32 marshaling
36511         * XplatUIX11.cs: fixes method signature
36512
36513 2005-01-17  Peter Bartok  <pbartok@novell.com>
36514
36515         * XplatUIX11.cs: Clean up resources when we no longer need them
36516
36517 2005-01-17  Peter Bartok  <pbartok@novell.com>
36518
36519         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
36520           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
36521           and DestroyCursor() methods.
36522         * Cursor.cs: Partially implemented, now supports standard cursors;
36523           still contains some debug code
36524         * Cursors.cs: Implemented class
36525         * Control.cs:
36526           - WndProc(): Added handling of WM_SETCURSOR message, setting the
36527             appropriate cursor
36528           - Implemented Cursor property
36529           - Replaced break; with return; more straightforwar and possibly
36530             faster
36531           - Now properly setting the result for WM_HELP
36532         * X11Structs.cs: Added CursorFontShape enum
36533         * XplatUIStructs.cs:
36534           - Added StdCursor enum (to support DefineStdCursor() method)
36535           - Added HitTest enum (to support sending WM_SETCURSOR message)
36536         * XplatUIX11.cs:
36537           - Now sends the WM_SETCURSOR message
36538           - Implemented new cursor methods
36539         * XplatUIOSX.cs: Stubbed new cursor methods
36540         * XplatUIWin32.cs:
36541           - Implemented new cursor methods
36542           - Added GetSystemMetrics function and associated enumeration
36543
36544 2005-01-15  Peter Bartok  <pbartok@novell.com>
36545
36546         * Control.cs:
36547           - WndProc(): Now handles EnableNotifyMessage
36548           - SelectNextControl(): Fixed bug where if no child or sibling
36549             controls exist we looped endlessly
36550
36551 2005-01-14  Jackson Harper  <jackson@ximian.com>
36552
36553         * TreeView.cs: Recalculate the tab pages when a new one is added
36554         so that the proper bounding rects are created.
36555
36556 2005-01-14  Jackson Harper  <jackson@ximian.com>
36557
36558         * TreeView.cs: Draw a gray box instead of a grip in the lower
36559         right hand corner when there are both horizontal and vertical
36560         scroll bars.
36561
36562 2005-01-14  Jackson Harper  <jackson@ximian.com>
36563
36564         * Control.cs: When erasing backgrounds use FromHwnd instead of
36565         FromHdc when there is a NULL wparam. This occurs on the X driver.
36566         * XplatUIX11.cs: Set the wparam to NULL.
36567
36568 2005-01-13  Jackson Harper  <jackson@ximian.com>
36569
36570         * PictureBox.cs: Implement missing methods (except ToString, need
36571         to test that on windows) and events. When visibility is changed we
36572         need to redraw the image because the buffers are killed. When size
36573         is changed refresh if the sizemode needs it.
36574
36575 2005-01-13  Peter Bartok  <pbartok@novell.com>
36576
36577         * Control.cs (SelectNextControl): Was using wrong method to select
36578           a control
36579
36580 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
36581
36582         * ComboBox.cs: fixes dropstyle
36583
36584 2005-01-13  Peter Bartok  <pbartok@novell.com>
36585
36586         * Form.cs:
36587           - Implemented Select() override
36588           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
36589           - Now sets keyboard focus on startup
36590         * Control.cs (SelectNextControl): Now properly handles directed=true
36591         * TextBoxBase.cs:
36592           - WndProc: Now passes tab key on to base if AcceptTabChar=false
36593           - Added (really bad) focus rectangle (mostly for testing)
36594         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
36595           to enforce redraw on focus changes
36596         * ContainerControl.cs:
36597           - Fixed detection of Shift-Tab key presses
36598           - Fixed traversal with arrow keys
36599         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
36600           gonna keep this or if it's complete yet
36601         
36602 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
36603
36604         * ComboBox.cs: missing properties, fixes
36605
36606 2005-01-13  Peter Bartok  <pbartok@novell.com>
36607
36608         * Panel.cs (ctor): Setting Selectable window style to off
36609         * Splitter.cs (ctor): Setting Selectable window style to off
36610         * GroupBox.cs (ctor): Setting Selectable window style to off
36611         * Label.cs (ctor): Setting Selectable window style to off
36612
36613 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
36614
36615         * UpDownBase.cs (InitTimer): If the timer has been already
36616         created, enable it.
36617
36618         Use a TextBox instead of a Label.
36619
36620 2005-01-12  Jackson Harper  <jackson@ximian.com>
36621
36622         * TreeView.cs: Refresh the tree after sorting the nodes. Always
36623         draw the connecting node lines (when ShowLines is true).
36624         * TreeNode.cs: The nodes index can now be updated. This is used
36625         when a node collection is sorted.
36626         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
36627         insert or an existing unsorted node collection can be sorted.
36628         
36629 2005-01-12  Peter Bartok  <pbartok@novell.com>
36630
36631         * ContainerControl.cs: Implemented ProcessDialogKeys()
36632
36633 2005-01-12  Peter Bartok  <pbartok@novell.com>
36634
36635         * Control.cs:
36636           - Implemented SelectNextControl() method
36637           - Several focus related bug fixes
36638           - Fixed Docking calculations to match MS documentation and
36639             behaviour
36640
36641 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
36642
36643         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
36644         bug fixes
36645
36646 2005-01-12  Peter Bartok  <pbartok@novell.com>
36647
36648         * Control.cs:
36649           - Fixed broken Contains() method
36650           - Implemented GetNextControl() method. Finally. This is the pre-
36651             requisite for focus handling.
36652
36653 2005-01-12  Peter Bartok  <pbartok@novell.com>
36654
36655         * OSXStrucs.cs: Added
36656
36657 2005-01-12  Peter Bartok  <pbartok@novell.com>
36658
36659         * XplatUIWin32.cs:
36660           - Removed PeekMessageFlags
36661           - Implemented SetWindowStyle() method
36662         * XplatUIStructs.cs: Added PeekMessageFlags
36663         * X11Structs: Added missing border_width field to XWindowChanges struct
36664         * XplatUIX11.cs:
36665           - PeekMessage: Now throws exception if flags which are not yet
36666             supported are passed
36667           - Implemented SetWindowStyle() method
36668           - Fixed SetZOrder to handle AfterHwnd properly
36669         * XplatUI.cs: Added SetWindowStyle() method
36670         * XplatUIDriver.cs: Added SetWindowStyle() abstract
36671         * Control.cs:
36672           - Implemented UpdateStyles() method
36673           - Implemented UpdateZOrder() method
36674         * XplatUIOSX.cs: Added SetWindowStyle() stub
36675
36676 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
36677
36678         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
36679         button mouse).
36680
36681
36682 2005-01-11  Jackson Harper  <jackson@ximian.com>
36683
36684         * TreeView.cs: Still need to draw lines to siblings even if out of
36685         the current node is out of the clip.
36686
36687 2005-01-11  Jackson Harper  <jackson@ximian.com>
36688
36689         * TreeView.cs: When setting the hbar/vbar/grip position use
36690         SetBounds so that perform layout is only called once. Also suspend
36691         and resume layout so layout is only done once for all controls.
36692         - Removed some debug fluff
36693         * SizeGrip.cs: Call base implmentation in overriding methods.
36694         - When visibility is changed the drawing buffers are killed so we
36695         need to redraw.
36696
36697 2005-01-11  Jackson Harper  <jackson@ximian.com>
36698
36699         * TreeView.cs: Calculate the open node count while drawing. This
36700         saves us an entire tree traversal for every paint operation. Use
36701         a member var for the open node count so less vars are passed around.
36702
36703 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
36704
36705         * MonthCalendar.cs:
36706         - fixed selection to use mousemove, not mouse polling on timer
36707         * ThemeWin32Classic.cs
36708         - removed redundant unused variable "no_more_content"
36709         
36710 2005-01-11  Peter Bartok  <pbartok@novell.com>
36711
36712         * XplatUIX11.cs (DoEvents): Needs to return when no more events
36713           are pending, so it now calls PeekMessage instead of GetMessage;
36714           implemented a incomplete version of PeekMessage
36715         
36716 2005-01-11  Peter Bartok  <pbartok@novell.com>
36717
36718         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
36719           I18n issues
36720         * TextBoxBase.cs: Added sending of TextChanged event
36721
36722 2005-01-10  Jackson Harper  <jackson@ximian.com>
36723
36724         * TreeView.cs: Try not to draw outside the clipping rectangle on
36725         each node element.
36726
36727 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
36728
36729         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
36730
36731 2005-01-10  Jackson Harper  <jackson@ximian.com>
36732
36733         * TreeView.cs:
36734         - Implement fast scrolling. Now only the newly
36735         exposed nodes are drawn and the old image is moved using the
36736         XplatUI::ScrollWindow method.
36737         - Factor in height of nodes when calculating whether or not the
36738         node is in the clipping rect.
36739
36740 2005-01-10  Jackson Harper  <jackson@ximian.com>
36741
36742         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
36743
36744 2005-01-10  Peter Bartok  <pbartok@novell.com>
36745
36746         * Application.cs: Added temporary hack to resolve all our resize
36747           required issues on startup. This will get fixed properly at
36748           some point in the future
36749
36750 2005-01-10  Jackson Harper  <jackson@ximian.com>
36751
36752         * SizeGrip.cs: New internal class that is used as a sizing
36753         grip control...hence the name.
36754
36755 2005-01-10  Peter Bartok  <pbartok@novell.com>
36756
36757         * Control.cs: Implemented proper TabIndex handling, now assigning
36758           a tabindex when a control is added to a container
36759         * GroupBox.cs (ctor): Now sets the Container style bit, required
36760           for Control.GetNextControl()
36761
36762 2005-01-09  Jackson Harper  <jackson@ximian.com>
36763
36764         * TextBoxBase.cs: Clear window when scrolling (fixes build).
36765
36766 2005-01-09  Peter Bartok <pbartok@novell.com>
36767
36768         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
36769           XplatUIX11.cs: Added ability to control ScrollWindow expose and
36770           an overload for ScrollWindow to allow only scrolling a rectangle
36771
36772 2005-01-09  Peter Bartok <pbartok@novell.com>
36773
36774         * Form.cs:
36775           - Implemented SetDesktopBounds method
36776           - Implemented SetDesktopLocation method
36777
36778 2005-01-08  Jackson Harper  <jackson@ximian.com>
36779
36780         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
36781         the node count has changed, this removes to VScroll::Refresh calls
36782         when drawing.
36783
36784 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
36785
36786         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
36787
36788 2005-01-07  Jackson Harper  <jackson@ximian.com>
36789
36790         * TreeNode.cs: Just update the single node when it is
36791         checked. Don't refresh after toggling, the Expand/Collapse already
36792         handles this.
36793         * TreeView.cs: Respect clipping a little more when drawing. Try
36794         not to redraw things that don't need to be redrawn. Just hide the
36795         scrollbars when they are no longer needed instead of removing
36796         them, so they don't have to be created again and again.
36797         
36798 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
36799
36800         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
36801         coordinates to window space to place the caret properly, FIXED.
36802         Implement GetWindowState & SetWindowState
36803
36804 2005-01-06  Peter Bartok <pbartok@novell.com>
36805
36806         * Form.cs:
36807           - Implemented ClientSize property
36808           - Implemented DesktopBounds property
36809           - Implemented DesktopLocation property
36810           - Implemented IsRestrictedWindow property
36811           - Implemented Size property
36812           - Implemented TopLevel property
36813           - Implemented FormWindowState property
36814         * Control.cs:
36815           - Implemented GetTopLevel() method
36816           - Implemented SetTopLevel() method
36817         * X11Structs.cs (Atom):
36818           - Added AnyPropertyType definition
36819           - Added MapState definiton and updated XWindowAttribute struct
36820         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
36821         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
36822         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
36823         * XplatUIWin32.cs:
36824           - Implemented GetWindowState() and SetWindowState() methods
36825           - Fixed Win32GetWindowLong return type
36826         * XplatUIX11.cs:
36827           - Introduced central function for sending NET_WM messages
36828           - Implemented GetWindowState() and SetWindowState() methods
36829         * TextBoxBase.cs (set_Lines):
36830           - Now uses Foreground color for text added via Text property (Duh!)
36831           - Added code to remember programmatically requested size (fixes
36832             behaviour when Multiline is set after Size)
36833           - Added AutoSize logic
36834
36835 2005-01-06  Jackson Harper  <jackson@ximian.com>
36836
36837         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
36838
36839 2005-01-06  Jackson Harper  <jackson@ximian.com>
36840
36841         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
36842         set to less then 0.
36843
36844 2005-01-06  Jackson Harper  <jackson@ximian.com>
36845
36846         * ScrollableControl.cs: Lazy init the scrollbars.
36847         
36848 2005-01-06  Jackson Harper  <jackson@ximian.com>
36849
36850         * Theme.cs: Speed up getting pens and solid brushes, by using
36851         their ARGB as a hash instead of tostring and not calling Contains.
36852
36853 2005-01-06  Peter Bartok <pbartok@novell.com>
36854
36855         * Form.cs:
36856           - Implemented OnActivated and OnDeactivate event trigger
36857           - Implemented Activate() method
36858           - Fixed ShowDialog() to activate the form that was active before
36859             the dialog was shown
36860         * XplatUIX11.cs:
36861           - Added global active_window var that tracks the currently active
36862             X11 window
36863           - Now always grabs Property changes from the root window to always
36864             catch changes on the active window property
36865           - Added code to PropertyNotify handler to send Active/Inactive
36866             messages when state changes. This puts X11 and Win32 en par on
36867             WM_ACTIVATE notifications (except for double notifications when
36868             the user clicks away from our modal window to another one of our
36869             windows)
36870
36871 2005-01-05  Jackson Harper  <jackson@ximian.com>
36872
36873         * ImageList.cs: Implment ctor
36874
36875 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36876
36877         * XplatUIOSX.cs: Implement Activate/SetTopmost
36878
36879 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36880
36881         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
36882
36883 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36884
36885         * XplatUIOSX.cs: Implement GetActive/SetFocus.
36886
36887 2005-01-05  Peter Bartok <pbartok@novell.com>
36888
36889         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
36890           XplatUIOSX.cs: Added GetActive method to return the currently
36891           active window for the application (or null, if none is active)
36892         * Form.cs:
36893           - Implemented ActiveForm
36894           - Commented out owner assignment for modal dialogs (causes problems
36895             on Win32, since the owner will be disabled)
36896           - Reworked some Active/Focus handling (still incomplete)
36897         * CommonDialog.cs: Commented out owner assignment for modal dialogs
36898           (causes problems on Win32, since the owner will be disabled)
36899         * IWin32Window: Added ComVisible attribute
36900
36901 2005-01-05  Peter Bartok <pbartok@novell.com>
36902
36903         * ToolTip.cs (WndProc): Enable setting focus now that we have the
36904           required XplatUI functions.
36905
36906 2005-01-05  Peter Bartok <pbartok@novell.com>
36907
36908         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
36909           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
36910           to implement focus and activation handling; still incomplete and
36911           with debug output
36912
36913 2005-01-04  Peter Bartok <pbartok@novell.com>
36914
36915         * TextBoxBase.cs: Changed access level for Document property to
36916           match switch to internal for TextControl
36917
36918 2005-01-04  Peter Bartok <pbartok@novell.com>
36919
36920         * AccessibleObject: Added ComVisible attribute
36921
36922 2005-01-04  Jackson Harper  <jackson@ximian.com>
36923
36924         * X11Keyboard.cs: Remove unneeded var.
36925
36926 2005-01-04  Jackson Harper  <jackson@ximian.com>
36927
36928         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
36929         but PAINT.
36930         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
36931         ClientMessage. This makes apps exit cleanly (more often).
36932         
36933 2005-01-04  Jackson Harper  <jackson@ximian.com>
36934
36935         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
36936         handling focus, return correct colors and fonts,
36937         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
36938         handle selection, horizontal scrolling, and mouse interaction.
36939
36940 2005-01-04  Peter Bartok <pbartok@novell.com>
36941
36942         * ICommandExecutor.cs: Added
36943         * IDataGridColumnStyleEditingNotificationService.cs: Added
36944         * IFeatureSupport.cs: Added
36945         * IFileReaderService.cs: Added
36946         * IDataObject.cs: Added ComVisible attribute
36947         * AmbientProperties.cs: Added
36948         * BaseCollection.cs: Added missing attributes
36949         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
36950         * BaseCollection.cs: Added missing attributes
36951         * Binding.cs: Added TypeConverter attribute
36952         * BindingContext.cs: Added DefaultEvent attribute
36953         * BindingsCollection.cs: Added DefaultEvent attribute
36954         * Button.cs: Added DefaultValue attribute
36955         * DragEventArgs.cs: Added ComVisible attribute
36956         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
36957         * KeyEventArgs.cs: Added ComVisible attribute
36958         * KeyPressEventArgs.cs: Added ComVisible attribute
36959         * MouseEventArgs.cs: Added ComVisible attribute
36960         * NavigateEventArgs.cs: Added
36961         * NavigateEventHandler.cs: Added
36962         * FeatureSupport.cs: Added
36963         * OSFeature.cs: Added
36964         * Theme.cs: Added abstract Version property to support OSFeature
36965         * ThemeWin32Classic.cs: Added Version property to
36966           support OSFeature.Themes
36967         * ProgressBar.cs: Removed OnPaintBackground override, not required since
36968           the proper styles to avoid background drawing are set, also doesn't
36969           match MS signature
36970         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
36971         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
36972         * ScrollEventArgs.cs: Added ComVisible attribute
36973         * SplitterEventArgs.cs: Added ComVisible attribute
36974         * AccessibleSelection.cs: Added Flags attribute
36975         * Appearance.cs: Added ComVisible attribute
36976         * Border3DSide.cs: Added ComVisible attribute
36977         * Border3DStyle.cs: Added ComVisible attribute
36978         * BorderStyle.cs: Added ComVisible attribute
36979         * DragAction.cs: Added ComVisible attribute
36980         * ErrorBlinkStyle.cs: Added
36981         * ScrollEventType.cs: Added ComVisible attribute
36982         * AnchorStyles.cs: Added Editor attribute
36983         * DockStyle.cs: Added Editor attribute
36984         * HorizontalAlignment.cs: Added ComVisible attribute
36985         * HelpEventArgs.cs: Added ComVisible attribute
36986         * PaintEventArgs.cs: Added IDisposable
36987
36988 2005-01-04  Peter Bartok <pbartok@novell.com>
36989
36990         * TextControl.cs: Switched Line, LineTag and Document classes to
36991           internal
36992
36993 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36994
36995         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
36996         Simple mode, fixes, IntegralHeight, etc.
36997
36998 2005-01-04  Peter Bartok <pbartok@novell.com>
36999
37000         * TextBoxBase.cs: Using proper font variable now
37001
37002 2005-01-04  Peter Bartok <pbartok@novell.com>
37003
37004         * Form.cs (ShowDialog): Set parent to owner, if provided
37005         * GroupBox.cs: Removed unused vars
37006         * TextControl.cs:
37007           - Added GetHashCode() for Document and LineTag classes
37008           - Removed unused variables
37009           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
37010             to allow translation between continuous char position and line/pos
37011         * CheckBox.cs: Removed vars that are provided by base class
37012         * RadioButton.cs: Removed vars that are provided by base class, added
37013           new keyword where required
37014         * LinkLabel.cs: Added new keyword where required
37015         * Control.cs (WndProc): Removed unused variable
37016         * TextBoxBase.cs:
37017           - Finished SelectionLength property
37018           - Implemented SelectionStart property
37019           - Implemented Text property
37020           - Removed unused vars
37021         * MessageBox.cs: Added new keyword where required
37022         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
37023           WndProc signature
37024         * MenuAPI.cs: Added new keyword where required
37025         * ButtonBase.cs: Removed vars that are provided by base class, added
37026           new keyword where required
37027         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
37028           argument to double, to allow compiling with csc 2.0 (Atsushi ran
37029           into this)
37030         * Application.cs (Run): Now triggers the ThreadExit event
37031         * CommonDialog.cs: Added new keyword where required; now properly sets
37032           parent (owner) for dialog
37033         * XplatUIX11.cs: Commented out unused vars
37034         * StatusBar.cs: Fixed signature for Text property
37035         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
37036
37037 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
37038
37039         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
37040         TrackBar.cs, MonthCalendar.cs: remove unused vars
37041
37042 2005-01-03  Jackson Harper  <jackson@ximian.com>
37043
37044         * ThemeWin32Classic.cs:
37045         * X11Keyboard.cs: Remove unused vars.
37046
37047 2005-01-03  Peter Bartok  <pbartok@novell.com>
37048
37049         * TextBox.cs:
37050           - set_Text: Tied into TextControl
37051           - set_TextAlignment: Tied into TextControl
37052         * TextControl.cs:
37053           - Added alignment properties and implemented alignment handling
37054             and drawing (still has a bug, not generating proper expose events)
37055           - Added new Line() constructor to allow passing the line alignment
37056           - Fixed selection setting, properly handling end<start now
37057           - Added aligment considerations to RecalculateDocument()
37058         * TextBoxBase.cs:
37059           - Now properly enforces control height for single line controls
37060           - Added support for CharacterCasing
37061           - Added IsInputKey override
37062           - Fixed Keys.Enter logic
37063           - Added SetBoundsCore override
37064           - Fixed mouse selection handling
37065
37066 2005-01-03  Jackson Harper  <jackson@ximian.com>
37067
37068         * TreeView.cs:
37069           - Collapse and uncheck all nodes when CheckBoxes is disabled.
37070           - Checkboxes are always aligned to the bottom of the node,
37071           regardless of item height.
37072           - Use the node bounds to draw the text so we can center it when
37073           the item height is greater then the font height.
37074           - Node::Bounds are only the text part of the node.
37075         * TreeNode.cs: New method to combine collapsing and unchecking all
37076           nodes recursively.
37077
37078 2005-01-02  Jackson Harper  <jackson@ximian.com>
37079
37080         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
37081         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
37082         tree when a check is changed. TODO: Only refresh the checked node.
37083
37084 2004-12-30  Jackson Harper  <jackson@ximian.com>
37085
37086         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
37087         * TreeNode.cs: When collapsing make sure to never collapse the
37088         root node.
37089
37090 2004-12-29  Jackson Harper  <jackson@ximian.com>
37091
37092         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
37093         
37094 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
37095
37096         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
37097
37098 2004-12-28  Peter Bartok  <pbartok@novell.com>
37099
37100         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
37101           not yet assigned
37102
37103 2004-12-28  Peter Bartok  <pbartok@novell.com>
37104
37105         * Control.cs (WndProc): Added WM_HELP handler, now generates
37106           HelpRequested event
37107         * Form.cs: Added HelpButton property and required support code
37108         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
37109
37110 2004-12-28  Peter Bartok  <pbartok@novell.com>
37111
37112         * CommonDialog.cs:
37113           - Made DialogForm.owner variable internal
37114           - Added check to ensure owner form is set before setting
37115             owner properties in CreateParams
37116
37117 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
37118
37119         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
37120           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
37121           GetCursorPos.  Fix major visibility issues.  Rework the windowing
37122           system to support borderless/titleless windows (implements menus).
37123           Fix GetWindowPos.  Implement initial background color support for
37124           views.
37125
37126 2004-12-28  Peter Bartok  <pbartok@novell.com>
37127
37128         * Form.cs (get_CreateParams): Make sure we have an owner before using
37129           the owner variable. Implement proper default if no owner exists
37130
37131 2004-12-28  Peter Bartok  <pbartok@novell.com>
37132
37133         * In preparation for making Managed.Windows.Forms the default build target
37134           for System.Windows.Forms, the following stubbed files were added.
37135           Dialogs are currently being implemented by contributors and are only
37136           short-term place holders.
37137         * ColorDialog.cs: Initial check-in (minmal stub)
37138         * DataGrid.cs: Initial check-in (minimal stub)
37139         * DataGridLineStyle.cs: Initial check-in (minimal stub)
37140         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
37141         * DataGridTableStyle.cs: Initial check-in (minimal stub)
37142         * FontDialog.cs: Initial check-in (minimal stub)
37143         * FileDialog.cs: Initial check-in (minimal stub)
37144         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
37145         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
37146         * OpenFileDialog: Initial check-in (minimal stub)
37147         * IComponentEditorPageSite.cs: Initial check-in
37148         * Splitter.cs: Initial check-in (for Jackson)
37149         * SplitterEventArgs.cs: Initial check-in (for Jackson)
37150         * SplitterEventHandler.cs: Initial check-in (for Jackson)
37151         * TextBox.cs: Initial check-in; still needs some wiring to
37152           TextControl backend
37153         * Form.cs: Implemented ControlBox property
37154         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
37155         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
37156         * TextControl.cs: Added selection functionality; added todo header
37157         * TextBoxBase.cs:
37158           - Implemented Lines property
37159           - Implemented TextHeight property
37160           - Implemented SelectedText property
37161           - Implemented SelectionLength property
37162           - Implemented SelectAll method
37163           - Implemented ToString method
37164           - Removed and cleaned up some debug code
37165           - Implemented (still buggy) mouse text selection
37166
37167 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
37168
37169         * ComboBox.cs: Complete DropDownList implementation, fixes.
37170
37171 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
37172
37173         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
37174         * ComboBoxStyle.cs: ComboBoxStyle enum
37175         * ComboBox.cs: Initial work on ComboBox control
37176
37177 2004-12-21  Peter Bartok  <pbartok@novell.com>
37178
37179         * Control.cs (ctor, CreateParams): Moved setting of is_visible
37180           forward so that anything that creates a window gets the default,
37181           also no longer uses Visible property in CreateParams to avoid
37182           walking up the parent chain and possibly get the wrong visible
37183           status. Fixed IsVisible to no longer walk up to the parent.
37184
37185 2004-12-21  Peter Bartok  <pbartok@novell.com>
37186
37187         * Form.cs (ShowDialog): Unset modality for the proper window
37188  
37189 2004-12-20  Peter Bartok  <pbartok@novell.com>
37190
37191         * CommonDialog.cs: Initial check-in
37192
37193 2004-12-20  Peter Bartok  <pbartok@novell.com>
37194
37195         * Control.cs (Visible): Now uses the parent window instead of the
37196           client area window for the property
37197
37198         * Form.cs
37199           - ShowDialog(): Now uses the proper window for modality
37200           - The default visibility state for the form parent is now false. This
37201             will prevent the user from seeing all the changes to the form and
37202             its controls before the application hits Application.Run()
37203           - Removed some stale commented out code
37204
37205         * NativeWindow.cs:
37206           - Added FindWindow() method to have a method to check for existence
37207             of a window handle
37208           - Added ability to override default exception handling (for example
37209             when debugging with VS.Net; to do this the ExternalExceptionHandler
37210             define must be set
37211           - Removed some useless debug output
37212
37213         * XplatUIX11.cs:
37214           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
37215             not working as expected
37216           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
37217             property to allow switching back to the modal window if focus is
37218             given to another one of our windows (Application Modal)
37219           - Now only sets override_redirect if we create a window
37220             without WS_CAPTION
37221           - Moved EventMask selection before mapping of newly created window
37222             so we can catch the map event as well
37223           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
37224           - Added various Atom related DllImports
37225           - Implemented Exit() method
37226           - .ctor() : No longer shows window if WS_VISIBLE is not defined
37227             in the CreateParams
37228
37229         * MessageBox.cs: Now properly deals with the FormParent window by
37230           providing an override the FormParent CreateParams property to
37231           set as POPUP instead of OVERLAPPED window.
37232
37233 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
37234
37235         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
37236         Minor code cleanup.
37237
37238 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
37239         
37240         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
37241
37242 2004-12-18  Peter Bartok  <pbartok@novell.com>
37243
37244         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
37245           implementing SetModal() method
37246
37247 2004-12-18  Peter Bartok  <pbartok@novell.com>
37248
37249         * X11Structs.cs (XGCValues): Fixed type of function element
37250         * XplatUI.cs: Added ScrollWindow() method
37251         * XplatUIDriver.cs: Added ScrollWindow() abstract
37252         * XplatUIWin32.cs: Implemented ScrollWindow() method
37253         * XplatUIX11.cs: Implemented ScrollWindow() method
37254         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
37255
37256 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
37257
37258         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
37259         Some more keyboard support (INCOMPLETE)
37260
37261 2004-12-17  Peter Bartok  <pbartok@novell.com>
37262
37263         * TextControl.cs:
37264         - Added color attribute to line tags.
37265         - Added color argument to all functions dealing with tags
37266         - Added color argument support to various functions
37267         - Fixed miss-calculation of baseline/shift in certain circumstances
37268
37269         * TextBoxBase.cs: Added new color option to test code
37270
37271 2004-12-17  Jackson Harper  <jackson@ximian.com>
37272
37273         * TreeNode.cs:
37274         * MonthCalendar.cs: Signature fixes
37275
37276 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
37277
37278         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
37279         keyboard event moved it.  Create a new graphics context for each paint resolves this
37280
37281 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
37282
37283         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
37284         Make caret exist and go blink blink.  Initial keyboard support.
37285         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
37286         works.
37287
37288 2004-12-17  Jackson Harper  <jackson@ximian.com>
37289
37290         * XplatUIStructs.cs: Updated set of virtual keycodes.
37291         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
37292
37293 2004-12-17  Jackson Harper  <jackson@ximian.com>
37294
37295         * XplatUIX11.cs: Prune old keyboard code.
37296
37297 2004-12-17  Jackson Harper  <jackson@ximian.com>
37298
37299         * XplatUIX11.cs: When generating mouse wparams get the modifier
37300         keys from the ModifierKeys property.
37301
37302 2004-12-17  Jackson Harper  <jackson@ximian.com>
37303
37304         * X11Keyboard.cs: Send up/down input when generating
37305         messages. Remove some unused vars.
37306
37307 2004-12-17  Jackson Harper  <jackson@ximian.com>
37308
37309         * TabControl.cs:
37310         * TreeView.cs: get rid of warnings.
37311
37312 2004-12-17  Jackson Harper  <jackson@ximian.com>
37313
37314         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
37315
37316 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
37317
37318         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
37319           CheckedListBox.cs: Implementation
37320
37321 2004-12-17  Peter Bartok  <pbartok@novell.com>
37322
37323         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
37324
37325 2004-12-16  Peter Bartok  <pbartok@novell.com>
37326
37327         * TextControl.cs:
37328           - InsertCharAtCaret(): Fixed start pos fixup
37329           - CaretLine_get: No longer derives the line from the tag, the tag
37330             could be stale if lines in the document have been added or deleted
37331           - RebalanceAfterDelete(): Fixed bug in balancing code
37332           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
37333           - Line.Streamline(): Now can also elminate leading empty tags
37334           - DumpTree(): Added a few more tests and prevented exception on
37335             uninitialized data
37336           - Added Debug section for Combining lines
37337           - Delete(): Now copies all remaining properties of a line
37338           
37339         * TextBoxBase.cs:
37340           - Left mousebutton now sets the caret (and middle button still acts
37341             as formatting tester, which must go away soon)
37342           - Added Debug section for Deleting/Combining lines
37343           - Fixed calculations for UpdateView after Combining lines
37344
37345 2004-12-16  Peter Bartok  <pbartok@novell.com>
37346
37347         * TextControl.cs: Now properly aligns text on a baseline, using the
37348           new XplatUI.GetFontMetrics() method. Simplified several calculations
37349         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
37350           defined
37351
37352 2004-12-16  Peter Bartok  <pbartok@novell.com>
37353
37354         * XplatUI.cs: Added GetFontMetrics() method
37355         * XplatUIDriver.cs: Added GetFontMetrics() abstract
37356         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
37357           into libgdiplus, our private GetFontMetrics function
37358         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
37359         * XplatUIWin32.cs: Implemented GetFontMetrics() method
37360
37361 2004-12-16  Jackson Harper  <jackson@ximain.com>
37362
37363         * XplatUIStruct.cs: Add enum for dead keys
37364         * X11Keyboard.cs: Map and unmap dead keys.
37365
37366 2004-12-16  Jackson Harper  <jackson@ximian.com>
37367
37368         * X11Keyboard.cs: Detect and use the num lock mask.
37369
37370 2004-12-16  Peter Bartok  <pbartok@novell.com>
37371
37372         * Control.cs (CreateGraphics): Added check to make sure the
37373           handle of the window exists before calling Graphics.FromHwnd()
37374
37375 2004-12-16  Peter Bartok  <pbartok@novell.com>
37376
37377         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
37378           contains a lot of code that's not supposed to be there for the
37379           real thing, but required for developing/testing the textbox
37380           backend.
37381
37382 2004-12-16  Peter Bartok  <pbartok@novell.com>
37383
37384         * TextControl.cs:
37385         - Fixed Streamline method
37386         - Added FindTag method to Line
37387         - Added DumpTree method for debugging
37388         - Added DecrementLines() method for deleting lines
37389         - Fixed UpdateView to update the cursor to end-of-line on single-line
37390           updates
37391         - Added PositionCaret() method
37392         - Fixed MoveCaret(LineDown) to move into the last line, too
37393         - Added InsertChar overload
37394         - Fixed InsertChar tag offset calculations
37395         - Added DeleteChar() method
37396         - Added Combine() method for folding lines
37397         - Fixed Delete() method, no longer allocates wasted Line object and
37398           now copies all properties when swapping nodes
37399         - Delete() method now updates document line counter
37400
37401 2004-12-15  Jackson Harper  <jackson@ximian.com>
37402
37403         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
37404         * X11Keyboard.cs: Expose the currently selected modifier keys
37405         through a property.
37406
37407 2004-12-15  Peter Bartok  <pbartok@novell.com>
37408
37409         * TextControl.cs: Initial check-in. Still incomplete
37410
37411 2004-12-15  Jackson Harper  <jackson@ximian.com>
37412
37413         * TreeNode.cs:
37414         * TreeView.cs: Fix build on csc (second time today ;-))
37415
37416 2004-12-15  Jackson Harper  <jackson@ximian.com>
37417
37418         * TreeView.cs: Store the treenodes plus/minus box bounds when it
37419         is calculated and use this for click testing.
37420         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
37421
37422 2004-12-15  Jackson Harper  <jackson@ximian.com>
37423
37424         * TreeView.cs: Pass the nodes image index to the image list when
37425         drawing that image.
37426
37427 2004-12-15  Jackson Harper  <jackson@ximian.com>
37428
37429         * X11Keyboard.cs: Set messages hwnd.
37430         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
37431         post_message calls.
37432
37433 2004-12-15  Jackson Harper  <jackson@ximian.com>
37434
37435         * X11Keyboard.cs: Fix to compile with csc.
37436         
37437 2004-12-15  Jackson Harper  <jackson@ximian.com>
37438
37439         * X11Structs.cs: Add key mask values
37440         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
37441         * X11Keyboard.cs: New file - Extrapolates and interpolates key
37442         down/up foo into WM_CHAR foo
37443         * KeyboardLayouts.cs: Common keyboard layouts
37444         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
37445         post messages into the main queue.
37446
37447 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
37448
37449         * Button.cs: implement ProcessMnemonic
37450         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
37451           brushes everytime
37452         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
37453         * ButtonBase.cs: Show HotkeyPrefix (not the &)
37454
37455 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
37456         
37457         * MonthCalendar.cs: Implemented click-hold for next/previous month
37458           and date selection
37459           
37460 2004-12-11  Peter Bartok  <pbartok@novell.com>
37461
37462         * X11Structs.cs:
37463           - Added XKeyboardState (moved from XplatUIX11.cs)
37464           - Added XCreateGC related enums and structures
37465           - Added GXFunction for XSetFunction
37466
37467         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
37468
37469         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
37470           CaretVisible() calls
37471
37472         * ToolTip.cs: Added code to prevent stealing focus from app windows
37473
37474         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
37475           DestroyCaret, SetCaretPos and CaretVisible)
37476
37477         * XplatUIX11.cs:
37478           - Added implementation for caret functions
37479           - Moved hover variables into a struct, to make it a bit easier
37480             on the eyes and to debug
37481           - Removed XKeyboardState (moved to XplatUIX11.cs)
37482           - Moved Keyboard properties into the properties region
37483
37484         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
37485           call to get a graphics context for our control
37486
37487         * XplatUIOSX.cs: Added empty overrides for the new caret functions
37488
37489         * TreeView.cs: Fixed bug. No matter what color was set it would always
37490           return SystemColors.Window
37491
37492         * XplatUIWin32.cs: Implemented caret overrides
37493
37494 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
37495
37496         * ListBox.cs: fire events, implement missing methods and properties,
37497         sorting.
37498
37499 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
37500
37501         * MonthCalendar.cs: invalidation bug fixing
37502         * ThemeWin32Classic.cs: paint fixing
37503
37504 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
37505
37506         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
37507         prepare the CGContextRef there now.
37508
37509 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
37510
37511         * MonthCalendar.cs:
37512           - optimisationL only invalidate areas that have changed
37513         * ThemeWin32Classic.cs:
37514           - only paint parts that intersect with clip_area
37515
37516 2004-12-09  Peter Bartok  <pbartok@novell.com>
37517
37518         * Application.cs: Undid changes from r37004 which cause problems
37519         on X11
37520
37521 2004-12-09  Ravindra  <rkumar@novell.com>
37522
37523         * ToolBar.cs: Added support for displaying ContextMenu
37524         attached to a button on ToolBar.
37525         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
37526         property.
37527
37528 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
37529
37530         * Label.cs: autosize works in text change and removes unnecessary
37531         invalidate
37532
37533 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
37534
37535         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
37536         remove warnings
37537
37538 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
37539
37540         * XplatUIOSX.cs: Added mouse move/click/grab support
37541         Remove some debugging WriteLines not needed anymore.
37542         Add window resizing/positioning.
37543         Fix visibility on reparenting.
37544
37545 2004-12-08  Peter Bartok  <pbartok@novell.com>
37546
37547         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
37548
37549 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
37550
37551         * XplatUIOSX.cs: Initial checkin
37552         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
37553
37554 2004-12-03  Ravindra <rkumar@novell.com>
37555
37556         * ListView.cs: Added some keybindings and fixed scrolling.
37557         ScrollBars listen to ValueChanged event instead of Scroll
37558         Event. This would let us take care of all changes being
37559         done in the scrollbars' values programmatically or manually.
37560         * ListView.cs (CanMultiselect): Added a check for shift key.
37561         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
37562         * ListViewItem.cs (Clone): Fixed. We need to make a copy
37563         of ListViewSubItemCollection as well.
37564
37565 2004-12-06  Peter Bartok <pbartok@novell.com>
37566
37567         * Control.cs (Parent): Added check and exception to prevent
37568         circular parenting
37569
37570 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
37571
37572         * ListBox.cs: implemented clipping, selection single and multiple,
37573         bug fixing
37574
37575 2004-12-03  Ravindra <rkumar@novell.com>
37576
37577         * ListView.cs (ListView_KeyDown):
37578         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
37579         when CTRL key is pressed.
37580         * ListViewItem.cs (Selected): Fixed setting the property.
37581
37582 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
37583
37584         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
37585
37586         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
37587         MinimizeBox, ShowInTaskbar, TopMost properties.
37588
37589         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
37590         will be implemented).
37591
37592 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
37593
37594         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
37595
37596         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
37597         tests.
37598         
37599         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
37600         
37601         * TreeView.cs: BackColor is Colors.Window.
37602
37603 2004-12-01  Jackson Harper  <jackson@ximian.com>
37604
37605         * TreeView.cs: When resizing the tree if the user is making it
37606         smaller we don't get expose events, so we need to handle adding
37607         the horizontal scrollbar in the size changed handler as well as
37608         the expose handler.
37609
37610 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
37611
37612         * DrawItemState.cs: fixes wrong enum values
37613
37614 2004-12-01  Jackson Harper  <jackson@ximian.com>
37615
37616         * TreeView.cs: Resize the hbar as well as the vbar on resize.
37617
37618 2004-12-01  Jackson Harper  <jackson@ximian.com>
37619
37620         * NodeLabelEditEventArgs.cs:
37621         * NodeLabelEditEventHandler.cs:
37622         * OpenTreeNodeEnumerator.cs:
37623         * TreeNode.cs:
37624         * TreeNodeCollection.cs:
37625         * TreeView.cs:
37626         * TreeViewAction.cs:
37627         * TreeViewCancelEventArgs.cs:
37628         * TreeViewCancelEventHandler.cs:
37629         * TreeViewEventArgs.cs:
37630         * TreeViewEventHandler.cs: Initial implementation.
37631
37632 2004-12-01  Ravindra <rkumar@novell.com>
37633
37634         * ListView.cs (CalculateListView): Fixed scrolling related
37635         calculations. Also, removed some debug statements from other
37636         places.
37637         * ListViewItem.cs: Changed access to 'selected' instance variable
37638         from private to internal.
37639         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
37640
37641 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
37642
37643         * ThemeWin32Classic.cs: remove cache of brush and pens for
37644         specific controls and use the global system, fixes scrollbutton
37645         bugs (for small sizes, disabled, etc)
37646         
37647         * ScrollBar.cs: does not show the thumb for very small controls
37648         (as MS) and allow smaller buttons that the regular size
37649
37650 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
37651
37652         * UpDownBase.cs: Add abstract methods for the interface.
37653         Add new virtual methods (need to be hooked up to TextEntry when it
37654         exists).
37655         Add override methods for most features.
37656         Computes the size, forces the height of the text entry.
37657
37658         * NumericUpDown.cs: Put here the current testing code.
37659
37660         * Set eol-style property on all files that do not have mixed line
37661         endings, to minimize the future problems.  There are still a few
37662         files with mixed endings, and someone should choose whether they
37663         want to move it or not.
37664
37665 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
37666
37667         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
37668         System.Colors
37669         
37670 2004-11-30  Ravindra <rkumar@novell.com>
37671
37672         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
37673         drawing and replaced use of SystemColors by theme colors.
37674         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
37675         * ListView.cs (ListViewItemCollection.Add): Throw exception when
37676         same ListViewItem is being added more than once.
37677
37678 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
37679
37680         * MonthCalendar.cs:
37681           - ControlStyles love to make the control not flicker
37682           
37683 2004-11-30  Peter Bartok  <pbartok@novell.com>
37684
37685         * CharacterCasing.cs: Added
37686
37687 2004-11-29  Peter Bartok  <pbartok@novell.com>
37688
37689         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
37690           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
37691           I am removing these files as they conflict with already completed
37692           work. While it is fantastic to get contributions to MWF, I
37693           respectfully ask that everyone please coordinate their contributions
37694           through mono-winforms-list or #mono-winforms at this time. We're
37695           explicitly avoiding stubbing and don't want controls that don't have
37696           their basic functionality implemented in svn. Please also see
37697           http://www.mono-project.com/contributing/winforms.html
37698
37699
37700 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
37701
37702         * Application.cs (ModalRun): Don't hang after exit.
37703
37704         * Theme.cs: New TreeViewDefaultSize property.
37705
37706         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
37707         with less hardcoded SystemColors constant.
37708         Implemented TreeViewDefaultSize.
37709
37710         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
37711         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
37712
37713
37714 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
37715
37716         * MonthCalendar.cs:
37717           - Fix NextMonthDate and PrevMonthDate click moving calendar
37718
37719 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
37720
37721         * MonthCalendar.cs:
37722           - Fix usage of ScrollChange Property when scrolling months
37723
37724 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
37725
37726         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
37727          - Fixes menu destroying
37728          - Support adding and removing items on already created menus
37729
37730 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
37731
37732         * MonthCalendar.cs:
37733           - Re-worked all bolded dates handling to match win32
37734         * ThemeWin32Classic.cs:
37735           - Fixed rendering with bolded dates
37736
37737 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
37738
37739         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
37740         - Horizontal scroolbar
37741         - Multicolumn
37742         - Fixes
37743
37744
37745 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
37746
37747         * MonthCalendar.cs:
37748           - Fix Usage of MaxSelectionCount from SelectionRange
37749           - Fixed Shift + Cursor Selection
37750           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
37751           - Fixed normal cursor selection to be compat with win32
37752           - Fixed Shift + Mouse Click selection
37753
37754 2004-11-24  Peter Bartok <pbartok@novell.com>
37755
37756         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
37757         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
37758         * XplatUIX11.cs:
37759           - CreatedKeyBoardMsg now updates keystate with Alt key
37760           - Added workaround for timer crash to CheckTimers, Jackson will
37761             develop a proper fix and check in later
37762           - Implemented DispatchMessage
37763           - Removed calling the native window proc from GetMessage (call
37764             now moved to DispatchMessage)
37765
37766         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
37767           the keydata (Fixes bug #69831)
37768
37769         * XplatUIWin32.cs:
37770           - (DispatchMessage): Switched to return IntPtr
37771           - Added DllImport for SetFocus
37772
37773 2004-11-24  Ravindra <rkumar@novell.com>
37774
37775         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
37776         background drawing.
37777         * ListViewItem.cs: Fixed various properties, calculations
37778         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
37779         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
37780         and some internal properties. Fixed MouseDown handler and Paint
37781         method.
37782
37783 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37784
37785         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
37786
37787 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37788
37789         * ContainerControl.cs: correct accidental check in of local changes
37790
37791 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37792
37793         * ThemeWin32Classic.cs:
37794                 - Fixed Drawing Last month in grid (sometimes not showing)
37795         * MonthCalendar.cs:
37796                 - Fixed title width calculation bug (makeing title small)
37797
37798 2004-11-23  Peter Bartok <pbartok@novell.com>
37799
37800         * XplatUIX11.cs:
37801           - Added generation of WM_MOUSEHOVER event
37802           - Added missing assignment of async_method atom
37803           - Fixed WM_ERASEBKGND; now only redraws the exposed area
37804
37805 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
37806
37807         * ThemeWin32Classic.cs:
37808                 - Fixed Drawing of today circle when showtodaycircle not set
37809                 - fixed drawing of first and last month in the grid (gay dates)
37810         * MonthCalendar.cs:
37811                 - Fixed Drawing of today circle
37812                 - Fixed drawing of grady dates
37813                 - Fixed HitTest for today link when ShowToday set to false
37814                 - Fixed DefaultSize to obey ShowToday
37815
37816 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
37817
37818         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
37819         * System.Windows.Forms/Theme.cs
37820         * MonthCalendar.cs: added for MonthCalendar
37821         * SelectionRange.cs: added for MonthCalendar
37822         * Day.cs: added for MonthCalendar: added for MonthCalendar
37823         * DateRangeEventArgs.cs: added for MonthCalendar
37824         * DateRangeEventHandler.cs: added for MonthCalendar
37825
37826 2004-11-22  Ravindra <rkumar@novell.com>
37827
37828         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
37829         property.
37830
37831 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
37832
37833         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
37834         event handler.
37835         
37836         * NumericUpDown.cs: Added new implementation.
37837         * UpDownBase.cs: Added new implementation.
37838
37839         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
37840         implementations.
37841         
37842         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
37843         implementations.
37844
37845         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
37846         methods.
37847
37848 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
37849
37850         * Timer.cs  (Dispose): Should call the base dispose when
37851         overriding.
37852
37853 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
37854
37855         * ScrollBar.cs: updates thumb position when max, min or increment
37856         is changed
37857
37858 2004-11-21  Ravindra <rkumar@novell.com>
37859
37860         * ListView.cs: Implemented item selection, activation and
37861         column header style. Fixed properties to do a redraw, if
37862         required. Added support for MouseHover, DoubleClick, KeyDown
37863         and KeyUp event handling and some minor fixes.
37864         * ListViewItem.cs: Fixed constructor.
37865         * ThemeWin32Classic.cs: Improved drawing for ListView.
37866
37867 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
37868
37869         * ThemeWin32Classic.cs: initial listbox drawing code
37870         * DrawMode.cs: new enumerator
37871         * ListControl.cs: stubbed class
37872         * ListBox.cs: initial implementation
37873         * Theme.cs: new methods definitions
37874         * SelectionMode.cs: new enumerator
37875
37876 2004-11-17  Peter Bartok  <pbartok@novell.com>
37877
37878         * XplatUIWin32.cs: Added double-click events to the class style
37879         * Control.cs (WndProc):
37880           - Added handling of click-count to MouseDown/ MouseUp events.
37881           - Added handling of middle and right mouse buttons
37882           - Removed old debug code
37883
37884 2004-11-17  Jackson Harper  <jackson@ximian.com>
37885
37886         * XplatUIX11.cs: Use the new Mono.Unix namespace.
37887
37888 2004-11-17  Ravindra <rkumar@novell.com>
37889
37890         * ListView.cs: Added event handling for MouseMove/Up/Down.
37891         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
37892         * ThemeWin32Classic.cs: We need to clear the graphics context and
37893         draw column header in a proper state.
37894
37895
37896 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
37897
37898         *  Menu.cs: fixes signature
37899
37900 2004-11-16  Peter Bartok  <pbartok@novell.com>
37901
37902         * XplatUIX11.cs (GetMessage): Implemented generation of
37903           double click mouse messages
37904
37905 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
37906
37907         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
37908         not by menu
37909
37910 2004-11-11  Peter Bartok  <pbartok@novell.com>
37911
37912         * HandleData.cs: Added Visible property
37913         * XplatUIX11.cs (IsVisible): Now uses Visible property from
37914           HandleData
37915         * XplatUIX11.cs: Removed old debug leftovers
37916         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
37917         * Control.cs (WndProc): Removed old debug leftovers,
37918           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
37919           needed WM_SIZE handling
37920
37921 2004-11-11  Jackson Harper  <jackson@ximian.com>
37922
37923         * OwnerDrawPropertyBag.cs:
37924         * TreeViewImageIndexConverter.cs: Initial implementation
37925
37926 2004-11-10  Jackson Harper  <jackson@ximian.com>
37927
37928         * ThemeWin32Classic.cs:
37929         * TabControl.cs: instead of moving tabs by the slider pos just
37930         start drawing at the tab that is offset by the slider. This way
37931         scrolling always moves by exactly one tab.
37932
37933 2004-11-10  Jackson Harper  <jackson@ximian.com>
37934
37935         * TabControl.cs: You can only scroll left when the slider has
37936         already ben moved right.
37937         
37938 2004-11-10  Jackson Harper  <jackson@ximian.com>
37939
37940         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
37941         the clip area.
37942         
37943 2004-11-10  Jackson Harper  <jackson@ximian.com>
37944
37945         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
37946         clip area.
37947         
37948 2004-11-09  Jackson Harper  <jackson@ximian.com>
37949
37950         * TabControl.cs (CalcXPos): New helper method so we can determine
37951         the proper place to start drawing vertical tabs.
37952         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
37953         
37954 2004-11-09  Jackson Harper  <jackson@ximian.com>
37955
37956         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
37957         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
37958         and Bottom, left and right are illegal values for this and
37959         multiline is enabled when the alignment is set to left or right.
37960         (DrawTab): Each alignment block should draw the text itself now
37961         because Left requires special love. Also add rendering for Left
37962         aligned tabs.
37963         
37964 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
37965
37966         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
37967         does not destroy the windows, removes debugging messages
37968
37969 2004-11-09  jba  <jba-mono@optusnet.com.au>
37970
37971         * ThemeWin32Classic.cs
37972         (DrawButtonBase): Fix verticle text rect clipping in windows
37973         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37974         rendering and incorrect text rect clipping
37975         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37976         rendering and incorrect text rect clipping
37977         
37978 2004-11-08  Jackson Harper  <jackson@ximian.com>
37979
37980         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
37981         bottom when they are bottom aligned so the bottoms of the tabs get
37982         displayed.
37983         * TabControl.cs (DropRow): Move rows up instead of down when the
37984         tab control is bottom aligned.
37985
37986 2004-11-08 13:59  pbartok
37987
37988         * XplatUIX11.cs:
37989           - Added handling for various window styles
37990           - Added handling for popup windows
37991           - Added SetTopmost handling
37992
37993 2004-11-08 13:55  pbartok
37994
37995         * XplatUIWin32.cs:
37996           - Added argument to SetTopmost method
37997           - Fixed broken ClientToScreen function
37998
37999 2004-11-08 13:53  pbartok
38000
38001         * XplatUIStructs.cs:
38002           - Added missing WS_EX styles
38003
38004 2004-11-08 13:53  pbartok
38005
38006         * XplatUI.cs, XplatUIDriver.cs:
38007           - Added argument to SetTopmost
38008
38009 2004-11-08 13:52  pbartok
38010
38011         * X11Structs.cs:
38012           - Added XSetWindowAttributes structure
38013           - Improved XWindowAttributes structure
38014           - Added SetWindowValuemask enum
38015           - Added window creation arguments enum
38016           - Added gravity enum
38017           - Added Motif hints structure
38018           - Added various Motif flags and enums
38019           - Added PropertyMode enum for property functions
38020
38021 2004-11-08 13:50  pbartok
38022
38023         * Form.cs:
38024           - Fixed arguments for updated SetTopmost method
38025
38026 2004-11-08 13:49  pbartok
38027
38028         * ToolTip.cs:
38029           - Fixed arguments for updated SetTopmost function
38030           - Fixed usage of PointToClient
38031
38032 2004-11-08 13:44  pbartok
38033
38034         * MenuAPI.cs:
38035           - Added Clipping of children and siblings
38036
38037 2004-11-08 13:41  pbartok
38038
38039         * MainMenu.cs:
38040           - Removed SetMenuBarWindow call. We do this in Form.cs
38041
38042 2004-11-08 13:40  jackson
38043
38044         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
38045           scrolling jimmi in the correct location with bottom aligned tabs
38046
38047 2004-11-08 13:36  pbartok
38048
38049         * ContainerControl.cs:
38050           - Implemented BindingContext
38051           - Implemented ParentForm
38052
38053 2004-11-08 12:46  jackson
38054
38055         * TabControl.cs: Put bottom rendered tabs in the right location
38056
38057 2004-11-08 07:15  jordi
38058
38059         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
38060           removes dead code
38061
38062 2004-11-05 17:30  jackson
38063
38064         * TabControl.cs: When selected tabs are expanded make sure they
38065           don't go beyond the edges of the tab control
38066
38067 2004-11-05 14:57  jackson
38068
38069         * TabControl.cs: Reset show_slider so if the control is resized to
38070           a size where it is no longer needed it's not displayed anymore
38071
38072 2004-11-05 13:16  jackson
38073
38074         * TabControl.cs: Make tab pages non visible when added to the
38075           control
38076
38077 2004-11-05 12:42  jackson
38078
38079         * TabControl.cs: Implement SizeMode.FillToRight
38080
38081 2004-11-05 12:16  jackson
38082
38083         * Control.cs: Do not call CreateHandle if the handle is already
38084           created
38085
38086 2004-11-05 11:46  jackson
38087
38088         * TabControl.cs: Remove superflous call to CalcTabRows
38089
38090 2004-11-05 09:07  jackson
38091
38092         * XplatUIX11.cs: Update for Mono.Posix changes
38093
38094 2004-11-05 07:00  ravindra
38095
38096         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
38097           scrolling.
38098
38099 2004-11-04 22:47  jba
38100
38101         * ThemeWin32Classic.cs:
38102           - Fix Button rendering for FlatStyle = Flat or Popup
38103           - Fix RadioButton and CheckBox rendering when Appearance = Button
38104             (normal and flatstyle).
38105           - Correct outer rectangle color when drawing focus rectangle
38106           - Adjust button bounds to be 1 px smaller when focused
38107           - Make button not draw sunken 3d border when pushed (windows compat)
38108           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
38109           - Offset the text in RadioButton and Checkbox when being rendered as
38110           a button.
38111           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
38112           radiobuttons
38113           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
38114           - Fixed disabled text rendering for normally rendered radiobuttons
38115
38116 2004-11-04 10:26  jackson
38117
38118         * TabControl.cs: Recalculate tab rows when resizing
38119
38120 2004-11-04 07:47  jordi
38121
38122         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
38123           collection completion, drawing issues, missing features
38124
38125 2004-11-04 05:03  ravindra
38126
38127         * ScrollBar.cs:
38128                 - We need to recalculate the Thumb area when
38129                 LargeChange/maximum/minimum values are changed.
38130           - We set the 'pos' in UpdatePos() method to minimum, if it's less
38131                 than minimum. This is required to handle the case if large_change is
38132                 more than max, and use LargeChange property instead of large_change
38133                 variable.
38134           - We return max+1 when large_change is more than max, like MS does.
38135
38136 2004-11-04 04:29  ravindra
38137
38138         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
38139                 - Changed default value signatures (prefixed all with ListView).
38140                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
38141                 ListView.
38142           - Fixed calculations for ListViewItem and implemented Clone()
38143           method.
38144
38145 2004-11-04 04:26  ravindra
38146
38147         * Theme.cs, ThemeWin32Classic.cs:
38148                 - Changed default ListView values signatures (prefixed all with
38149                 ListView).
38150           - Fixed default size values for VScrollBar and HScrollBar.
38151                 - Fixed DrawListViewItem method.
38152
38153 2004-11-04 04:05  ravindra
38154
38155         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
38156
38157 2004-11-04 04:04  ravindra
38158
38159         * ImageList.cs: Implemented the missing overload for Draw method.
38160
38161 2004-11-03 19:29  jackson
38162
38163         * TabControl.cs: Handle dropping rows on selection properly
38164
38165 2004-11-03 11:59  jackson
38166
38167         * TabControl.cs: remove debug code
38168
38169 2004-11-03 11:52  jackson
38170
38171         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
38172           the scrolly widgerywoo
38173
38174 2004-11-02 13:52  jackson
38175
38176         * TabControl.cs: Resize the tab pages and tabs when the tab control
38177           is resized
38178
38179 2004-11-02 13:40  jackson
38180
38181         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
38182           selected tab to the bottom
38183
38184 2004-11-02 13:39  jackson
38185
38186         * TabPage.cs: Store the tab pages row
38187
38188 2004-11-02 12:33  jordi
38189
38190         * MenuItem.cs: fixes handle creation
38191
38192 2004-11-02 11:42  jackson
38193
38194         * TabControl.cs: signature fix
38195
38196 2004-11-02 08:56  jackson
38197
38198         * TabControl.cs: Calculate whether the tab is on an edge properly.
38199           Remove top secret debugging code
38200
38201 2004-11-01 19:57  jackson
38202
38203         * TabControl.cs: Add click handling, and proper sizing
38204
38205 2004-11-01 19:47  jackson
38206
38207         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
38208           tab controls
38209
38210 2004-11-01 19:39  jackson
38211
38212         * TabPage.cs: add internal property to store the bounds of a tab
38213           page
38214
38215 2004-10-30 04:23  ravindra
38216
38217         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
38218           values.
38219
38220 2004-10-30 04:21  ravindra
38221
38222         * ListView.cs, ListViewItem.cs: Added support for scrolling and
38223           fixed calculations.
38224
38225 2004-10-30 03:06  pbartok
38226
38227         * XplatUIX11.cs:
38228           - Removed extension of DllImported libs
38229
38230 2004-10-29 09:55  jordi
38231
38232         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
38233           navigation, itemcollection completion, menu fixes
38234
38235 2004-10-27 22:58  pbartok
38236
38237         * XplatUIX11.cs:
38238           - Now throws a nice error message when no X display could be opened
38239
38240 2004-10-26 13:51  jordi
38241
38242         * ListView.cs: removes warning
38243
38244 2004-10-26 03:55  ravindra
38245
38246         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
38247           ThemeWin32Classic.cs: Some formatting for my last checkins.
38248
38249 2004-10-26 03:36  ravindra
38250
38251         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
38252           control and default values.
38253
38254 2004-10-26 03:35  ravindra
38255
38256         * Theme.cs: Added some default values for ListView control.
38257
38258 2004-10-26 03:33  ravindra
38259
38260         * ToolBar.cs: ToolBar should use the user specified button size, if
38261           there is any. Added a size_specified flag for the same.
38262
38263 2004-10-26 03:33  ravindra
38264
38265         * ColumnHeader.cs: Added some internal members and calculations for
38266           ColumnHeader.
38267
38268 2004-10-26 03:32  ravindra
38269
38270         * ListViewItem.cs: Calculations for ListViewItem.
38271
38272 2004-10-26 03:31  ravindra
38273
38274         * ListView.cs: Added some internal members and calculations for
38275           ListView.
38276
38277 2004-10-22 13:31  jordi
38278
38279         * MenuAPI.cs: speedup menus drawing
38280
38281 2004-10-22 13:16  jackson
38282
38283         * XplatUIX11.cs: Make sure to update exposed regions when adding an
38284           expose event
38285
38286 2004-10-22 11:49  jackson
38287
38288         * Control.cs: oops
38289
38290 2004-10-22 11:41  jackson
38291
38292         * Control.cs: Check to see if the window should have its background
38293           repainted by X when drawing.
38294
38295 2004-10-22 11:31  jackson
38296
38297         * XplatUIX11.cs: When invalidating areas only use XClearArea if
38298           clear is true, this way we do not get flicker from X repainting the
38299           background
38300
38301 2004-10-22 11:28  jackson
38302
38303         * XEventQueue.cs: Queue properly
38304
38305 2004-10-21 09:38  jackson
38306
38307         * XEventQueue.cs: Fix access modifier
38308
38309 2004-10-21 09:36  jackson
38310
38311         * XEventQueue.cs: Don't loose messages
38312
38313 2004-10-21 09:22  jackson
38314
38315         * XEventQueue.cs: Don't loose messages
38316
38317 2004-10-20 04:15  jordi
38318
38319         * BootMode.cs: enum need it by SystemInfo
38320
38321 2004-10-19 21:58  pbartok
38322
38323         * XplatUIWin32.cs:
38324           - Small sanity check
38325
38326 2004-10-19 21:56  pbartok
38327
38328         * Form.cs:
38329           - Added private FormParentWindow class which acts as the container
38330             for our form and as the non-client area where menus are drawn
38331           - Added/Moved required tie-ins to Jordi's menus
38332           - Fixed/Implemented the FormStartPosition functionality
38333
38334 2004-10-19 21:52  pbartok
38335
38336         * Control.cs:
38337           - Removed unneeded locals
38338           - Added code to all size and location properties to understand and
38339             deal with the parent container of Form
38340
38341 2004-10-19 21:33  pbartok
38342
38343         * Application.cs:
38344           - Fixed to deal with new Form subclasses for menus
38345
38346 2004-10-19 17:48  jackson
38347
38348         * XEventQueue.cs: commit correct version of file
38349
38350 2004-10-19 16:50  jackson
38351
38352         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
38353
38354 2004-10-19 16:15  jordi
38355
38356         * MenuAPI.cs: MenuBarCalcSize returns the height
38357
38358 2004-10-19 08:31  pbartok
38359
38360         * Control.cs:
38361           - Added missing call to PreProcessMessage before calling OnXXXKey
38362           methods
38363
38364 2004-10-19 00:04  ravindra
38365
38366         * ToolTip.cs: Fixed constructor.
38367
38368 2004-10-18 09:31  jordi
38369
38370         * MenuAPI.cs: menuitems in menubars do not have shortcuts
38371
38372 2004-10-18 09:26  jordi
38373
38374         * MenuItem.cs: fixes MenuItem class signature
38375
38376 2004-10-18 08:56  jordi
38377
38378         * MenuAPI.cs: prevents windows from showing in the taskbar
38379
38380 2004-10-18 00:28  ravindra
38381
38382         * ToolTip.cs: Suppressed a warning message.
38383
38384 2004-10-18 00:27  ravindra
38385
38386         * Control.cs: Default value of visible property must be true.
38387
38388 2004-10-17 23:19  pbartok
38389
38390         * ToolTip.cs:
38391           - Complete implementation
38392
38393 2004-10-17 23:19  pbartok
38394
38395         * XplatUIX11.cs:
38396           - Added EnableWindow method
38397           - Added SetModal stub
38398           - Added generation of WM_ACTIVATE message (still needs testing)
38399           - Added SetTopMost stub
38400           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
38401
38402 2004-10-17 23:17  pbartok
38403
38404         * XplatUIWin32.cs:
38405           - Removed VirtualKeys to XplatUIStructs
38406           - Implemented SetTopMost method
38407           - Implemented EnableWindow method
38408           - Bugfix in ScreenToClient()
38409           - Bugfixes in ClientToScreen()
38410
38411 2004-10-17 22:51  pbartok
38412
38413         * XplatUIStructs.cs:
38414           - Added WS_EX styles to WindowStyles enumeration
38415
38416 2004-10-17 22:50  pbartok
38417
38418         * XplatUI.cs, XplatUIDriver.cs:
38419           - Added method for enabling/disabling windows
38420           - Added method for setting window modality
38421           - Added method for setting topmost window
38422
38423 2004-10-17 22:49  pbartok
38424
38425         * ThemeWin32Classic.cs:
38426           - Added ToolTip drawing code
38427
38428 2004-10-17 22:49  pbartok
38429
38430         * Theme.cs:
38431           - Added ToolTip abstracts
38432
38433 2004-10-17 22:47  pbartok
38434
38435         * Form.cs:
38436           - Fixed Form.ControlCollection to handle owner relations
38437           - Added Owner/OwnedForms handling
38438           - Implemented Z-Ordering for owned forms
38439           - Removed unneeded private overload of ShowDialog
38440           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
38441             so I hope)
38442           - Fixed Close(), had wrong default
38443           - Added firing of OnLoad event
38444           - Added some commented out debug code for Ownership handling
38445
38446 2004-10-17 22:16  pbartok
38447
38448         * Control.cs:
38449           - Fixed/implemented flat list of controls
38450
38451 2004-10-17 22:14  pbartok
38452
38453         * Application.cs:
38454           - Added code to simulate modal dialogs on Win32
38455
38456 2004-10-17 16:11  jordi
38457
38458         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
38459           mouse event
38460
38461 2004-10-17 13:39  jordi
38462
38463         * MenuAPI.cs: menu drawing fixes
38464
38465 2004-10-15 09:10  ravindra
38466
38467         * StructFormat.cs: General Enum.
38468
38469 2004-10-15 09:09  ravindra
38470
38471         * SizeGripStyle.cs: Enum for Form.
38472
38473 2004-10-15 09:08  ravindra
38474
38475         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
38476           in Theme for ListView.
38477
38478 2004-10-15 09:06  ravindra
38479
38480         * ColumnHeader.cs: Flushing some formatting changes.
38481
38482 2004-10-15 09:05  ravindra
38483
38484         * ListViewItem.cs: Implemented GetBounds method and fixed coding
38485           style.
38486
38487 2004-10-15 09:03  ravindra
38488
38489         * ListView.cs: Implemented Paint method and fixed coding style.
38490
38491 2004-10-15 07:34  jordi
38492
38493         * MenuAPI.cs: fix for X11
38494
38495 2004-10-15 07:32  ravindra
38496
38497         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
38498                 - Renamed Paint() method to Draw() for clarity. Also, moved
38499                 DrawImage() to OnPaint().
38500
38501 2004-10-15 07:25  ravindra
38502
38503         * CheckBox.cs, RadioButton.cs:
38504                 - Removed Redraw (), we get it from ButtonBase.
38505                 - Implemented Paint (), to do class specific painting.
38506
38507 2004-10-15 07:16  ravindra
38508
38509         * ButtonBase.cs:
38510                 - Redraw () is not virtual now.
38511                 - Added an internal virtual method Paint (), so that
38512                 derived classes can do their painting on their own.
38513                 - Modified OnPaint () to call Paint ().
38514
38515 2004-10-15 06:43  jordi
38516
38517         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
38518           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
38519
38520 2004-10-15 00:30  ravindra
38521
38522         * MessageBox.cs:
38523                 - MessageBox on windows does not have min/max buttons.
38524                 This change in CreateParams fixes this on Windows. We
38525                 still need to implement this windowstyle behavior in
38526                 our X11 driver.
38527
38528 2004-10-14 05:14  ravindra
38529
38530         * ToolBar.cs:
38531                 - Changed Redraw () to do a Refresh () always.
38532                 - Fixed the MouseMove event handling when mouse is pressed,
38533                 ie drag event handling.
38534                 - Replaced the usage of ToolBarButton.Pressed property to
38535                 ToolBarButton.pressed internal variable.
38536
38537 2004-10-14 05:10  ravindra
38538
38539         * ToolBarButton.cs:
38540                 - Added an internal member 'inside' to handle mouse move
38541                 with mouse pressed ie mouse drag event.
38542                 - Changed 'Pressed' property to return true only when
38543                 'inside' and 'pressed' are both true.
38544                 - Some coding style love.
38545
38546 2004-10-14 00:17  ravindra
38547
38548         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
38549           public method.
38550
38551 2004-10-14 00:15  ravindra
38552
38553         * ButtonBase.cs: Redraw () related improvements.
38554
38555 2004-10-14 00:14  ravindra
38556
38557         * MessageBox.cs: Moved InitFormSize () out of Paint method and
38558           removed unnecessary calls to Button.Show () method.
38559
38560 2004-10-13 17:50  pbartok
38561
38562         * XplatUIX11.cs:
38563           - Formatting fix
38564           - Removed destroying of window until we solve the problem of X
38565             destroying the window before us on shutdown
38566
38567 2004-10-13 16:32  pbartok
38568
38569         * ButtonBase.cs:
38570           - Now Redraws on MouseUp for FlatStyle Flat and Popup
38571
38572 2004-10-13 14:18  pbartok
38573
38574         * XplatUIX11.cs:
38575           - Added code to destroy the X window
38576
38577 2004-10-13 14:18  pbartok
38578
38579         * XplatUIWin32.cs:
38580           - Added code to destroy a window
38581
38582 2004-10-13 14:12  pbartok
38583
38584         * ButtonBase.cs:
38585           - Added the Redraw on Resize that got dropped in the last rev
38586
38587 2004-10-13 09:06  pbartok
38588
38589         * ThemeWin32Classic.cs:
38590           - Path from John BouAntoun:
38591             * Fix check rendering (centre correctly for normal style, offset
38592               correctly for FlatStyle).
38593             * Fix border color usage (use backcolor) for FlatStyle.Popup
38594             * Use checkbox.Capture instead of checkbox.is_pressed when
38595               rendering flatstyle states.
38596
38597 2004-10-12 21:48  pbartok
38598
38599         * ThemeWin32Classic.cs:
38600           - Removed all occurences of SystemColors and replaced them with the
38601             matching theme color
38602
38603 2004-10-12 21:41  pbartok
38604
38605         * ThemeWin32Classic.cs:
38606           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
38607             him using the function for flatstyle drawing
38608           - Changed functions to use the new version of CPDrawBorder3D
38609
38610 2004-10-12 21:15  pbartok
38611
38612         * ControlPaint.cs:
38613           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
38614             match MS documentation. They need to return defined colors if the
38615             passed color matches the configured control color. Thanks to John
38616             BouAntoun for pointing this out.
38617
38618 2004-10-12 20:57  pbartok
38619
38620         * Control.cs:
38621           - Fix from John BouAntoun: Raise ForeColorChanged event when text
38622             color is changed
38623
38624 2004-10-12 20:46  pbartok
38625
38626         * CheckBox.cs:
38627           - Fix from John BouAntoun: Now properly sets the Appearance property
38628
38629 2004-10-12 20:45  pbartok
38630
38631         * ThemeWin32Classic.cs:
38632           - Fixes from John BouAntoun: now handles forecolors and backcolors
38633             for flatstyle rendered controls much better; It also fixes normal
38634             checkbox rendering when pushed or disabled.
38635
38636 2004-10-08 02:50  jordi
38637
38638         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
38639           work
38640
38641 2004-10-07 08:56  jordi
38642
38643         * ThemeWin32Classic.cs: Removes deletion of cached brushes
38644
38645 2004-10-06 03:59  jordi
38646
38647         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
38648           XplatUIWin32.cs: removes warnings from compilation
38649
38650 2004-10-05 12:23  jackson
38651
38652         * RadioButton.cs: Fix ctor
38653
38654 2004-10-05 11:10  pbartok
38655
38656         * MessageBox.cs:
38657           - Partial implementation by Benjamin Dasnois
38658
38659 2004-10-05 10:15  jackson
38660
38661         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
38662           by John BouAntoun
38663
38664 2004-10-05 03:07  ravindra
38665
38666         * ToolBar.cs:
38667                 - Removed a private method, Draw ().
38668                 - Fixed the ButtonDropDown event handling.
38669                 - Fixed MouseMove event handling.
38670
38671 2004-10-05 03:04  ravindra
38672
38673         * ThemeWin32Classic.cs:
38674                 - Added DrawListView method and ListViewDefaultSize property.
38675                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
38676                 - Changed DOS style CRLF to Unix format (dos2unix).
38677
38678 2004-10-05 03:03  ravindra
38679
38680         * Theme.cs:
38681                 - Added DrawListView method and ListViewDefaultSize property.
38682
38683 2004-10-05 02:42  ravindra
38684
38685         * ToolBarButton.cs: Added an internal member dd_pressed to handle
38686           clicks on DropDown arrow.
38687
38688 2004-10-04 22:56  jackson
38689
38690         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
38691           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
38692           Control handle the buffers, derived classes should not have to
38693           CreateBuffers themselves.
38694
38695 2004-10-04 21:20  jackson
38696
38697         * StatusBar.cs: The control handles resizing the buffers now.
38698
38699 2004-10-04 21:18  jackson
38700
38701         * Control.cs: When resizing the buffers should be invalidated. This
38702           should be handled in Control not in derived classes.
38703
38704 2004-10-04 14:45  jackson
38705
38706         * TabPage.cs: oops
38707
38708 2004-10-04 02:14  pbartok
38709
38710         * LeftRightAlignment.cs:
38711           - Initial check-in
38712
38713 2004-10-04 01:09  jordi
38714
38715         * ThemeWin32Classic.cs: fixes right button position causing right
38716           button not showing on horizontal scrollbars
38717
38718 2004-10-02 13:12  pbartok
38719
38720         * XplatUIX11.cs:
38721           - Simplified the Invalidate method by using an X call instead of
38722             generating the expose ourselves
38723           - Added an expose when the window background is changed
38724           - Implemented ClientToScreen method
38725
38726 2004-10-02 13:08  pbartok
38727
38728         * XplatUIWin32.cs:
38729           - Added Win32EnableWindow method (test for implementing modal
38730           dialogs)
38731           - Added ClientToScreen method and imports
38732
38733 2004-10-02 13:07  pbartok
38734
38735         * XplatUI.cs, XplatUIDriver.cs:
38736           - Added ClientToScreen coordinate translation method
38737
38738 2004-10-02 13:06  pbartok
38739
38740         * KeyPressEventArgs.cs:
38741           - Fixed access level for constructor
38742
38743 2004-10-02 13:06  pbartok
38744
38745         * NativeWindow.cs:
38746           - Changed access level for the window_collection hash table
38747
38748 2004-10-02 13:05  pbartok
38749
38750         * Form.cs:
38751           - Added KeyPreview property
38752           - Added Menu property (still incomplete, pending Jordi's menu work)
38753           - Implemented ProcessCmdKey
38754           - Implemented ProcessDialogKey
38755           - Implemented ProcessKeyPreview
38756
38757 2004-10-02 13:02  pbartok
38758
38759         * Control.cs:
38760           - Added private method to get the Control object from the window
38761           handle
38762           - Implemented ContextMenu property
38763           - Implemented PointToScreen
38764           - Implemented PreProcessMessage
38765           - Implemented IsInputChar
38766           - Implemented IsInputKey
38767           - Implemented ProcessCmdKey
38768           - Completed ProcessKeyEventArgs
38769           - Fixed message loop to call the proper chain of functions on key
38770           events
38771           - Implemented ProcessDialogChar
38772           - Implemented ProcessDialogKey
38773           - Implemented ProcessKeyMessage
38774           - Implemented ProcessKeyPreview
38775           - Added RaiseDragEvent stub (MS internal method)
38776           - Added RaiseKeyEvent stub (MS internal method)
38777           - Added RaiseMouseEvent stub (MS Internal method)
38778           - Added RaisePaintEvent stub (MS Internal method)
38779           - Added ResetMouseEventArgs stub (MS Internal method)
38780           - Implemented RtlTranslateAlignment
38781           - Implemented RtlTranslateContent
38782           - Implemented RtlTranslateHorizontal
38783           - Implemented RtlTranslateLeftRight
38784           - Added generation of KeyPress event
38785
38786 2004-10-02 05:57  ravindra
38787
38788         * ListViewItem.cs: Added attributes.
38789
38790 2004-10-02 05:32  ravindra
38791
38792         * ListView.cs: Added attributes.
38793
38794 2004-10-01 11:53  jackson
38795
38796         * Form.cs: Implement the Close method so work on MessageBox can
38797           continue.
38798
38799 2004-09-30 14:06  pbartok
38800
38801         * XplatUIX11.cs:
38802           - Bug fixes
38803
38804 2004-09-30 11:34  jackson
38805
38806         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
38807
38808 2004-09-30 07:26  ravindra
38809
38810         * ListViewItemConverter.cs: Converter for ListViewItem.
38811
38812 2004-09-30 07:26  ravindra
38813
38814         * SortOrder.cs: Enum for ListView control.
38815
38816 2004-09-30 07:25  ravindra
38817
38818         * ColumnHeader.cs: Supporting class for ListView control.
38819
38820 2004-09-30 07:24  ravindra
38821
38822         * ListView.cs, ListViewItem.cs: Initial implementation.
38823
38824 2004-09-30 07:20  ravindra
38825
38826         * ItemActivation.cs: Enum for ListView Control.
38827
38828 2004-09-29 20:29  pbartok
38829
38830         * XplatUIX11.cs:
38831           - Added lookup of pixel value for background color; tries to get a
38832             color 'close' to the requested color, it avoids having to create a
38833             colormap.  Depending on the display this could mean the used color
38834             is slightly off the desired color. Might have to change it to a more
38835             resource intensive colormap approach, but it will work as a
38836           workaround to avoid red screens.
38837
38838 2004-09-29 14:27  jackson
38839
38840         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
38841
38842 2004-09-28 12:44  pbartok
38843
38844         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
38845           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
38846           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
38847           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
38848           TrackBar.cs, VScrollBar.cs:
38849           - Streamlined Theme interfaces:
38850             * Each DrawXXX method for a control now is passed the object for
38851               the control to be drawn in order to allow accessing any state the
38852               theme might require
38853
38854             * ControlPaint methods for the theme now have a CP prefix to avoid
38855               name clashes with the Draw methods for controls
38856
38857             * Every control now retrieves it's DefaultSize from the current
38858             theme
38859
38860 2004-09-28 12:17  jackson
38861
38862         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
38863           drawing
38864
38865 2004-09-24 14:57  jackson
38866
38867         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
38868           Gives us a nice little performance boost.
38869
38870 2004-09-24 12:02  jackson
38871
38872         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
38873           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
38874           Control and supporting classes. Initial checkin
38875
38876 2004-09-23 13:08  jackson
38877
38878         * Form.cs: Temp build fixage
38879
38880 2004-09-23 01:39  ravindra
38881
38882         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
38883           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
38884           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
38885           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
38886           EventHandlers needed by ListView Control.
38887
38888 2004-09-22 14:12  pbartok
38889
38890         * ScrollableControl.cs:
38891           - Implemented DockPadding property
38892           - Implemented AutoScroll property
38893           - Implemented AutoScrollMargin property
38894           - Implemented AutoScrollMinSize property
38895           - Implemented AutoScrollPosition property
38896           - Implemented DisplayRectangle property (still incomplete)
38897           - Implemented CreateParams property
38898           - Implemented HScroll property
38899           - Implemented VScroll property
38900           - Implemented OnVisibleChanged property
38901
38902 2004-09-22 14:09  pbartok
38903
38904         * Form.cs:
38905           - Added Form.ControllCollection class
38906           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
38907             RemoveOwnedForm (still incomplete, missing on-top and common
38908             minimize/maximize behaviour)
38909           - Added StartPosition property (still incomplete, does not use when
38910             creating the form)
38911           - Added ShowDialog() methods (still incomplete, missing forcing the
38912             dialog modal)
38913
38914 2004-09-22 14:05  pbartok
38915
38916         * Application.cs:
38917           - Added message loop for modal dialogs
38918
38919 2004-09-22 14:02  pbartok
38920
38921         * GroupBox.cs:
38922           - Fixed wrong types for events
38923
38924 2004-09-22 14:00  pbartok
38925
38926         * Shortcut.cs, FormWindowState.cs:
38927           - Fixed wrong values
38928
38929 2004-09-22 12:01  jackson
38930
38931         * Control.cs: Text is never null
38932
38933 2004-09-20 22:14  pbartok
38934
38935         * XplatUIWin32.cs:
38936           - Fixed accessibility level for Idle handler
38937
38938 2004-09-20 18:54  jackson
38939
38940         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38941           XplatUIX11.cs: New message loop that uses poll so we don't get a
38942           busy loop
38943
38944 2004-09-17 10:43  pbartok
38945
38946         * ScrollBar.cs:
38947           - Fixed behaviour of arrow buttons. Now properly behaves like
38948             Buttons (and like Microsoft's scrollbar arrow buttons)
38949
38950 2004-09-17 10:14  pbartok
38951
38952         * ScrollBar.cs:
38953           - Added missing release of keyboard/mouse capture
38954
38955 2004-09-17 06:18  jordi
38956
38957         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
38958           Theme.cs: Very early menu support
38959
38960 2004-09-16 17:45  pbartok
38961
38962         * XplatUIWin32.cs:
38963           - Fixed sending a window to the front
38964           - Added overload for SetWindowPos to avoid casting
38965
38966 2004-09-16 17:44  pbartok
38967
38968         * Control.cs:
38969           - Added SendToBack and BringToFront methods
38970
38971 2004-09-16 07:00  ravindra
38972
38973         * Copyright: Added Novell URL.
38974
38975 2004-09-16 07:00  ravindra
38976
38977         * ToolBar.cs: Invalidate should be done before redrawing.
38978
38979 2004-09-15 21:19  ravindra
38980
38981         * ColumnHeaderStyle.cs: Enum for ListView Control.
38982
38983 2004-09-15 21:18  ravindra
38984
38985         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
38986           ListView Control.
38987
38988 2004-09-13 18:26  jackson
38989
38990         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
38991           properly
38992
38993 2004-09-13 18:13  jackson
38994
38995         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
38996           a second thread and post messages into the main threads message
38997           queue. This makes timing much more consistent. Both win2K and XP
38998           have a minimum timer value of 15 milliseconds, so we now do this
38999           too.
39000
39001 2004-09-13 15:18  pbartok
39002
39003         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39004           XplatUIX11.cs:
39005           - Added Z-Ordering methods
39006
39007 2004-09-13 10:56  pbartok
39008
39009         * Form.cs:
39010           - Fixed #region names
39011           - Moved properties and methods into their proper #regions
39012
39013 2004-09-13 10:51  pbartok
39014
39015         * Form.cs:
39016           - Added Accept and CancelButton properties
39017           - Added ProcessDialogKey() method
39018
39019 2004-09-13 08:18  pbartok
39020
39021         * IWindowTarget.cs:
39022           - Initial check-in
39023
39024 2004-09-10 21:50  pbartok
39025
39026         * Control.cs:
39027           - Added DoDragDrop() [incomplete]
39028           - Properly implemented 'Visible' handling
39029           - Added SetVisibleCore()
39030           - Implemented FindChildAtPoint()
39031           - Implemented GetContainerControl()
39032           - Implemented Hide()
39033
39034 2004-09-10 19:28  pbartok
39035
39036         * Control.cs:
39037           - Moved methods into their appropriate #regions
39038           - Reordered methods within regions alphabetically
39039
39040 2004-09-10 18:57  pbartok
39041
39042         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39043           - Added method to retrieve text from window
39044
39045 2004-09-10 18:56  pbartok
39046
39047         * Control.cs:
39048           - Moved some internal functions into the internal region
39049           - Implemented FontHeight
39050           - Implemented RenderRightToLeft
39051           - Implemented ResizeRedraw
39052           - Implemented ShowFocusCues
39053           - Implemented ShowKeyboardCues
39054           - Implemented FromChildHandle
39055           - Implemented FromHandle
39056           - Implemented IsMnemonic
39057           - Implemented ReflectMessage
39058           - All public and protected Static Methods are now complete
39059
39060 2004-09-10 16:54  pbartok
39061
39062         * Control.cs:
39063           - Implemented remaining missing public instance properties
39064           - Alphabetized some out of order properties
39065
39066 2004-09-10 05:51  ravindra
39067
39068         * PictureBox.cs: Added a check for null image.
39069
39070 2004-09-10 00:59  jordi
39071
39072         * GroupBox.cs: remove cvs tag
39073
39074 2004-09-09 05:25  ravindra
39075
39076         * ToolBar.cs: Make redraw accessible from ToolBarButton.
39077
39078 2004-09-09 05:23  ravindra
39079
39080         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
39081           parent redraw.
39082
39083 2004-09-09 02:28  pbartok
39084
39085         * ThemeWin32Classic.cs:
39086           - Improve disabled string look
39087
39088 2004-09-09 01:15  jordi
39089
39090         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
39091           args and handler
39092
39093 2004-09-08 23:56  ravindra
39094
39095         * ItemBoundsPortion.cs: It's enum, not a class!
39096
39097 2004-09-08 23:47  ravindra
39098
39099         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
39100           Enums for Form.
39101
39102 2004-09-08 21:13  ravindra
39103
39104         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
39105           ListView control.
39106
39107 2004-09-08 21:03  ravindra
39108
39109         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
39110           avoid crash.
39111
39112 2004-09-08 21:01  ravindra
39113
39114         * ScrollableControl.cs: Removed unreachable code.
39115
39116 2004-09-08 06:45  jordi
39117
39118         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
39119
39120 2004-09-08 01:00  jackson
39121
39122         * XplatUIX11.cs: Only run the timers when updating the message
39123           queue. This effectively gives X messages a higher priority then
39124           timer messages. Timers still need love though
39125
39126 2004-09-07 14:01  jackson
39127
39128         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
39129           this for us and the handle is no longer valid.
39130
39131 2004-09-07 13:59  jackson
39132
39133         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
39134           loop that manages to not crash. TODO: Add poll and cleanup timers
39135
39136 2004-09-07 11:12  jordi
39137
39138         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
39139
39140 2004-09-07 03:40  jordi
39141
39142         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
39143           fixes, methods, multiple links
39144
39145 2004-09-06 06:55  jordi
39146
39147         * Control.cs: Caches ClientRectangle rectangle value
39148
39149 2004-09-05 02:03  jordi
39150
39151         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
39152           certain situations
39153
39154 2004-09-04 11:10  jordi
39155
39156         * Label.cs: Refresh when font changed
39157
39158 2004-09-02 16:24  pbartok
39159
39160         * Control.cs:
39161           - Added sanity check to creation of double buffer bitmap
39162
39163 2004-09-02 16:24  pbartok
39164
39165         * ButtonBase.cs:
39166           - Fixed selection of text color
39167           - Fixed handling of resize event; now properly recreates double
39168             buffering bitmap
39169           - Added missing assignment of TextAlignment
39170           - Added proper default for TextAlignment
39171
39172 2004-09-02 14:26  pbartok
39173
39174         * RadioButton.cs:
39175           - Added missing RadioButton.RadioButtonAccessibleObject class
39176
39177 2004-09-02 14:26  pbartok
39178
39179         * Control.cs:
39180           - Added missing Control.ControlAccessibleObject class
39181           - Started to implement Select()ion mechanisms, still very incomplete
39182
39183 2004-09-02 14:25  pbartok
39184
39185         * AccessibleObject.cs:
39186           - Added missing methods
39187
39188 2004-09-02 14:23  pbartok
39189
39190         * AccessibleNavigation.cs, AccessibleSelection.cs:
39191           - Initial check-in
39192
39193 2004-09-02 10:32  jordi
39194
39195         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
39196           pool for pens, brushes, and hatchbruses
39197
39198 2004-09-01 15:30  jackson
39199
39200         * StatusBar.cs: Fix typo
39201
39202 2004-09-01 14:44  pbartok
39203
39204         * RadioButton.cs:
39205           - Fixed state
39206
39207 2004-09-01 14:39  pbartok
39208
39209         * Button.cs, RadioButton.cs:
39210           - Functional initial check-in
39211
39212 2004-09-01 14:01  pbartok
39213
39214         * CheckBox.cs:
39215           - Added missing default
39216           - Added missing region mark
39217
39218 2004-09-01 09:10  jordi
39219
39220         * Label.cs: fixes method signatures, new methods, events, fixes
39221           autosize
39222
39223 2004-09-01 07:19  jordi
39224
39225         * Control.cs: Init string variables with an empty object
39226
39227 2004-09-01 04:20  jordi
39228
39229         * Control.cs: fires OnFontChanged event
39230
39231 2004-08-31 20:07  pbartok
39232
39233         * ButtonBase.cs:
39234           - Enabled display of strings
39235
39236 2004-08-31 20:05  pbartok
39237
39238         * Form.cs:
39239           - Added (partial) implementation of DialogResult; rest needs to be
39240             implemented when the modal loop code is done
39241
39242 2004-08-31 19:55  pbartok
39243
39244         * CheckBox.cs:
39245           - Fixed to match the removal of the needs_redraw concept
39246
39247 2004-08-31 19:55  pbartok
39248
39249         * ButtonBase.cs:
39250           - Removed the rather odd split between 'needs redraw' and redrawing
39251           - Now handles the events that require regeneration (ambient
39252             properties and size)
39253
39254 2004-08-31 19:41  pbartok
39255
39256         * Control.cs:
39257           - Added firing of BackColorChanged event
39258           - Added TopLevelControl property
39259           - Fixed handling of WM_ERASEBKGRND message
39260
39261 2004-08-31 12:49  pbartok
39262
39263         * ButtonBase.cs:
39264           - Removed debug
39265           - Minor fixes
39266
39267 2004-08-31 12:48  pbartok
39268
39269         * CheckBox.cs:
39270           - Finished (famous last words)
39271
39272 2004-08-31 04:35  jordi
39273
39274         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
39275           scrolling bugs, adds new methods
39276
39277 2004-08-30 14:42  pbartok
39278
39279         * CheckBox.cs:
39280           - Implemented CheckBox drawing code
39281
39282 2004-08-30 14:42  pbartok
39283
39284         * ButtonBase.cs:
39285           - Made Redraw() and CheckRedraw() virtual
39286           - Improved mouse up/down/move logic to properly track buttons
39287
39288 2004-08-30 09:44  pbartok
39289
39290         * CheckBox.cs:
39291           - Updated to fix broken build. Not complete yet.
39292
39293 2004-08-30 09:28  pbartok
39294
39295         * CheckState.cs:
39296           - Initial checkin
39297
39298 2004-08-30 09:17  pbartok
39299
39300         * Appearance.cs:
39301           - Initial check-in
39302
39303 2004-08-27 16:12  ravindra
39304
39305         * ToolBarButton.cs: Added TypeConverter attribute.
39306
39307 2004-08-27 16:07  ravindra
39308
39309         * ImageIndexConverter.cs: Implemented.
39310
39311 2004-08-27 14:17  pbartok
39312
39313         * Control.cs:
39314           - Removed unneeded stack vars
39315           - First attempt to fix sizing issues when layout is suspended
39316
39317 2004-08-25 15:35  jordi
39318
39319         * ScrollBar.cs: more fixes to scrollbar
39320
39321 2004-08-25 14:04  ravindra
39322
39323         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
39324           Added the missing divider code and grip for ToolBar Control.
39325
39326 2004-08-25 13:20  pbartok
39327
39328         * Control.cs:
39329           - Control now properly passes the ambient background color to child
39330             controls
39331
39332 2004-08-25 13:20  jordi
39333
39334         * ScrollBar.cs: small bug fix regarding bar position
39335
39336 2004-08-25 12:33  pbartok
39337
39338         * Timer.cs:
39339           - Now only calls SetTimer or KillTimer if the enabled state has
39340           changed
39341
39342 2004-08-25 12:33  pbartok
39343
39344         * XplatUIWin32.cs:
39345           - Fixed timer handling, now seems to work
39346           - Improved error message for window creation
39347
39348 2004-08-25 12:32  pbartok
39349
39350         * Control.cs:
39351           - Fixed generation of MouseUp message
39352
39353 2004-08-25 12:29  jordi
39354
39355         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
39356           and fixes for progressbar
39357
39358 2004-08-24 18:43  ravindra
39359
39360         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
39361           in ToolBar control.
39362
39363 2004-08-24 17:15  pbartok
39364
39365         * Panel.cs:
39366           - Added #region
39367           - Added missing events
39368           - Alphabetized
39369
39370 2004-08-24 17:14  pbartok
39371
39372         * StatusBar.cs, PictureBox.cs:
39373           - Now uses Control's CreateParams
39374
39375 2004-08-24 16:36  pbartok
39376
39377         * XplatUIX11.cs:
39378           - Fixed background color handling
39379           - Fixed sending of enter/leave events on a grab
39380
39381 2004-08-24 16:35  pbartok
39382
39383         * X11Structs.cs:
39384           - Refined definitions for CrossingEvent
39385
39386 2004-08-24 12:37  jordi
39387
39388         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
39389           formmating, methods signature, and adds missing events
39390
39391 2004-08-24 12:24  jordi
39392
39393         * Control.cs: fire OnEnabledChanged event
39394
39395 2004-08-24 11:17  pbartok
39396
39397         * XplatUIWin32.cs:
39398           - Implemented SetTimer() and KillTimer()
39399
39400 2004-08-24 11:16  pbartok
39401
39402         * XplatUIX11.cs:
39403           - Now uses Remove instead of Add to kill the timer
39404
39405 2004-08-24 10:16  jackson
39406
39407         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
39408           picture boxes in the theme now. Draw picture box borders and obey
39409           sizing modes
39410
39411 2004-08-24 05:49  jackson
39412
39413         * Timer.cs: Remove top secret debugging code
39414
39415 2004-08-24 05:34  jackson
39416
39417         * PictureBox.cs: Temp hack to make picture boxes draw their full
39418           image
39419
39420 2004-08-24 05:29  jackson
39421
39422         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39423           XplatUIX11.cs: Move timers to the driver level. On X they are
39424           queued by the driver and checked on idle.
39425
39426 2004-08-24 01:07  jackson
39427
39428         * XplatUIX11.cs: Use a queue for async messages instead of passing
39429           them as ClientMessages since that was totally broken. Also simply
39430           check for events and return an idle message if none are found. This
39431           gives us an idle handler, and prevents deadlocking when no messages
39432           are in the queue.
39433
39434 2004-08-23 18:19  ravindra
39435
39436         * XplatUIWin32.cs: Removed the unwanted destructor.
39437
39438 2004-08-23 17:27  pbartok
39439
39440         * ButtonBase.cs:
39441           - Finishing touches. Works now, just needs some optimizations.
39442
39443 2004-08-23 16:53  jordi
39444
39445         * ScrollBar.cs: small fix
39446
39447 2004-08-23 16:45  pbartok
39448
39449         * Application.cs:
39450           - Removed debug output
39451           - Simplifications
39452
39453 2004-08-23 16:43  jordi
39454
39455         * ScrollBar.cs: [no log message]
39456
39457 2004-08-23 16:10  pbartok
39458
39459         * Form.cs:
39460           - Fixed handling of WM_CLOSE message
39461           - Removed debug output
39462
39463 2004-08-23 16:09  pbartok
39464
39465         * Application.cs:
39466           - Added handling of Idle event
39467           - Added handling of form closing
39468           - Fixed reporting of MessageLoop property
39469           - Removed some unneeded code, should provide a bit of a speedup
39470
39471 2004-08-23 15:22  pbartok
39472
39473         * Control.cs:
39474           - Added InitLayout() method
39475           - Added code to properly perform layout when Anchor or Dock property
39476             is changed
39477           - Changed 'interpretation' of ResumeLayout. MS seems to have a
39478             LAMESPEC, tried to do it in a way that makes sense
39479
39480 2004-08-23 14:10  jordi
39481
39482         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
39483           properties and methods
39484
39485 2004-08-23 13:55  pbartok
39486
39487         * Control.cs:
39488           - Properly fixed Jordi's last fix
39489           - Now uses Cursor's Position property instead of calling XplatUI
39490           directly
39491
39492 2004-08-23 13:44  jordi
39493
39494         * PaintEventHandler.cs: Adding missing attribute
39495
39496 2004-08-23 13:39  pbartok
39497
39498         * Cursor.cs:
39499           - Implemented Position property
39500
39501 2004-08-23 13:39  pbartok
39502
39503         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39504           - Added method to move mouse cursor
39505
39506 2004-08-23 13:39  pbartok
39507
39508         * XplatUIX11.cs:
39509           - Fixed setting of background color
39510           - Added method to move mouse cursor
39511
39512 2004-08-23 13:16  jordi
39513
39514         * Control.cs: avoids null exception
39515
39516 2004-08-22 17:46  jackson
39517
39518         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
39519           PictureBox
39520
39521 2004-08-22 17:40  jackson
39522
39523         * XplatUIX11.cs: Add some missing locks
39524
39525 2004-08-22 15:10  pbartok
39526
39527         * Control.cs, Form.cs:
39528           - Removed OverlappedWindow style from Control, instead it's default
39529             now is child
39530           - Made form windows OverlappedWindow by default
39531
39532 2004-08-22 13:34  jackson
39533
39534         * ScrollBar.cs: Update the position through the Value property so
39535           the OnValueChanged event is raised.
39536
39537 2004-08-22 12:04  pbartok
39538
39539         * SWF.csproj:
39540           - Added Cursor.cs and UserControl.cs
39541
39542 2004-08-22 12:03  pbartok
39543
39544         * Cursor.cs:
39545           - Started implementation, not usable yet
39546
39547 2004-08-22 12:00  pbartok
39548
39549         * UserControl.cs:
39550           - Implemented UserControl (complete)
39551
39552 2004-08-21 19:20  ravindra
39553
39554         * ToolBar.cs: Correcting the formatting mess of VS.NET.
39555
39556 2004-08-21 18:49  ravindra
39557
39558         * ToolBar.cs: Probably this completes the missing attributes in
39559           toolbar control.
39560
39561 2004-08-21 18:03  ravindra
39562
39563         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
39564           Fixed toolbar control signatures.
39565
39566 2004-08-21 16:32  pbartok
39567
39568         * LinkLabel.cs:
39569           - Signature Fixes
39570
39571 2004-08-21 16:30  pbartok
39572
39573         * Label.cs:
39574           - Signature fixes
39575
39576 2004-08-21 16:19  pbartok
39577
39578         * Control.cs, Label.cs:
39579           - Signature fixes
39580
39581 2004-08-21 15:57  pbartok
39582
39583         * ButtonBase.cs:
39584           - Added loads of debug output for development
39585           - Fixed typo in method name
39586
39587 2004-08-21 15:52  pbartok
39588
39589         * ToolBarButtonClickEventArgs.cs:
39590           - Added missing base class
39591
39592 2004-08-21 14:53  pbartok
39593
39594         * Control.cs:
39595           - Updated to match new GrabWindow signature
39596
39597 2004-08-21 14:51  pbartok
39598
39599         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39600           - Added method to get default display size
39601
39602 2004-08-21 14:23  pbartok
39603
39604         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39605           - Added method to query current grab state
39606           - Added argument to allow confining a grab to a window
39607
39608 2004-08-21 14:22  pbartok
39609
39610         * Keys.cs:
39611           - Added [Flags] attribute so that modifiers can be used in bitwise
39612           ops
39613
39614 2004-08-21 14:21  pbartok
39615
39616         * TrackBar.cs, ScrollBar.cs:
39617           - Replaced direct XplatUI calls with their Control counterpart
39618
39619 2004-08-21 13:32  pbartok
39620
39621         * Control.cs:
39622           - Implemented Created property
39623
39624 2004-08-21 13:28  pbartok
39625
39626         * Control.cs:
39627           - Implemented ContainsFocus
39628
39629 2004-08-21 13:26  pbartok
39630
39631         * Control.cs:
39632           - Implemented CausesValidation
39633
39634 2004-08-21 13:21  pbartok
39635
39636         * Control.cs:
39637           - Implemented CanFocus
39638           - Implemented CanSelect
39639           - Implemented Capture
39640
39641 2004-08-21 12:35  pbartok
39642
39643         * XplatUIWin32.cs:
39644           - Fixed bug with Async message handling
39645           - Implemented getting the ModifierKeys
39646
39647 2004-08-21 12:32  jackson
39648
39649         * AsyncMethodResult.cs: Make sure we have the mutex before we
39650           release it. Fixes BeginInvoke on windows
39651
39652 2004-08-21 11:31  pbartok
39653
39654         * XplatUIWin32.cs, XplatUIX11.cs:
39655           - Drivers now return proper mouse state
39656
39657 2004-08-21 10:54  jackson
39658
39659         * Control.cs: Implement EndInvoke
39660
39661 2004-08-21 10:48  jackson
39662
39663         * Timer.cs: Remove unneeded finalizer
39664
39665 2004-08-20 19:52  ravindra
39666
39667         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
39668           in mouse event handling in the ToolBar control.
39669
39670 2004-08-20 19:50  ravindra
39671
39672         * ImageList.cs: Changed draw method to use the arguments passed in
39673           to draw the image.
39674
39675 2004-08-20 18:58  pbartok
39676
39677         * XplatUIStructs.cs:
39678           - Added private message for async communication
39679
39680 2004-08-20 17:38  ravindra
39681
39682         * Control.cs: Made RightToLeft property virtual and removed a
39683           Console.WriteLine.
39684
39685 2004-08-20 14:39  jordi
39686
39687         * ThemeGtk.cs: use style_attach
39688
39689 2004-08-20 14:39  pbartok
39690
39691         * XplatUIWin32.cs:
39692           - Added jackson's Async code from X11 to Win32
39693
39694 2004-08-20 14:09  pbartok
39695
39696         * SWF.csproj:
39697           - Added all new files
39698
39699 2004-08-20 14:09  pbartok
39700
39701         * Control.cs:
39702           - Added call to set window background color
39703
39704 2004-08-20 14:03  pbartok
39705
39706         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39707           - Added method for setting the window background
39708
39709 2004-08-20 14:02  pbartok
39710
39711         * XplatUIWin32.cs:
39712           - Added method for setting the background color
39713           - Added handling for erasing the window background
39714
39715 2004-08-20 13:45  jordi
39716
39717         * TrackBar.cs: fixes timer, new properties and methods
39718
39719 2004-08-20 13:34  jackson
39720
39721         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
39722           correct thread
39723
39724 2004-08-20 13:22  jackson
39725
39726         * Timer.cs: Timer Tick events are now handed through Controls Async
39727           mechanism so the callbacks are executed in the same thread as X
39728
39729 2004-08-20 13:19  jackson
39730
39731         * XplatUIDriver.cs: Expose functionality to send async messages
39732           through the driver
39733
39734 2004-08-20 13:18  jackson
39735
39736         * Control.cs: Implement Begininvoke
39737
39738 2004-08-20 13:14  jackson
39739
39740         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
39741           messages through the driver
39742
39743 2004-08-20 13:12  jackson
39744
39745         * XplatUIX11.cs: Lock before all X operations. Also added Async
39746           method functionality through XSendEvent
39747
39748 2004-08-20 13:11  jackson
39749
39750         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
39751           This will screw up on 64 bit systems)
39752
39753 2004-08-20 13:10  jackson
39754
39755         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
39756           Async messages through X/Win32
39757
39758 2004-08-19 19:39  pbartok
39759
39760         * XplatUIX11.cs:
39761           - Updated code to match new HandleData.DeviceContext type
39762
39763 2004-08-19 19:38  pbartok
39764
39765         * HandleData.cs:
39766           - Made DeviceContext a generic object to allow usage from various
39767           drivers
39768           - Added support for queueing Windows messages
39769
39770 2004-08-19 19:37  pbartok
39771
39772         * XplatUIWin32.cs:
39773           - Added generation of MouseEnter, MouseLeave and MouseHover events
39774           - Added cleanup on EndPaint
39775
39776 2004-08-19 19:17  pbartok
39777
39778         * Control.cs:
39779           - Added handling of WM_MOUSEHOVER
39780           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
39781           code
39782
39783 2004-08-19 18:55  jordi
39784
39785         * ThemeGtk.cs: fixes button order
39786
39787 2004-08-19 18:12  jordi
39788
39789         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
39790
39791 2004-08-19 17:09  pbartok
39792
39793         * Control.cs:
39794           - Added Right property
39795           - Added RightToLeft property
39796
39797 2004-08-19 16:27  jordi
39798
39799         * ThemeGtk.cs: experimental GTK theme support
39800
39801 2004-08-19 16:26  jordi
39802
39803         * ITheme.cs, Theme.cs: move themes from an interface to a class
39804
39805 2004-08-19 16:25  jordi
39806
39807         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
39808           theme enhancaments
39809
39810 2004-08-19 16:04  pbartok
39811
39812         * XplatUIX11.cs:
39813           - Added colormap basics
39814           - Added a way to re-initialize with a different display handle
39815           - Fixed setting of the window background color
39816           - Added various X11 imports related to colors and colormaps
39817
39818 2004-08-19 15:51  pbartok
39819
39820         * X11Structs.cs:
39821           - Removed packing hints (Paolo suggested this a while back)
39822           - fixed colormap type
39823           - Added default Atom types
39824           - Added Screen and color structs and enums
39825
39826 2004-08-19 15:39  pbartok
39827
39828         * ImageList.cs:
39829           - Added missing Draw() method
39830           - Added missing RecreateHandle event
39831
39832 2004-08-19 15:30  pbartok
39833
39834         * Form.cs:
39835           - Added handling of WM_CLOSE
39836
39837 2004-08-18 13:16  jordi
39838
39839         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
39840           a table
39841
39842 2004-08-18 09:56  jordi
39843
39844         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
39845
39846 2004-08-17 15:31  ravindra
39847
39848         * SWF.csproj: Updated project.
39849
39850 2004-08-17 15:25  pbartok
39851
39852         * Control.cs:
39853           - Drawing improvement; don't call UpdateBounds if we are not visible
39854             (or have been minimized)
39855
39856 2004-08-17 15:24  pbartok
39857
39858         * XplatUIWin32.cs:
39859           - Finished IsVisible
39860           - Added Win32GetWindowPlacement
39861
39862 2004-08-17 15:08  jackson
39863
39864         * Panel.cs: Initial checkin of the Panel
39865
39866 2004-08-17 14:25  pbartok
39867
39868         * Control.cs:
39869           - Fixed broken handling of default window sizes
39870
39871 2004-08-17 13:29  jackson
39872
39873         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
39874           has a large startup time.
39875
39876 2004-08-17 10:25  jackson
39877
39878         * HandleData.cs: union areas properly
39879
39880 2004-08-17 10:12  jackson
39881
39882         * HandleData.cs: union areas properly
39883
39884 2004-08-16 20:00  ravindra
39885
39886         * ToolBar.cs, ToolBarButton.cs: Added attributes.
39887
39888 2004-08-16 18:48  ravindra
39889
39890         * ToolBar.cs: Added attributes.
39891
39892 2004-08-16 17:17  ravindra
39893
39894         * SWF.csproj: Updated project.
39895
39896 2004-08-16 17:16  jackson
39897
39898         * XplatUIX11.cs: Check for more expose events before sending a
39899           WM_PAINT so they can all be grouped together. This makes dragging a
39900           window across another window redraw in a sane way.
39901
39902 2004-08-16 15:47  pbartok
39903
39904         * Control.cs:
39905           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
39906             support OnMouseEnter/Leave()
39907           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
39908             exposure handling
39909
39910 2004-08-16 15:46  pbartok
39911
39912         * XplatUIStructs.cs, XplatUIX11.cs:
39913           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
39914           OnMouseEnter/Leave()
39915
39916 2004-08-16 15:34  jackson
39917
39918         * XplatUIX11.cs: Group multiple expose events in HandleData, make
39919           sure messages get the message field set to WM_NULL if they are not
39920           handled.
39921
39922 2004-08-16 15:24  jackson
39923
39924         * HandleData.cs: HandleData is used for storing message information
39925           for window handles
39926
39927 2004-08-15 17:23  ravindra
39928
39929         * ColorDepth.cs: Added attribute.
39930
39931 2004-08-15 17:23  ravindra
39932
39933         * SWF.csproj: Updated project for ToolBar Control.
39934
39935 2004-08-15 17:20  ravindra
39936
39937         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
39938           control and also dos2unix format.
39939
39940 2004-08-15 17:13  ravindra
39941
39942         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
39943           ToolBarButtonClickEventArgs.cs,
39944           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
39945           ToolBarTextAlign.cs: First Implementation of ToolBar control.
39946
39947 2004-08-15 15:31  pbartok
39948
39949         * ButtonBase.cs:
39950           - First (mostly) working version
39951
39952 2004-08-13 16:15  pbartok
39953
39954         * Control.cs:
39955           - Fixed Anchor default
39956
39957 2004-08-13 15:43  pbartok
39958
39959         * Control.cs:
39960           - Changed GetCursorPos signature
39961
39962 2004-08-13 15:42  pbartok
39963
39964         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39965           - Changed signature for GetCursorPos
39966
39967 2004-08-13 15:25  pbartok
39968
39969         * XplatUIX11.cs:
39970           - Cleanup
39971           - Fixed resizing/exposure handling
39972
39973 2004-08-13 15:22  jordi
39974
39975         * ThemeWin32Classic.cs: removes redundant code and fixes issues
39976           with tickposition
39977
39978 2004-08-13 14:55  jordi
39979
39980         * TrackBar.cs: change from wndproc to events
39981
39982 2004-08-13 13:00  jordi
39983
39984         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39985           XplatUIX11.cs: implements PointToClient (ScreenToClient)
39986
39987 2004-08-13 12:53  pbartok
39988
39989         * XplatUIWin32.cs:
39990           - Changed GetWindowPos to also provide client area size
39991           - Fixed broken prototypes for several win32 functions
39992
39993 2004-08-13 12:53  pbartok
39994
39995         * XplatUI.cs, XplatUIDriver.cs:
39996           - Changed GetWindowPos to also provide client area size
39997
39998 2004-08-13 12:52  pbartok
39999
40000         * XplatUIX11.cs:
40001           - Added generation of WM_POSCHANGED
40002           - Changed GetWindowPos to also provide client area size
40003
40004 2004-08-13 12:52  pbartok
40005
40006         * Control.cs:
40007           - Added Dispose() and destructor
40008           - Fixed resizing and bounds calculation
40009           - Fixed Layout
40010           - Added memory savings for invisible windows
40011
40012 2004-08-13 12:46  jordi
40013
40014         * TrackBar.cs: adds timer and grap window
40015
40016 2004-08-13 10:25  jackson
40017
40018         * Timer.cs: SWF Timer
40019
40020 2004-08-12 16:59  pbartok
40021
40022         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40023           - Implemented method to get current mouse position
40024
40025 2004-08-12 14:29  jordi
40026
40027         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
40028           enhancement, fix mouse problems, highli thumb, etc
40029
40030 2004-08-12 13:31  pbartok
40031
40032         * Control.cs:
40033           - Fixed Anchoring bugs
40034
40035 2004-08-12 13:01  jackson
40036
40037         * StatusBar.cs: Don't forget things
40038
40039 2004-08-12 12:54  jackson
40040
40041         * ThemeWin32Classic.cs: Handle owner draw status bars
40042
40043 2004-08-12 12:54  jackson
40044
40045         * StatusBar.cs: Implement missing properties, events, and methods.
40046           Handle mouse clicking
40047
40048 2004-08-12 10:19  jackson
40049
40050         * StatusBarPanelClickEventArgs.cs,
40051           StatusBarPanelClickEventHandler.cs: Classes for handling status
40052           bar panel click events
40053
40054 2004-08-12 10:10  jackson
40055
40056         * Control.cs: Add missing properties
40057
40058 2004-08-12 09:46  pbartok
40059
40060         * BindingsManagerBase.cs:
40061           - Name changed to BindingManagerBase.cs
40062
40063 2004-08-12 09:25  jordi
40064
40065         * ScrollableControl.cs: calls ctrlbase instead of exeception
40066
40067 2004-08-11 16:28  pbartok
40068
40069         * InputLanguageChangingEventArgs.cs:
40070           - Never check in before compiling. Fixes the last check-in
40071
40072 2004-08-11 16:26  pbartok
40073
40074         * InputLanguageChangingEventArgs.cs:
40075           - More signature fixes
40076
40077 2004-08-11 16:20  pbartok
40078
40079         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
40080           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
40081           ImageListStreamer.cs, InputLanguage.cs,
40082           InputLanguageChangedEventArgs.cs,
40083           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
40084           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
40085           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
40086           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40087           - Signature fixes
40088
40089 2004-08-11 16:16  pbartok
40090
40091         * Application.cs:
40092           - Fixed Signature
40093           - Added .Net 1.1 method
40094
40095 2004-08-11 15:25  pbartok
40096
40097         * SWF.csproj:
40098           - Fixed BindingManagerBase.cs filename
40099
40100 2004-08-11 15:22  pbartok
40101
40102         * BindingManagerBase.cs:
40103           - Was checked in with wrong filename
40104
40105 2004-08-11 14:50  pbartok
40106
40107         * SWF.csproj:
40108           - Updated
40109
40110 2004-08-11 13:41  jordi
40111
40112         * XplatUIWin32.cs: Fixes ClientRect
40113
40114 2004-08-11 13:19  pbartok
40115
40116         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
40117           XplatUIX11.cs:
40118           - We had SetWindowPos and MoveWindow to set window positions and
40119             size, removed MoveWindow. We have GetWindowPos, so it made sense to
40120             keep SetWindowPos as matching counterpart
40121           - Added some X11 sanity checking
40122
40123 2004-08-11 12:59  pbartok
40124
40125         * Control.cs:
40126           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
40127             (It seems that SetBounds is just a front for SetBoundsCore and
40128              SetBoundsCore updates the underlying window system and
40129              UpdateBounds is responsible for updating the variables associated
40130              with the Control and sending the events)
40131           - Major cleanup of Size handling; we now have two sizes, client_size
40132             and bounds. Bounds defines the window with decorations, client_size
40133             without them.
40134
40135 2004-08-11 12:55  pbartok
40136
40137         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40138           - Added method to calculate difference between decorated window and
40139             raw client area
40140
40141 2004-08-11 12:54  pbartok
40142
40143         * Label.cs:
40144           - Forcing redraw on resize
40145
40146 2004-08-11 11:43  pbartok
40147
40148         * ImageList.cs:
40149           - Removed disposing of the actual images when the list is disposed
40150
40151 2004-08-11 09:13  pbartok
40152
40153         * Control.cs:
40154           - Now properly reparents windows
40155
40156 2004-08-11 08:37  pbartok
40157
40158         * Control.cs:
40159           - Duh!
40160
40161 2004-08-11 07:47  pbartok
40162
40163         * Control.cs:
40164           - Rewrote the collection stuff. Might not be as fast now, not
40165             keeping the number of children around and accessible directly, but
40166             it's more straightforward
40167
40168 2004-08-11 07:44  pbartok
40169
40170         * AccessibleObject.cs:
40171           - Fixed to match ControlCollection rewrite
40172
40173 2004-08-11 07:43  pbartok
40174
40175         * ImageList.cs:
40176           - Added missing creation of the collection list
40177
40178 2004-08-10 20:08  jackson
40179
40180         * StatusBar.cs: Get the paint message from WndProc
40181
40182 2004-08-10 19:31  jackson
40183
40184         * ThemeWin32Classic.cs: Create Brushes as little as possible
40185
40186 2004-08-10 19:20  jackson
40187
40188         * UICues.cs: Add Flags attribute
40189
40190 2004-08-10 19:19  jackson
40191
40192         * StatusBarPanel.cs: Signature cleanup
40193
40194 2004-08-10 19:10  jackson
40195
40196         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
40197           Initial implementation of status bar item drawing
40198
40199 2004-08-10 17:27  jordi
40200
40201         * TrackBar.cs: add missing methods, properties, and restructure to
40202           hide extra ones
40203
40204 2004-08-10 16:24  jackson
40205
40206         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
40207           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
40208           attribute
40209
40210 2004-08-10 13:21  jordi
40211
40212         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
40213           enhancements and standarize on win colors defaults
40214
40215 2004-08-10 12:52  jackson
40216
40217         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
40218           ThemeWin32Classic.cs: Implement DrawItem functionality
40219
40220 2004-08-10 12:47  jordi
40221
40222         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
40223
40224 2004-08-10 12:32  jordi
40225
40226         * Control.cs: throw ontextchange event
40227
40228 2004-08-10 11:43  pbartok
40229
40230         * Control.cs:
40231           - Added more to the still unfinished Dock/Anchor layout code
40232
40233 2004-08-10 11:39  pbartok
40234
40235         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
40236           - Added GetWindowPos method
40237
40238 2004-08-10 11:36  pbartok
40239
40240         * XplatUIWin32.cs:
40241           - Implemented several methods
40242
40243 2004-08-10 09:47  jackson
40244
40245         * TrackBar.cs: Allow control to handle buffering
40246
40247 2004-08-10 09:41  jackson
40248
40249         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
40250
40251 2004-08-10 09:24  jackson
40252
40253         * Label.cs, LinkLabel.cs: Let Control handle buffering.
40254
40255 2004-08-10 09:09  jackson
40256
40257         * StatusBar.cs: Let Control handle all the buffering.
40258
40259 2004-08-10 09:08  jackson
40260
40261         * Control.cs: Control will now handle the buffering code, so each
40262           control does not have to implement this.
40263
40264 2004-08-10 08:34  jackson
40265
40266         * XplatUIDriver.cs: Use default colors from the theme
40267
40268 2004-08-09 17:12  pbartok
40269
40270         * ImageList.cs:
40271           - Fixed several bugs Ravindra pointed out
40272
40273 2004-08-09 16:11  pbartok
40274
40275         * Control.cs:
40276           - Added incomplete dock layout code
40277           - Added support for mouse wheel
40278
40279 2004-08-09 16:09  pbartok
40280
40281         * XplatUIX11.cs:
40282           - Added handling for middle and right mousebutton
40283           - Added handling for mouse wheel
40284           - Added handling for key state and mouse state and position
40285           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
40286           messages
40287
40288 2004-08-09 15:40  jackson
40289
40290         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
40291           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
40292           checkin
40293
40294 2004-08-09 15:37  jackson
40295
40296         * StatusBar.cs: Initial implementation of StatusBar
40297
40298 2004-08-09 15:36  jackson
40299
40300         * ITheme.cs: Add support for drawing status bar and getting status
40301           bar item sizes
40302
40303 2004-08-09 15:35  pbartok
40304
40305         * MouseButtons.cs:
40306           - Fixed values
40307
40308 2004-08-09 15:34  jackson
40309
40310         * ThemeWin32Classic.cs: Add support for drawing status bar and get
40311           status bar item sizes
40312
40313 2004-08-09 15:21  jackson
40314
40315         * ThemeWin32Classic.cs: Use known colors for default control
40316           colours
40317
40318 2004-08-09 15:12  jackson
40319
40320         * ThemeWin32Classic.cs: Make the default font static, it is static
40321           in control so this doesn't change functionality and creating fonts
40322           is sloooooow.
40323
40324 2004-08-09 14:56  pbartok
40325
40326         * X11Structs.cs:
40327           - Added GrabMode enum
40328
40329 2004-08-09 14:55  pbartok
40330
40331         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40332           - Removed Run method, was only required for initial development
40333
40334 2004-08-09 14:51  pbartok
40335
40336         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
40337           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
40338           capture
40339
40340 2004-08-09 13:48  pbartok
40341
40342         * XplatUIX11.cs:
40343           - Fixed default sizing for child windows
40344
40345 2004-08-09 12:56  pbartok
40346
40347         * XplatUIX11.cs:
40348           - Added generation of WM_DESTROY message
40349           - Added handling of window manager induced shutdown
40350
40351 2004-08-09 11:31  jackson
40352
40353         * ThemeWin32Classic.cs: New names for control properties
40354
40355 2004-08-09 11:25  jackson
40356
40357         * Control.cs: Use new color names
40358
40359 2004-08-09 11:02  jackson
40360
40361         * XplatUI.cs: Get default window properties from the theme
40362
40363 2004-08-09 11:01  jackson
40364
40365         * ITheme.cs: The theme engine now controls default window
40366           properties
40367
40368 2004-08-09 11:00  jackson
40369
40370         * ThemeWin32Classic.cs: Add default window color properties
40371
40372 2004-08-09 10:17  jackson
40373
40374         * ThemeWin32Classic.cs: Use correct default back color
40375
40376 2004-08-09 10:05  jackson
40377
40378         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
40379           the theme now.
40380
40381 2004-08-09 09:56  jackson
40382
40383         * XplatUI.cs: Remove defaults, these are handled by the theme now.
40384
40385 2004-08-09 09:54  jackson
40386
40387         * Control.cs: Get default properties from the theme.
40388
40389 2004-08-09 09:53  jackson
40390
40391         * ITheme.cs: Themes now handle default control properties
40392
40393 2004-08-09 09:53  jackson
40394
40395         * ThemeWin32Classic.cs: Themes now handle default control
40396           properties so coloring will be consistent
40397
40398 2004-08-08 16:54  jordi
40399
40400         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
40401
40402 2004-08-08 15:08  jordi
40403
40404         * XplatUIX11.cs: fixes keyboard crash
40405
40406 2004-08-08 13:47  jordi
40407
40408         * Label.cs: add cvs header info
40409
40410 2004-08-08 12:09  jackson
40411
40412         * ThemeWin32Classic.cs: Add pen_buttonface
40413
40414 2004-08-08 11:52  jordi
40415
40416         * Label.cs, LinkLabel.cs: [no log message]
40417
40418 2004-08-08 11:34  jordi
40419
40420         * ThemeWin32Classic.cs: Use Windows Standard Colours
40421
40422 2004-08-07 17:32  jordi
40423
40424         * TrackBar.cs: throw exceptions of invalid enums values
40425
40426 2004-08-07 17:31  jordi
40427
40428         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
40429           draw method name
40430
40431 2004-08-07 16:56  jackson
40432
40433         * HorizontalAlignment.cs: Initial checkin
40434
40435 2004-08-07 13:16  jordi
40436
40437         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
40438           methods
40439
40440 2004-08-07 13:05  jordi
40441
40442         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
40443           GetSysColor defines
40444
40445 2004-08-06 18:01  pbartok
40446
40447         * ThemeWin32Classic.cs:
40448           - Fixed some rounding issues with float/int
40449
40450 2004-08-06 18:00  jackson
40451
40452         * DockStyle.cs, AnchorStyles.cs:
40453
40454                   Add flags and serializable attributes.
40455
40456 2004-08-06 17:46  pbartok
40457
40458         * XplatUIX11.cs:
40459           - Implemented GetParent
40460
40461 2004-08-06 17:18  pbartok
40462
40463         * TrackBar.cs:
40464           - Fixed some rounding issues with float/int
40465
40466 2004-08-06 17:17  pbartok
40467
40468         * X11Structs.cs, XplatUIX11.cs:
40469           - Fixed Refresh and Invalidate
40470
40471 2004-08-06 15:30  pbartok
40472
40473         * Control.cs, X11Structs.cs, XplatUIX11.cs:
40474           - Fixed recursive loop when resizing
40475           - Improved/fixed redrawing on expose messages
40476
40477 2004-08-06 09:53  jordi
40478
40479         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
40480           keyboard navigation
40481
40482 2004-08-06 08:02  pbartok
40483
40484         * X11Structs.cs, XplatUIX11.cs:
40485           - Fixed reparenting
40486           - Fixed window border creation
40487
40488 2004-08-05 15:38  pbartok
40489
40490         * XplatUIX11.cs:
40491           - Attempted fix for reparenting problems
40492
40493 2004-08-04 15:14  pbartok
40494
40495         * Control.cs:
40496           - Fixed Invalidation bug (calculated wrong client area)
40497           - Added ClientSize setter
40498
40499 2004-08-04 15:13  pbartok
40500
40501         * Form.cs:
40502           - Added AutoScale properties
40503
40504 2004-08-04 15:13  pbartok
40505
40506         * SWF.csproj:
40507           - Added latest files
40508
40509 2004-08-04 14:11  pbartok
40510
40511         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
40512           XplatUIX11.cs:
40513           - Added Invalidate handling
40514
40515 2004-08-03 17:09  jordi
40516
40517         * XplatUIDriver.cs: fixes spelling mistake
40518
40519 2004-07-27 09:53  jordi
40520
40521         * TrackBar.cs: fixes trackbar events, def classname, methods
40522           signature
40523
40524 2004-07-27 09:29  jordi
40525
40526         * ScrollBar.cs: fixes scrollbar events
40527
40528 2004-07-27 04:38  jordi
40529
40530         * Control.cs: changes to be able to run winforms samples
40531
40532 2004-07-26 11:42  jordi
40533
40534         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
40535           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
40536
40537 2004-07-26 05:41  jordi
40538
40539         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
40540           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
40541           implementation
40542
40543 2004-07-22 09:22  jordi
40544
40545         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
40546           check link overlapping, implement events, and fixes
40547
40548 2004-07-21 10:28  jordi
40549
40550         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
40551
40552 2004-07-21 10:19  jordi
40553
40554         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
40555           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
40556           LinkLabelLinkClickedEventArgs.cs,
40557           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
40558           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
40559           implementation
40560
40561 2004-07-19 13:09  jordi
40562
40563         * Control.cs, Label.cs: label control re-written: added missing
40564           functionlity, events, and properties
40565
40566 2004-07-19 10:49  jordi
40567
40568         * Control.cs: fixes SetBounds logic
40569
40570 2004-07-19 01:29  jordi
40571
40572         * Control.cs: Call RefreshWindow only if the window has created
40573
40574 2004-07-15 14:05  pbartok
40575
40576         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
40577           - Implemented ImageList and ImageList.ImageCollection classes
40578           - Added ColorDepth enumeration
40579           - Updated SWF VS.Net project
40580
40581 2004-07-15 11:06  jordi
40582
40583         * XplatUIStructs.cs: added MsgButons enum
40584
40585 2004-07-15 11:03  jordi
40586
40587         * Control.cs: added basic mouse handeling events
40588
40589 2004-07-15 03:38  jordi
40590
40591         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
40592           Vertical TrackBar control implementation
40593
40594 2004-07-13 09:33  jordi
40595
40596         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
40597
40598 2004-07-13 09:31  jordi
40599
40600         * Control.cs, Form.cs: commit: new properties and fixes form size
40601           problems
40602
40603 2004-07-09 14:13  miguel
40604
40605         * ProgressBar.cs: Spelling
40606
40607 2004-07-09 11:25  pbartok
40608
40609         * ProgressBar.cs:
40610           - Removed usage of Rectangle for drawing. Miguel pointed out it's
40611           faster
40612
40613 2004-07-09 11:17  miguel
40614
40615         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
40616
40617                 * ProgressBar.cs: Fixed spelling for `block'
40618
40619                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
40620                 style guidelines.
40621
40622                 Avoid using the += on rect.X, that exposed a bug in the compiler.
40623
40624 2004-07-08 23:21  pbartok
40625
40626         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
40627           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
40628           BaseCollection.cs, Binding.cs, BindingContext.cs,
40629           BindingMemberInfo.cs, BindingsCollection.cs,
40630           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
40631           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
40632           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
40633           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
40634           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
40635           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
40636           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
40637           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
40638           FrameStyle.cs, GiveFeedbackEventArgs.cs,
40639           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
40640           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
40641           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
40642           InputLanguageChangedEventArgs.cs,
40643           InputLanguageChangedEventHandler.cs,
40644           InputLanguageChangingEventArgs.cs,
40645           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
40646           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
40647           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
40648           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
40649           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
40650           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
40651           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
40652           QueryAccessibilityHelpEventArgs.cs,
40653           QueryAccessibilityHelpEventHandler.cs,
40654           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
40655           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
40656           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
40657           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
40658           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
40659           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
40660           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
40661           XplatUIX11.cs, lang.cs:
40662           - Initial check-in
40663